aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorGlenn Morris2009-06-16 02:51:00 +0000
committerGlenn Morris2009-06-16 02:51:00 +0000
commitb59a8457e73346e43e91989870bc98e6a417b5c6 (patch)
treefd58ad276231e65bec7b3c0096875ae1b27739f6 /doc/misc
parentcc13543e84480b8361da607ba9b859c9bd2f42d5 (diff)
downloademacs-b59a8457e73346e43e91989870bc98e6a417b5c6.tar.gz
emacs-b59a8457e73346e43e91989870bc98e6a417b5c6.zip
(Top): Mention which Emacs version this FAQ is about.
Recommend the latest release. Mention how to get older FAQs. Recommend the Emacs manual. (Guidelines for newsgroup postings): Discourage cross-posts. (Underlining paragraphs): Remove. (Editing MS-DOS files): Remove pre-Emacs 20 information. (Bugs and problems): Update key-binding. (Problems with very large files): Mention 64-bit. (Shell process exits abnormally): Remove. (Problems with Shell Mode): Rename and update. (Spontaneous entry into isearch-mode) (Problems talking to certain hosts): Remove. This is old information, in etc/PROBLEMS if needed. (Emacs takes a long time to visit files, Updating Emacs): Remove. (Dired claims that no file is on this line): Update. (Installing Emacs, Problems building Emacs): Simplify. (Emacs for MS-DOS): Refer to msdos/INSTALL rather than duplicating information. (Emacs for MS-Windows): Rename from "Emacs for Windows". Simplify. (Emacs for Mac OS X): Rename from "Emacs for Apple computers". (JDEE): "JDEE", not "JDE". (Handling C-s and C-q with flow control, Binding C-s and C-q): Remove. This is old information, in etc/PROBLEMS if needed. (stty and Backspace key, Kanji and Chinese characters): Remove. (Right-to-left alphabets): Update section. (Changing the included text prefix): Gnus uses message-yank-prefix. Add cross-reference to Supercite manual. (Saving a copy of outgoing mail): Simplify output file description. (Expanding aliases when sending mail): Refer to Emacs manual. Remove old info about RFC822. Correct description of how to rebuild aliases. (Rmail writes to /var/spool/mail): Update location from /usr/spool/mail. (MIME with Emacs mail packages) (Viewing articles with embedded underlining) (Saving a multi-part Gnus posting, Gnus hangs for a long time): Remove old sections. (Killing based on nonstandard headers): Remove. Scoring is preferable, and is well-documented in the Gnus manual. (Reading news with Emacs): Merge "Learning more about Gnus" into here. (Making Gnus faster): Rename from "Starting Gnus faster". Merge "Catch-up is slow in Gnus" into here.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog102
-rw-r--r--doc/misc/faq.texi858
2 files changed, 190 insertions, 770 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index e811ecdbd0d..c3c96230cce 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,47 @@
12009-06-16 Glenn Morris <rgm@gnu.org>
2
3 * faq.texi (Top): Mention which Emacs version this FAQ is about.
4 Recommend the latest release. Mention how to get older FAQs.
5 Recommend the Emacs manual.
6 (Guidelines for newsgroup postings): Discourage cross-posts.
7 (Underlining paragraphs): Remove.
8 (Editing MS-DOS files): Remove pre-Emacs 20 information.
9 (Bugs and problems): Update key-binding.
10 (Problems with very large files): Mention 64-bit.
11 (Shell process exits abnormally): Remove.
12 (Problems with Shell Mode): Rename and update.
13 (Spontaneous entry into isearch-mode)
14 (Problems talking to certain hosts): Remove. This is old information,
15 in etc/PROBLEMS if needed.
16 (Emacs takes a long time to visit files, Updating Emacs): Remove.
17 (Dired claims that no file is on this line): Update.
18 (Installing Emacs, Problems building Emacs): Simplify.
19 (Emacs for MS-DOS): Refer to msdos/INSTALL rather than duplicating
20 information.
21 (Emacs for MS-Windows): Rename from "Emacs for Windows". Simplify.
22 (Emacs for Mac OS X): Rename from "Emacs for Apple computers".
23 (JDEE): "JDEE", not "JDE".
24 (Handling C-s and C-q with flow control, Binding C-s and C-q):
25 Remove. This is old information, in etc/PROBLEMS if needed.
26 (stty and Backspace key, Kanji and Chinese characters): Remove.
27 (Right-to-left alphabets): Update section.
28 (Changing the included text prefix): Gnus uses message-yank-prefix.
29 Add cross-reference to Supercite manual.
30 (Saving a copy of outgoing mail): Simplify output file description.
31 (Expanding aliases when sending mail): Refer to Emacs manual.
32 Remove old info about RFC822.
33 Correct description of how to rebuild aliases.
34 (Rmail writes to /var/spool/mail): Update location from /usr/spool/mail.
35 (MIME with Emacs mail packages)
36 (Viewing articles with embedded underlining)
37 (Saving a multi-part Gnus posting, Gnus hangs for a long time):
38 Remove old sections.
39 (Killing based on nonstandard headers): Remove. Scoring is preferable,
40 and is well-documented in the Gnus manual.
41 (Reading news with Emacs): Merge "Learning more about Gnus" into here.
42 (Making Gnus faster): Rename from "Starting Gnus faster".
43 Merge "Catch-up is slow in Gnus" into here.
44
12009-06-14 Glenn Morris <rgm@gnu.org> 452009-06-14 Glenn Morris <rgm@gnu.org>
2 46
3 * faq.texi (Status of Emacs): Re-order with most recent releases first. 47 * faq.texi (Status of Emacs): Re-order with most recent releases first.
@@ -188,54 +232,18 @@
188 232
1892009-02-16 Karl Berry <karl@gnu.org> 2332009-02-16 Karl Berry <karl@gnu.org>
190 234
191 * ada-mode.texi, 235 * ada-mode.texi, auth.texi, autotype.texi, calc.texi, cc-mode.texi:
192 * auth.texi, 236 * cl.texi, dbus.texi, dired-x.texi, ebrowse.texi, ediff.texi:
193 * autotype.texi, 237 * emacs-mime.texi, epa.texi, erc.texi, eshell.texi, eudc.texi:
194 * calc.texi, 238 * faq.texi, flymake.texi, forms.texi, gnus-coding.texi, gnus.texi:
195 * cc-mode.texi, 239 * idlwave.texi, info.texi, mairix-el.texi, message.texi, mh-e.texi:
196 * cl.texi, 240 * newsticker.texi, nxml-mode.texi, org.texi, pcl-cvs.texi:
197 * dbus.texi, 241 * pgg.texi, rcirc.texi, reftex.texi, remember.texi, sasl.texi:
198 * dired-x.texi, 242 * sc.texi, ses.texi, sieve.texi, smtpmail.texi, speedbar.texi:
199 * ebrowse.texi, 243 * tramp.texi, url.texi, vip.texi, viper.texi, widget.texi, woman.texi:
200 * ediff.texi, 244 Consistently use @insertcopying in the Top node,
201 * emacs-mime.texi,
202 * epa.texi,
203 * erc.texi,
204 * eshell.texi,
205 * eudc.texi,
206 * faq.texi,
207 * flymake.texi,
208 * forms.texi,
209 * gnus-coding.texi,
210 * gnus.texi,
211 * idlwave.texi,
212 * info.texi,
213 * mairix-el.texi,
214 * message.texi,
215 * mh-e.texi,
216 * newsticker.texi,
217 * nxml-mode.texi,
218 * org.texi,
219 * pcl-cvs.texi,
220 * pgg.texi,
221 * rcirc.texi,
222 * reftex.texi,
223 * remember.texi,
224 * sasl.texi,
225 * sc.texi,
226 * ses.texi,
227 * sieve.texi,
228 * smtpmail.texi,
229 * speedbar.texi,
230 * tramp.texi,
231 * url.texi,
232 * vip.texi,
233 * viper.texi,
234 * widget.texi,
235 * woman.texi: Consistently use @insertcopying in the Top node,
236 @contents at the front (after @end titlepage), 245 @contents at the front (after @end titlepage),
237 and @direntry after @copying. 246 and @direntry after @copying. (Bug#1988)
238 (Bug#1988)
239 247
2402009-02-13 Teodor Zlatanov <tzz@lifelogs.com> 2482009-02-13 Teodor Zlatanov <tzz@lifelogs.com>
241 249
diff --git a/doc/misc/faq.texi b/doc/misc/faq.texi
index 9b17e6547aa..96e479bf7cc 100644
--- a/doc/misc/faq.texi
+++ b/doc/misc/faq.texi
@@ -67,6 +67,19 @@ This FAQ is maintained as a part of GNU Emacs. If you find any errors,
67or have any suggestions, please use @kbd{M-x report-emacs-bug} to report 67or have any suggestions, please use @kbd{M-x report-emacs-bug} to report
68them. 68them.
69 69
70This is the version of the FAQ distributed with Emacs @value{VER}, and
71mainly describes that version. Although there is some information on
72older versions, details about very old versions (now only of historical
73interest) have been removed. If you are interested in this, consult
74either the version of the FAQ distributed with older versions of Emacs,
75or the history of this document in the Emacs source repository.
76
77Since Emacs releases are very stable, we recommend always running the
78latest release.
79
80This FAQ is not updated very frequently. When you have a question about
81Emacs, the Emacs manual is often the best starting point.
82
70@ifnottex 83@ifnottex
71@insertcopying 84@insertcopying
72@end ifnottex 85@end ifnottex
@@ -388,7 +401,8 @@ lists both the newsgroup name and the mailing list address.
388 401
389The newsgroup @uref{news:comp.emacs} is for discussion of Emacs programs 402The newsgroup @uref{news:comp.emacs} is for discussion of Emacs programs
390in general. The newsgroup @uref{news:gnu.emacs.help} is specifically 403in general. The newsgroup @uref{news:gnu.emacs.help} is specifically
391for GNU Emacs. 404for GNU Emacs. It therefore makes no sense to cross-post to both
405groups, since only one can be appropriate to any question.
392 406
393Messages advocating ``non-free'' software are considered unacceptable on 407Messages advocating ``non-free'' software are considered unacceptable on
394any of the @code{gnu.*} newsgroups except for @uref{news:gnu.misc.discuss}, 408any of the @code{gnu.*} newsgroups except for @uref{news:gnu.misc.discuss},
@@ -1229,7 +1243,6 @@ of files from Macintosh, Microsoft, and Unix platforms.
1229* Evaluating Emacs Lisp code:: 1243* Evaluating Emacs Lisp code::
1230* Changing the length of a Tab:: 1244* Changing the length of a Tab::
1231* Inserting text at the beginning of each line:: 1245* Inserting text at the beginning of each line::
1232* Underlining paragraphs::
1233* Forcing the cursor to remain in the same column:: 1246* Forcing the cursor to remain in the same column::
1234* Forcing Emacs to iconify itself:: 1247* Forcing Emacs to iconify itself::
1235* Using regular expressions:: 1248* Using regular expressions::
@@ -2158,13 +2171,6 @@ buffers, you can even use @kbd{M-;} to cite yanked messages (@kbd{M-;}
2158runs the function @code{comment-region}, it is a general-purpose 2171runs the function @code{comment-region}, it is a general-purpose
2159mechanism to comment regions) (@pxref{Changing the included text prefix}). 2172mechanism to comment regions) (@pxref{Changing the included text prefix}).
2160 2173
2161@node Underlining paragraphs
2162@section How do I insert @samp{_^H} before each character in a region to get an underlined paragraph?
2163@cindex Underlining a region of text
2164@cindex @code{underline-region}
2165
2166Mark the region and then type @kbd{M-x underline-region @key{RET}}.
2167
2168@node Forcing the cursor to remain in the same column 2174@node Forcing the cursor to remain in the same column
2169@section How do I make Emacs behave like this: when I go up or down, the cursor should stay in the same column even if the line is too short? 2175@section How do I make Emacs behave like this: when I go up or down, the cursor should stay in the same column even if the line is too short?
2170@cindex @code{picture-mode} 2176@cindex @code{picture-mode}
@@ -2574,12 +2580,6 @@ the string @samp{(DOS)} will appear near the left edge of the mode line;
2574on DOS and Windows, where the DOS end-of-line (EOL) format is the 2580on DOS and Windows, where the DOS end-of-line (EOL) format is the
2575default, a backslash (@samp{\}) will appear in the mode line. 2581default, a backslash (@samp{\}) will appear in the mode line.
2576 2582
2577If you are running a version of Emacs before 20.1, get @code{crypt++}
2578(@pxref{Packages that do not come with Emacs}). Among other things,
2579@code{crypt++} transparently modifies MS-DOS files as they are loaded
2580and saved, allowing you to ignore the different conventions that Unix
2581and MS-DOS have for delineating the end of a line.
2582
2583@node Filling paragraphs with a single space 2583@node Filling paragraphs with a single space
2584@section How can I tell Emacs to fill paragraphs with a single space after each period? 2584@section How can I tell Emacs to fill paragraphs with a single space after each period?
2585@cindex One space following periods 2585@cindex One space following periods
@@ -2650,20 +2650,16 @@ instructions how to do that.
2650 2650
2651The file @file{etc/PROBLEMS} in the Emacs distribution lists various 2651The file @file{etc/PROBLEMS} in the Emacs distribution lists various
2652known problems with building and using Emacs on specific platforms; 2652known problems with building and using Emacs on specific platforms;
2653type @kbd{C-h C-e} to read it. 2653type @kbd{C-h C-p} to read it.
2654 2654
2655@menu 2655@menu
2656* Problems with very large files:: 2656* Problems with very large files::
2657* ^M in the shell buffer:: 2657* ^M in the shell buffer::
2658* Shell process exits abnormally:: 2658* Problems with Shell Mode::
2659* Problems with Shell Mode on MS-Windows::
2660* Termcap/Terminfo entries for Emacs:: 2659* Termcap/Terminfo entries for Emacs::
2661* Spontaneous entry into isearch-mode::
2662* Problems talking to certain hosts::
2663* Errors with init files:: 2660* Errors with init files::
2664* Emacs ignores X resources:: 2661* Emacs ignores X resources::
2665* Emacs ignores frame parameters:: 2662* Emacs ignores frame parameters::
2666* Emacs takes a long time to visit files::
2667* Editing files with $ in the name:: 2663* Editing files with $ in the name::
2668* Shell mode loses the current directory:: 2664* Shell mode loses the current directory::
2669* Security risks with Emacs:: 2665* Security risks with Emacs::
@@ -2684,6 +2680,8 @@ buffer size is at least 2^27-1, or 134,217,727 bytes, or 132 MBytes.
2684And in Emacs 22, the maximum buffer size has been increased to 2680And in Emacs 22, the maximum buffer size has been increased to
2685268,435,455 bytes (or 256 MBytes) on 32-bit machines. 2681268,435,455 bytes (or 256 MBytes) on 32-bit machines.
2686 2682
2683Emacs compiled on a 64-bit machine can handle much larger buffers.
2684
2687@node ^M in the shell buffer 2685@node ^M in the shell buffer
2688@section How do I get rid of @samp{^M} or echoed commands in my shell buffer? 2686@section How do I get rid of @samp{^M} or echoed commands in my shell buffer?
2689@cindex Shell buffer, echoed commands and @samp{^M} in 2687@cindex Shell buffer, echoed commands and @samp{^M} in
@@ -2756,62 +2754,20 @@ shell start-up file:
2756stty -icrnl -onlcr -echo susp ^Z 2754stty -icrnl -onlcr -echo susp ^Z
2757@end example 2755@end example
2758 2756
2759@node Shell process exits abnormally 2757@node Problems with Shell Mode
2760@section Why do I get ``Process shell exited abnormally with code 1''?
2761@cindex Abnormal exits from @code{shell-mode}
2762@cindex @code{shell-mode} exits
2763@cindex Process shell exited
2764
2765The most likely reason for this message is that the @samp{env} program
2766is not properly installed. Compile this program for your architecture,
2767and install it with @samp{a+x} permission in the architecture-dependent
2768Emacs program directory. (You can find what this directory is at your
2769site by inspecting the value of the variable @code{exec-directory} by
2770typing @kbd{C-h v exec-directory @key{RET}}.)
2771
2772You should also check for other programs named @samp{env} in your path
2773(e.g., SunOS has a program named @file{/usr/bin/env}). We don't
2774understand why this can cause a failure and don't know a general
2775solution for working around the problem in this case.
2776
2777The @samp{make clean} command will remove @samp{env} and other vital
2778programs, so be careful when using it.
2779
2780It has been reported that this sometimes happened when Emacs was started
2781as an X client from an xterm window (i.e., had a controlling tty) but the
2782xterm was later terminated.
2783
2784See also @samp{PROBLEMS} (in the @file{etc} subdirectory of the
2785top-level directory when you unpack the Emacs source) for other
2786possible causes of this message.
2787
2788@node Problems with Shell Mode on MS-Windows
2789@section Why do I get an error message when I try to run @kbd{M-x shell}? 2758@section Why do I get an error message when I try to run @kbd{M-x shell}?
2790 2759
2791@cindex Shell Mode, and MS-Windows 2760@cindex Shell Mode, problems
2792@cindex @code{explicit-shell-file-name} 2761@cindex @code{explicit-shell-file-name}
2793On MS-Windows, this might happen because Emacs tries to look for the 2762This might happen because Emacs tries to look for the shell in a wrong
2794shell in a wrong place. The default file name @file{/bin/sh} is 2763place. If you know where your shell executable is, set the variable
2795usually incorrect for non-Unix systems. If you know where your shell 2764@code{explicit-shell-file-name} in your @file{.emacs} file to point to
2796executable is, set the variable @code{explicit-shell-file-name} in 2765its full file name.
2797your @file{.emacs} file to point to its full file name, like this:
2798
2799@lisp
2800(setq explicit-shell-file-name "d:/shells/bash.exe")
2801@end lisp
2802
2803If you don't know what shell does Emacs use, try the @kbd{M-!}
2804command; if that works, put the following line into your
2805@file{.emacs}:
2806
2807@lisp
2808(setq explicit-shell-file-name shell-file-name)
2809@end lisp
2810 2766
2811@cindex Antivirus programs, and Shell Mode 2767@cindex Antivirus programs, and Shell Mode
2812Some people have trouble with Shell Mode because of intrusive 2768Some people have trouble with Shell Mode on MS-Windows because of
2813antivirus software; disabling the resident antivirus program solves 2769intrusive antivirus software; disabling the resident antivirus program
2814the problems in those cases. 2770solves the problems in those cases.
2815 2771
2816@node Termcap/Terminfo entries for Emacs 2772@node Termcap/Terminfo entries for Emacs
2817@section Where is the termcap/terminfo entry for terminal type @samp{emacs}? 2773@section Where is the termcap/terminfo entry for terminal type @samp{emacs}?
@@ -2847,63 +2803,6 @@ in your shell start up file. @code{csh} users could put this in their
2847if ("$term" == emacs) set term=dumb 2803if ("$term" == emacs) set term=dumb
2848@end example 2804@end example
2849 2805
2850@node Spontaneous entry into isearch-mode
2851@section Why does Emacs spontaneously start displaying @samp{I-search:} and beeping?
2852@cindex Spontaneous entry into isearch-mode
2853@cindex isearch-mode, spontaneous entry into
2854@cindex Beeping without obvious reason
2855
2856Your terminal (or something between your terminal and the computer) is
2857sending @kbd{C-s} and @kbd{C-q} for flow control, and Emacs is receiving
2858these characters and interpreting them as commands. (The @kbd{C-s}
2859character normally invokes the @code{isearch-forward} command.) For
2860possible solutions, see @ref{Handling C-s and C-q with flow control}.
2861
2862@node Problems talking to certain hosts
2863@section Why can't Emacs talk to certain hosts (or certain hostnames)?
2864@cindex Hosts, Emacs cannot talk to
2865@cindex @code{gethostbyname}, problematic version
2866
2867The problem may be that Emacs is linked with a wimpier version of
2868@code{gethostbyname} than the rest of the programs on the machine. This
2869is often manifested as a message on startup of ``X server not responding.
2870Check your @samp{DISPLAY} environment variable.'' or a message of
2871``Unknown host'' from @code{open-network-stream}.
2872
2873On a Sun, this may be because Emacs had to be linked with the static C
2874library. The version of @code{gethostbyname} in the static C library
2875may only look in @file{/etc/hosts} and the NIS (YP) maps, while the
2876version in the dynamic C library may be smart enough to check DNS in
2877addition to or instead of NIS. On a Motorola Delta running System V
2878R3.6, the version of @code{gethostbyname} in the standard library works,
2879but the one that works with NIS doesn't (the one you get with -linet).
2880Other operating systems have similar problems.
2881
2882Try these options:
2883
2884@itemize @bullet
2885
2886@item
2887Explicitly add the host you want to communicate with to @file{/etc/hosts}.
2888
2889@item
2890Relink Emacs with this line in @file{src/config.h}:
2891
2892@example
2893#define LIBS_SYSTEM -lresolv
2894@end example
2895
2896@item
2897Replace @code{gethostbyname} and friends in @file{libc.a} with more
2898useful versions such as the ones in @file{libresolv.a}. Then relink
2899Emacs.
2900
2901@item
2902If you are actually running NIS, make sure that @code{ypbind} is
2903properly told to do DNS lookups with the correct command line switch.
2904
2905@end itemize
2906
2907@node Errors with init files 2806@node Errors with init files
2908@section Why does Emacs say @samp{Error in init file}? 2807@section Why does Emacs say @samp{Error in init file}?
2909@cindex Error in @file{.emacs} 2808@cindex Error in @file{.emacs}
@@ -3020,22 +2919,6 @@ size of the initial frame, but would like to control the geometry of the
3020other frames by individually positioning each one of them. 2919other frames by individually positioning each one of them.
3021 2920
3022 2921
3023@node Emacs takes a long time to visit files
3024@section Why does Emacs take 20 seconds to visit a file?
3025@cindex Visiting files takes a long time
3026@cindex Delay when visiting files
3027@cindex Files, take a long time to visit
3028
3029Old versions of Emacs (i.e., versions before Emacs 20.x) often
3030encountered this when the master lock file, @file{!!!SuperLock!!!}, has
3031been left in the lock directory somehow. Delete it.
3032
3033@email{meuer@@geom.umn.edu, Mark Meuer} says that NeXT NFS has a bug
3034where an exclusive create succeeds but returns an error status. This
3035can cause the same problem. Since Emacs's file locking doesn't work
3036over NFS anyway, the best solution is to recompile Emacs with
3037@code{CLASH_DETECTION} undefined.
3038
3039@node Editing files with $ in the name 2922@node Editing files with $ in the name
3040@section How do I edit a file with a @samp{$} in its name? 2923@section How do I edit a file with a @samp{$} in its name?
3041@cindex Editing files with @samp{$} in the name 2924@cindex Editing files with @samp{$} in the name
@@ -3172,21 +3055,16 @@ access control enabled, only authorized clients can connect
3172@section Dired says, @samp{no file on this line} when I try to do something. 3055@section Dired says, @samp{no file on this line} when I try to do something.
3173@cindex Dired does not see a file 3056@cindex Dired does not see a file
3174 3057
3175@c FIXME: I think this is fixed in Emacs 21, but I didn't have time to
3176@c check.
3177Chances are you're using a localized version of Unix that doesn't use US
3178date format in dired listings. You can check this by looking at dired
3179listings or by typing @kbd{ls -l} to a shell and looking at the dates that
3180come out.
3181
3182Dired uses a regular expression to find the beginning of a file name. 3058Dired uses a regular expression to find the beginning of a file name.
3183In a long Unix-style directory listing (@samp{ls -l}), the file name 3059In a long Unix-style directory listing (@samp{ls -l}), the file name
3184starts after the date. The regexp has thus been written to look for the 3060starts after the date. The regexp has thus been written to look for the
3185date, the format of which can vary on non-US systems. 3061date. By default, it should understand dates and times regardless of
3062the language, but if your directory listing has an unusual format, Dired
3063may get confused.
3186 3064
3187There are two approaches to solving this. The first one involves 3065There are two approaches to solving this. The first one involves
3188setting things up so that @samp{ls -l} outputs US date format. This can 3066setting things up so that @samp{ls -l} outputs a more standard format.
3189be done by setting the locale. See your OS manual for more information. 3067See your OS manual for more information.
3190 3068
3191The second approach involves changing the regular expression used by 3069The second approach involves changing the regular expression used by
3192dired, @code{directory-listing-before-filename-regexp}. 3070dired, @code{directory-listing-before-filename-regexp}.
@@ -3198,7 +3076,6 @@ dired, @code{directory-listing-before-filename-regexp}.
3198 3076
3199@menu 3077@menu
3200* Installing Emacs:: 3078* Installing Emacs::
3201* Updating Emacs::
3202* Problems building Emacs:: 3079* Problems building Emacs::
3203@end menu 3080@end menu
3204 3081
@@ -3207,92 +3084,53 @@ dired, @code{directory-listing-before-filename-regexp}.
3207@cindex Installing Emacs 3084@cindex Installing Emacs
3208@cindex Unix systems, installing Emacs on 3085@cindex Unix systems, installing Emacs on
3209@cindex Downloading and installing Emacs 3086@cindex Downloading and installing Emacs
3210@cindex Retrieving and installing Emacs
3211@cindex Building Emacs from source 3087@cindex Building Emacs from source
3212@cindex Source code, building Emacs from 3088@cindex Source code, building Emacs from
3213@cindex Unpacking and installing Emacs
3214 3089
3215This answer is meant for users of Unix and Unix-like systems. Users of 3090This answer is meant for users of Unix and Unix-like systems. Users of
3216other operating systems should see the series of questions beginning 3091other operating systems should see the series of questions beginning
3217with @ref{Emacs for MS-DOS}, which describe where to get non-Unix source 3092with @ref{Emacs for MS-DOS}, which describe where to get non-Unix source
3218and binaries, and how to install Emacs on those systems. 3093and binaries, and how to install Emacs on those systems.
3219 3094
3220For Unix and Unix-like systems, the easiest way is often to compile it 3095Most GNU/Linux distributions provide pre-built Emacs packages.
3221from scratch. You will need: 3096If Emacs is not installed already, you can install it by running (as
3097root) a command such as @samp{yum install emacs} (Red Hat and
3098derivatives) or @samp{apt-get install emacs} (Debian and derivatives).
3099
3100If you want to compile Emacs yourself, read the file @file{INSTALL} in
3101the source distribution. In brief:
3222 3102
3223@itemize @bullet 3103@itemize @bullet
3224 3104
3225@item 3105@item
3226Emacs sources. @xref{Current GNU distributions}, for a list of ftp sites 3106First download the Emacs sources. @xref{Current GNU distributions}, for
3227that make them available. On @file{ftp.gnu.org}, the main GNU 3107a list of ftp sites that make them available. On @file{ftp.gnu.org},
3228distribution site, sources are available as 3108the main GNU distribution site, sources are available as
3229
3230@uref{ftp://ftp.gnu.org/pub/gnu/emacs/emacs-@value{VER}.tar.gz}
3231 3109
3232The above will obviously change as new versions of Emacs come out. For 3110@c Don't include VER in the file name, because pretests are not there.
3233instance, when Emacs 24.3 is released, it will most probably be 3111@uref{ftp://ftp.gnu.org/pub/gnu/emacs/emacs-VERSION.tar.gz}
3234available as
3235 3112
3236@uref{ftp://ftp.gnu.org/pub/gnu/emacs/emacs-24.3.tar.gz} 3113(Replace @samp{VERSION} with the relevant version number, e.g. @samp{23.1}.)
3237 3114
3238Again, you should use one of the GNU mirror sites (see @ref{Current GNU 3115@item
3239distributions}, and adjust the URL accordingly) so as to reduce load on 3116Next uncompress and extract the source files. This requires
3117the @code{gzip} and @code{tar} programs, which are standard utilities.
3118If your system does not have them, these can also be downloaded from
3240@file{ftp.gnu.org}. 3119@file{ftp.gnu.org}.
3241 3120
3242@item 3121GNU @code{tar} can uncompress and extract in a single-step:
3243@code{gzip}, the GNU compression utility. You can get @code{gzip} via
3244anonymous ftp at mirrors of @file{ftp.gnu.org} sites; it should compile
3245and install without much trouble on most systems. Once you have
3246retrieved the Emacs sources, you will probably be able to uncompress
3247them with the command
3248 3122
3249@example 3123@example
3250gunzip --verbose emacs-@value{VER}.tar.gz 3124tar -zxvf emacs-VERSION.tar.gz
3251@end example 3125@end example
3252 3126
3253@noindent
3254changing the Emacs version (@value{VER}), as necessary. Once
3255@code{gunzip} has finished doing its job, a file by the name of
3256@file{emacs-@value{VER}.tar} should be in your build directory.
3257
3258@item 3127@item
3259@code{tar}, the @dfn{tape archiving} program, which moves multiple files 3128At this point, the Emacs sources should be sitting in a directory called
3260into and out of archive files, or @dfn{tarfiles}. All of the files 3129@file{emacs-VERSION}. On most common Unix and Unix-like systems,
3261comprising the Emacs source come in a single tarfile, and must be 3130you should be able to compile Emacs with the following commands:
3262extracted using @code{tar} before you can build Emacs. Typically, the
3263extraction command would look like
3264 3131
3265@example 3132@example
3266tar -xvvf emacs-@value{VER}.tar 3133cd emacs-VERSION
3267@end example
3268
3269@noindent
3270The @samp{x} indicates that we want to extract files from this tarfile,
3271the two @samp{v}s force verbose output, and the @samp{f} tells
3272@code{tar} to use a disk file, rather than one on the tape drive.
3273
3274If you're using GNU @code{tar} (available at mirrors of
3275@file{ftp.gnu.org}), you can combine this step and the previous one by
3276using the command
3277
3278@example
3279tar -zxvvf emacs-@value{VER}.tar.gz
3280@end example
3281
3282@noindent
3283The additional @samp{z} at the beginning of the options list tells GNU
3284@code{tar} to uncompress the file with @code{gunzip} before extracting
3285the tarfile's components.
3286
3287@end itemize
3288
3289At this point, the Emacs sources (all 70+ megabytes of them) should be
3290sitting in a directory called @file{emacs-@value{VER}}. On most common
3291Unix and Unix-like systems, you should be able to compile Emacs (with X
3292Window system support) with the following commands:
3293
3294@example
3295cd emacs-@value{VER} # change directory to emacs-@value{VER}
3296./configure # configure Emacs for your particular system 3134./configure # configure Emacs for your particular system
3297make # use Makefile to build components, then Emacs 3135make # use Makefile to build components, then Emacs
3298@end example 3136@end example
@@ -3301,46 +3139,18 @@ If the @code{make} completes successfully, the odds are fairly good that
3301the build has gone well. (@xref{Problems building Emacs}, if you weren't 3139the build has gone well. (@xref{Problems building Emacs}, if you weren't
3302successful.) 3140successful.)
3303 3141
3304By default, Emacs is installed in the following directories: 3142@item
3305 3143By default, Emacs is installed in @file{/usr/local}. To actually
3306@table @file 3144install files, become the superuser and type
3307@item /usr/local/bin
3308binaries.
3309
3310@item /usr/local/share/emacs/@value{VER}
3311Lisp code and support files.
3312
3313@item /usr/local/info
3314Info documentation.
3315@end table
3316
3317To install files in those default directories, become the superuser and
3318type
3319 3145
3320@example 3146@example
3321make install 3147make install
3322@end example 3148@end example
3323 3149
3324Note that @samp{make install} will overwrite @file{/usr/local/bin/emacs} 3150Note that @samp{make install} will overwrite @file{/usr/local/bin/emacs}
3325and any Emacs Info files that might be in @file{/usr/local/info}. 3151and any Emacs Info files that might be in @file{/usr/local/share/info/}.
3326
3327Much more verbose instructions (with many more hints and suggestions)
3328come with the Emacs sources, in the file @file{INSTALL}.
3329
3330@node Updating Emacs
3331@section How do I update Emacs to the latest version?
3332@cindex Updating Emacs
3333 3152
3334@xref{Installing Emacs}, and follow the instructions there for 3153@end itemize
3335installation.
3336
3337Most files are placed in version-specific directories. Emacs
3338@value{VER}, for instance, places files in
3339@file{/usr/local/share/emacs/@value{VER}}.
3340
3341Upgrading should overwrite only, @file{/usr/local/bin/emacs} (the Emacs
3342binary) and documentation in @file{/usr/local/info}. Back up these
3343files before you upgrade, and you shouldn't have too much trouble.
3344 3154
3345@node Problems building Emacs 3155@node Problems building Emacs
3346@section What should I do if I have trouble building Emacs? 3156@section What should I do if I have trouble building Emacs?
@@ -3355,12 +3165,8 @@ installation and compilation problems.
3355If you'd like to have someone look at your problem and help solve it, 3165If you'd like to have someone look at your problem and help solve it,
3356see @ref{Help installing Emacs}. 3166see @ref{Help installing Emacs}.
3357 3167
3358If you cannot find a solution in the documentation, send a message to 3168If you cannot find a solution in the documentation, please report the
3359@email{bug-gnu-emacs@@gnu.org}. 3169problem (@pxref{Reporting bugs}).
3360
3361Please don't post it to @uref{news:gnu.emacs.help} or send e-mail to
3362@email{help-gnu-emacs@@gnu.org}. For further guidelines, see
3363@ref{Guidelines for newsgroup postings} and @ref{Reporting bugs}.
3364 3170
3365 3171
3366@c ------------------------------------------------------------ 3172@c ------------------------------------------------------------
@@ -3376,9 +3182,9 @@ Please don't post it to @uref{news:gnu.emacs.help} or send e-mail to
3376* Difference between Emacs and XEmacs:: 3182* Difference between Emacs and XEmacs::
3377* Emacs for minimalists:: 3183* Emacs for minimalists::
3378* Emacs for MS-DOS:: 3184* Emacs for MS-DOS::
3379* Emacs for Windows:: 3185* Emacs for MS-Windows::
3380* Emacs for GNUstep:: 3186* Emacs for GNUstep::
3381* Emacs for Apple computers:: 3187* Emacs for Mac OS X::
3382@end menu 3188@end menu
3383 3189
3384@node Finding Emacs on the Internet 3190@node Finding Emacs on the Internet
@@ -3516,116 +3322,59 @@ information is available from
3516 3322
3517 3323
3518@node Emacs for MS-DOS 3324@node Emacs for MS-DOS
3519@section Where can I get Emacs for my PC running MS-DOS? 3325@section Where can I get Emacs for MS-DOS?
3520@cindex MS-DOS, Emacs for 3326@cindex MS-DOS, Emacs for
3521@cindex DOS, Emacs for 3327@cindex DOS, Emacs for
3522@cindex Compiling Emacs for DOS 3328@cindex Compiling Emacs for DOS
3523@cindex Emacs for MS-DOS 3329@cindex Emacs for MS-DOS
3524@cindex Tools needed to compile Emacs under DOS
3525
3526A pre-built binary distribution of Emacs 20 is available from the
3527SimTel.NET archives. This version apparently works under MS-DOS and
3528Windows (3.X, 9X, ME, NT, and 2000) and supports long file names under
3529Windows 9X, Windows ME, and Windows 2000. More information is available
3530from
3531
3532@uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/emacs.README}
3533
3534The binary itself is available in the files @file{em*.zip} in the
3535directory
3536
3537@uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/}
3538
3539If you prefer to compile Emacs for yourself, you can do so with the
3540current distribution directly. You will need a 386 (or
3541better) processor, and to be running MS-DOS 3.0 or later. According to
3542@email{eliz@@gnu.org, Eli Zaretskii} and
3543@email{hankedr@@dms.auburn.edu, Darrel Hankerson}, you will need the
3544following:
3545
3546@table @emph
3547
3548@item Compiler
3549DJGPP version 1.12 maint 1 or later. Djgpp 2.0 or later is
3550recommended, since 1.x is very old an unmaintained. Djgpp 2 supports
3551long file names on Windows 9X/ME/2K.
3552
3553You can get the latest release of DJGPP by retrieving all of
3554the files in
3555 3330
3556@uref{ftp://ftp.delorie.com/pub/djgpp/current/v2*} 3331To build Emacs from source for MS-DOS, see the instructions in the file
3332@file{msdos/INSTALL} in the distribution. The DOS port builds and runs
3333on plain DOS, and also on all versions of MS-Windows from version 3.X
3334onwards, including Windows XP and Vista.
3557 3335
3558@item Unpacking program 3336The file @file{etc/PROBLEMS} contains some additional information
3559The easiest way is to use @code{djtar} which comes with DJGPP v2.x, 3337regarding Emacs under MS-DOS.
3560because it can open gzip'ed tarfiles (i.e., those ending with
3561@file{.tar.gz}) in one step. @code{Djtar} comes in
3562@file{djdev@var{nnn}.zip} archive (where @var{nnn} is the DJGPP version
3563number), from the URL mentioned above.
3564
3565@strong{Warning!} Do @strong{not} use the popular WinZip program to
3566unpack the Emacs distribution! WinZip is known to corrupt some of the
3567files by converting them to the DOS CR-LF format, it doesn't always
3568preserve the directory structure recorded in the compressed Emacs
3569archive, and commits other atrocities. Some of these problems could
3570actually prevent Emacs from building successfully!
3571
3572@item make, mv, sed, and rm
3573All of these utilities are available at
3574
3575@uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu}
3576
357716-bit utilities can be found in GNUish, at
3578
3579@uref{http://www.simtel.net/pub/gnuish/}
3580
3581@noindent
3582(@code{mv} and @code{rm} are in the Fileutils package, @code{sed} and
3583@code{make} are each one in a separate package named after them.)
3584 3338
3585@end table 3339A pre-built binary distribution of the old Emacs 20 is available, as
3340described at
3586 3341
3587The files @file{INSTALL} (near its end) and @file{etc/PROBLEMS} in the 3342@uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/emacs.README}
3588directory of the Emacs sources contains some additional information
3589regarding Emacs under MS-DOS.
3590 3343
3591For a list of other MS-DOS implementations of Emacs (and Emacs 3344For a list of other MS-DOS implementations of Emacs (and Emacs
3592look-alikes), consult the list of ``Emacs implementations and literature,'' 3345look-alikes), consult the list of ``Emacs implementations and literature,''
3593available at 3346available at
3594 3347
3595@uref{ftp://rtfm.mit.edu/pub/usenet/comp.emacs/} 3348@uref{http://www.finseth.com/emacs.html}
3596 3349
3597Note that while many of these programs look similar to Emacs, they often 3350Note that while many of these programs look similar to Emacs, they often
3598lack certain features, such as the Emacs Lisp extension language. 3351lack certain features, such as the Emacs Lisp extension language.
3599 3352
3600@node Emacs for Windows 3353@node Emacs for MS-Windows
3601@section Where can I get Emacs for Microsoft Windows? 3354@section Where can I get Emacs for Microsoft Windows?
3602@cindex FAQ for NT Emacs 3355@cindex FAQ for Emacs on MS-Windows
3603@cindex Emacs for MS-Windows 3356@cindex Emacs for MS-Windows
3604@cindex Microsoft Windows, Emacs for 3357@cindex Microsoft Windows, Emacs for
3605@cindex Windows 9X, ME, NT, 2K, and CE, Emacs for
3606 3358
3607For information on Emacs for Windows 95 and NT, read the FAQ produced by 3359There is a @uref{http://www.gnu.org/software/emacs/windows/ntemacs.html,
3608@email{voelker@@cs.washington.edu, Geoff Voelker} and currently maintained 3360separate FAQ} for Emacs on MS-Windows. For MS-DOS, @pxref{Emacs for MS-DOS}.
3609by @email{ramprasad@@gnu.org, Ramprasad B}, available at
3610
3611@uref{http://www.gnu.org/software/emacs/windows/ntemacs.html}
3612
3613@xref{Emacs for MS-DOS}, for Windows 3.1.
3614 3361
3615 3362
3616@node Emacs for GNUstep 3363@node Emacs for GNUstep
3617@section Where can I get Emacs for GNUstep? 3364@section Where can I get Emacs for GNUstep?
3618@cindex GNUSTEP, Emacs for 3365@cindex GNUstep, Emacs for
3619 3366
3620Beginning with version 23.1, Emacs supports GNUstep natively. 3367Beginning with version 23.1, Emacs supports GNUstep natively.
3368See the file @file{nextstep/INSTALL} in the distribution.
3621 3369
3622@node Emacs for Apple computers 3370@node Emacs for Mac OS X
3623@section Where can I get Emacs for my Apple computer? 3371@section Where can I get Emacs for Mac OS X?
3624@cindex Apple computers, Emacs for 3372@cindex Apple computers, Emacs for
3625@cindex Macintosh, Emacs for 3373@cindex Macintosh, Emacs for
3374@cindex Mac OS X, Emacs for
3626 3375
3627Beginning with version 22.1, Emacs supports Mac OS X natively. 3376Beginning with version 22.1, Emacs supports Mac OS X natively.
3628 3377See the file @file{nextstep/INSTALL} in the distribution.
3629 3378
3630@c ------------------------------------------------------------ 3379@c ------------------------------------------------------------
3631@node Major packages and programs 3380@node Major packages and programs
@@ -3639,7 +3388,7 @@ Beginning with version 22.1, Emacs supports Mac OS X natively.
3639* Spell-checkers:: 3388* Spell-checkers::
3640* Emacs/W3:: 3389* Emacs/W3::
3641* EDB:: 3390* EDB::
3642* JDE:: 3391* JDEE::
3643@end menu 3392@end menu
3644 3393
3645@node VM 3394@node VM
@@ -3736,11 +3485,11 @@ Various spell-checkers are compatible with Emacs, including:
3736 3485
3737@uref{http://gnuvola.org/software/edb/, The Emacs Database} 3486@uref{http://gnuvola.org/software/edb/, The Emacs Database}
3738 3487
3739@node JDE 3488@node JDEE
3740@section JDE --- Integrated development environment for Java 3489@section JDEE --- Integrated development environment for Java
3741@cindex Java development environment 3490@cindex Java development environment
3742@cindex Integrated Java development environment 3491@cindex Integrated Java development environment
3743@cindex JDE 3492@cindex JDEE
3744 3493
3745@uref{http://jdee.sourceforge.net/, A Java Development Environment for Emacs} 3494@uref{http://jdee.sourceforge.net/, A Java Development Environment for Emacs}
3746 3495
@@ -3755,10 +3504,7 @@ Various spell-checkers are compatible with Emacs, including:
3755* Terminal setup code works after Emacs has begun:: 3504* Terminal setup code works after Emacs has begun::
3756* Working with function and arrow keys:: 3505* Working with function and arrow keys::
3757* X key translations for Emacs:: 3506* X key translations for Emacs::
3758* Handling C-s and C-q with flow control::
3759* Binding C-s and C-q::
3760* Backspace invokes help:: 3507* Backspace invokes help::
3761* stty and Backspace key::
3762* Swapping keys:: 3508* Swapping keys::
3763* Producing C-XXX with the keyboard:: 3509* Producing C-XXX with the keyboard::
3764* No Meta key:: 3510* No Meta key::
@@ -3917,158 +3663,6 @@ The only way to affect the behavior of keys within Emacs is through
3917@noindent 3663@noindent
3918defines the @kbd{M-@key{TAB}} key sequence. 3664defines the @kbd{M-@key{TAB}} key sequence.
3919 3665
3920@node Handling C-s and C-q with flow control
3921@section How do I handle @kbd{C-s} and @kbd{C-q} being used for flow control?
3922@cindex Flow control, @kbd{C-s} and @kbd{C-q} with
3923@cindex @kbd{C-s} and @kbd{C-q} with flow control
3924
3925@kbd{C-s} and @kbd{C-q} are used in the XON/XOFF flow control protocol.
3926This messes things up when you're using Emacs over a serial line,
3927because Emacs binds these keys to commands by default. Because Emacs
3928won't honor them as flow control characters, too many of these
3929characters are not passed on and overwhelm output buffers. Sometimes,
3930intermediate software using XON/XOFF flow control will prevent Emacs
3931from ever seeing @kbd{C-s} and @kbd{C-q}.
3932
3933Possible solutions:
3934
3935@itemize @bullet
3936
3937@item
3938Disable the use of @kbd{C-s} and @kbd{C-q} for flow control.
3939
3940You need to determine the cause of the flow control.
3941
3942@itemize @minus
3943
3944@item
3945your terminal
3946
3947Your terminal may use XON/XOFF flow control to have time to display
3948all the characters it receives. For example, VT series terminals do
3949this. It may be possible to turn this off from a setup menu. For
3950example, on a VT220 you may select ``No XOFF'' in the setup menu. This
3951is also true for some terminal emulation programs on PCs.
3952
3953When you turn off flow control at the terminal, you will also need to
3954turn it off at the other end, which might be at the computer you are
3955logged in to or at some terminal server in between.
3956
3957If you turn off flow control, characters may be lost; using a printer
3958connected to the terminal may fail. You may be able to get around
3959this problem by modifying the @samp{termcap} entry for your terminal to
3960include extra NUL padding characters.
3961
3962@item
3963a modem
3964
3965If you are using a dialup connection, the modems may be using
3966XON/XOFF flow control. It's not clear how to get around this.
3967
3968@item
3969a router or terminal server
3970
3971Some network box between the terminal and your computer may be using
3972XON/XOFF flow control. It may be possible to make it use some other
3973kind of flow control. You will probably have to ask your local
3974network experts for help with this.
3975
3976@item
3977@code{tty} and/or @code{pty} devices
3978
3979If your connection to Emacs goes through multiple @code{tty} and/or
3980@code{pty} devices, they may be using XON/XOFF flow control even when it
3981is not necessary.
3982
3983@email{eirik@@theory.tn.cornell.edu, Eirik Fuller} writes:
3984
3985@quotation
3986Some versions of @code{rlogin} (and possibly @code{telnet}) do not pass
3987flow control characters to the remote system to which they connect. On
3988such systems, Emacs on the remote system cannot disable flow control on
3989the local system. Sometimes @samp{rlogin -8} will avoid this problem.
3990
3991One way to cure this is to disable flow control on the local host (the
3992one running @code{rlogin}, not the one running @code{rlogind}) using the
3993@code{stty} command, before starting the @code{rlogin} process. On many
3994systems, @samp{stty start u stop u} will do this.
3995
3996Some versions of @samp{tcsh} will prevent even this from working. One
3997way around this is to start another shell before starting rlogin,
3998and issue the @samp{stty} command to disable flow control from that shell.
3999@end quotation
4000
4001Use @samp{stty -ixon} instead of @samp{stty start u stop u} on some systems.
4002
4003@end itemize
4004
4005@item
4006Make Emacs speak the XON/XOFF flow control protocol.
4007
4008You can make Emacs treat @kbd{C-s} and @kbd{C-q} as flow control characters by
4009evaluating the form
4010
4011@lisp
4012(enable-flow-control)
4013@end lisp
4014
4015@noindent
4016to unconditionally enable flow control or
4017
4018@lisp
4019(enable-flow-control-on "vt100" "h19")
4020@end lisp
4021
4022@noindent
4023(using your terminal names instead of @samp{vt100} or @samp{h19}) to
4024enable selectively. These commands will automatically swap @kbd{C-s}
4025and @kbd{C-q} to @kbd{C-\} and @kbd{C-^}. Variables can be used to
4026change the default swap keys (@code{flow-control-c-s-replacement} and
4027@code{flow-control-c-q-replacement}).
4028
4029If you are fixing this for yourself, simply put the form in your
4030@file{.emacs} file. If you are fixing this for your entire site, the
4031best place to put it is in the @file{site-lisp/site-start.el} file.
4032(Here @file{site-lisp} is actually a subdirectory of your Emacs
4033installation directory, typically @file{/usr/local/share/emacs}.)
4034Putting this form in @file{site-lisp/default.el} has the problem that
4035if the user's @file{.emacs} file has an error, this will prevent
4036@file{default.el} from being loaded and Emacs may be unusable for the
4037user, even for correcting their @file{.emacs} file (unless they're
4038smart enough to move it to another name).
4039
4040@code{enable-flow-control} can be invoked interactively as well:
4041@kbd{M-x enable-flow-control @key{RET}}.
4042
4043@end itemize
4044
4045For further discussion of this issue, read the file @file{etc/PROBLEMS}
4046(@pxref{File-name conventions}).
4047
4048@node Binding C-s and C-q
4049@section How do I bind @kbd{C-s} and @kbd{C-q} (or any key) if these keys are filtered out?
4050@cindex Binding @kbd{C-s} and @kbd{C-q}
4051@cindex @kbd{C-s} and @kbd{C-q}, binding
4052
4053To bind @kbd{C-s} and @kbd{C-q}, use either @code{enable-flow-control}
4054or @code{enable-flow-control-on}. @xref{Handling C-s and C-q with flow
4055control}, for usage and implementation details.
4056
4057To bind other keys, use @code{keyboard-translate}. @xref{Swapping
4058keys}, for usage details. To do this for an entire site, you should
4059swap the keys in @file{site-lisp/site-start.el}. @xref{Handling C-s
4060and C-q with flow control}, for an explanation of why
4061@file{site-lisp/default.el} should not be used.
4062
4063@itemize @bullet
4064
4065@item
4066If you do this for an entire site, the users will be confused by
4067the disparity between what the documentation says and how Emacs
4068actually behaves.
4069
4070@end itemize
4071
4072@node Backspace invokes help 3666@node Backspace invokes help
4073@section Why does the @key{Backspace} key invoke help? 3667@section Why does the @key{Backspace} key invoke help?
4074@cindex Backspace key invokes help 3668@cindex Backspace key invokes help
@@ -4178,17 +3772,6 @@ For more information about troubleshooting this problem, see @ref{DEL
4178Does Not Delete, , If @key{DEL} Fails to Delete, emacs, The GNU Emacs 3772Does Not Delete, , If @key{DEL} Fails to Delete, emacs, The GNU Emacs
4179Manual}. 3773Manual}.
4180 3774
4181@node stty and Backspace key
4182@section Why doesn't Emacs look at the @file{stty} settings for @key{Backspace} vs. @key{Delete}?
4183@cindex @file{stty} and Emacs
4184@cindex Backspace and @file{stty}
4185@cindex Delete and @file{stty}
4186
4187Good question!
4188
4189@c FIXME: RMS explained the reasons for this on emacs-hackers. It's
4190@c probably worth putting that explanation here.
4191
4192@node Swapping keys 3775@node Swapping keys
4193@section How do I swap two keys? 3776@section How do I swap two keys?
4194@cindex Swapping keys 3777@cindex Swapping keys
@@ -4455,7 +4038,6 @@ You can get the old behavior by binding @kbd{SPC} to
4455@menu 4038@menu
4456* Emacs does not display 8-bit characters:: 4039* Emacs does not display 8-bit characters::
4457* Inputting eight-bit characters:: 4040* Inputting eight-bit characters::
4458* Kanji and Chinese characters::
4459* Right-to-left alphabets:: 4041* Right-to-left alphabets::
4460* How to add fonts:: 4042* How to add fonts::
4461@end menu 4043@end menu
@@ -4486,40 +4068,19 @@ Various methods are available for input of eight-bit characters. See
4486Support, emacs}. For more sophisticated methods, @inforef{Input 4068Support, emacs}. For more sophisticated methods, @inforef{Input
4487Methods, Input Methods, emacs}. 4069Methods, Input Methods, emacs}.
4488 4070
4489@node Kanji and Chinese characters
4490@section Where can I get an Emacs that handles kanji, Chinese, or other Far-Eastern character sets?
4491@cindex Kanji, handling with Emacs
4492@cindex Chinese, handling with Emacs
4493@cindex Japanese, handling with Emacs
4494@cindex Korean, handling with Emacs
4495
4496Emacs 20 and later includes many of the features of MULE, the MULtilingual
4497Enhancement to Emacs. @xref{Installing Emacs}, for information on where
4498to find and download the latest version of Emacs.
4499
4500@node Right-to-left alphabets 4071@node Right-to-left alphabets
4501@section Where is an Emacs that can handle Semitic (right-to-left) alphabets? 4072@section Where is an Emacs that can handle Semitic (right-to-left) alphabets?
4502@cindex Right-to-left alphabets 4073@cindex Right-to-left alphabets
4503@cindex Hebrew, handling with Emacs 4074@cindex Hebrew, handling with Emacs
4504@cindex Semitic alphabets 4075@cindex Semitic alphabets
4505@cindex Arabic alphabets 4076@cindex Arabic alphabets
4077@cindex Bidirectional text
4506 4078
4507Emacs 20 and later supports Hebrew characters (ISO 8859-8), but does not 4079Emacs supports Hebrew characters (ISO 8859-8) since version 20, but does
4508yet support right-to-left character entry and display. 4080not yet support right-to-left character entry and display. The
4081@uref{http://lists.gnu.org/mailman/listinfo/emacs-bidi, emacs-bidi
4082mailing list} discusses development of support for this feature.
4509 4083
4510@email{joel@@exc.com, Joel M. Hoffman} has written a Lisp package called
4511@file{hebrew.el} that allows right-to-left editing of Hebrew. It
4512reportedly works out of the box with Emacs 19, but requires patches for
4513Emacs 18. Write to Joel if you want the patches or package.
4514
4515@c FIXME: Should we mention Ehud Karni's package?
4516
4517@file{hebrew.el} requires a Hebrew screen font, but no other hardware support.
4518Joel has a screen font for PCs running MS-DOS or GNU/Linux.
4519
4520You might also try querying @code{archie} for files named with
4521@file{hebrew}; several ftp sites in Israel may also have the necessary
4522files.
4523 4084
4524@node How to add fonts 4085@node How to add fonts
4525@section How do I add fonts for use with Emacs? 4086@section How do I add fonts for use with Emacs?
@@ -4650,20 +4211,13 @@ fontset, or you can select it by setting the default font in your
4650* Saving a copy of outgoing mail:: 4211* Saving a copy of outgoing mail::
4651* Expanding aliases when sending mail:: 4212* Expanding aliases when sending mail::
4652* Sorting the messages in an Rmail folder:: 4213* Sorting the messages in an Rmail folder::
4653* Rmail writes to /usr/spool/mail:: 4214* Rmail writes to /var/spool/mail::
4654* Replying to the sender of a message:: 4215* Replying to the sender of a message::
4655* MIME with Emacs mail packages::
4656* Automatically starting a mail or news reader:: 4216* Automatically starting a mail or news reader::
4657* Reading news with Emacs:: 4217* Reading news with Emacs::
4658* Gnus does not work with NNTP:: 4218* Gnus does not work with NNTP::
4659* Viewing articles with embedded underlining:: 4219* Making Gnus faster::
4660* Saving a multi-part Gnus posting::
4661* Starting Gnus faster::
4662* Catching up in all newsgroups:: 4220* Catching up in all newsgroups::
4663* Killing based on nonstandard headers::
4664* Catch-up is slow in Gnus::
4665* Gnus hangs for a long time::
4666* Learning more about Gnus::
4667@end menu 4221@end menu
4668 4222
4669@node Changing the included text prefix 4223@node Changing the included text prefix
@@ -4673,11 +4227,12 @@ fontset, or you can select it by setting the default font in your
4673@cindex Setting the included text character 4227@cindex Setting the included text character
4674@cindex Quoting in mail messages 4228@cindex Quoting in mail messages
4675 4229
4676If you read mail with Rmail or news with Gnus, set the variable 4230If you read mail with Rmail, set the variable @code{mail-yank-prefix}.
4677@code{mail-yank-prefix}. For VM, set @code{vm-included-text-prefix}. 4231For Gnus, set @code{message-yank-prefix}. For VM, set
4678For mh-e, set @code{mh-ins-buf-prefix}. 4232@code{vm-included-text-prefix}. For mh-e, set @code{mh-ins-buf-prefix}.
4679 4233
4680For fancier control of citations, use Supercite (part of Emacs). 4234For fancier control of citations, use Supercite (@pxref{Top,, the Supercite
4235Manual, sc, The Supercite Manual}).
4681 4236
4682To prevent Emacs from including various headers of the replied-to 4237To prevent Emacs from including various headers of the replied-to
4683message, set the value of @code{mail-yank-ignored-headers} to an 4238message, set the value of @code{mail-yank-ignored-headers} to an
@@ -4711,8 +4266,7 @@ file:
4711(setq mail-archive-file-name (expand-file-name "~/outgoing")) 4266(setq mail-archive-file-name (expand-file-name "~/outgoing"))
4712@end lisp 4267@end lisp
4713 4268
4714The output file will be in Unix mail format, which can be read directly 4269The output file will be in Unix mail format.
4715by VM or Rmail (since Emacs 23).
4716 4270
4717If you use @code{mh-e}, add an @samp{FCC} or @samp{BCC} field to your 4271If you use @code{mh-e}, add an @samp{FCC} or @samp{BCC} field to your
4718components file. 4272components file.
@@ -4726,26 +4280,19 @@ file.
4726@cindex Mail alias expansion 4280@cindex Mail alias expansion
4727@cindex Sending mail with aliases 4281@cindex Sending mail with aliases
4728 4282
4283@xref{Mail Aliases,, The Emacs Manual, emacs, The Emacs Manual}.
4284
4729@itemize @bullet 4285@itemize @bullet
4730 4286
4731@item 4287@item
4732You must separate multiple addresses in the headers of the mail buffer 4288Normally, Emacs expands aliases when you send the message.
4733with commas. This is because Emacs supports RFC822 standard addresses 4289To expand them before this, use @kbd{M-x expand-mail-aliases}.
4734like this one:
4735
4736@example
4737To: Willy Smith <wks@@xpnsv.lwyrs.com>
4738@end example
4739
4740However, you do not need to---and probably should not, unless your
4741system's version of @file{/usr/ucb/mail} (a.k.a.@: @code{mailx})
4742supports RFC822---separate addresses with commas in your
4743@file{~/.mailrc} file.
4744 4290
4291@c FIXME there should be an interactive rebuild command for this.
4745@item 4292@item
4746Emacs normally only reads the @file{.mailrc} file once per session, 4293Emacs normally only reads the @file{.mailrc} file once per session,
4747when you start to compose your first mail message. If you edit 4294when you start to compose your first mail message. If you edit
4748@file{.mailrc}, you can type @kbd{M-x rebuild-mail-abbrevs @key{RET}} to 4295@file{.mailrc}, you can type @kbd{M-: (build-mail-aliases) @key{RET}} to
4749make Emacs reread @file{~/.mailrc}. 4296make Emacs reread @file{~/.mailrc}.
4750 4297
4751@item 4298@item
@@ -4757,7 +4304,7 @@ type them in. To enable this feature, execute the following:
4757@end lisp 4304@end lisp
4758 4305
4759Note that the aliases are expanded automatically only after you type 4306Note that the aliases are expanded automatically only after you type
4760@key{RET} or a punctuation character (e.g. @kbd{,}). You can force their 4307a word-separator character (e.g. @key{RET} or @kbd{,}). You can force their
4761expansion by moving point to the end of the alias and typing @kbd{C-x a e} 4308expansion by moving point to the end of the alias and typing @kbd{C-x a e}
4762(@kbd{M-x expand-abbrev}). 4309(@kbd{M-x expand-abbrev}).
4763@end itemize 4310@end itemize
@@ -4771,10 +4318,10 @@ expansion by moving point to the end of the alias and typing @kbd{C-x a e}
4771In Rmail, type @kbd{C-c C-s C-h} to get a list of sorting functions 4318In Rmail, type @kbd{C-c C-s C-h} to get a list of sorting functions
4772and their key bindings. 4319and their key bindings.
4773 4320
4774@node Rmail writes to /usr/spool/mail 4321@node Rmail writes to /var/spool/mail
4775@section Why does Rmail need to write to @file{/usr/spool/mail}? 4322@section Why does Rmail need to write to @file{/var/spool/mail}?
4776@cindex Rmail and @file{/usr/spool/mail} 4323@cindex Rmail and @file{/var/spool/mail}
4777@cindex @file{/usr/spool/mail} and Rmail 4324@cindex @file{/var/spool/mail} and Rmail
4778 4325
4779This is the behavior of the @code{movemail} program which Rmail uses. 4326This is the behavior of the @code{movemail} program which Rmail uses.
4780This indicates that @code{movemail} is configured to use lock files. 4327This indicates that @code{movemail} is configured to use lock files.
@@ -4816,16 +4363,6 @@ best fix I've been able to come up with:
4816 (define-key rmail-mode-map "R" 'rmail-reply))) 4363 (define-key rmail-mode-map "R" 'rmail-reply)))
4817@end lisp 4364@end lisp
4818 4365
4819@node MIME with Emacs mail packages
4820@section How can I get my favorite Emacs mail package to support MIME?
4821@cindex MIME and Emacs mail packages
4822@cindex Mail packages and MIME
4823@cindex FAQ for MIME and Emacs
4824
4825Version 6.x of VM supports MIME. @xref{VM}. Gnus supports MIME in mail
4826and news messages as of version 5.8.1 (Pterodactyl). Rmail has limited
4827support for single-part MIME messages beginning with Emacs 20.3.
4828
4829@node Automatically starting a mail or news reader 4366@node Automatically starting a mail or news reader
4830@section How do I make Emacs automatically start my mail/news reader? 4367@section How do I make Emacs automatically start my mail/news reader?
4831@cindex Mail reader, starting automatically 4368@cindex Mail reader, starting automatically
@@ -4862,9 +4399,14 @@ you to start Emacs quickly when you needed to.
4862@cindex Reading news under Emacs 4399@cindex Reading news under Emacs
4863@cindex Usenet reader in Emacs 4400@cindex Usenet reader in Emacs
4864@cindex Gnus newsreader 4401@cindex Gnus newsreader
4402@cindex FAQ for Gnus
4403@cindex Gnus FAQ
4404@cindex Learning more about Gnus
4405
4406Use @kbd{M-x gnus}. For more information on Gnus, @pxref{Top,, the Gnus
4407Manual, gnus, The Gnus Manual}, which includes @ref{Frequently Asked
4408Questions,, the Gnus FAQ, gnus}.
4865 4409
4866Use @kbd{M-x gnus}. It is documented in Info (@pxref{Learning how to do
4867something}).
4868 4410
4869@node Gnus does not work with NNTP 4411@node Gnus does not work with NNTP
4870@section Why doesn't Gnus work via NNTP? 4412@section Why doesn't Gnus work via NNTP?
@@ -4887,91 +4429,27 @@ telnetting to the NNTP port (usually 119) on the news server machine
4887(i.e., @kbd{telnet server-machine 119}). The server should give its 4429(i.e., @kbd{telnet server-machine 119}). The server should give its
4888version number in the welcome message. Type @kbd{quit} to get out. 4430version number in the welcome message. Type @kbd{quit} to get out.
4889 4431
4890@xref{Spontaneous entry into isearch-mode}, for some additional ideas. 4432@node Making Gnus faster
4891 4433@section How do I make Gnus faster?
4892@node Viewing articles with embedded underlining
4893@section How do I view news articles with embedded underlining (e.g., ClariNews)?
4894@cindex Underlining, embedded in news articles
4895@cindex News articles with embedded underlining
4896@cindex Embedded underlining in news articles
4897
4898Underlining appears like this:
4899
4900@example
4901_^Hu_^Hn_^Hd_^He_^Hr_^Hl_^Hi_^Hn_^Hi_^Hn_^Hg
4902@end example
4903
4904@email{abraham@@dina.kvl.dk, Per Abrahamsen} suggests using the following
4905code, which uses the underline face to turn such text into true
4906underlining, inconjunction with Gnus:
4907
4908@lisp
4909(defun gnus-article-prepare-overstrike ()
4910 ;; Prepare article for overstrike commands.
4911 (save-excursion
4912 (set-buffer gnus-article-buffer)
4913 (let ((buffer-read-only nil))
4914 (goto-char (point-min))
4915 (while (search-forward "\b" nil t)
4916 (let ((next (following-char))
4917 (previous (char-after (- (point) 2))))
4918 (cond ((eq next previous)
4919 (delete-region (- (point) 2) (point))
4920 (put-text-property (point) (1+ (point))
4921 'face 'bold))
4922 ((eq next ?_)
4923 (delete-region (1- (point)) (1+ (point)))
4924 (put-text-property (1- (point)) (point)
4925 'face 'underline))
4926 ((eq previous ?_)
4927 (delete-region (- (point) 2) (point))
4928 (put-text-property (point) (1+ (point))
4929 'face 'underline))))))))
4930
4931(add-hook 'gnus-article-prepare-hook 'gnus-article-prepare-overstrike)
4932@end lisp
4933
4934Latest versions of Gnus do such a conversion automatically.
4935
4936If you prefer to do away with underlining altogether, you can
4937destructively remove it with @kbd{M-x ununderline-region}; do this
4938automatically via
4939
4940@lisp
4941(add-hook 'gnus-article-prepare-hook
4942 (lambda () (ununderline-region (point-min) (point-max))))
4943@end lisp
4944
4945@node Saving a multi-part Gnus posting
4946@section How do I save all the items of a multi-part posting in Gnus?
4947@cindex Multi-part postings in Gnus, saving
4948@cindex Saving multi-part postings in Gnus
4949@cindex Gnus, saving multi-part postings in
4950
4951Use @code{gnus-uu}. Type @kbd{C-c C-v C-h} in the Gnus summary buffer
4952to see a list of available commands.
4953
4954@node Starting Gnus faster
4955@section How do I make Gnus start up faster?
4956@cindex Faster, starting Gnus 4434@cindex Faster, starting Gnus
4957@cindex Starting Gnus faster 4435@cindex Starting Gnus faster
4958@cindex Gnus, starting faster 4436@cindex Gnus, starting faster
4437@cindex Slow catch up in Gnus
4438@cindex Gnus is slow when catching up
4439@cindex Crosspostings make Gnus catching up slow
4959 4440
4960From the Gnus FAQ (@pxref{Learning more about Gnus}): 4441From the Gnus FAQ (@pxref{Reading news with Emacs}):
4961 4442
4962@quotation 4443@quotation
4963@email{pktiwari@@eos.ncsu.edu, Pranav Kumar Tiwari} writes: I posted 4444If you have a slow machine, or are just really impatient, there are a
4964the same query recently and I got an answer to it. I am going to 4445few things you can do to make Gnus run faster.
4965repeat the answer. What you need is a newer version of gnus, version
49665.0.4+. I am using 5.0.12 and it works fine with me with the
4967following settings:
4968 4446
4969@lisp 4447Set @code{gnus-check-new-newsgroups} and
4970(setq gnus-check-new-newsgroups nil 4448@code{gnus-check-bogus-newsgroups} to @code{nil} to make startup faster.
4971 gnus-read-active-file 'some 4449
4972 gnus-nov-is-evil nil 4450Set @code{gnus-show-threads}, @code{gnus-use-cross-reference} and
4973 gnus-select-method '(nntp gnus-nntp-server)) 4451@code{gnus-nov-is-evil} to @code{nil} to make entering and exiting the
4974@end lisp 4452summary buffer faster.
4975@end quotation 4453@end quotation
4976 4454
4977@node Catching up in all newsgroups 4455@node Catching up in all newsgroups
@@ -4984,72 +4462,6 @@ In the @file{*Newsgroup*} buffer, type @kbd{M-< C-x ( c y C-x ) M-0 C-x e}
4984Leave off the initial @kbd{M-<} if you only want to catch up from point 4462Leave off the initial @kbd{M-<} if you only want to catch up from point
4985to the end of the @file{*Newsgroup*} buffer. 4463to the end of the @file{*Newsgroup*} buffer.
4986 4464
4987@node Killing based on nonstandard headers
4988@section Why can't I kill in Gnus based on the Newsgroups/Keywords/Control headers?
4989@cindex Killing articles based on nonstandard headers
4990@cindex Newsgroups header, killing articles based on
4991@cindex Keywords header, killing articles based on
4992@cindex Control header, killing articles based on
4993
4994Gnus will complain that the @samp{Newsgroups}, @samp{Keywords}, and
4995@samp{Control} headers are ``Unknown header'' fields.
4996
4997For the @samp{Newsgroups} header, there is an easy workaround: kill on the
4998@samp{Xref} header instead, which will be present on any cross-posted article
4999(as long as your site carries the cross-post group).
5000
5001If you really want to kill on one of these headers, you can do it like
5002this:
5003
5004@lisp
5005(gnus-kill nil "^Newsgroups: .*\\(bad\\.group\\|worse\\.group\\)")
5006@end lisp
5007
5008@node Catch-up is slow in Gnus
5009@section Why is catch up slow in Gnus?
5010@cindex Slow catch up in Gnus
5011@cindex Gnus is slow when catching up
5012@cindex Crosspostings make Gnus catching up slow
5013
5014Because Gnus is marking crosspostings read. You can control this with
5015the variable @code{gnus-use-cross-reference}.
5016
5017@node Gnus hangs for a long time
5018@section Why does Gnus hang for a long time when posting?
5019@cindex Hangs in Gnus
5020@cindex Gnus hangs while posting
5021@cindex Posting, Gnus hangs wile
5022
5023@email{tale@@uunet.uu.net, David Lawrence} explains:
5024
5025@quotation
5026The problem is almost always interaction between NNTP and C News. NNTP
5027POST asks C News's @code{inews} to not background itself but rather hang
5028around and give its exit status so it knows whether the post was successful.
5029(That wait will on some systems not return the exit status of the
5030waited for job is a different sort of problem.) It ends up taking a
5031long time because @code{inews} is calling @code{relaynews}, which often
5032waits for another @code{relaynews} to free the lock on the news system
5033so it can file the article.
5034
5035My preferred solution is to change @code{inews} to not call
5036@code{relaynews}, but rather use @code{newsspool}. This loses some
5037error-catching functionality, but is for the most part safe as
5038@code{inews} will detect a lot of the errors on its own. The C News
5039folks have sped up @code{inews}, too, so speed should look better to
5040most folks as that update propagates around.
5041@end quotation
5042
5043@node Learning more about Gnus
5044@section Where can I find out more about Gnus?
5045@cindex FAQ for Gnus
5046@cindex Gnus FAQ
5047@cindex Learning more about Gnus
5048
5049For more information on Gnus, @pxref{Top,, the Gnus Manual, gnus, The
5050Gnus Manual}, which includes @ref{Frequently Asked Questions,, the Gnus
5051FAQ, gnus}.
5052
5053@node Concept index 4465@node Concept index
5054@unnumbered Concept Index 4466@unnumbered Concept Index
5055@printindex cp 4467@printindex cp