diff options
| author | Glenn Morris | 2009-06-16 02:51:00 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-06-16 02:51:00 +0000 |
| commit | b59a8457e73346e43e91989870bc98e6a417b5c6 (patch) | |
| tree | fd58ad276231e65bec7b3c0096875ae1b27739f6 /doc | |
| parent | cc13543e84480b8361da607ba9b859c9bd2f42d5 (diff) | |
| download | emacs-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')
| -rw-r--r-- | doc/misc/ChangeLog | 102 | ||||
| -rw-r--r-- | doc/misc/faq.texi | 858 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-06-14 Glenn Morris <rgm@gnu.org> | 45 | 2009-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 | ||
| 189 | 2009-02-16 Karl Berry <karl@gnu.org> | 233 | 2009-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 | ||
| 240 | 2009-02-13 Teodor Zlatanov <tzz@lifelogs.com> | 248 | 2009-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, | |||
| 67 | or have any suggestions, please use @kbd{M-x report-emacs-bug} to report | 67 | or have any suggestions, please use @kbd{M-x report-emacs-bug} to report |
| 68 | them. | 68 | them. |
| 69 | 69 | ||
| 70 | This is the version of the FAQ distributed with Emacs @value{VER}, and | ||
| 71 | mainly describes that version. Although there is some information on | ||
| 72 | older versions, details about very old versions (now only of historical | ||
| 73 | interest) have been removed. If you are interested in this, consult | ||
| 74 | either the version of the FAQ distributed with older versions of Emacs, | ||
| 75 | or the history of this document in the Emacs source repository. | ||
| 76 | |||
| 77 | Since Emacs releases are very stable, we recommend always running the | ||
| 78 | latest release. | ||
| 79 | |||
| 80 | This FAQ is not updated very frequently. When you have a question about | ||
| 81 | Emacs, 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 | ||
| 389 | The newsgroup @uref{news:comp.emacs} is for discussion of Emacs programs | 402 | The newsgroup @uref{news:comp.emacs} is for discussion of Emacs programs |
| 390 | in general. The newsgroup @uref{news:gnu.emacs.help} is specifically | 403 | in general. The newsgroup @uref{news:gnu.emacs.help} is specifically |
| 391 | for GNU Emacs. | 404 | for GNU Emacs. It therefore makes no sense to cross-post to both |
| 405 | groups, since only one can be appropriate to any question. | ||
| 392 | 406 | ||
| 393 | Messages advocating ``non-free'' software are considered unacceptable on | 407 | Messages advocating ``non-free'' software are considered unacceptable on |
| 394 | any of the @code{gnu.*} newsgroups except for @uref{news:gnu.misc.discuss}, | 408 | any 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-;} | |||
| 2158 | runs the function @code{comment-region}, it is a general-purpose | 2171 | runs the function @code{comment-region}, it is a general-purpose |
| 2159 | mechanism to comment regions) (@pxref{Changing the included text prefix}). | 2172 | mechanism 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 | |||
| 2166 | Mark 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; | |||
| 2574 | on DOS and Windows, where the DOS end-of-line (EOL) format is the | 2580 | on DOS and Windows, where the DOS end-of-line (EOL) format is the |
| 2575 | default, a backslash (@samp{\}) will appear in the mode line. | 2581 | default, a backslash (@samp{\}) will appear in the mode line. |
| 2576 | 2582 | ||
| 2577 | If 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 | ||
| 2580 | and saved, allowing you to ignore the different conventions that Unix | ||
| 2581 | and 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 | ||
| 2651 | The file @file{etc/PROBLEMS} in the Emacs distribution lists various | 2651 | The file @file{etc/PROBLEMS} in the Emacs distribution lists various |
| 2652 | known problems with building and using Emacs on specific platforms; | 2652 | known problems with building and using Emacs on specific platforms; |
| 2653 | type @kbd{C-h C-e} to read it. | 2653 | type @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. | |||
| 2684 | And in Emacs 22, the maximum buffer size has been increased to | 2680 | And in Emacs 22, the maximum buffer size has been increased to |
| 2685 | 268,435,455 bytes (or 256 MBytes) on 32-bit machines. | 2681 | 268,435,455 bytes (or 256 MBytes) on 32-bit machines. |
| 2686 | 2682 | ||
| 2683 | Emacs 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: | |||
| 2756 | stty -icrnl -onlcr -echo susp ^Z | 2754 | stty -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 | |||
| 2765 | The most likely reason for this message is that the @samp{env} program | ||
| 2766 | is not properly installed. Compile this program for your architecture, | ||
| 2767 | and install it with @samp{a+x} permission in the architecture-dependent | ||
| 2768 | Emacs program directory. (You can find what this directory is at your | ||
| 2769 | site by inspecting the value of the variable @code{exec-directory} by | ||
| 2770 | typing @kbd{C-h v exec-directory @key{RET}}.) | ||
| 2771 | |||
| 2772 | You 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 | ||
| 2774 | understand why this can cause a failure and don't know a general | ||
| 2775 | solution for working around the problem in this case. | ||
| 2776 | |||
| 2777 | The @samp{make clean} command will remove @samp{env} and other vital | ||
| 2778 | programs, so be careful when using it. | ||
| 2779 | |||
| 2780 | It has been reported that this sometimes happened when Emacs was started | ||
| 2781 | as an X client from an xterm window (i.e., had a controlling tty) but the | ||
| 2782 | xterm was later terminated. | ||
| 2783 | |||
| 2784 | See also @samp{PROBLEMS} (in the @file{etc} subdirectory of the | ||
| 2785 | top-level directory when you unpack the Emacs source) for other | ||
| 2786 | possible 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} |
| 2793 | On MS-Windows, this might happen because Emacs tries to look for the | 2762 | This might happen because Emacs tries to look for the shell in a wrong |
| 2794 | shell in a wrong place. The default file name @file{/bin/sh} is | 2763 | place. If you know where your shell executable is, set the variable |
| 2795 | usually 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 |
| 2796 | executable is, set the variable @code{explicit-shell-file-name} in | 2765 | its full file name. |
| 2797 | your @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 | |||
| 2803 | If you don't know what shell does Emacs use, try the @kbd{M-!} | ||
| 2804 | command; 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 |
| 2812 | Some people have trouble with Shell Mode because of intrusive | 2768 | Some people have trouble with Shell Mode on MS-Windows because of |
| 2813 | antivirus software; disabling the resident antivirus program solves | 2769 | intrusive antivirus software; disabling the resident antivirus program |
| 2814 | the problems in those cases. | 2770 | solves 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 | |||
| 2847 | if ("$term" == emacs) set term=dumb | 2803 | if ("$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 | |||
| 2856 | Your terminal (or something between your terminal and the computer) is | ||
| 2857 | sending @kbd{C-s} and @kbd{C-q} for flow control, and Emacs is receiving | ||
| 2858 | these characters and interpreting them as commands. (The @kbd{C-s} | ||
| 2859 | character normally invokes the @code{isearch-forward} command.) For | ||
| 2860 | possible 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 | |||
| 2867 | The 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 | ||
| 2869 | is often manifested as a message on startup of ``X server not responding. | ||
| 2870 | Check your @samp{DISPLAY} environment variable.'' or a message of | ||
| 2871 | ``Unknown host'' from @code{open-network-stream}. | ||
| 2872 | |||
| 2873 | On a Sun, this may be because Emacs had to be linked with the static C | ||
| 2874 | library. The version of @code{gethostbyname} in the static C library | ||
| 2875 | may only look in @file{/etc/hosts} and the NIS (YP) maps, while the | ||
| 2876 | version in the dynamic C library may be smart enough to check DNS in | ||
| 2877 | addition to or instead of NIS. On a Motorola Delta running System V | ||
| 2878 | R3.6, the version of @code{gethostbyname} in the standard library works, | ||
| 2879 | but the one that works with NIS doesn't (the one you get with -linet). | ||
| 2880 | Other operating systems have similar problems. | ||
| 2881 | |||
| 2882 | Try these options: | ||
| 2883 | |||
| 2884 | @itemize @bullet | ||
| 2885 | |||
| 2886 | @item | ||
| 2887 | Explicitly add the host you want to communicate with to @file{/etc/hosts}. | ||
| 2888 | |||
| 2889 | @item | ||
| 2890 | Relink Emacs with this line in @file{src/config.h}: | ||
| 2891 | |||
| 2892 | @example | ||
| 2893 | #define LIBS_SYSTEM -lresolv | ||
| 2894 | @end example | ||
| 2895 | |||
| 2896 | @item | ||
| 2897 | Replace @code{gethostbyname} and friends in @file{libc.a} with more | ||
| 2898 | useful versions such as the ones in @file{libresolv.a}. Then relink | ||
| 2899 | Emacs. | ||
| 2900 | |||
| 2901 | @item | ||
| 2902 | If you are actually running NIS, make sure that @code{ypbind} is | ||
| 2903 | properly 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 | |||
| 3020 | other frames by individually positioning each one of them. | 2919 | other 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 | |||
| 3029 | Old versions of Emacs (i.e., versions before Emacs 20.x) often | ||
| 3030 | encountered this when the master lock file, @file{!!!SuperLock!!!}, has | ||
| 3031 | been left in the lock directory somehow. Delete it. | ||
| 3032 | |||
| 3033 | @email{meuer@@geom.umn.edu, Mark Meuer} says that NeXT NFS has a bug | ||
| 3034 | where an exclusive create succeeds but returns an error status. This | ||
| 3035 | can cause the same problem. Since Emacs's file locking doesn't work | ||
| 3036 | over 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. | ||
| 3177 | Chances are you're using a localized version of Unix that doesn't use US | ||
| 3178 | date format in dired listings. You can check this by looking at dired | ||
| 3179 | listings or by typing @kbd{ls -l} to a shell and looking at the dates that | ||
| 3180 | come out. | ||
| 3181 | |||
| 3182 | Dired uses a regular expression to find the beginning of a file name. | 3058 | Dired uses a regular expression to find the beginning of a file name. |
| 3183 | In a long Unix-style directory listing (@samp{ls -l}), the file name | 3059 | In a long Unix-style directory listing (@samp{ls -l}), the file name |
| 3184 | starts after the date. The regexp has thus been written to look for the | 3060 | starts after the date. The regexp has thus been written to look for the |
| 3185 | date, the format of which can vary on non-US systems. | 3061 | date. By default, it should understand dates and times regardless of |
| 3062 | the language, but if your directory listing has an unusual format, Dired | ||
| 3063 | may get confused. | ||
| 3186 | 3064 | ||
| 3187 | There are two approaches to solving this. The first one involves | 3065 | There are two approaches to solving this. The first one involves |
| 3188 | setting things up so that @samp{ls -l} outputs US date format. This can | 3066 | setting things up so that @samp{ls -l} outputs a more standard format. |
| 3189 | be done by setting the locale. See your OS manual for more information. | 3067 | See your OS manual for more information. |
| 3190 | 3068 | ||
| 3191 | The second approach involves changing the regular expression used by | 3069 | The second approach involves changing the regular expression used by |
| 3192 | dired, @code{directory-listing-before-filename-regexp}. | 3070 | dired, @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 | ||
| 3215 | This answer is meant for users of Unix and Unix-like systems. Users of | 3090 | This answer is meant for users of Unix and Unix-like systems. Users of |
| 3216 | other operating systems should see the series of questions beginning | 3091 | other operating systems should see the series of questions beginning |
| 3217 | with @ref{Emacs for MS-DOS}, which describe where to get non-Unix source | 3092 | with @ref{Emacs for MS-DOS}, which describe where to get non-Unix source |
| 3218 | and binaries, and how to install Emacs on those systems. | 3093 | and binaries, and how to install Emacs on those systems. |
| 3219 | 3094 | ||
| 3220 | For Unix and Unix-like systems, the easiest way is often to compile it | 3095 | Most GNU/Linux distributions provide pre-built Emacs packages. |
| 3221 | from scratch. You will need: | 3096 | If Emacs is not installed already, you can install it by running (as |
| 3097 | root) a command such as @samp{yum install emacs} (Red Hat and | ||
| 3098 | derivatives) or @samp{apt-get install emacs} (Debian and derivatives). | ||
| 3099 | |||
| 3100 | If you want to compile Emacs yourself, read the file @file{INSTALL} in | ||
| 3101 | the source distribution. In brief: | ||
| 3222 | 3102 | ||
| 3223 | @itemize @bullet | 3103 | @itemize @bullet |
| 3224 | 3104 | ||
| 3225 | @item | 3105 | @item |
| 3226 | Emacs sources. @xref{Current GNU distributions}, for a list of ftp sites | 3106 | First download the Emacs sources. @xref{Current GNU distributions}, for |
| 3227 | that make them available. On @file{ftp.gnu.org}, the main GNU | 3107 | a list of ftp sites that make them available. On @file{ftp.gnu.org}, |
| 3228 | distribution site, sources are available as | 3108 | the 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 | ||
| 3232 | The 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. |
| 3233 | instance, when Emacs 24.3 is released, it will most probably be | 3111 | @uref{ftp://ftp.gnu.org/pub/gnu/emacs/emacs-VERSION.tar.gz} |
| 3234 | available 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 | ||
| 3238 | Again, you should use one of the GNU mirror sites (see @ref{Current GNU | 3115 | @item |
| 3239 | distributions}, and adjust the URL accordingly) so as to reduce load on | 3116 | Next uncompress and extract the source files. This requires |
| 3117 | the @code{gzip} and @code{tar} programs, which are standard utilities. | ||
| 3118 | If 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 | 3121 | GNU @code{tar} can uncompress and extract in a single-step: |
| 3243 | @code{gzip}, the GNU compression utility. You can get @code{gzip} via | ||
| 3244 | anonymous ftp at mirrors of @file{ftp.gnu.org} sites; it should compile | ||
| 3245 | and install without much trouble on most systems. Once you have | ||
| 3246 | retrieved the Emacs sources, you will probably be able to uncompress | ||
| 3247 | them with the command | ||
| 3248 | 3122 | ||
| 3249 | @example | 3123 | @example |
| 3250 | gunzip --verbose emacs-@value{VER}.tar.gz | 3124 | tar -zxvf emacs-VERSION.tar.gz |
| 3251 | @end example | 3125 | @end example |
| 3252 | 3126 | ||
| 3253 | @noindent | ||
| 3254 | changing 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 | 3128 | At this point, the Emacs sources should be sitting in a directory called |
| 3260 | into and out of archive files, or @dfn{tarfiles}. All of the files | 3129 | @file{emacs-VERSION}. On most common Unix and Unix-like systems, |
| 3261 | comprising the Emacs source come in a single tarfile, and must be | 3130 | you should be able to compile Emacs with the following commands: |
| 3262 | extracted using @code{tar} before you can build Emacs. Typically, the | ||
| 3263 | extraction command would look like | ||
| 3264 | 3131 | ||
| 3265 | @example | 3132 | @example |
| 3266 | tar -xvvf emacs-@value{VER}.tar | 3133 | cd emacs-VERSION |
| 3267 | @end example | ||
| 3268 | |||
| 3269 | @noindent | ||
| 3270 | The @samp{x} indicates that we want to extract files from this tarfile, | ||
| 3271 | the 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 | |||
| 3274 | If 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 | ||
| 3276 | using the command | ||
| 3277 | |||
| 3278 | @example | ||
| 3279 | tar -zxvvf emacs-@value{VER}.tar.gz | ||
| 3280 | @end example | ||
| 3281 | |||
| 3282 | @noindent | ||
| 3283 | The additional @samp{z} at the beginning of the options list tells GNU | ||
| 3284 | @code{tar} to uncompress the file with @code{gunzip} before extracting | ||
| 3285 | the tarfile's components. | ||
| 3286 | |||
| 3287 | @end itemize | ||
| 3288 | |||
| 3289 | At this point, the Emacs sources (all 70+ megabytes of them) should be | ||
| 3290 | sitting in a directory called @file{emacs-@value{VER}}. On most common | ||
| 3291 | Unix and Unix-like systems, you should be able to compile Emacs (with X | ||
| 3292 | Window system support) with the following commands: | ||
| 3293 | |||
| 3294 | @example | ||
| 3295 | cd 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 |
| 3297 | make # use Makefile to build components, then Emacs | 3135 | make # 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 | |||
| 3301 | the build has gone well. (@xref{Problems building Emacs}, if you weren't | 3139 | the build has gone well. (@xref{Problems building Emacs}, if you weren't |
| 3302 | successful.) | 3140 | successful.) |
| 3303 | 3141 | ||
| 3304 | By default, Emacs is installed in the following directories: | 3142 | @item |
| 3305 | 3143 | By default, Emacs is installed in @file{/usr/local}. To actually | |
| 3306 | @table @file | 3144 | install files, become the superuser and type |
| 3307 | @item /usr/local/bin | ||
| 3308 | binaries. | ||
| 3309 | |||
| 3310 | @item /usr/local/share/emacs/@value{VER} | ||
| 3311 | Lisp code and support files. | ||
| 3312 | |||
| 3313 | @item /usr/local/info | ||
| 3314 | Info documentation. | ||
| 3315 | @end table | ||
| 3316 | |||
| 3317 | To install files in those default directories, become the superuser and | ||
| 3318 | type | ||
| 3319 | 3145 | ||
| 3320 | @example | 3146 | @example |
| 3321 | make install | 3147 | make install |
| 3322 | @end example | 3148 | @end example |
| 3323 | 3149 | ||
| 3324 | Note that @samp{make install} will overwrite @file{/usr/local/bin/emacs} | 3150 | Note that @samp{make install} will overwrite @file{/usr/local/bin/emacs} |
| 3325 | and any Emacs Info files that might be in @file{/usr/local/info}. | 3151 | and any Emacs Info files that might be in @file{/usr/local/share/info/}. |
| 3326 | |||
| 3327 | Much more verbose instructions (with many more hints and suggestions) | ||
| 3328 | come 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 |
| 3335 | installation. | ||
| 3336 | |||
| 3337 | Most 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 | |||
| 3341 | Upgrading should overwrite only, @file{/usr/local/bin/emacs} (the Emacs | ||
| 3342 | binary) and documentation in @file{/usr/local/info}. Back up these | ||
| 3343 | files 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. | |||
| 3355 | If you'd like to have someone look at your problem and help solve it, | 3165 | If you'd like to have someone look at your problem and help solve it, |
| 3356 | see @ref{Help installing Emacs}. | 3166 | see @ref{Help installing Emacs}. |
| 3357 | 3167 | ||
| 3358 | If you cannot find a solution in the documentation, send a message to | 3168 | If you cannot find a solution in the documentation, please report the |
| 3359 | @email{bug-gnu-emacs@@gnu.org}. | 3169 | problem (@pxref{Reporting bugs}). |
| 3360 | |||
| 3361 | Please 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 | |||
| 3526 | A pre-built binary distribution of Emacs 20 is available from the | ||
| 3527 | SimTel.NET archives. This version apparently works under MS-DOS and | ||
| 3528 | Windows (3.X, 9X, ME, NT, and 2000) and supports long file names under | ||
| 3529 | Windows 9X, Windows ME, and Windows 2000. More information is available | ||
| 3530 | from | ||
| 3531 | |||
| 3532 | @uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/emacs.README} | ||
| 3533 | |||
| 3534 | The binary itself is available in the files @file{em*.zip} in the | ||
| 3535 | directory | ||
| 3536 | |||
| 3537 | @uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/} | ||
| 3538 | |||
| 3539 | If you prefer to compile Emacs for yourself, you can do so with the | ||
| 3540 | current distribution directly. You will need a 386 (or | ||
| 3541 | better) 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 | ||
| 3544 | following: | ||
| 3545 | |||
| 3546 | @table @emph | ||
| 3547 | |||
| 3548 | @item Compiler | ||
| 3549 | DJGPP version 1.12 maint 1 or later. Djgpp 2.0 or later is | ||
| 3550 | recommended, since 1.x is very old an unmaintained. Djgpp 2 supports | ||
| 3551 | long file names on Windows 9X/ME/2K. | ||
| 3552 | |||
| 3553 | You can get the latest release of DJGPP by retrieving all of | ||
| 3554 | the files in | ||
| 3555 | 3330 | ||
| 3556 | @uref{ftp://ftp.delorie.com/pub/djgpp/current/v2*} | 3331 | To 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 | ||
| 3333 | on plain DOS, and also on all versions of MS-Windows from version 3.X | ||
| 3334 | onwards, including Windows XP and Vista. | ||
| 3557 | 3335 | ||
| 3558 | @item Unpacking program | 3336 | The file @file{etc/PROBLEMS} contains some additional information |
| 3559 | The easiest way is to use @code{djtar} which comes with DJGPP v2.x, | 3337 | regarding Emacs under MS-DOS. |
| 3560 | because 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 | ||
| 3563 | number), from the URL mentioned above. | ||
| 3564 | |||
| 3565 | @strong{Warning!} Do @strong{not} use the popular WinZip program to | ||
| 3566 | unpack the Emacs distribution! WinZip is known to corrupt some of the | ||
| 3567 | files by converting them to the DOS CR-LF format, it doesn't always | ||
| 3568 | preserve the directory structure recorded in the compressed Emacs | ||
| 3569 | archive, and commits other atrocities. Some of these problems could | ||
| 3570 | actually prevent Emacs from building successfully! | ||
| 3571 | |||
| 3572 | @item make, mv, sed, and rm | ||
| 3573 | All of these utilities are available at | ||
| 3574 | |||
| 3575 | @uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu} | ||
| 3576 | |||
| 3577 | 16-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 | 3339 | A pre-built binary distribution of the old Emacs 20 is available, as |
| 3340 | described at | ||
| 3586 | 3341 | ||
| 3587 | The files @file{INSTALL} (near its end) and @file{etc/PROBLEMS} in the | 3342 | @uref{ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/emacs.README} |
| 3588 | directory of the Emacs sources contains some additional information | ||
| 3589 | regarding Emacs under MS-DOS. | ||
| 3590 | 3343 | ||
| 3591 | For a list of other MS-DOS implementations of Emacs (and Emacs | 3344 | For a list of other MS-DOS implementations of Emacs (and Emacs |
| 3592 | look-alikes), consult the list of ``Emacs implementations and literature,'' | 3345 | look-alikes), consult the list of ``Emacs implementations and literature,'' |
| 3593 | available at | 3346 | available at |
| 3594 | 3347 | ||
| 3595 | @uref{ftp://rtfm.mit.edu/pub/usenet/comp.emacs/} | 3348 | @uref{http://www.finseth.com/emacs.html} |
| 3596 | 3349 | ||
| 3597 | Note that while many of these programs look similar to Emacs, they often | 3350 | Note that while many of these programs look similar to Emacs, they often |
| 3598 | lack certain features, such as the Emacs Lisp extension language. | 3351 | lack 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 | ||
| 3607 | For information on Emacs for Windows 95 and NT, read the FAQ produced by | 3359 | There is a @uref{http://www.gnu.org/software/emacs/windows/ntemacs.html, |
| 3608 | @email{voelker@@cs.washington.edu, Geoff Voelker} and currently maintained | 3360 | separate FAQ} for Emacs on MS-Windows. For MS-DOS, @pxref{Emacs for MS-DOS}. |
| 3609 | by @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 | ||
| 3620 | Beginning with version 23.1, Emacs supports GNUstep natively. | 3367 | Beginning with version 23.1, Emacs supports GNUstep natively. |
| 3368 | See 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 | ||
| 3627 | Beginning with version 22.1, Emacs supports Mac OS X natively. | 3376 | Beginning with version 22.1, Emacs supports Mac OS X natively. |
| 3628 | 3377 | See 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 |
| 3918 | defines the @kbd{M-@key{TAB}} key sequence. | 3664 | defines 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. | ||
| 3926 | This messes things up when you're using Emacs over a serial line, | ||
| 3927 | because Emacs binds these keys to commands by default. Because Emacs | ||
| 3928 | won't honor them as flow control characters, too many of these | ||
| 3929 | characters are not passed on and overwhelm output buffers. Sometimes, | ||
| 3930 | intermediate software using XON/XOFF flow control will prevent Emacs | ||
| 3931 | from ever seeing @kbd{C-s} and @kbd{C-q}. | ||
| 3932 | |||
| 3933 | Possible solutions: | ||
| 3934 | |||
| 3935 | @itemize @bullet | ||
| 3936 | |||
| 3937 | @item | ||
| 3938 | Disable the use of @kbd{C-s} and @kbd{C-q} for flow control. | ||
| 3939 | |||
| 3940 | You need to determine the cause of the flow control. | ||
| 3941 | |||
| 3942 | @itemize @minus | ||
| 3943 | |||
| 3944 | @item | ||
| 3945 | your terminal | ||
| 3946 | |||
| 3947 | Your terminal may use XON/XOFF flow control to have time to display | ||
| 3948 | all the characters it receives. For example, VT series terminals do | ||
| 3949 | this. It may be possible to turn this off from a setup menu. For | ||
| 3950 | example, on a VT220 you may select ``No XOFF'' in the setup menu. This | ||
| 3951 | is also true for some terminal emulation programs on PCs. | ||
| 3952 | |||
| 3953 | When you turn off flow control at the terminal, you will also need to | ||
| 3954 | turn it off at the other end, which might be at the computer you are | ||
| 3955 | logged in to or at some terminal server in between. | ||
| 3956 | |||
| 3957 | If you turn off flow control, characters may be lost; using a printer | ||
| 3958 | connected to the terminal may fail. You may be able to get around | ||
| 3959 | this problem by modifying the @samp{termcap} entry for your terminal to | ||
| 3960 | include extra NUL padding characters. | ||
| 3961 | |||
| 3962 | @item | ||
| 3963 | a modem | ||
| 3964 | |||
| 3965 | If you are using a dialup connection, the modems may be using | ||
| 3966 | XON/XOFF flow control. It's not clear how to get around this. | ||
| 3967 | |||
| 3968 | @item | ||
| 3969 | a router or terminal server | ||
| 3970 | |||
| 3971 | Some network box between the terminal and your computer may be using | ||
| 3972 | XON/XOFF flow control. It may be possible to make it use some other | ||
| 3973 | kind of flow control. You will probably have to ask your local | ||
| 3974 | network experts for help with this. | ||
| 3975 | |||
| 3976 | @item | ||
| 3977 | @code{tty} and/or @code{pty} devices | ||
| 3978 | |||
| 3979 | If 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 | ||
| 3981 | is not necessary. | ||
| 3982 | |||
| 3983 | @email{eirik@@theory.tn.cornell.edu, Eirik Fuller} writes: | ||
| 3984 | |||
| 3985 | @quotation | ||
| 3986 | Some versions of @code{rlogin} (and possibly @code{telnet}) do not pass | ||
| 3987 | flow control characters to the remote system to which they connect. On | ||
| 3988 | such systems, Emacs on the remote system cannot disable flow control on | ||
| 3989 | the local system. Sometimes @samp{rlogin -8} will avoid this problem. | ||
| 3990 | |||
| 3991 | One way to cure this is to disable flow control on the local host (the | ||
| 3992 | one running @code{rlogin}, not the one running @code{rlogind}) using the | ||
| 3993 | @code{stty} command, before starting the @code{rlogin} process. On many | ||
| 3994 | systems, @samp{stty start u stop u} will do this. | ||
| 3995 | |||
| 3996 | Some versions of @samp{tcsh} will prevent even this from working. One | ||
| 3997 | way around this is to start another shell before starting rlogin, | ||
| 3998 | and issue the @samp{stty} command to disable flow control from that shell. | ||
| 3999 | @end quotation | ||
| 4000 | |||
| 4001 | Use @samp{stty -ixon} instead of @samp{stty start u stop u} on some systems. | ||
| 4002 | |||
| 4003 | @end itemize | ||
| 4004 | |||
| 4005 | @item | ||
| 4006 | Make Emacs speak the XON/XOFF flow control protocol. | ||
| 4007 | |||
| 4008 | You can make Emacs treat @kbd{C-s} and @kbd{C-q} as flow control characters by | ||
| 4009 | evaluating the form | ||
| 4010 | |||
| 4011 | @lisp | ||
| 4012 | (enable-flow-control) | ||
| 4013 | @end lisp | ||
| 4014 | |||
| 4015 | @noindent | ||
| 4016 | to 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 | ||
| 4024 | enable selectively. These commands will automatically swap @kbd{C-s} | ||
| 4025 | and @kbd{C-q} to @kbd{C-\} and @kbd{C-^}. Variables can be used to | ||
| 4026 | change the default swap keys (@code{flow-control-c-s-replacement} and | ||
| 4027 | @code{flow-control-c-q-replacement}). | ||
| 4028 | |||
| 4029 | If 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 | ||
| 4031 | best 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 | ||
| 4033 | installation directory, typically @file{/usr/local/share/emacs}.) | ||
| 4034 | Putting this form in @file{site-lisp/default.el} has the problem that | ||
| 4035 | if 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 | ||
| 4037 | user, even for correcting their @file{.emacs} file (unless they're | ||
| 4038 | smart 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 | |||
| 4045 | For 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 | |||
| 4053 | To bind @kbd{C-s} and @kbd{C-q}, use either @code{enable-flow-control} | ||
| 4054 | or @code{enable-flow-control-on}. @xref{Handling C-s and C-q with flow | ||
| 4055 | control}, for usage and implementation details. | ||
| 4056 | |||
| 4057 | To bind other keys, use @code{keyboard-translate}. @xref{Swapping | ||
| 4058 | keys}, for usage details. To do this for an entire site, you should | ||
| 4059 | swap the keys in @file{site-lisp/site-start.el}. @xref{Handling C-s | ||
| 4060 | and 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 | ||
| 4066 | If you do this for an entire site, the users will be confused by | ||
| 4067 | the disparity between what the documentation says and how Emacs | ||
| 4068 | actually 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 | |||
| 4178 | Does Not Delete, , If @key{DEL} Fails to Delete, emacs, The GNU Emacs | 3772 | Does Not Delete, , If @key{DEL} Fails to Delete, emacs, The GNU Emacs |
| 4179 | Manual}. | 3773 | Manual}. |
| 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 | |||
| 4187 | Good 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 | |||
| 4486 | Support, emacs}. For more sophisticated methods, @inforef{Input | 4068 | Support, emacs}. For more sophisticated methods, @inforef{Input |
| 4487 | Methods, Input Methods, emacs}. | 4069 | Methods, 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 | |||
| 4496 | Emacs 20 and later includes many of the features of MULE, the MULtilingual | ||
| 4497 | Enhancement to Emacs. @xref{Installing Emacs}, for information on where | ||
| 4498 | to 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 | ||
| 4507 | Emacs 20 and later supports Hebrew characters (ISO 8859-8), but does not | 4079 | Emacs supports Hebrew characters (ISO 8859-8) since version 20, but does |
| 4508 | yet support right-to-left character entry and display. | 4080 | not yet support right-to-left character entry and display. The |
| 4081 | @uref{http://lists.gnu.org/mailman/listinfo/emacs-bidi, emacs-bidi | ||
| 4082 | mailing 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 | ||
| 4512 | reportedly works out of the box with Emacs 19, but requires patches for | ||
| 4513 | Emacs 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. | ||
| 4518 | Joel has a screen font for PCs running MS-DOS or GNU/Linux. | ||
| 4519 | |||
| 4520 | You might also try querying @code{archie} for files named with | ||
| 4521 | @file{hebrew}; several ftp sites in Israel may also have the necessary | ||
| 4522 | files. | ||
| 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 | ||
| 4676 | If you read mail with Rmail or news with Gnus, set the variable | 4230 | If 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}. | 4231 | For Gnus, set @code{message-yank-prefix}. For VM, set |
| 4678 | For 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 | ||
| 4680 | For fancier control of citations, use Supercite (part of Emacs). | 4234 | For fancier control of citations, use Supercite (@pxref{Top,, the Supercite |
| 4235 | Manual, sc, The Supercite Manual}). | ||
| 4681 | 4236 | ||
| 4682 | To prevent Emacs from including various headers of the replied-to | 4237 | To prevent Emacs from including various headers of the replied-to |
| 4683 | message, set the value of @code{mail-yank-ignored-headers} to an | 4238 | message, 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 | ||
| 4714 | The output file will be in Unix mail format, which can be read directly | 4269 | The output file will be in Unix mail format. |
| 4715 | by VM or Rmail (since Emacs 23). | ||
| 4716 | 4270 | ||
| 4717 | If you use @code{mh-e}, add an @samp{FCC} or @samp{BCC} field to your | 4271 | If you use @code{mh-e}, add an @samp{FCC} or @samp{BCC} field to your |
| 4718 | components file. | 4272 | components 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 |
| 4732 | You must separate multiple addresses in the headers of the mail buffer | 4288 | Normally, Emacs expands aliases when you send the message. |
| 4733 | with commas. This is because Emacs supports RFC822 standard addresses | 4289 | To expand them before this, use @kbd{M-x expand-mail-aliases}. |
| 4734 | like this one: | ||
| 4735 | |||
| 4736 | @example | ||
| 4737 | To: Willy Smith <wks@@xpnsv.lwyrs.com> | ||
| 4738 | @end example | ||
| 4739 | |||
| 4740 | However, you do not need to---and probably should not, unless your | ||
| 4741 | system's version of @file{/usr/ucb/mail} (a.k.a.@: @code{mailx}) | ||
| 4742 | supports 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 |
| 4746 | Emacs normally only reads the @file{.mailrc} file once per session, | 4293 | Emacs normally only reads the @file{.mailrc} file once per session, |
| 4747 | when you start to compose your first mail message. If you edit | 4294 | when 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 |
| 4749 | make Emacs reread @file{~/.mailrc}. | 4296 | make 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 | ||
| 4759 | Note that the aliases are expanded automatically only after you type | 4306 | Note that the aliases are expanded automatically only after you type |
| 4760 | @key{RET} or a punctuation character (e.g. @kbd{,}). You can force their | 4307 | a word-separator character (e.g. @key{RET} or @kbd{,}). You can force their |
| 4761 | expansion by moving point to the end of the alias and typing @kbd{C-x a e} | 4308 | expansion 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} | |||
| 4771 | In Rmail, type @kbd{C-c C-s C-h} to get a list of sorting functions | 4318 | In Rmail, type @kbd{C-c C-s C-h} to get a list of sorting functions |
| 4772 | and their key bindings. | 4319 | and 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 | ||
| 4779 | This is the behavior of the @code{movemail} program which Rmail uses. | 4326 | This is the behavior of the @code{movemail} program which Rmail uses. |
| 4780 | This indicates that @code{movemail} is configured to use lock files. | 4327 | This 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 | |||
| 4825 | Version 6.x of VM supports MIME. @xref{VM}. Gnus supports MIME in mail | ||
| 4826 | and news messages as of version 5.8.1 (Pterodactyl). Rmail has limited | ||
| 4827 | support 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 | |||
| 4406 | Use @kbd{M-x gnus}. For more information on Gnus, @pxref{Top,, the Gnus | ||
| 4407 | Manual, gnus, The Gnus Manual}, which includes @ref{Frequently Asked | ||
| 4408 | Questions,, the Gnus FAQ, gnus}. | ||
| 4865 | 4409 | ||
| 4866 | Use @kbd{M-x gnus}. It is documented in Info (@pxref{Learning how to do | ||
| 4867 | something}). | ||
| 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 |
| 4888 | version number in the welcome message. Type @kbd{quit} to get out. | 4430 | version 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 | |||
| 4898 | Underlining 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 | ||
| 4905 | code, which uses the underline face to turn such text into true | ||
| 4906 | underlining, 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 | |||
| 4934 | Latest versions of Gnus do such a conversion automatically. | ||
| 4935 | |||
| 4936 | If you prefer to do away with underlining altogether, you can | ||
| 4937 | destructively remove it with @kbd{M-x ununderline-region}; do this | ||
| 4938 | automatically 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 | |||
| 4951 | Use @code{gnus-uu}. Type @kbd{C-c C-v C-h} in the Gnus summary buffer | ||
| 4952 | to 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 | ||
| 4960 | From the Gnus FAQ (@pxref{Learning more about Gnus}): | 4441 | From 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 | 4444 | If you have a slow machine, or are just really impatient, there are a |
| 4964 | the same query recently and I got an answer to it. I am going to | 4445 | few things you can do to make Gnus run faster. |
| 4965 | repeat the answer. What you need is a newer version of gnus, version | ||
| 4966 | 5.0.4+. I am using 5.0.12 and it works fine with me with the | ||
| 4967 | following settings: | ||
| 4968 | 4446 | ||
| 4969 | @lisp | 4447 | Set @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 | 4450 | Set @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 | 4452 | summary 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} | |||
| 4984 | Leave off the initial @kbd{M-<} if you only want to catch up from point | 4462 | Leave off the initial @kbd{M-<} if you only want to catch up from point |
| 4985 | to the end of the @file{*Newsgroup*} buffer. | 4463 | to 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 | |||
| 4994 | Gnus will complain that the @samp{Newsgroups}, @samp{Keywords}, and | ||
| 4995 | @samp{Control} headers are ``Unknown header'' fields. | ||
| 4996 | |||
| 4997 | For 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 | |||
| 5001 | If you really want to kill on one of these headers, you can do it like | ||
| 5002 | this: | ||
| 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 | |||
| 5014 | Because Gnus is marking crosspostings read. You can control this with | ||
| 5015 | the 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 | ||
| 5026 | The problem is almost always interaction between NNTP and C News. NNTP | ||
| 5027 | POST asks C News's @code{inews} to not background itself but rather hang | ||
| 5028 | around 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 | ||
| 5030 | waited for job is a different sort of problem.) It ends up taking a | ||
| 5031 | long time because @code{inews} is calling @code{relaynews}, which often | ||
| 5032 | waits for another @code{relaynews} to free the lock on the news system | ||
| 5033 | so it can file the article. | ||
| 5034 | |||
| 5035 | My preferred solution is to change @code{inews} to not call | ||
| 5036 | @code{relaynews}, but rather use @code{newsspool}. This loses some | ||
| 5037 | error-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 | ||
| 5039 | folks have sped up @code{inews}, too, so speed should look better to | ||
| 5040 | most 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 | |||
| 5049 | For more information on Gnus, @pxref{Top,, the Gnus Manual, gnus, The | ||
| 5050 | Gnus Manual}, which includes @ref{Frequently Asked Questions,, the Gnus | ||
| 5051 | FAQ, gnus}. | ||
| 5052 | |||
| 5053 | @node Concept index | 4465 | @node Concept index |
| 5054 | @unnumbered Concept Index | 4466 | @unnumbered Concept Index |
| 5055 | @printindex cp | 4467 | @printindex cp |