README.W32 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. Copyright (C) 2001-2012 Free Software Foundation, Inc.
  2. See the end of the file for license conditions.
  3. Emacs for Windows
  4. This README.W32 file describes how to set up and run a precompiled
  5. distribution of GNU Emacs for Windows. You can find the precompiled
  6. distribution on the ftp.gnu.org server and its mirrors:
  7. ftp://ftp.gnu.org/gnu/emacs/windows/
  8. This server contains other distributions, including the full Emacs
  9. source distribution and a barebin distribution which can be installed
  10. over it, as well as older releases of Emacs for Windows.
  11. Information on how to compile Emacs from sources on Windows is in
  12. the files README and INSTALL in this directory. If you received
  13. this file as part of the Emacs source distribution, please read
  14. those 2 files and not this one.
  15. Answers to frequently asked questions, and further information about
  16. this port of GNU Emacs and related software packages can be found via
  17. http:
  18. http://www.gnu.org/software/emacs/windows/
  19. * Preliminaries
  20. Along with this file should be six subdirectories (bin, etc, info,
  21. lisp, leim, site-lisp). If you have downloaded the barebin
  22. distribution, then it will contain only the bin directory and the
  23. built in documentation in etc/DOC-X, the rest of the subdirectories
  24. are in the src distribution, which the barebin distribution is
  25. designed to be used with.
  26. * Setting up Emacs
  27. To install Emacs, simply unpack all the files into a directory of
  28. your choice, but note that you might encounter minor problems if
  29. there is a space anywhere in the directory name. To complete the
  30. installation process, you can optionally run the program addpm.exe
  31. in the bin subdirectory. This will put an icon for Emacs in the
  32. Start Menu under "Start -> Programs -> Gnu Emacs".
  33. Some users have reported that the Start Menu item is not created for
  34. them. If this happens, just create your own shortcut to runemacs.exe,
  35. eg. by dragging it on to the desktop or the Start button.
  36. Note that running addpm is now an optional step; Emacs is able to
  37. locate all of its files without needing any information to be set in
  38. the environment or the registry, although such settings will still
  39. be obeyed if present. This is convenient for running Emacs on a
  40. machine which disallows registry changes, or on which software
  41. should not be installed. For instance, you can now run Emacs
  42. directly from a CD or USB flash drive without copying or installing
  43. anything on the machine itself.
  44. * Prerequisites for Windows 9X
  45. To run Emacs on Windows 9X (Windows 95/98/Me), you will need to have
  46. the Microsoft Layer for Unicode (MSLU) installed. It can be
  47. downloaded from the Microsoft site, and comes in a form of a single
  48. dynamic library called UNICOWS.DLL. If this library is not
  49. accessible to Emacs, it will pop up a dialog saying that it cannot
  50. find the library, and will refuse to start up a GUI session.
  51. (However, it is still possible to use Emacs in text mode, even
  52. without UNICOWS.DLL, by invoking it as "emacs -nw", see below.)
  53. * Starting Emacs
  54. To run Emacs, simply select Emacs from the Start Menu, or invoke
  55. runemacs.exe directly from Explorer or from a command prompt. This
  56. will start Emacs in its default GUI mode, ready to use. If you have
  57. never used Emacs before, you should follow the tutorial at this
  58. point (select Emacs Tutorial from the Help menu), since Emacs is
  59. quite different from ordinary Windows applications in many respects.
  60. If you want to use Emacs in tty or character mode within a command
  61. window, you can start it by typing "emacs -nw" at the command prompt.
  62. (Obviously, you need to ensure that the Emacs bin subdirectory is in
  63. your PATH first, or specify the path to emacs.exe.) The -nw
  64. (non-windowed) mode of operation is most useful if you have a telnet
  65. server on your machine, allowing you to run Emacs remotely.
  66. * EXE files included
  67. Emacs comes with the following executable files in the bin directory.
  68. + emacs.exe - The main Emacs executable. As this is designed to run
  69. as both a text-mode application (emacs -nw) and as a GUI application,
  70. it will pop up a command prompt window if run directly from Explorer.
  71. + runemacs.exe - A wrapper for running Emacs as a GUI application
  72. without popping up a command prompt window. If you create a
  73. desktop shortcut for invoking Emacs, make it point to this
  74. executable, not to emacs.exe.
  75. + emacsclient.exe - A command-line client program that can
  76. communicate with a running Emacs process. See the `Emacs Server'
  77. node of the Emacs manual.
  78. + emacsclientw.exe - A version of emacsclient that does not open
  79. a command-line window.
  80. + addpm.exe - A basic installer that creates Start Menu icons for Emacs.
  81. Running this is optional.
  82. + cmdproxy.exe - Used internally by Emacs to work around problems with
  83. the native shells in various versions of Windows.
  84. + ctags.exe, etags.exe - Tools for generating tag files. See the
  85. `Tags' node of the Emacs manual.
  86. + ebrowse.exe - A tool for generating C++ browse information. See the
  87. `Ebrowse' manual.
  88. + ddeclient.exe - A tool for interacting with DDE servers.
  89. + hexl.exe - A tool for producing hex dumps of binary files. See the
  90. `Editing Binary Files' node of the Emacs manual.
  91. + movemail.exe - A helper application for safely moving mail from
  92. a mail spool or POP server to a local user mailbox. See the
  93. `Movemail' node of the Emacs manual.
  94. * Image support
  95. Emacs has built in support for XBM and PPM/PGM/PBM images, and the
  96. libXpm library is bundled, providing XPM support (required for color
  97. toolbar icons and splash screen). Source for libXpm should be available
  98. on the same place as you got this binary distribution from.
  99. Emacs can also support some other image formats with appropriate
  100. libraries. These libraries are all available as part of GTK
  101. download for Windows (http://www.gtk.org/download/win32.php), or
  102. from the GnuWin32 project. Emacs will find them if the directory
  103. they are installed in is on the PATH.
  104. PNG: requires the PNG reference library 1.4 or later, which will
  105. be named libpng14.dll or libpng14-14.dll. LibPNG requires zlib,
  106. which should come from the same source as you got libpng.
  107. Starting with Emacs 23.3, the precompiled Emacs binaries are
  108. built with libpng 1.4.x and later, and are incompatible with
  109. earlier versions of libpng DLLs. So if you have libpng 1.2.x,
  110. the PNG support will not work, and you will have to download
  111. newer versions.
  112. JPEG: requires the Independent JPEG Group's libjpeg 6b or later,
  113. which will be called jpeg62.dll, libjpeg.dll, jpeg-62.dll or jpeg.dll.
  114. TIFF: requires libTIFF 3.0 or later, which will be called libtiff3.dll
  115. or libtiff.dll.
  116. GIF: requires libungif or giflib 4.1 or later, which will be
  117. called giflib4.dll, libungif4.dll or libungif.dll.
  118. If you have image support DLLs under different names, customize the
  119. value of `dynamic-library-alist'.
  120. In addition, Emacs can be compiled to support SVG. This precompiled
  121. distribution has not been compiled that way, since the SVG library
  122. or one or more of its extensive dependencies appear to be
  123. unreliable under Windows. See nt/INSTALL in the src distribution if
  124. you wish to compile Emacs with SVG support.
  125. * GnuTLS support
  126. In order to support GnuTLS at runtime, Emacs must be able to find
  127. the relevant DLLs during startup; failure to do so is not an error,
  128. but GnuTLS won't be available to the running session.
  129. You can get pre-built binaries (including any required DLL and the
  130. header files) at http://sourceforge.net/projects/ezwinports/files/.
  131. * Uninstalling Emacs
  132. If you should need to uninstall Emacs, simply delete all the files
  133. and subdirectories from the directory where it was unpacked (Emacs
  134. does not install or update any files in system directories or
  135. anywhere else). If you ran the addpm.exe program to create the
  136. registry entries and the Start menu icon, then you can remove the
  137. registry entries using regedit. All of the settings are written
  138. under the Software\GNU\Emacs key in HKEY_LOCAL_MACHINE, or if you
  139. didn't have administrator privileges when you installed, the same
  140. key in HKEY_CURRENT_USER. Just delete the whole Software\GNU\Emacs
  141. key.
  142. The Start menu entry can be removed by right-clicking on the Task bar
  143. and selecting Properties, then using the Remove option on the Start
  144. Menu Programs page. (If you installed under an account with
  145. administrator privileges, then you need to click the Advanced button
  146. and look for the Gnu Emacs menu item under All Users.)
  147. * Troubleshooting
  148. Unpacking the distributions
  149. If you encounter trouble trying to run Emacs, there are a number of
  150. possible causes. Check the following for indications that the
  151. distribution was not corrupted by the tools used to unpack it:
  152. * Be sure to disable CR/LF translation or the executables will
  153. be unusable. Older versions of WinZipNT would enable this
  154. translation by default. If you are using WinZipNT, disable it.
  155. (I don't have WinZipNT myself, and I do not know the specific
  156. commands necessary to disable it.)
  157. * Check that filenames were not truncated to 8.3. For example,
  158. there should be a file lisp\abbrevlist.elc; if this has been
  159. truncated to abbrevli.elc, your distribution has been corrupted
  160. while unpacking and Emacs will not start.
  161. * On Windows 9X, make sure you have the UNICOWS.DLL library either
  162. in the same directory where you have emacs.exe or in the
  163. directory where system-wide DLLs are kept.
  164. If you believe you have unpacked the distributions correctly and are
  165. still encountering problems, see the section on Further Information
  166. below.
  167. Virus scanners
  168. Some virus scanners interfere with Emacs' use of subprocesses. If you
  169. are unable to use subprocesses and you use Dr. Solomon's WinGuard or
  170. McAfee's Vshield, turn off "Scan all files" (WinGuard) or "boot sector
  171. scanning" (McAfee exclusion properties).
  172. * Further information
  173. If you have access to the World Wide Web, I would recommend pointing
  174. your favorite web browser to the following document (if you haven't
  175. already):
  176. http://www.gnu.org/software/emacs/windows/
  177. This document serves as an FAQ and a source for further information
  178. about the Windows port and related software packages.
  179. In addition to the FAQ, there is a mailing list for discussing issues
  180. related to the Windows port of Emacs. For information about the
  181. list, see this Web page:
  182. http://lists.gnu.org/mailman/listinfo/help-emacs-windows
  183. To ask questions on the mailing list, send email to
  184. help-emacs-windows@gnu.org. (You don't need to subscribe for that.)
  185. To subscribe to the list or unsubscribe from it, fill the form you
  186. find at http://lists.gnu.org/mailman/listinfo/help-emacs-windows as
  187. explained there.
  188. Another valuable source of information and help which should not be
  189. overlooked is the various Usenet news groups dedicated to Emacs.
  190. These are particularly good for help with general issues which aren't
  191. specific to the Windows port of Emacs. The main news groups to use
  192. for seeking help are:
  193. gnu.emacs.help
  194. comp.emacs
  195. There are also fairly regular postings and announcements of new or
  196. updated Emacs packages on this group:
  197. gnu.emacs.sources
  198. * Reporting bugs
  199. If you encounter a bug in this port of Emacs, we would like to hear
  200. about it. First check the FAQ on the web page above to see if the bug
  201. is already known and if there are any workarounds. Then check whether
  202. the bug has something to do with code in your .emacs file, e.g. by
  203. invoking Emacs with the "-Q" option.
  204. If you decide that it is a bug in Emacs, use the built in bug
  205. reporting facility to report it (from the menu; Help -> Send Bug Report).
  206. If you have not yet configured Emacs for mail, then when you press
  207. C-c C-c to send the report, it will ask you to paste the text of the
  208. report into your mail client. If the bug is related to subprocesses,
  209. also specify which shell you are using (e.g., include the values of
  210. `shell-file-name' and `explicit-shell-file-name' in your message).
  211. Enjoy!
  212. This file is part of GNU Emacs.
  213. GNU Emacs is free software: you can redistribute it and/or modify
  214. it under the terms of the GNU General Public License as published by
  215. the Free Software Foundation, either version 3 of the License, or
  216. (at your option) any later version.
  217. GNU Emacs is distributed in the hope that it will be useful,
  218. but WITHOUT ANY WARRANTY; without even the implied warranty of
  219. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  220. GNU General Public License for more details.
  221. You should have received a copy of the GNU General Public License
  222. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.