annotate etc/FAQ @ 23910:2a947c3ed586

(mips-sgi-irix6.5): New target.
author Karl Heuer <kwzh@gnu.org>
date Wed, 16 Dec 1998 21:42:26 +0000
parents d36d3bab8291
children 633699bb2aae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1 GNU Emacs FAQ: Introduction
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3 This is the introduction to a list of frequently asked questions (FAQ)
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
4 about GNU Emacs 20 with answers. Some of the answers are not valid for GNU
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
5 Emacs 18 or 19.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
6
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
7 [This version has been somewhat edited from the last-posted version
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
8 (as of early December 1998) for inclusion in the Emacs distribution.]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
9
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
10 The FAQ is posted (in five parts) to reduce the noise level in the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
11 gnu.emacs.help newsgroup (which is also the help-gnu-emacs mailing list)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
12 which results from the repetition of frequently asked questions, wrong
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
13 answers to these questions, corrections to the wrong answers, corrections
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
14 to the corrections, debate, name calling, and generally unproductive use of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
15 the mailing list. Also, it serves as a repository of the canonical "best"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
16 answers to these questions. However, if you know a better answer or even a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
17 slight change that improves an answer, please tell us!
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
18
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
19 If you know the answer to a question in the FAQ list, please reply to the
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
20 question by e-mail instead of posting. Help reduce noise!
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
22 The FAQ is crossposted to comp.emacs because some sites do not receive the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
23 gnu.* newsgroups. The FAQ is also crossposted to news.answers.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
24
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
25 Full instructions for getting the latest FAQ are in question 22.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
26
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
27 A diff file between the last version of the FAQ and this one should have
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
28 been posted along with the FAQ. If you did not receive the diff file, you
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
29 can get it at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
30
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
31 ftp://the-tech.mit.edu/pub/GNU-Emacs/faq-diffs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
32
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
33 Please suggest new questions, answers, wording changes, and deletions by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
34 sending mail to emacs-faq@lerner.co.il. The most helpful form for
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
35 suggestions is a context diff (i.e., the output of `diff -c'). Include
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
36 "FAQ" in the subject of messages about the FAQ list.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
37
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
38 Please do not send questions to us just because you do not want to disturb
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
39 a lot of people and you think we would know the answer. We do not have
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
40 time to answer questions individually. :-(
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
41
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
42 --
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
43 Reuven M. Lerner <reuven@lerner.co.il> and the FAQ team (a full list is
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
44 at the bottom of the FAQ).
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
45
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
46 ----------------------------------------------------------------------
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
47
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
48 Notation Used in FAQ
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
49
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
50 1: What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
51 2: What does "M-x command" mean?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
52 3: How do I read topic XXX in the on-line manual?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
53 4: What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
54 5: What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
55
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
56 General Questions
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
57
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
58 6: What is the LPF?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
59 7: What is the real legal meaning of the GNU copyleft?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
60 8: What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
61 comp.emacs, etc.?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
62 9: Where can I get old postings to gnu.emacs.help and other GNU groups?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
63 10: Where should I report bugs and other problems with Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
64 11: How do I unsubscribe from this mailing list?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
65 12: What is the current address of the FSF?
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
66
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
67 On-line Help, Printed Manuals, Other Sources of Help
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
68
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
69 13: I'm just starting Emacs; how do I do basic editing?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
70 14: How do I find out how to do something in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
71 15: How do I get a printed copy of the Emacs manual?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
72 16: Where can I get documentation on Emacs Lisp?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
73 17: How do I install a piece of Texinfo documentation?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
74 18: How do I print a Texinfo file?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
75 19: Can I view Info files without using Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
76 20: What informational files are available for Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
77 21: Where can I get help in installing Emacs?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
78 22: Where can I get the latest version of this document (the FAQ list)?
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
79
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
80 Status of Emacs
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
81
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
82 23: Where does the name "Emacs" come from?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
83 24: What is the latest version of Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
84 25: What is different about Emacs 20?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
85
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
86 Common Things People Want To Do
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
87
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
88 26: How do I set up a .emacs file properly?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
89 27: How do I debug a .emacs file?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
90 28: How do I make Emacs display the current line (or column) number?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
91 29: How can I modify the titlebar to contain the current filename?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
92 30: How do I turn on abbrevs by default just in mode XXX?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
93 31: How do I turn on auto-fill mode by default?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
94 32: How do I make Emacs use a certain major mode for certain files?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
95 33: How do I search for, delete, or replace unprintable (8-bit or control)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
96 characters?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
97 34: How can I highlight a region of text in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
98 35: How do I control Emacs's case-sensitivity when searching/replacing?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
99 36: How do I make Emacs wrap words for me?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
100 37: Where can I get a better spelling checker for Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
101 38: How can I spell-check TeX or *roff documents?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
102 39: How do I change load-path?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
103 40: How do I use an already running Emacs from another window?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
104 41: How do I make Emacs recognize my compiler's funny error messages?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
105 42: How do I indent switch statements like this?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
106 43: How can I make Emacs automatically scroll horizontally?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
107 44: How do I make Emacs "typeover" or "overwrite" instead of inserting?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
108 45: How do I stop Emacs from beeping on a terminal?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
109 46: How do I turn down the bell volume in Emacs running under X Windows?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
110 47: How do I tell Emacs to automatically indent a new line to the
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
111 indentation of the previous line?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
112 48: How do I show which parenthesis matches the one I'm looking at?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
113 49: In C mode, can I show just the lines that will be left after #ifdef
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
114 commands are handled by the compiler?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
115 50: Is there an equivalent to the `.' (dot) command of vi?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
116 51: What are the valid X resource settings (i.e., stuff in .Xdefaults)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
117 52: How do I execute ("evaluate") a piece of Emacs Lisp code?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
118 53: How do I change Emacs's idea of the tab character's length?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
119 54: How do I insert `>' at the beginning of every line?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
120 55: How do I insert "_^H" before each character in a region to get an
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
121 underlined paragraph?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
122 56: How do I repeat a command as many times as possible?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
123 57: How do I make Emacs behave like this: when I go up or down, the cursor
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
124 should stay in the same column even if the line is too short?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
125 58: How do I tell Emacs to iconify itself?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
126 59: How do I use regexps (regular expressions) in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
127 60: How do I perform a replace operation across more than one file?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
128 61: Where is the documentation for "etags"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
129 62: How do I disable backup files?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
130 63: How do I disable auto-save-mode?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
131 64: How can I create or modify new pull-down menu options?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
132 65: How do I delete menus and menu options?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
133 66: How do I turn on syntax highlighting?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
134 67: How can I force Emacs to scroll only one line when I move past the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
135 bottom of the screen?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
136 68: How can I replace highlighted text with what I type?
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
137 69: How can I edit MS-DOS-style text files using Emacs?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
138 70: How can I tell Emacs to fill paragraphs with a single space after
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
139 each period?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
140
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
141 Bugs/Problems
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
142
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
143 71: Does Emacs have problems with files larger than 8 megabytes?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
144 72: How do I get rid of ^M or echoed commands in my shell buffer?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
145 73: Why do I get "Process shell exited abnormally with code 1"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
146 74: Where is the termcap/terminfo entry for terminal type "emacs"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
147 75: Why does Emacs spontaneously start displaying "I-search:" and beeping?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
148 76: Why can't Emacs talk to certain hosts (or certain hostnames)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
149 77: Why does Emacs say "Error in init file"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
150 78: Why does Emacs ignore my X resources (my .Xdefaults file)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
151 79: Why does Emacs take 20 seconds to visit a file?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
152 80: How do I edit a file with a `$' in its name?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
153 81: Why does shell mode lose track of the shell's current directory?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
154 82: Are there any security risks in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
155 83: Dired says, "no file on this line" when I try to do something.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
156
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
157 Difficulties Building/Installing/Porting Emacs
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
158
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
159 84: How do I install Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
160 85: How do I update Emacs to the latest version?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
161 86: What should I do if I have trouble building Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
162 87: Why does linking Emacs with -lX11 fail?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
163
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
164 Finding/Getting Emacs and Related Packages
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
165
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
166 88: Where can I get Emacs on the net (or by snail mail)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
167 89: How do I find a Emacs Lisp package that does XXX?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
168 90: Where can I get Emacs Lisp packages that don't come with Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
169 91: How do I submit code to the Emacs Lisp Archive?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
170 92: Where can I get other up-to-date GNU stuff?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
171 93: What is the difference between Emacs and XEmacs (formerly "Lucid
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
172 Emacs")?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
173 94: Where can I get Emacs for my PC running MS-DOS?
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
174 95: Where can I get Emacs for Microsoft Windows, Windows 9x, or Windows
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
175 NT?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
176 96: Where can I get Emacs for my PC running OS/2?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
177 97: Where can I get Emacs for my Atari ST?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
178 98: Where can I get Emacs for my Amiga?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
179 99: Where can I get Emacs for NeXTSTEP?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
180 100: Where can I get Emacs for my Apple computer?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
181 101: Where do I get Emacs that runs on VMS under DECwindows?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
182 102: Where can I get modes for Lex, Yacc/Bison, Bourne shell, Csh, C++,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
183 Objective-C, Pascal, Java, and Awk?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
184 103: What is the IP address of XXX.YYY.ZZZ?
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
185
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
186 Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
187
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
188 104: VM (View Mail) -- another mail reader within Emacs, with MIME support
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
189 105: SuperCite -- mail and news citation package within Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
190 106: Calc -- poor man's Mathematica within Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
191 107: VIPER -- vi emulation for Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
192 108: AUC TeX -- enhanced LaTeX mode with debugging facilities
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
193 109: BBDB -- personal Info Rolodex integrated with mail/news readers
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
194 110: Ispell -- spell checker in C with interface for Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
195 111: W3-mode -- A World Wide Web browser inside of Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
196 112: EDB -- Database program for Emacs; replaces forms editing modes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
197 113: Mailcrypt -- PGP interface within Emacs mail and news
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
198 114: Patch -- program to apply "diffs" for updating files
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
200 Changing Key Bindings and Handling Key Binding Problems
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
201
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
202 115: How do I bind keys (including function keys) to commands?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
203 116: Why does Emacs say "Key sequence XXX uses invalid prefix characters"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
204 117: Why doesn't this [terminal or window-system setup] code work in my
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
205 .emacs file, but it works just fine after Emacs starts up?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
206 118: How do I use function keys under X Windows?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
207 119: How do I tell what characters or symbols my function or arrow keys
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
208 emit?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
209 120: How do I set the X key "translations" for Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
210 121: How do I handle C-s and C-q being used for flow control?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
211 122: How do I bind `C-s' and `C-q' (or any key) if these keys are filtered
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
212 out?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
213 123: Why does the "Backspace" key invoke help?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
214 124: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
215 125: How do I "swap" two keys?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
216 126: How do I produce C-XXX with my keyboard?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
217 127: What if I don't have a Meta key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
218 128: What if I don't have an Escape key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
219 129: Can I make my "Compose Character" key behave like a Meta key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
220 130: How do I bind a combination of modifier key and function key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
221 131: Why doesn't my Meta key work in an xterm window?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
222 132: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
223 and 9.x?
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
224
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
225 Using Emacs with Alternate Character Sets
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
226
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
227 133: How do I make Emacs display 8-bit characters?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
228 134: How do I input 8-bit characters?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
229 135: Where can I get an Emacs that handles kanji, Chinese, or other
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
230 character sets?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
231 136: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
232
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
233 Mail and News
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
234
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
235 137: How do I change the included text prefix in mail/news followups?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
236 138: How do I save a copy of outgoing mail?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
237 139: Why doesn't Emacs expand my aliases when sending mail?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
238 140: Why does Rmail think all my saved messages are one big message?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
239 141: How can I sort the messages in my Rmail folder?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
240 142: Why does Rmail need to write to /usr/spool/mail?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
241 143: How do I recover my mail files after Rmail munges their format?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
242 144: How can I force Rmail to reply to the sender of a message, but not the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
243 other recipients?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
244 145: How can I get my favorite Emacs mail package to support MIME?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
245 146: How do I make Emacs automatically start my mail/news reader?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
246 147: How do I read news under Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
247 148: Why doesn't Gnus work via NNTP?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
248 149: How do I view news articles with embedded underlining (e.g.,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
249 ClariNews)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
250 150: How do I save all the items of a multi-part posting in Gnus?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
251 151: How do I make Gnus start up faster?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
252 152: How do I catch up all newsgroups in Gnus?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
253 153: Why can't I kill in Gnus based on the Newsgroups/Keywords/Control
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
254 headers?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
255 154: How do I get rid of flashing messages in Gnus for slow connections?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
256 155: Why is catch up slow in Gnus?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
257 156: Why does Gnus hang for a long time when posting?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
258 157: Where can I find out more about Gnus?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
259
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
260 ------------------------------------------------------------
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
261
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
262 If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
263 $" to get an overview of just the questions. Then, when you want to look
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
264 at the text of the answers, just type "C-x $".
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
265
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
266 To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
267 C-r if that doesn't work. Type RET to end the search.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
268
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
269 If you have a web browser and the browse-url package configured for
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
270 it, you can visit ftp and HTTP uniform resource locators (URLs) by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
271 placing the cursor on the URL and typing M-x browse-url-at-point.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
272
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
273 The FAQ is posted in five parts; if you are missing a section or would
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
274 prefer to read the FAQ in a single file, see question 22.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
275
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
276 ------------------------------------------------------------
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
277 Time-stamp: <1998-09-18 14:41:10 reuven>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
278
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
279
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
280 Notation Used in FAQ
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
281
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
282 Skip this section and then come back if you don't understand some of the
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
283 later answers.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
284
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
285 1: What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
286
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
287 C-x: press the `x' key while holding down the Control key
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
288
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
289 M-x: press the `x' key while holding down the Meta key (if your computer
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
290 doesn't have a Meta key, see question 127)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
291
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
292 M-C-x: press the `x' key while holding down both Control and Meta
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
293 C-M-x: a synonym for the above
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
294
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
295 LFD: Linefeed or Newline; same as C-j
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
296 RET: Return, sometimes marked Enter; same as C-m
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
297 DEL: Delete, usually not the same as Backspace; same as C-? (See
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
298 question 123 if deleting invokes Emacs help)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
299 ESC: Escape; same as C-[
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
300 TAB: Tab; same as C-i
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
301 SPC: Space bar
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
302
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
303 Key sequences longer than one key (and some single-key sequences) are
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
304 inside double quotes or on lines by themselves. Any real spaces in such
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
305 a key sequence should be ignored; only SPC really means press the space
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
306 key.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
307
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
308 The ASCII code sent by C-x (except for C-?) is the value that would be
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
309 sent by pressing just `x' minus 96 (or 64 for uppercase `X') and will be
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
310 from 0 to 31. The ASCII code sent by M-x is the sum of 128 and the ASCII
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
311 code that would be sent by pressing just the `x' key. Essentially, the
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
312 Control key turns off bits 5 and 6 and the Meta key turns on bit 7.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
313
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
314 NOTE: C-? (aka DEL) is ASCII code 127. It is a misnomer to call C-? a
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
315 "control" key, since 127 has both bits 5 and 6 turned ON. Also, on very
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
316 few keyboards does C-? generate ASCII code 127.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
317
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
318 For further information, see "Characters" and "Keys" in the on-line
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
319 manual. (See question 3 if you don't know how.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
320
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
321 2: What does "M-x command" mean?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
322
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
323 "M-x command" means type M-x, then type the name of the command, then
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
324 type RET. (See question 1 if you're not sure what "M-x" and "RET" mean.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
325
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
326 M-x (by default) invokes the command "execute-extended-command". This
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
327 command allows you to run any Emacs command if you can remember the
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
328 command's name. If you can't remember the command's name, you can type
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
329 TAB and SPC for completion, `?' for a list of possibilities, and M-p and
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
330 M-n to see previous commands entered. An Emacs "command" is any
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
331 "interactive" Emacs function.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
332
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
333 NOTE: Your system administrator may have bound other key sequences to
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
334 invoke execute-extended-command. A function key labeled `Do' is a good
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
335 candidate for this.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
336
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
337 To run non-interactive Emacs functions, see question 52.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
338
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
339 3: How do I read topic XXX in the on-line manual?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
340
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
341 When we refer you to topic XXX in the on-line manual, you can read this
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
342 manual node inside Emacs (assuming nothing is broken) by typing this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
343
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
344 C-h i m emacs RET m XXX RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
345
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
346 This invokes Info, the GNU hypertext documentation browser. If you don't
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
347 already know how to use Info, type `?' from within Info.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
348
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
349 If we refer to topic XXX:YYY, type this:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
350
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
351 C-h i m emacs RET m XXX RET m YYY RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
352
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
353 WARNING: Your system administrator may not have installed the Info files,
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
354 or may have installed them improperly. In this case you should complain.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
355
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
356 See question 15 if you would like a paper copy of the Emacs manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
357
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
358 4: What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
359
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
360 These are files that come with Emacs. The Emacs distribution is divided
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
361 into subdirectories; the important ones are "etc", "lisp", and "src".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
362
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
363 If you use Emacs, but don't know where it is kept on your system, start
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
364 Emacs, then type "C-h v data-directory RET". The directory name
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
365 displayed by this will be the full pathname of the installed "etc"
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
366 directory.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
367
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
368 The location of your Info directory (i.e., where on-line documentation is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
369 stored) is kept in the variable Info-default-directory-list. Use "C-h v
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
370 Info-default-directory-list RET" to see the contents of this variable,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
371 which will be a list of directory names. The last directory in that list
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
372 is probably where most Info files are stored. By default, Info
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
373 documentation is placed in /usr/local/info.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
374
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
375 Some of these files are available individually via FTP or e-mail; see
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
376 question 20. All are available in the source distribution. Many of the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
377 files in the "etc" directory are also available via the Emacs "help"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
378 menu, or by typing "C-h ?" (M-x help-for-help).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
379
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
380 WARNING: Your system administrator may have removed the src directory and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
381 many files from the etc directory.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
382
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
383 5: What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
384
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
385 FSF == Free Software Foundation
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
386 LPF == League for Programming Freedom
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
387 OSF == Open Software Foundation
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
388 GNU == GNU's Not Unix
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
389 RMS == Richard Matthew Stallman
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
390 FTP == File Transfer Protocol
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
391 GPL == GNU General Public License
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
392
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
393 NOTE: Avoid confusing the FSF, the LPF, and the OSF. The LPF opposes
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
394 look-and-feel copyrights and software patents. The FSF aims to make high
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
395 quality free software available for everyone. The OSF is a consortium of
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
396 computer vendors which develops commercial software for Unix systems.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
397
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
398 NOTE: The word "free" in the title of the Free Software Foundation refers
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
399 to "freedom," not "zero dollars." Anyone can charge any price for
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
400 GPL-covered software that they want to. However, in practice, the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
401 freedom enforced by the GPL leads to low prices, because you can always
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
402 get the software for less money from someone else, because everyone has
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
403 the right to resell or give away GPL-covered software.
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
404
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
405
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
406 General Questions
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
407
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
408 6: What is the LPF?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
409
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
410 The LPF opposes the expanding danger of software patents and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
411 look-and-feel copyrights. To get more information, feel free to contact
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
412 the LPF via e-mail or otherwise. You may also contact Joe Wells
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
413 <jbw@cs.bu.edu>; he will be happy to talk with you about the LPF.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
414
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
415 You can find more information about the LPF in the file etc/LPF. More
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
416 papers describing the LPF's views are available on the Internet and also
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
417 from the LPF:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
418
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
419 http://lpf.ai.mit.edu/
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
420
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
421 7: What is the real legal meaning of the GNU copyleft?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
422
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
423 The real legal meaning of the GNU General Public License (copyleft) will
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
424 only be known if and when a judge rules on its validity and scope. There
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
425 has never been a copyright infringement case involving the GPL to set any
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
426 precedents. Please take any discussion regarding this issue to the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
427 newsgroup gnu.misc.discuss, which was created to hold the extensive flame
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
428 wars on the subject.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
429
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
430 RMS writes:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
431
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
432 The legal meaning of the GNU copyleft is less important than the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
433 spirit, which is that Emacs is a free software project and that work
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
434 pertaining to Emacs should also be free software. "Free" means that
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
435 all users have the freedom to study, share, change and improve Emacs.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
436 To make sure everyone has this freedom, pass along source code when you
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
437 distribute any version of Emacs or a related program, and give the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
438 recipients the same freedom that you enjoyed.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
439
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
440 8: What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
441 comp.emacs, etc.?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
442
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
443 The file etc/MAILINGLISTS discusses the purpose of each GNU mailing-list.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
444 (See question 20 if you want a copy of the file.) For those lists which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
445 are gatewayed with newsgroups, it lists both the newsgroup name and the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
446 mailing list address.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
447
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
448 comp.emacs is for discussion of Emacs programs in general. This includes
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
449 Emacs along with various other implementations, such as JOVE, MicroEmacs,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
450 Freemacs, MG, Unipress, CCA, and Epsilon.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
451
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
452 Many people post Emacs questions to comp.emacs because they don't receive
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
453 any of the gnu.* newsgroups. Arguments have been made both for and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
454 against posting GNU-Emacs-specific material to comp.emacs. You have to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
455 decide for yourself.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
456
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
457 Messages advocating "non-free" software are considered unacceptable on
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
458 any of the gnu.* newsgroups except for gnu.misc.discuss, which was
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
459 created to hold the extensive flame-wars on the subject. "Non-free"
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
460 software includes any software for which the end user can't freely modify
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
461 the source code and exchange enhancements. Be careful to remove the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
462 gnu.* groups from the "Newsgroups:" line when posting a followup that
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
463 recommends such software.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
464
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
465 gnu.emacs.bug is a place where bug reports appear, but avoid posting bug
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
466 reports to this newsgroup (see question 10).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
467
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
468 9: Where can I get old postings to gnu.emacs.help and other GNU groups?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
469
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
470 The FSF has maintained archives of all of the GNU mailing lists for many
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
471 years, although there may be some unintentional gaps in coverage. The
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
472 archive is not particularly well organized or easy to retrieve individual
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
473 postings from, but pretty much everything is there. The latest archives
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
474 are available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
475
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
476 ftp://gnudist.gnu.org/pub/gnu/MailingListArchives/current
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
477
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
478 Web-based Usenet search services, such as DejaNews, also archive the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
479 gnu.* groups. You can reach DejaNews at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
480
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
481 http://www.dejanews.com
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
482
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
483 10: Where should I report bugs and other problems with Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
484
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
485 The correct way to report Emacs bugs is by e-mail to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
486 bug-gnu-emacs@gnu.org. Anything sent here also appears in the
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
487 newsgroup gnu.emacs.bug, but please use e-mail instead of news to submit
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
488 the bug report. This ensures a reliable return address so you can be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
489 contacted for further details.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
490
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
491 Be sure to read the "Bugs" section of the Emacs manual before reporting a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
492 bug to bug-gnu-emacs! The manual describes in detail how to submit a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
493 useful bug report. (See question 3 if you don't know how to read the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
494 manual.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
495
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
496 RMS says:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
497
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
498 Sending bug reports to help-gnu-emacs (which has the effect of posting
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
499 on gnu.emacs.help) is undesirable because it takes the time of an
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
500 unnecessarily large group of people, most of whom are just users and
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
501 have no idea how to fix these problem. bug-gnu-emacs reaches a much
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
502 smaller group of people who are more likely to know what to do and have
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
503 expressed a wish to receive more messages about Emacs than the others.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
504
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
505 However, RMS says there are circumstances when it is okay to post to
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
506 gnu.emacs.help:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
507
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
508 If you have reported a bug and you don't hear about a possible fix,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
509 then after a suitable delay (such as a week) it is okay to post on
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
510 gnu.emacs.help asking if anyone can help you.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
511
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
512 If you are unsure whether you have found a bug, consider the following
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
513 non-exhaustive list, courtesy of RMS:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
514
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
515 If Emacs crashes, that is a bug. If Emacs gets compilation errors
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
516 while building, that is a bug. If Emacs crashes while building, that
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
517 is a bug. If Lisp code does not do what the documentation says it
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
518 does, that is a bug.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
519
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
520 11: How do I unsubscribe from this mailing list?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
521
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
522 If you are receiving a GNU mailing list named "XXX", you might be able to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
523 unsubscribe from it by sending a request to the address
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
524 <XXX-request@gnu.org>. However, this will not work if you are
3591
507f64624555 Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents: 2703
diff changeset
525 not listed on the main mailing list, but instead receive the mail from a
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
526 distribution point. In that case, you will have to track down at which
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
527 distribution point you are listed. Inspecting the "Received:" headers on
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
528 the mail messages may help, along with liberal use of the "EXPN" or
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
529 "VRFY" sendmail commands through "telnet <site-address> smtp". Ask your
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
530 postmaster for help.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
531
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
532 12: What is the current address of the FSF?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
533
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
534 E-mail: gnu@gnu.org
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
535 Telephone: +1-617-542-5942
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
536 Fax: +1-617-542-2652
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
537 World Wide Web: http://www.gnu.org/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
538
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
539 Postal address:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
540 Free Software Foundation
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
541 59 Temple Place - Suite 330
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
542 Boston, MA 02111-1307
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
543 USA
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
544
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
545 For details on how to order items directly from the FSF, see the file
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
546 etc/ORDERS.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
547
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
548
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
549 On-line Help, Printed Manuals, Other Sources of Help
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
550
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
551 13: I'm just starting Emacs; how do I do basic editing?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
552
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
553 Type "C-h t" to invoke the self-paced tutorial. Just typing `C-h' enters
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
554 the help system.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
555
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
556 WARNING: Your system administrator may have changed `C-h' to act like DEL
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
557 to deal with local keyboards. You can use M-x help-for-help instead to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
558 invoke help. To discover what key (if any) invokes help on your system,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
559 type "M-x where-is RET help-for-help RET". This will print a
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
560 comma-separated list of key sequences in the echo area. Ignore the last
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
561 character in each key sequence listed. Each of the resulting key
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
562 sequences invokes help.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
563
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
564 NOTE: Emacs help works best if it is invoked by a single key whose value
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
565 should be stored in the variable help-char.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
566
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
567 There is also a WWW-based tutorial for Emacs 18, much of which is also
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
568 relevant for Emacs 20, available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
569
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
570 http://kufacts.cc.ukans.edu/cwis/writeups/misc/emacsguide.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
571
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
572 14: How do I find out how to do something in Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
573
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
574 There are several methods for finding out how to do things in Emacs.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
575
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
576 * The complete text of the Emacs manual is available on-line via the Info
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
577 hypertext reader. Type "C-h i" to invoke Info. Typing `h' immediately
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
578 after entering Info will provide a short tutorial on how to use it.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
579
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
580 * You can order a hardcopy of the manual from the FSF. See question 15.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
581
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
582 * You can get a printed reference card listing commands and keys to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
583 invoke them. You can order one from the FSF for $1 (or 10 for $5), or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
584 you can print your own from the etc/refcard.tex or etc/refcard.ps files
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
585 in the Emacs distribution.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
586
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
587 * You can list all of the commands whose names contain a certain word
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
588 (actually which match a regular expression) using "C-h a" (M-x
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
589 command-apropos).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
590
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
591 * You can list all of the functions and variables whose names contain a
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
592 certain word using M-x apropos.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
593
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
594 * There are many other commands in Emacs for getting help and
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
595 information. To get a list of these commands, type `?' after `C-h'.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
596
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
597 15: How do I get a printed copy of the Emacs manual?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
598
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
599 You can order a printed copy of the Emacs manual from the FSF. For
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
600 details see the file etc/ORDERS.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
601
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
602 The full TeX source for the manual also comes in the "man" directory of
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
603 the Emacs distribution, if you're daring enough to try to print out this
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
604 440-page manual yourself (see question 18).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
605
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
606 If you absolutely have to print your own copy, and you don't have TeX,
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
607 you can get a PostScript version from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
608
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
609 ftp://ftp.cs.ubc.ca/pub/archive/gnu/manuals_ps/emacs-19.21.ps.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
610
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
611 Note that the above document is somewhat out of date, although most major
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
612 concepts are still relevant. This site requests that you please *confine
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
613 any major ftping to late evenings or early mornings, local time* (Pacific
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
614 time zone, GMT-8).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
615
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
616 A WWW version of the (somewhat outdated) Emacs 19.34 manual is at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
617
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
618 http://www.cl.cam.ac.uk/texinfodoc/emacs_toc.html
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
619
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
620 See also question 14 for how to view the manual on-line.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
621
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
622 16: Where can I get documentation on Emacs Lisp?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
623
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
624 Within Emacs, you can type "C-h f" to get the documentation for a
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
625 function, "C-h v" for a variable.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
626
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
627 For more information, obtain the Emacs Lisp Reference Manual. Details on
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
628 ordering it from FSF are in file etc/ORDERS.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
629
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
630 The Emacs Lisp Reference Manual is also available on-line, in Info
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
631 format. Texinfo source for the manual (along with pregenerated Info
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
632 files) is available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
633
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
634 ftp://gnudist.gnu.org/pub/gnu/elisp-manual-20-2.5.tar.gz
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
635
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
636 and all mirrors of gnudist.gnu.org (See question 92 for a list). See
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
637 question 17 if you want to install the Info files, or question 18 if you
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
638 want to use the Texinfo source to print the manual yourself.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
639
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
640 WWW versions of the Emacs Lisp Reference Manual are available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
641
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
642 http://www.cl.cam.ac.uk/texinfodoc/elisp_1.html
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
643 http://www.cs.indiana.edu/usr/local/www/elisp/lispref/elisp_toc.html
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
644
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
645 17: How do I install a piece of Texinfo documentation?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
646
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
647 First, you must turn the Texinfo files into Info files. You may do this
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
648 using the stand-alone "makeinfo" program, available as part of the latest
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
649 Texinfo package at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
650
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
651 ftp://gnudist.gnu.org/pub/gnu/texinfo-3.12.tar.gz
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
652
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
653 and all mirrors of gnudist.gnu.org (see question 92 for a list).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
654
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
655 For information about the Texinfo format, read the Texinfo manual which
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
656 comes with Emacs. This manual also comes installed in Info format, so
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
657 you can read it on-line.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
658
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
659 Neither texinfo-format-buffer nor makeinfo installs the resulting Info
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
660 files in Emacs's Info tree. To install Info files:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
661
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
662 1. Move the files to the "info" directory in the installed Emacs
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
663 distribution. See question 4 if you don't know where that is.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
664
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
665 2. Edit the file info/dir in the installed Emacs distribution, and add a
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
666 line for the top level node in the Info package that you are
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
667 installing. Follow the examples already in this file. The format is:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
668
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
669 * Topic: (relative-pathname). Short description of topic.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
670
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
671 If (as it should have done) the Texinfo file used the @direntry
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
672 command, you can run the "install-info" command from the current
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
673 Texinfo distribution to do this automatically -- see the example in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
674 the top-level Makefile in the Emacs source.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
675
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
676 If you want to install Info files and you don't have the necessary
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
677 privileges, you have several options:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
678
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
679 * Info files don't actually need to be installed before being used. You
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
680 can feed a file name to the Info-goto-node command (invoked by pressing
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
681 `g' in Info mode) by typing the name of the file in parentheses. This
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
682 goes to the node named "Top" in that file. For example, to view a Info
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
683 file named "XXX" in your home directory, you can type this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
684
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
685 C-h i g (~/XXX) RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
686
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
687 * You can create your own Info directory. You can tell Emacs where the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
688 Info directory is by adding its pathname to the value of the variable
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
689 Info-default-directory-list. For example, to use a private Info
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
690 directory which is a subdirectory of your home directory named "Info",
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
691 you could put this in your .emacs file:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
692
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
693 (setq Info-default-directory-list
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
694 (cons "~/Info" Info-default-directory-list))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
695
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
696 You will need a top-level Info file named "dir" in this directory which
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
697 has everything the system dir file has in it, except it should list
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
698 only entries for Info files in that directory. You might not need it
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
699 if all files in this directory were referenced by other "dir" files.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
700 The node lists from all dir files in Info-default-directory-list are
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
701 merged by the Info system.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
702
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
703 18: How do I print a Texinfo file?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
704
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
705 NOTE: You can't get nicely printed output from Info files; you must still
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
706 have the original Texinfo source file for the manual you want to print.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
707
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
708 Assuming you have TeX installed on your system, follow these steps:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
709
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
710 1. Make sure the first line of the Texinfo file looks like this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
711
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
712 \input texinfo
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
713
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
714 You may need to change "texinfo" to the full pathname of the
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
715 texinfo.tex file, which comes with Emacs as man/texinfo.tex (or copy
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
716 or link it into the current directory).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
717
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
718 2. tex XXX.texinfo
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
719
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
720 3. texindex XXX.??
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
721
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
722 The texindex program comes with Emacs as man/texindex.c.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
723
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
724 4. tex XXX.texinfo
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
725
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
726 5. Print the DVI file XXX.dvi in the normal way for printing DVI files at
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
727 your site.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
728
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
729 To get more general instructions, retrieve the latest Texinfo package
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
730 mentioned in question 17. The "texi2dvi" command from it will perform
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
731 the above steps 1 to 4 for you.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
732
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
733 19: Can I view Info files without using Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
734
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
735 Yes. Here are some alternative programs:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
736
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
737 * Info, a stand-alone version of the Info program, comes as part of the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
738 Texinfo package. See question 17 for details.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
739
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
740 * Xinfo, a stand-alone version of the Info program that runs under X
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
741 Windows. You can get it at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
742
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
743 ftp://gnudist.gnu.org/pub/gnu/xinfo-1.01.01.tar.gz
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
744
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
745 and all mirrors of gnudist.gnu.org (See question 92 for a list).
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
746
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
747 * Tkinfo, an Info viewer that runs under X Windows and uses Tcl/Tk. You
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
748 can get Tkinfo at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
749
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
750 http://math-www.uni-paderborn.de/~axel/tkinfo/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
751
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
752 20: What informational files are available for Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
753
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
754 This isn't a frequently asked question, but it should be! A variety of
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
755 informational files about Emacs and relevant aspects of the GNU project
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
756 are available for you to read.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
757
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
758 The following files are available in the "etc" directory of the Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
759 distribution (see question 4 if you're not sure where that is).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
760
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
761 COPYING -- Emacs General Public License
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
762 DISTRIB -- Emacs Availability Information, including the popular
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
763 "Free Software Foundation Order Form"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
764 FAQ -- Emacs Frequently Asked Questions (You're reading it)
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
765 FTP -- How to get GNU Software by Internet FTP or by UUCP
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
766 GNU -- The GNU Manifesto
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
767 INTERVIEW -- Richard Stallman discusses his public-domain
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
768 UNIX-compatible software system with BYTE editors
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
769 LPF -- Why you should join the League for Programming Freedom
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
770 MACHINES -- Status of Emacs on Various Machines and Systems
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
771 MAILINGLISTS -- GNU Project Electronic Mailing Lists
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
772 NEWS -- Emacs news, a history of user-visible changes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
773 PROBLEMS -- Known problems with building and running Emacs in various
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
774 situations, often with workarounds.
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
775 SERVICE -- GNU Service Directory
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
776 SUN-SUPPORT -- including "Using Emacstool with GNU Emacs"
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
777
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
778 Latest versions of some of the above files are also available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
779
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
780 ftp://gnudist.gnu.org/pub/gnu/GNUinfo/
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
781
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
782 More GNU information, including back issues of the "GNU's Bulletin", are at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
783
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
784 http://www.gnu.org/bulletins/bulletins.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
785 http://www.cs.pdx.edu/~trent/gnu/gnu.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
786
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
787 21: Where can I get help in installing Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
788
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
789 See question 84 for some basic installation hints, and question 83 if you
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
790 have problems with the installation.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
791
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
792 The file etc/SERVICE (see question 4 if you're not sure where that is)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
793 lists companies and individuals willing to sell you help in installing or
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
794 using Emacs. An up-to-date version this file is available on gnudist.gnu.org
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
795 (see question 20).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
796
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
797 22: Where can I get the latest version of this document (the FAQ list)?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
798
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
799 The Emacs FAQ is available in several ways:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
800
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
801 * Inside of Emacs itself. You can get it from selecting the "Emacs FAQ"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
802 option from the "Help" menu at the top of any Emacs frame, or by typing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
803 C-h F (M-x view-emacs-FAQ).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
804
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
805 * Via USENET. If you can read news, the FAQ should be available in your
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
806 news spool, in both the gnu.emacs.help and comp.emacs newsgroups.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
807 Every news reader should allow you to read any news article that is
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
808 still in the news spool, even if you have read the article before. You
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
809 may need to read the instructions for your news reader to discover how
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
810 to do this. In rn, this command will do this for you at the article
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
811 selection level:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
812
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
813 ?GNU Emacs Frequently Asked Questions?rc:m
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
814
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
815 In Gnus, you should type "C-u c-x c-s" from the *Summary* buffer or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
816 "C-u SPC" from the *Newsgroup* buffer to view all articles in a
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
817 newsgroup.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
818
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
819 If the FAQ articles have expired and been deleted from your news spool,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
820 it might (or might not) do some good to complain to your news
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
821 administrator, because the most recent FAQ should not expire for a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
822 while.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
823
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
824 * Via anonymous FTP. You can always fetch the latest FAQ at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
825
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
826 ftp://ftp.lerner.co.il/pub/emacs/faq.txt
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
827 ftp://ftp.lerner.co.il/pub/emacs/faq.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
828
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
829 http://ftp.lerner.co.il/emacs/faq.txt
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
830 http://ftp.lerner.co.il/emacs/faq.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
831
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
832 * In the Emacs distribution. Since Emacs 18.56, the FAQ at the time of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
833 release has been part of the Emacs distribution as etc/FAQ (see
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
834 question 4).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
835
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
836 * Via the World Wide Web. Point your favorite Web browser at:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
837
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
838 http://www.geek-girl.com/emacs/faq/index.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
839
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
840 This is an old version, but it works.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
841
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
842 * Via anonymous ftp and e-mail from rtfm.mit.edu (and its mirror in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
843 Europe), the main repository for FAQs and other items posted to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
844 news.answers. The Emacs FAQs are available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
845
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
846 ftp://rtfm.mit.edu/pub/usenet/comp.emacs/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
847 ftp://ftp.uni-paderborn.de/pub/doc/FAQ/comp/emacs/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
848
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
849 If you do not have access to anonymous FTP, you can access the archives
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
850 using the rtfm.mit.edu mail server. The Emacs FAQ can be retrieved by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
851 sending mail to mail-server@rtfm.mit.edu with a blank subject and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
852 containing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
853
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
854 send usenet/news.answers/GNU-Emacs-FAQ/diffs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
855 send usenet/news.answers/GNU-Emacs-FAQ/part1
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
856 send usenet/news.answers/GNU-Emacs-FAQ/part2
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
857 send usenet/news.answers/GNU-Emacs-FAQ/part3
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
858 send usenet/news.answers/GNU-Emacs-FAQ/part4
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
859 send usenet/news.answers/GNU-Emacs-FAQ/part5
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
860
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
861 For more information, send email to mail-server@rtfm.mit.edu with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
862 "help" and "index" in the body on separate lines.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
863
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
864 * As the very last resort, you can e-mail a request to
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
865 emacs-faq@lerner.co.il. Don't do this unless you have made a serious
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
866 effort to obtain the FAQ list via one of the methods listed above.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
867
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
868
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
869 Status of Emacs
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
870
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
871 23: Where does the name "Emacs" come from?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
872
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
873 Emacs originally was an acronym for Editor MACroS. RMS says he "picked
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
874 the name Emacs because `E' was not in use as an abbreviation on ITS at
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
875 the time." The first Emacs was a set of macros written in 1976 at MIT by
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
876 RMS for the editor TECO (Text Editor and COrrector, originally Tape
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
877 Editor and COrrector) under ITS on a PDP-10. RMS had already extended
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
878 TECO with a "real-time" full screen mode with reprogrammable keys. Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
879 was started by Guy Steele <gls@east.sun.com> as a project to unify the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
880 many divergent TECO command sets and key bindings at MIT, and completed
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
881 by RMS.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
882
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
883 Many people have said that TECO code looks a lot like line noise. See
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
884 alt.lang.teco if you are interested. Someone has written a TECO
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
885 implementation in Emacs Lisp (to find it, see question 90); it would be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
886 an interesting project to run the original TECO Emacs inside of Emacs.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
887
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
888 For some not-so-serious alternative reasons for Emacs to have that name,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
889 check out etc/JOKES (see question 4).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
890
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
891 24: What is the latest version of Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
892
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
893 Emacs 20.4 is the current version as of this writing.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
894
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
895 25: What is different about Emacs 20?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
896
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
897 To find out what has changed in recent versions, type C-h n (M-x
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
898 view-emacs-news). The oldest changes are at the bottom of the file, so
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
899 you might want to read it starting there, rather than at the top.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
900
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
901 The differences between Emacs versions 18 and 19 was rather dramatic; the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
902 introduction of frames, faces, and colors on windowing systems was
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
903 obvious to even the most casual user.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
904
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
905 There are differences between Emacs versions 19 and 20 as well, but many
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
906 are more subtle or harder to find. Among the changes are the inclusion
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
907 of MULE code for languages that use non-Latin characters, the "customize"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
908 facility for modifying variables without having to use Lisp, and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
909 automatic conversion of files from Macintosh, Microsoft, and Unix
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
910 platforms.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
911
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
912 Many Lisp packages have been updated and enhanced for Emacs 20.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
913
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
914
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
915 Common Things People Want To Do
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
916
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
917 26: How do I set up a .emacs file properly?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
918
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
919 See "Init File" in the on-line manual.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
920
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
921 WARNING: In general, new Emacs users should not have .emacs files,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
922 because it causes confusing non-standard behavior. Then they send
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
923 questions to help-gnu-emacs asking why Emacs isn't behaving as
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
924 documented. :-)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
925
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
926 Emacs 20 includes the new "customize" facility, which can be invoked
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
927 using M-x customize RET or via the Help menu. This allows users who are
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
928 unfamiliar with Emacs Lisp to modify their .emacs files in a relatively
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
929 straightforward way, using menus rather than Lisp code. While all the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
930 packages included with Emacs (are meant to) support Customize now,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
931 packages from other sources may not.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
932
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
933 While Customize might indeed make it easier to configure Emacs, consider
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
934 taking a bit of time to learn Emacs Lisp and modifying your .emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
935 directly. Simple configuration options are described rather completely in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
936 the "Init File" section of the on-line manual, for users interested in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
937 performing frequently requested, basic tasks.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
938
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
939 27: How do I debug a .emacs file?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
940
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
941 Start Emacs with the "-debug-init" command-line option. This enables the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
942 Emacs Lisp debugger before evaluating your .emacs file, and places you in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
943 the debugger if something goes wrong. The top line in the trace-back
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
944 buffer will be the error message, and the second or third line of that
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
945 buffer will display the Lisp code from your .emacs file that caused the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
946 problem.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
947
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
948 You can also evaluate an individual function or argument to a function in
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
949 your .emacs file by moving the cursor to the end of the function or
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
950 argument and typing "C-x C-e" (M-x eval-last-sexp). "C-M-x" (M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
951 eval-defun) is particularly useful for re-evaluating "defvar" and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
952 "customize" forms.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
953
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
954 Use "C-h v" (M-x describe-variable) to check the value of variables which
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
955 you are trying to set or use.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
956
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
957 28: How do I make Emacs display the current line (or column) number?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
958
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
959 To toggle having Emacs automatically display the current line number of the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
960 point in the mode line, do "M-x line-number-mode". (This option is on by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
961 default.) Note that Emacs will not display the line number if the buffer is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
962 larger than the value of the variable line-number-display-limit.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
963
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
964 As of Emacs 20, you can similarly display the current column with "M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
965 column-number-mode", by putting the form
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
966
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
967 (setq column-number-mode t)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
968
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
969 in your .emacs file or by using Customize.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
970
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
971 The "%c" format specifier in the variable mode-line-format will insert
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
972 the current column's value into the mode line. See the documentation for
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
973 mode-line-format (using "C-h v mode-line-format RET") for more
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
974 information on how to set and use this variable.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
975
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
976 Users of all Emacs versions can display the current column using Per
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
977 Abrahamsen's <abraham@iesd.auc.dk> "column" package. See question 90 for
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
978 instructions on how to get it.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
979
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
980 None of the vi emulation modes provide the "set number" capability of vi
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
981 (as far as we know) but Kyle Jones's setnu.el package implements such a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
982 feature.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
983
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
984 29: How can I modify the titlebar to contain the current filename?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
985
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
986 The contains of an Emacs frame's titlebar is controlled by the variable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
987 frame-title-format, which has the same structure as the variable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
988 mode-line-format. (Use "C-h v" or "M-x describe-variable" to get
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
989 information about one or both of these variables.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
990
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
991 By default, the titlebar for a frame does contain the name of the buffer
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
992 currently being visited, except if there is a single frame. In such a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
993 case, the titlebar contains the name of the user and the machine at which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
994 Emacs was invoked. This is done by setting frame-title-format to the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
995 default value of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
996
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
997 (multiple-frames "%b" ("" invocation-name "@" system-name))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
998
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
999 To modify the behavior such that frame titlebars contain the buffer's
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1000 name regardless of the number of existing frames, include the following
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1001 in your .emacs:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1002
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1003 (setq frame-title-format "%b")
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1004
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1005 30: How do I turn on abbrevs by default just in mode XXX?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1006
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1007 Put this in your .emacs file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1008
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1009 (condition-case ()
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1010 (quietly-read-abbrev-file)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1011 (file-error nil))
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1012
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1013 (add-hook 'XXX-mode-hook
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1014 (lambda ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1015 (setq abbrev-mode t)))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1016
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1017 31: How do I turn on auto-fill mode by default?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1018
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1019 To turn on auto-fill mode just once for one buffer, use "M-x
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1020 auto-fill-mode".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1021
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1022 To turn it on for every buffer in a certain mode, you must use the hook
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1023 for that mode. For example, to turn on auto-fill mode for all text
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1024 buffers, including the following in your .emacs file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1025
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1026 (add-hook 'text-mode-hook 'turn-on-auto-fill)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1027
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1028 You can also do this via the Help -> Options menu, which runs the command
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1029 toggle-text-mode-auto-fill.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1030
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1031 If you want auto-fill mode on in all major modes, do this:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1032
23110
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
1033 (setq-default auto-fill-function 'do-auto-fill)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1034
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1035 32: How do I make Emacs use a certain major mode for certain files?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1036
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1037 If you want to use XXX mode for all files which end with the extension
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1038 ".YYY", this will do it for you:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1039
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1040 (add-to-list 'auto-mode-alist '("\\.YYY\\'" . XXX-mode))
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1041
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1042 Otherwise put this somewhere in the first line of any file you want to
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1043 edit in XXX mode (in the second line, if the first line begins with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1044 "#!"):
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1045
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1046 -*-XXX-*-
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1047
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1048 Beginning with Emacs 19, the variable interpreter-mode-alist specifies
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1049 which mode to use when loading a shell script. (Emacs determines which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1050 interpreter you're using by examining the first line of the file.) This
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1051 feature only applies when the file name doesn't indicate which mode to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1052 use. Use "C-h v" (or M-x describe-variable) on interpreter-mode-alist to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1053 learn more.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1054
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1055 33: How do I search for, delete, or replace unprintable (8-bit or control)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1056 characters?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1057
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1058 To search for a single character that appears in the buffer as, for
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1059 example, "\237", you can type "C-s C-q 2 3 7". (This assumes the value
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1060 of search-quote-char is 17 (i.e., `C-q').) Searching for ALL unprintable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1061 characters is best done with a regular expression ("regexp") search. The
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1062 easiest regexp to use for the unprintable chars is the complement of the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1063 regexp for the printable chars.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1064
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1065 Regexp for the printable chars: [\t\n\r\f -~]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1066 Regexp for the unprintable chars: [^\t\n\r\f -~]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1067
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1068 To type these special characters in an interactive argument to
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1069 isearch-forward-regexp or re-search-forward, you need to use C-q. (`\t',
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1070 `\n', `\r', and `\f' stand respectively for TAB, LFD, RET, and C-l.) So,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1071 to search for unprintable characters using re-search-forward:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1072
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1073 M-x re-search-forward RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1074
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1075 Using isearch-forward-regexp:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1076
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1077 M-C-s [^ TAB RET C-q RET C-q C-l SPC -~]
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1078
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1079 To delete all unprintable characters, simply use replace-regexp:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1080
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1081 M-x replace-regexp RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1082
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1083 Replacing is similar to the above. To replace all unprintable characters
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1084 with a colon, use:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1085
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1086 M-x replace-regexp RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET : RET
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1087
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1088 NOTE: * You don't need to quote TAB with either isearch or typing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1089 something in the minibuffer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1090
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1091 34: How can I highlight a region of text in Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1092
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1093 If you are using a windowing system such as X, you can cause the region
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1094 to be highlighted when the mark is active by including
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1095
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1096 (transient-mark-mode t)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1097
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1098 in your .emacs file, using Customize or via the Help->Options menu.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1099 (Also see question 66.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1100
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1101 35: How do I control Emacs's case-sensitivity when searching/replacing?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1102
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1103 For searching, the value of the variable case-fold-search determines
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1104 whether they are case sensitive:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1105
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1106 (setq case-fold-search nil) ; make searches case sensitive
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1107 (setq case-fold-search t) ; make searches case insensitive
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1108
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1109 To change this or similar variables during an Emacs session, use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1110 M-x set-variable.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1111
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1112 Similarly, for replacing, the variable case-replace determines whether
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1113 replacements preserve case.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1114
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1115 To change the case sensitivity just for one major mode, use the major
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1116 mode's hook. For example:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1117
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1118 (add-hook 'XXX-mode-hook
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1119 (lambda ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1120 (setq case-fold-search nil)))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1121
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1122 36: How do I make Emacs wrap words for me?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1123
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1124 Use auto-fill mode, activated by typing "M-x auto-fill-mode". The
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1125 default maximum line width is 70, determined by the variable fill-column.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1126 To learn how to turn this on automatically, see question 31.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1127
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1128 37: Where can I get a better spelling checker for Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1129
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1130 Use Ispell. See question 110.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1131
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1132 38: How can I spell-check TeX or *roff documents?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1133
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1134 Use Ispell. See question 110. Ispell can handle TeX and *roff
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1135 documents.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1136
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1137 39: How do I change load-path?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1138
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1139 In general, you should only *add* to the load-path. You can add
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1140 directory /XXX/YYY to the load path like this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1141
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1142 (setq load-path (cons "/XXX/YYY/" load-path))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1143
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1144 To do this relative to your home directory:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1145
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1146 (setq load-path (cons "~/YYY/" load-path)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1147
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1148 40: How do I use an already running Emacs from another window?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1149
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1150 Emacsclient, which comes with Emacs, is for editing a file using an
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1151 already running Emacs rather than starting up a new Emacs. It does this
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1152 by sending a request to the already running Emacs, which must be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1153 expecting the request.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1154
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1155 * Setup
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1156
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1157 Emacs must have executed the "server-start" function for emacsclient to
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1158 work. This can be done either by a command line option:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1159
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1160 emacs -f server-start
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1161
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1162 or by invoking server-start from the .emacs file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1163
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1164 (if (some conditions are met) (server-start))
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1165
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1166 When this is done, Emacs starts a subprocess running a program called
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1167 "server". "server" creates a Unix domain socket in the user's home
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1168 directory named .emacs_server.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1169
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1170 To get your news reader, mail reader, etc., to invoke emacsclient, try
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1171 setting the environment variable EDITOR (or sometimes VISUAL) to the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1172 value "emacsclient". You may have to specify the full pathname of the
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1173 emacsclient program instead. Examples:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1174
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1175 # csh commands:
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1176 setenv EDITOR emacsclient
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1177 setenv EDITOR /usr/local/emacs/etc/emacsclient # using full pathname
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1178
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1179 # sh command:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1180 EDITOR=emacsclient ; export EDITOR
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1181
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1182 * Normal use
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1183
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1184 When emacsclient is run, it connects to the ".emacs_server" socket and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1185 passes its command line options to "server". When "server" receives
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1186 these requests, it sends this information on the the Emacs process,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1187 which at the next opportunity will visit the files specified. (Line
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1188 numbers can be specified just like with Emacs.) The user will have to
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1189 switch to the Emacs window by hand. When the user is done editing a
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1190 file, the user can type "C-x #" (or M-x server-edit) to indicate this.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1191 If there is another buffer requested by emacsclient, Emacs will switch
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1192 to it; otherwise emacsclient will exit, signaling the calling program
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1193 to continue.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1194
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1195 NOTE: "emacsclient" and "server" must be running on machines which
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1196 share the same filesystem for this to work. The pathnames that
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1197 emacsclient specifies should be correct for the filesystem that the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1198 Emacs process sees. The Emacs process should not be suspended at the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1199 time emacsclient is invoked. emacsclient should either be invoked from
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1200 another X window or from a shell window inside Emacs itself.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1201
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1202 There is an enhanced version of emacsclient/server called "gnuserv" by
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1203 Andy Norman <ange@hplb.hpl.hp.com> which is available in the Emacs Lisp
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1204 Archive (see question 90). Gnuserv uses Internet domain sockets, so it
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1205 can work across most network connections. It also supports the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1206 execution of arbitrary Emacs Lisp forms and does not require the client
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1207 program to wait for completion.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1208
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1209 The alpha version of an enhanced version of gnuserv is available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1210
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1211 ftp://ftp.splode.com/pub/users/friedman/packages/fgnuserv-1.0.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1212
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1213 41: How do I make Emacs recognize my compiler's funny error messages?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1214
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1215 The variable compilation-error-regexp-alist helps control how Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1216 parses your compiler output. It is a list of triples of the form:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1217
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1218 (REGEXP FILE-IDX LINE-IDX)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1219
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1220 where REGEXP, FILE-IDX and LINE-IDX are strings. To help determine what
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1221 the constituent elements should be, load compile.el and then use
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1222
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1223 C-h v compilation-error-regexp-alist RET
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1224
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1225 to see the current value. A good idea is to look at compile.el itself as
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1226 the comments included for this variable are quite useful -- the regular
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1227 expressions required for your compiler's output may be very close to one
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1228 already provided. Once you have determined the proper regexps, use the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1229 following to inform Emacs of your changes:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1230
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1231 (add-to-list 'compilation-error-regexp-alist
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1232 '(REGEXP FILE-IDX LINE-IDX))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1233
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1234 42: How do I indent C switch statements like this?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1235
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1236 Many people want to indent their switch statements like this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1237
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1238 f()
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1239 {
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1240 switch(x) {
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1241 case A:
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1242 x1;
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1243 break;
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1244 case B:
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1245 x2;
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1246 break;
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1247 default:
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1248 x3;
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1249 }
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1250 }
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1251
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1252 The solution at first appears to be: set c-indent-level to 4 and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1253 c-label-offset to -2. However, this will give you an indentation spacing
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1254 of four instead of two.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1255
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1256 The solution is to use cc-mode (the default mode for C programming in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1257 Emacs 20) and add the following line:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1258
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1259 (c-set-offset 'case-label '+)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1260
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1261 There appears to be no way to do this with the old c-mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1262
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1263 43: How can I make Emacs automatically scroll horizontally?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1264
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1265 Use hscroll-mode, included in Emacs 20. Here is some information from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1266 the documentation, available by typing C-h f hscroll-mode RET:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1267
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1268 Automatically scroll horizontally when the point moves off the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1269 left or right edge of the window.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1270
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1271 - Type "M-x hscroll-mode" to enable it in the current buffer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1272 - Type "M-x hscroll-global-mode" to enable it in every buffer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1273 - "turn-on-hscroll" is useful in mode hooks as in:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1274 (add-hook 'text-mode-hook 'turn-on-hscroll)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1275
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1276 - hscroll-margin controls how close the cursor can get to the edge
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1277 of the window.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1278 - hscroll-step-percent controls how far to jump once we decide to do so.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1279
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1280 44: How do I make Emacs "typeover" or "overwrite" instead of inserting?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1281
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1282 M-x overwrite-mode (a minor mode). This toggles overwrite-mode on and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1283 off, so exiting from overwrite-mode is as easy as another M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1284 overwrite-mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1285
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1286 On some systems the "Insert" key toggles overwrite-mode on and off.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1287
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1288 45: How do I stop Emacs from beeping on a terminal?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1289
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1290 Martin R. Frank <martin@cc.gatech.edu> writes:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1291
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1292 Tell Emacs to use the "visible bell" instead of the audible bell, and
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1293 set the visible bell to nothing.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1294
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1295 That is, put the following in your TERMCAP environment variable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1296 (assuming you have one):
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1297
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1298 ... :vb=: ...
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1299
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1300 And evaluate the following Lisp form:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1301
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1302 (setq visible-bell t)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1303
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
1304 There is also a way to turn off _all_ effects of a bell, by defining
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
1305 a custom `ring-bell-function' that does nothing.
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
1306
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1307 46: How do I turn down the bell volume in Emacs running under X Windows?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1308
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1309 You can adjust the bell volume and duration for all programs with the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1310 shell command xset.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1311
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1312 Invoking xset without any arguments produces some basic information,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1313 including the following:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1314
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1315 usage: xset [-display host:dpy] option ...
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1316 To turn bell off:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1317 -b b off b 0
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1318 To set bell volume, pitch and duration:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1319 b [vol [pitch [dur]]] b on
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1320
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1321 47: How do I tell Emacs to automatically indent a new line to the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1322 indentation of the previous line?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1323
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1324 Such behavior is automatic in text mode in Emacs 20. From the NEWS file
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1325 for Emacs 20.2:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1326
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1327 ** In Text mode, now only blank lines separate paragraphs. This makes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1328 it possible to get the full benefit of Adaptive Fill mode in Text mode,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1329 and other modes derived from it (such as Mail mode). TAB in Text mode
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1330 now runs the command indent-relative; this makes a practical difference
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1331 only when you use indented paragraphs.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1332
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1333 As a result, the old Indented Text mode is now identical to Text mode,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1334 and is an alias for it.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1335
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1336 If you want spaces at the beginning of a line to start a paragraph, use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1337 the new mode, Paragraph Indent Text mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1338
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1339 If you have auto-fill mode on (see question 31), you can tell Emacs to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1340 prefix every line with a certain character sequence, the "fill prefix."
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1341 Type the prefix at the beginning of a line, position point after it, and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1342 then type "C-x ." (set-fill-prefix) to set the fill prefix. Thereafter,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1343 auto-filling will automatically put the fill prefix at the beginning of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1344 new lines, and M-q (fill-paragraph) will maintain any fill prefix when
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1345 refilling the paragraph.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1346
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1347 NOTE: If you have paragraphs with different levels of indentation, you
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1348 will have to set the fill prefix to the correct value each time you move
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1349 to a new paragraph. To avoid this hassle, try one of the many packages
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1350 available from the Emacs Lisp Archive (see question 90.) Look up "fill"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1351 and "indent" in the Lisp Code Directory for guidance.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1352
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1353 48: How do I show which parenthesis matches the one I'm looking at?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1354
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1355 As of version 19, Emacs comes with paren.el, which (when loaded) will
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1356 automatically highlight matching parentheses whenever point (i.e., the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1357 cursor) is located over one. To load paren automatically, include the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1358 line
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1359
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1360 (require 'paren)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1361
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1362 in your .emacs file. As of version 20.1, you must instead call
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1363 show-paren-mode in your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1364
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1365 (show-paren-mode 1)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1366
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1367 and the "require" is redundant.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1368
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1369 The "customize" facility will let you turn on show-paren-mode. Use M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1370 customize-group RET paren-showing RET. From within customize, you can
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1371 also go directly to the "paren-showing" group.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1372
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1373 Alternatives to paren include:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1374
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1375 * If you're looking at a right parenthesis (or brace or bracket) you can
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1376 delete it and reinsert it. Emacs will blink the cursor on the matching
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1377 parenthesis.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1378
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1379 * M-C-f (forward-sexp) and M-C-b (backward-sexp) will skip over one set
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1380 of balanced parentheses, so you can see which parentheses match. (You
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1381 can train it to skip over balanced brackets and braces at the same time
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1382 by modifying the syntax table.)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1383
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1384 * Here is some Emacs Lisp that will make the % key show the matching
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1385 parenthesis, like in vi. In addition, if the cursor isn't over a
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1386 parenthesis, it simply inserts a % like normal. (`Parenthesis' actually
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1387 includes and character with `open' or `close' syntax, which usually means
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1388 "()[]{}".)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1389
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1390 ;; By an unknown contributor
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1391
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1392 (global-set-key "%" 'match-paren)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1393
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1394 (defun match-paren (arg)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1395 "Go to the matching parenthesis if on parenthesis otherwise insert %."
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1396 (interactive "p")
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1397 (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1398 ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1399 (t (self-insert-command (or arg 1)))))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1400
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1401 49: In C mode, can I show just the lines that will be left after #ifdef
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1402 commands are handled by the compiler?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1403
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1404 M-x hide-ifdef-mode. (This is a minor mode.) You might also want to try
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1405 cpp.el, available at the Emacs Lisp Archive (see question 90).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1406
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1407 50: Is there an equivalent to the `.' (dot) command of vi?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1408
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1409 (`.' is the redo command in vi. It redoes the last insertion/deletion.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1410
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1411 In Emacs 20.3 and later, use the C-x z ("repeat") command to repeat `simple
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1412 commands'.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1413
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1414 Otherwise you can type "C-x ESC ESC" (repeat-complex-command) to reinvoke
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1415 commands that used the minibuffer to get arguments. In
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1416 repeat-complex-command you can type M-p and M-n to scan through all the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1417 different complex commands you've typed.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1418
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1419 To repeat a set of commands, use keyboard macros. (See "Keyboard Macros"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1420 in the on-line manual.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1421
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1422 VIPER, which comes with Emacs, emulates vi, including `.'. (See question
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1423 107.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1424
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1425 51: What are the valid X resource settings (i.e., stuff in .Xdefaults)?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1426
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1427 See Emacs man page, or "Resources X" in the on-line manual.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1428
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1429 You can also use a resource editor, such as editres (for X11R5 and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1430 onwards), to look at the resource names for the menu bar, assuming Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1431 was compiled with the X toolkit.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1432
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1433 52: How do I execute ("evaluate") a piece of Emacs Lisp code?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1434
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1435 There are a number of ways to execute ("evaluate," in Lisp lingo) an
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1436 Emacs Lisp "form":
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1437
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1438 * If you want it evaluated every time you run Emacs, put it in a file
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1439 named ".emacs" in your home directory. This is known as your ".emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1440 file," and contains all of your personal customizations.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1441
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1442 * You can type the form in the *scratch* buffer, and then type LFD (or
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1443 C-j) after it. The result of evaluating the form will be inserted in
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1444 the buffer.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1445
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1446 * In Emacs-Lisp mode, typing M-C-x evaluates a top-level form before or
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1447 around point.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1448
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1449 * Typing "C-x C-e" in any buffer evaluates the Lisp form immediately
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1450 before point and prints its value in the echo area.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1451
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1452 * Typing M-: or M-x eval-expression allows you to type a Lisp form
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1453 in the minibuffer which will be evaluated.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1454
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1455 * You can use M-x load-file to have Emacs evaluate all the Lisp forms in
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1456 a file. (To do this from Lisp use the function "load" instead.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1457
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1458 These functions are also useful (see question 16 if you want to learn
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1459 more about them):
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1460
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1461 load-library, eval-region, eval-current-buffer, require, autoload
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1462
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1463 53: How do I change Emacs's idea of the tab character's length?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1464
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1465 Set the variable default-tab-width. For example, to set tab stops every
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1466 10 characters, insert the following in your .emacs file:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1467
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1468 (setq default-tab-width 10)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1469
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1470 Do not confuse variable tab-width with variable tab-stop-list. The
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1471 former is used for the display of literal tab characters. The latter
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1472 controls what characters are inserted when you press the TAB character in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1473 certain modes.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1474
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1475 54: How do I insert `>' at the beginning of every line?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1476
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1477 To do this to an entire buffer, type "M-< M-x replace-regexp RET ^ RET >
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1478 RET".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1479
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1480 To do this to a region, use "string-rectangle" ("C-x r t"). Set the mark
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1481 (`C-SPC') at the beginning of the first line you want to prefix, move the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1482 cursor to last line to be prefixed, and type "C-x r t > RET". To do this
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1483 for the whole buffer, type "C-x h C-x r t > RET". In Emacs 20.3 and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1484 later, this will affect only the current region if Transient Mark mode is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1485 on (see NEWS via C-h N).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1486
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1487 If you are trying to prefix a yanked mail message with '>', you might
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1488 want to set the variable mail-yank-prefix. Better yet, get the SuperCite
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1489 package (see question 105), which provides flexible citation for yanked
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1490 mail and news messages.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1491
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1492 55: How do I insert "_^H" before each character in a region to get an
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1493 underlined paragraph?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1494
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1495 M-x underline-region.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1496
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1497 56: How do I repeat a command as many times as possible?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1498
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1499 Use "C-x (" and "C-x )" to make a keyboard macro that invokes the command
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1500 and then type "M-0 C-x e".
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1501
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1502 WARNING: any messages your command prints in the echo area will be
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1503 suppressed.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1504
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1505 57: How do I make Emacs behave like this: when I go up or down, the cursor
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1506 should stay in the same column even if the line is too short?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1507
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1508 M-x picture-mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1509
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1510 58: How do I tell Emacs to iconify itself?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1511
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1512 "C-z" iconifies Emacs when running under X Windows and suspends Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1513 otherwise. See "Misc X" in the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1514
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1515 59: How do I use regexps (regular expressions) in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1516
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1517 See "Regexps" in the on-line manual.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1518
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1519 WARNING: The "or" operator is `\|', not `|', and the grouping operators
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1520 are `\(' and `\)'. Also, the string syntax for a backslash is `\\'. To
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1521 specify a regular expression like xxx\(foo\|bar\) in a Lisp string, use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1522
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1523 "xxx\\(foo\\|bar\\)"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1524
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1525 Notice the doubled backslashes!
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1526
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1527 WARNING: Unlike in Unix grep, sed, etc., a complement character set
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1528 ([^...]) can match a newline character (LFD aka C-j aka \n), unless
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1529 newline is mentioned as one of the characters not to match.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1530
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1531 WARNING: The character syntax regexps (e.g., "\sw") are not meaningful
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1532 inside character set regexps (e.g., "[aeiou]"). (This is actually
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1533 typical for regexp syntax.)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1534
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1535 60: How do I perform a replace operation across more than one file?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1536
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1537 The "tags" feature of Emacs includes the command tags-query-replace which
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1538 performs a query-replace across all the files mentioned in the TAGS file.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1539 See "Tags Search" in the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1540
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1541 As of Emacs 19.29, Dired mode ("M-x dired RET", or C-x d) supports the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1542 command dired-do-query-replace, which allows users to replace regular
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1543 expressions in multiple files.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1544
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1545 61: Where is the documentation for "etags"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1546
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1547 "etags" is documented in the Tags node of the Emacs manual. The "etags"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1548 man page should be in the same place as the "emacs" man page.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1549
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1550 Quick command-line switch descriptions are also available. For example,
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1551 "etags -H".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1552
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1553 62: How do I disable backup files?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1554
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1555 You probably don't want to do this, since backups are useful.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1556
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1557 To avoid seeing backup files (and other "uninteresting" files) in Dired,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1558 load dired-x by adding the following to your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1559
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1560 (add-hook 'dired-load-hook
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1561 (function (lambda ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1562 (load "dired-x"))))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1563
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1564 With dired-x loaded, `M-o' toggles omitting in each dired buffer. You
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1565 can make omitting the default for new dired buffers by putting the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1566 following in your .emacs:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1567
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1568 (setq initial-dired-omit-files-p t)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1569
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1570 If you're tired of seeing backup files whenever you do an "ls" at the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1571 Unix shell, try GNU ls with the "-B" option. GNU ls is part of the GNU
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
1572 fileutils package, available at mirrors of gnudist.gnu.org (see question 92).
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1573
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1574 To disable or change how backups are made, see "Backup Names" in the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1575 on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1576
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1577 63: How do I disable auto-save-mode?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1578
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1579 You probably don't want to do this, since auto-saving is useful,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1580 especially when Emacs or your computer crashes while you are editing a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1581 document.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1582
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1583 Instead, you might want to change the variable auto-save-interval, which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1584 specifies how many keystrokes Emacs waits before auto-saving. Increasing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1585 this value forces Emacs to wait longer between auto-saves, which might
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1586 annoy you less.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1587
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1588 You might also want to look into Sebastian Kremer's auto-save package,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1589 available from the Lisp Code Archive (see question 90). This package
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1590 also allows you to place all auto-save files in one directory, such as
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1591 /tmp.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1592
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1593 To disable or change how auto-save-mode works, see "Auto Save" in the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1594 on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1595
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1596 64: How can I create or modify new pull-down menu options?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1597
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1598 Each menu title (e.g., Buffers, File, Edit) represents a local or global
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1599 keymap. Selecting a menu title with the mouse displays that keymap's
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1600 non-nil contents in the form of a menu.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1601
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1602 So to add a menu option to an existing menu, all you have to do is add a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1603 new definition to the appropriate keymap. Adding a "forward word"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1604 command to the "Edit" menu thus requires the following Lisp code:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1605
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1606 (define-key global-map
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1607 [menu-bar edit forward]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1608 '("Forward word" . forward-word))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1609
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1610 The first line adds the entry to the global keymap, which includes global
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1611 menu bar entries. Replacing the reference to "global-map" with a local
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1612 keymap would add this menu option only within a particular mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1613
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1614 The second line describes the path from the menu-bar to the new entry.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1615 Placing this menu entry underneath the "File" menu would mean changing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1616 the word "edit" in the second line to "file."
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1617
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1618 The third line is a cons cell whose first element is the title that will
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1619 be displayed, and whose second element is the function that will be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1620 called when that menu option is invoked.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1621
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1622 To add a new menu, rather than a new option to an existing menu, we must
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1623 define an entirely new keymap:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1624
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1625 (define-key global-map [menu-bar words]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1626 (cons "Words" (make-sparse-keymap "Words")))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1627
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1628 The above code creates a new sparse keymap, gives it the name "Words",
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1629 and attaches it to the global menu bar. Adding the "forward word"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1630 command to this new menu would thus require the following code:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1631
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1632 (define-key global-map
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1633 [menu-bar words forward]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1634 '("Forward word" . forward-word))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1635
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1636 Note that because of the way keymaps work, menu options are displayed
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1637 with the more recently defined items at the top. Thus if you were to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1638 define menu options "foo", "bar", and "baz" (in that order), menu option
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1639 "baz" would appear at the top, and "foo" would be at the bottom.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1640
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1641 One way to avoid this problem is to use the function define-key-after,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1642 which works the same as define-key, but lets you modify where items
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1643 appear. The following Lisp code would insert the "forward word" function
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1644 in the "edit" menu immediately following the "undo" option:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1645
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1646 (define-key-after
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1647 (lookup-key global-map [menu-bar edit])
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1648 [forward]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1649 '("Forward word" . forward-word)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1650 'undo)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1651
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1652 Note how the second and third arguments to define-key-after are different
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1653 from those of define-key, and that we have added a new (final) argument,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1654 the function after which our new key should be defined.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1655
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1656 To move a menu option from one position to another, simply evaluate
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1657 define-key-after with the appropriate final argument.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1658
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1659 More detailed information -- and more examples of how to create and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1660 modify menu options -- are in the Emacs Lisp Reference Manual, under
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1661 "Menu Keymaps." (See question 16 for information on this manual.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1662
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1663 Note that Emacs 20.3 introduced a better (`extended') format for menu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1664 items, described in the NEWS file and the Lisp Manual. The "easymenu"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1665 package provides support for defining menus conveniently with some
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1666 portability amongst Emacs versions.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1667
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1668 65: How do I delete menus and menu options?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1669
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1670 The simplest way to remove a menu is to set its keymap to nil. For
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1671 example, to delete the "Words" menu (from question 64), use:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1672
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1673 (define-key global-map [menu-bar words] nil)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1674
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1675 Similarly, removing a menu option requires redefining a keymap entry to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1676 nil. For example, to delete the "Forward word" menu option from the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1677 "Edit" menu (we added it in question 64), use:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1678
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1679 (define-key global-map [menu-bar edit forward] nil)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1680
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1681 66: How do I turn on syntax highlighting?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1682
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1683 Font-lock mode is the standard way to have Emacs perform syntax
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1684 highlighting. With font-lock mode invoked, different types of text will
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1685 appear in different colors. For instance, if you turn on font-lock in a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1686 programming mode, variables will appear in one face, keywords in a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1687 second, and comments in a third.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1688
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1689 Earlier versions of Emacs supported hilit19, a similar package. Use of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1690 hilit19 is now considered non-standard, although hilit19.el comes with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1691 the stock Emacs distribution. It is no longer maintained.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1692
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1693 To turn font-lock mode on within an existing buffer, use "M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1694 font-lock-mode RET".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1695
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1696 To automatically invoke font-lock mode when a particular major mode is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1697 invoked, set the major mode's hook or define font-lock-global-modes as a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1698 list with the mode name as an element. For example, to fontify all
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1699 c-mode buffers, add the following to your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1700
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1701 (add-hook 'c-mode-hook 'turn-on-font-lock)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1702
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1703 To automatically invoke font-lock mode for all major modes, you can turn
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1704 on global-font-lock mode by including the following line in your .emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1705 file (or use Custom):
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1706
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1707 (global-font-lock-mode 1)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1708
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1709 This instructs Emacs to turn on font-lock mode in those buffers for which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1710 a font-lock mode definition has been provided (in the variable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1711 font-lock-global-modes or via the variable font-lock-defaults-alist). If
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1712 you edit a file in pie-ala-mode, and no font-lock definitions have been
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1713 provided for pie-ala files, then the above setting will have no effect on
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1714 that particular buffer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1715
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1716 Highlighting with font-lock mode can take quite a while, and thus
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1717 different levels of decoration are available, from slight to gaudy. To
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1718 control how decorated your buffers should become, set the value of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1719 font-lock-maximum-decoration in your .emacs file, with a nil value
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1720 indicating default (usually minimum) decoration, and a t value indicating
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1721 the maximum decoration. For the gaudiest possible look, then, include
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1722 the line
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1723
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1724 (setq font-lock-maximum-decoration t)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1725
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1726 in your .emacs file. You can also set this variable such that different
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1727 modes are highlighted in a different ways; for more information, see the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1728 documentation for font-lock-maximum-decoration with "C-h v" (or "M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1729 describe-variable RET").
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1730
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1731 You might also want to investigate fast-lock-mode and lazy-lock-mode,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1732 versions of font-lock-mode that speed up highlighting. The advantage of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1733 lazy-lock-mode is that it only fontifies buffers when certain conditions
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1734 are met, such as after a certain amount of idle time, or after you have
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1735 finished scrolling through text. See the documentation for
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1736 lazy-lock-mode by typing C-h f lazy-lock-mode ("M-x describe-function RET
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1737 lazy-lock-mode RET").
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1738
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1739 Also see the documentation for the function font-lock-mode, available by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1740 typing C-h f font-lock-mode ("M-x describe-function RET font-lock-mode
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1741 RET").
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1742
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1743 For more information on font-lock mode, particularly adding new patterns,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1744 see the Lisp Reference Manual and the commentary in the source
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1745 font-lock.el, which you can find in Emacs 20 (if it is installed) using,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1746 say, M-x find-function font-lock-mode.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1747
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1748 To print buffers with the faces (i.e., colors and fonts) intact, use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1749 "M-x ps-print-buffer-with-faces" or "M-x ps-print-region-with-faces".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1750
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1751 67: How can I force Emacs to scroll only one line when I move past the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1752 bottom of the screen?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1753
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1754 Place the following Lisp form in your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1755
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1756 (setq scroll-step 1)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1757
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1758 Also see "Scrolling" in the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1759
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1760 68: How can I replace highlighted text with what I type?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1761
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1762 Use delete-selection mode, which you can start automatically by placing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1763 the following Lisp form in your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1764
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1765 (delete-selection-mode t)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1766
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1767 According to the documentation string for delete-selection mode (which
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1768 you can read using M-x describe-function RET delete-selection-mode RET):
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1769
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1770 When ON, typed text replaces the selection if the selection is active.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1771 When OFF, typed text is just inserted at point.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1772
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1773 This mode also allows you to delete (not kill) the highlighted region by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1774 pressing DEL.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1775
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
1776 69: How can I edit MS-DOS-style text files using Emacs?
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1777
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1778 As of Emacs 20, detection and handling of MS-DOS (and Windows) files is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1779 performed transparently. You can open an MS-DOS file on a Unix system
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1780 (and vice versa), edit it, and save it without having to worry about the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1781 file format. To save it with a different end-of-line convention use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1782 C-x RET c to specify a new coding system such as undecided-unix.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1783
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1784 When editing an MS-DOS style file, a backslash (\) will appear in the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1785 mode line.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1786
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1787 You can avoid translation of the end-of-line conventions either by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1788 visiting a file using M-x find-file-literally or by setting the variable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1789 inhibit-eol-conversion to t.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1790
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1791 If you are running an earlier version of Emacs, get crypt++ from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1792 ftp://ftp.cs.umb.edu/pub/misc/crypt++.el. Among other things, crypt++
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1793 transparently modifies MS-DOS files as they are loaded and saved,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1794 allowing you to ignore the different conventions that Unix and MS-DOS
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1795 have for delineating the end of a line.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1796
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1797 70: How can I tell Emacs to fill paragraphs with a single space after
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1798 each period?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1799
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1800 Ulrich Mueller <ulm@vsnhd1.cern.ch> suggests adding the following two
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1801 lines to your .emacs file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1802
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1803 (setq sentence-end "[.?!][]\"')}]*\\($\\|[ \t]\\)[ \t\n]*")
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1804 (setq sentence-end-double-space nil)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1805
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1806 See "Sentences" in the online manual.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1807
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1808
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1809 Bugs/Problems
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1810
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1811 71: Does Emacs have problems with files larger than 8 megabytes?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1812
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1813 Old versions (i.e., anything before 19.29) of Emacs had problems editing
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1814 files larger than 8 megabytes. As of version 19.29, the maximum buffer
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1815 size is at least 2^27-1, or 134,217,727 bytes.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1816
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1817 If you are using an older version of Emacs and cannot upgrade, you will
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1818 have to recompile. Leonard N. Zubkoff <lnz@lucid.com> suggests putting
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1819 the following two lines in src/config.h before compiling Emacs to allow
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1820 for 26-bit integers and pointers (and thus file sizes of up to 33,554,431
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1821 bytes):
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1822
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1823 #define VALBITS 26
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1824 #define GCTYPEBITS 5
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1825
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1826 WARNING: This method may result in "ILLEGAL DATATYPE" and other random
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1827 errors on some machines.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1828
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1829 David Gillespie <daveg@csvax.cs.caltech.edu> explains how this problems
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1830 crops up; while his numbers are true only for pre-19.29 versions of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1831 Emacs, the theory remains the same with current versions.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1832
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1833 Emacs is largely written in a dialect of Lisp; Lisp is a freely-typed
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1834 language in the sense that you can put any value of any type into any
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1835 variable, or return it from a function, and so on. So each value must
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1836 carry a "tag" along with it identifying what kind of thing it is, e.g.,
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1837 integer, pointer to a list, pointer to an editing buffer, and so on.
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1838 Emacs uses standard 32-bit integers for data objects, taking the top 8
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1839 bits for the tag and the bottom 24 bits for the value. So integers
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1840 (and pointers) are somewhat restricted compared to true C integers and
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1841 pointers.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1842
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1843 72: How do I get rid of ^M or echoed commands in my shell buffer?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1844
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1845 Try typing "M-x shell-strip-ctrl-m RET" while in shell-mode to make them
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1846 go away. You might add this function to comint-output-filter-functions:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1847
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1848 (add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1849
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1850 If that doesn't work, you have several options:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1851
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1852 For tcsh, put this in your .cshrc (or .tcshrc) file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1853
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1854 if ($?EMACS) then
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1855 if ("$EMACS" == t) then
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1856 if ($?tcsh) unset edit
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1857 stty nl
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1858 endif
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1859 endif
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1860
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1861 Or put this in your .emacs_tcsh file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1862
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1863 unset edit
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1864 stty nl
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1865
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1866 Alternatively, use csh in your shell buffers instead of tcsh. One way
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1867 is:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1868
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1869 (setq explicit-shell-file-name "/bin/csh")
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1870
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1871 and another is to do this in your .cshrc (or .tcshrc) file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1872
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1873 setenv ESHELL /bin/csh
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1874
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1875 (You must start Emacs over again with the environment variable properly
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1876 set for this to take effect.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1877
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1878 You can also set the ESHELL environment variable in Emacs Lisp with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1879 the following Lisp form,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1880
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1881 (setenv "ESHELL" "/bin/csh")
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1882
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1883 On a related note: If your shell is echoing your input line in the shell
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1884 buffer, you might want to try the following command in your shell
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1885 start-up file:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1886
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1887 stty -icrnl -onlcr -echo susp ^Z
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1888
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1889 73: Why do I get "Process shell exited abnormally with code 1"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1890
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1891 The most likely reason for this message is that the "env" program is not
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1892 properly installed. Compile this program for your architecture, and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1893 install it with a+x permission in the architecture-dependent Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1894 program directory. (You can find what this directory is at your site by
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1895 inspecting the value of the variable exec-directory by typing "C-h v
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1896 exec-directory RET".)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1897
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1898 You should also check for other programs named "env" in your path (e.g.,
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1899 SunOS has a program named /usr/bin/env). We don't understand why this
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1900 can cause a failure and don't know a general solution for working around
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1901 the problem in this case.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1902
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1903 It has been reported that this sometimes happened when Emacs was started
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1904 as an X client from an xterm window (i.e., had a controlling tty) but the
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1905 xterm was later terminated.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1906
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1907 See also etc/PROBLEMS for other possible causes of this message.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1908
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1909 74: Where is the termcap/terminfo entry for terminal type "emacs"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1910
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1911 The termcap entry for terminal type "emacs" is ordinarily put in the
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1912 TERMCAP environment variable of subshells. It may help in certain
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1913 situations (e.g., using rlogin from shell buffer) to add an entry for
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1914 "emacs" to the system-wide termcap file. Here is a correct termcap entry
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1915 for "emacs":
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1916
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1917 emacs:tc=unknown:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1918
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1919 To make a terminfo entry for "emacs", use "tic" or "captoinfo." You need
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1920 to generate /usr/lib/terminfo/e/emacs. It may work to simply copy
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1921 /usr/lib/terminfo/d/dumb to /usr/lib/terminfo/e/emacs.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1922
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1923 Having a termcap/terminfo entry will not enable the use of full screen
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1924 programs in shell buffers. Use M-x terminal-emulator for that instead.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1925
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1926 A workaround to the problem of missing termcap/terminfo entries is to
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1927 change terminal type "emacs" to type "dumb" or "unknown" in your shell
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1928 start up file. "csh" users could put this in their .cshrc files:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1929
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1930 if ("$term" == emacs) set term=dumb
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1931
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1932 75: Why does Emacs spontaneously start displaying "I-search:" and beeping?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1933
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1934 Your terminal (or something between your terminal and the computer) is
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1935 sending C-s and C-q for flow control, and Emacs is receiving these
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1936 characters and interpreting them as commands. (The C-s character
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1937 normally invokes the isearch-forward command.) For possible solutions,
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1938 see question 121.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1939
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1940 76: Why can't Emacs talk to certain hosts (or certain hostnames)?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1941
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1942 The problem may be that Emacs is linked with a wimpier version of
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1943 gethostbyname than the rest of the programs on the machine. This is
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1944 often manifested as a message on startup of "X server not responding.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1945 Check your DISPLAY environment variable." or a message of "Unknown host"
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1946 from open-network-stream.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1947
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1948 On a Sun, this may be because Emacs had to be linked with the static C
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1949 library. The version of gethostbyname in the static C library may only
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1950 look in /etc/hosts and the NIS (YP) maps, while the version in the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1951 dynamic C library may be smart enough to check DNS in addition to or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1952 instead of NIS. On a Motorola Delta running System V R3.6, the version
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1953 of gethostbyname in the standard library works, but the one that works
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1954 with NIS doesn't (the one you get with -linet). Other operating systems
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1955 have similar problems.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1956
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1957 Try these options:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1958
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1959 * Explicitly add the host you want to communicate with to /etc/hosts.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1960
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1961 * Relink Emacs with this line in src/config.h:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1962
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1963 #define LIBS_SYSTEM -lresolv
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1964
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1965 * Replace gethostbyname and friends in libc.a with more useful versions
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1966 such as the ones in libresolv.a. Then relink Emacs.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1967
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1968 * If you are actually running NIS, make sure that "ypbind" is properly
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
1969 told to do DNS lookups with the correct command line switch.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1970
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1971 77: Why does Emacs say "Error in init file"?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1972
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1973 An error occurred while loading either your .emacs file or the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1974 system-wide lisp/default.el file. For information on how to debug your
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1975 .emacs file, see question 27.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1976
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1977 It may be the case that you need to load some package first, or use a
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1978 hook that will be evaluated after the package is loaded. A common case
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1979 of this is explained in question 117.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1980
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1981 78: Why does Emacs ignore my X resources (my .Xdefaults file)?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1982
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1983 As of version 19, Emacs searches for X resources in the files specified
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1984 by the XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1985 variables, emulating the functionality provided by programs written using
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1986 Xt.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1987
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1988 XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1989 separated by colons; XAPPLRESDIR should be a list of directory names
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1990 separated by colons.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1991
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1992 Emacs searches for X resources
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1993
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
1994 + specified on the command line, with the "-xrm RESOURCESTRING"
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1995 option,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1996 + then in the value of the XENVIRONMENT environment variable,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1997 - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1998 exists
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
1999 (where HOSTNAME is the hostname of the machine Emacs is running on),
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2000 + then in the screen-specific and server-wide resource properties
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2001 provided by the server,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2002 - or if those properties are unset, in the file named ~/.Xdefaults
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2003 if it exists,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2004 + then in the files listed in XUSERFILESEARCHPATH,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2005 - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2006 (where LANG is the value of the LANG environment variable), if
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2007 the LANG environment variable is set,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2008 - or in files named Emacs in the directories listed in XAPPLRESDIR
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2009 - or in ~/LANG/Emacs (if the LANG environment variable is set),
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2010 - or in ~/Emacs,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2011 + then in the files listed in XFILESEARCHPATH.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2012
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2013 79: Why does Emacs take 20 seconds to visit a file?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2014
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2015 Old versions of Emacs (i.e., versions before Emacs 20.x) often
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2016 encountered this when the master lock file, "!!!SuperLock!!!" has been
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2017 left in the lock directory somehow. Delete it.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2018
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2019 Mark Meuer <meuer@geom.umn.edu> says that NeXT NFS has a bug where an
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2020 exclusive create succeeds but returns an error status. This can cause
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2021 the same problem. Since Emacs's file locking doesn't work over NFS
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2022 anyway, the best solution is to recompile Emacs with CLASH_DETECTION
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2023 undefined.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2024
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2025 80: How do I edit a file with a `$' in its name?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2026
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2027 When entering a filename in the minibuffer, Emacs will attempt to expand
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2028 a `$' followed by a word as an environment variable. To suppress this
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2029 behavior, type "$$" instead.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2030
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2031 81: Why does shell mode lose track of the shell's current directory?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2032
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2033 Emacs has no way of knowing when the shell actually changes its
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2034 directory. This is an intrinsic limitation of Unix. So it tries to
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2035 guess by recognizing "cd" commands. If you type "cd" followed by a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2036 directory name with a variable reference ("cd $HOME/bin") or with a shell
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2037 metacharacter ("cd ../lib*"), Emacs will fail to correctly guess the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2038 shell's new current directory. A huge variety of fixes and enhancements
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2039 to shell mode for this problem have been written to handle this problem.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2040 Check the Lisp Code Directory (see question 89).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2041
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2042 You can tell Emacs the shell's current directory with the command "M-x
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2043 dirs".
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2044
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2045 82: Are there any security risks in Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2046
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2047 * the "movemail" incident (No, this is not a risk.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2048
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2049 In his book "The Cuckoo's Egg," Cliff Stoll describes this in chapter
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2050 4. The site at LBL had installed the "etc/movemail" program setuid
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2051 root. (As of version 19, movemail is in your architecture-specific
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2052 directory; type "C-h v exec-directory RET" to see what it is.) Since
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2053 "movemail" had not been designed for this situation, a security hole
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2054 was created and users could get root privileges.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2055
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2056 "movemail" has since been changed so that this security hole will not
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2057 exist, even if it is installed setuid root. However, movemail no
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2058 longer needs to be installed setuid root, which should eliminate this
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2059 particular risk.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2060
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2061 We have heard unverified reports that the 1988 Internet worm took
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2062 advantage of this configuration problem.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2063
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2064 * the file-local-variable feature (Yes, a risk, but easy to change.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2065
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2066 There is an Emacs feature that allows the setting of local values for
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2067 variables when editing a file by including specially formatted text
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2068 near the end of the file. This feature also includes the ability to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2069 have arbitrary Emacs Lisp code evaluated when the file is visited.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2070 Obviously, there is a potential for Trojan horses to exploit this
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2071 feature.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2072
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2073 Emacs 18 allowed this feature by default; users could disable it by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2074 setting the variable inhibit-local-variables to a non-nil value.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2075
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2076 As of Emacs 19, Emacs has a list of local variables that create a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2077 security risk. If a file tries to set one of them, it asks the user to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2078 confirm whether the variables should be set. You can also tell Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2079 whether to allow the evaluation of Emacs Lisp code found at the bottom
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2080 of files by setting the variable enable-local-eval.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2081
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2082 For more information, see "File Variables" in the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2083
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2084 * synthetic X events (Yes, a risk; use MIT-MAGIC-COOKIE-1 or better.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2085
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2086 Emacs accepts synthetic X events generated by the SendEvent request as
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2087 though they were regular events. As a result, if you are using the
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2088 trivial host-based authentication, other users who can open X
3591
507f64624555 Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents: 2703
diff changeset
2089 connections to your X workstation can make your Emacs process do
507f64624555 Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents: 2703
diff changeset
2090 anything, including run other processes with your privileges.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2091
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2092 The only fix for this is to prevent other users from being able to open
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2093 X connections. The standard way to prevent this is to use a real
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2094 authentication mechanism, such as MIT-MAGIC-COOKIE-1. If using the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2095 "xauth" program has any effect, then you are probably using
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2096 MIT-MAGIC-COOKIE-1. Your site may be using a superior authentication
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2097 method; ask your system administrator.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2098
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2099 If real authentication is not a possibility, you may be satisfied by
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2100 just allowing hosts access for brief intervals while you start your X
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2101 programs, then removing the access. This reduces the risk somewhat by
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2102 narrowing the time window when hostile users would have access, but
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2103 DOES NOT ELIMINATE THE RISK.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2104
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2105 On most computers running Unix and X Windows, you enable and disable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2106 access using the "xhost" command. To allow all hosts access to your X
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2107 server, use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2108
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2109 xhost +
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2110
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2111 at the shell prompt, which (on an HP machine, at least) produces the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2112 following message:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2113
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2114 access control disabled, clients can connect from any host
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2115
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2116 To deny all hosts access to your X server (except those explicitly
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2117 allowed by name), use
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2118
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2119 xhost -
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2120
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2121 On the test HP computer, this command generated the following message:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2122
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2123 access control enabled, only authorized clients can connect
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2124
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2125 83: Dired says, "no file on this line" when I try to do something.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2126
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2127 Chances are you're using a localized version of Unix that doesn't
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2128 use US date format in dired listings. You can check this by looking
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2129 at dired listings or by typing `ls -l' to a shell and looking at the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2130 dates that come out.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2131
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2132 Dired uses a regular expression to find the beginning of a file
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2133 name. In a long Unix-style directory listing ("ls -l"), the file
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2134 name starts after the date. The regexp has thus been written to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2135 look for the date, the format of which can vary on non-US systems.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2136
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2137 There are two approaches to solving this. The first one involves
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2138 setting things up so that "ls -l" outputs US date format. This can
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2139 be done by setting the locale. See your OS manual for more
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2140 information.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2141
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2142 The second approach involves changing the regular expression used by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2143 dired, dired-move-to-filename-regexp.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2144
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2145
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2146 Difficulties Building/Installing/Porting Emacs
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2147
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2148 84: How do I install Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2149
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2150 This answer is meant for users of Unix and Unix-like systems. Users of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2151 other operating systems should see the series of questions beginning with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2152 question 94, which describe where to get non-Unix source and binaries.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2153 These packages should come with installation instructions.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2154
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2155 For Unix and Unix-like systems, the easiest way is often to compile it
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2156 from scratch. You will need:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2157
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2158 * Emacs sources. See question 92 for a list of ftp sites that make them
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2159 available. On gnudist.gnu.org, the main GNU distribution site, sources are
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2160 available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2161
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2162 ftp://gnudist.gnu.org/pub/gnu/emacs-20.4.tar.gz
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2163
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2164 The above will obviously change as new versions of Emacs come out. For
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2165 instance, when Emacs 20.5 is released, it will most probably be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2166 available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2167
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2168 ftp://gnudist.gnu.org/pub/gnu/emacs-20.5.tar.gz
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2169
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2170 Again, you should use one of the mirror sites in question 92 (and
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2171 adjust the URL accordingly) so as to reduce load on gnudist.gnu.org.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2172
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2173 * Gzip, the GNU compression utility. You can get gzip via anonymous ftp
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2174 at mirrors of gnudist.gnu.org sites; it should compile and install without
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2175 much trouble on most systems. Once you have retrieved the Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2176 sources, you will probably be able to uncompress them with the command
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2177
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2178 gunzip --verbose emacs-20.4.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2179
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2180 changing the Emacs version (20.4), as necessary. Once gunzip has
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2181 finished doing its job, a file by the name of "emacs-20.4.tar" should
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2182 be in your build directory.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2183
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2184 * Tar, the "tape archiving" program, which moves multiple files into and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2185 out of archive files, or "tarfiles." All of the files comprising the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2186 Emacs source come in a single tarfile, and must be extracted using tar
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2187 before you can build Emacs. Typically, the extraction command would
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2188 look like
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2189
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2190 tar -xvvf emacs-20.4.tar
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2191
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2192 The `x' indicates that we want to extract files from this tarfile, the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2193 two `v's force verbose output, and the `f' tells tar to use a disk
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2194 file, rather than one on tape.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2195
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2196 If you're using GNU tar (available at mirrors of gnudist.gnu.org), you can
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2197 combine this step and the previous one by using the command
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2198
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2199 tar -zxvvf emacs-20.4.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2200
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2201 The additional `z' at the beginning of the options list tells GNU tar
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2202 to uncompress the file with gunzip before extracting the tarfile's
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2203 components.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2204
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2205 At this point, the Emacs sources (all 25+ megabytes of them) should be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2206 sitting in a directory called "emacs-20.4". On most common Unix and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2207 Unix-like systems, you should be able to compile Emacs (with X Windows
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2208 support) with the following commands:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2209
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2210 cd emacs-20.4 [ change directory to emacs-20.4 ]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2211 ./configure [ configure Emacs for your particular system ]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2212 make [ use Makefile to build components, then Emacs ]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2213
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2214 If the "make" completes successfully, the odds are fairly good that the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2215 build has gone well. (See question 86 if you weren't successful.)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2216
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2217 To install Emacs in its default directories of /usr/local/bin (binaries),
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2218 /usr/local/share/emacs/20.xx (Lisp code and support files),
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2219 /usr/local/libexec/CONFIGURATION/emacs/VERSION (executable files to be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2220 run by Emacs rather than users), /usr/local/man/man1 (man pages) and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2221 /usr/local/info (Info documentation), become the super-user and type
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2222
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2223 make install
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2224
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2225 Note that "make install" will overwrite /usr/local/bin/emacs and any
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2226 Emacs Info files that might be in /usr/local/info.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2227
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2228 Much more verbose instructions (with many more hints and suggestions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2229 come with the Emacs sources, in the file "INSTALL".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2230
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2231 85: How do I update Emacs to the latest version?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2232
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2233 Follow the instructions in question 84.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2234
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2235 Emacs places nearly everything in version-specific directories (e.g.,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2236 /usr/local/share/emacs/20.4), so the only files that can be overwritten
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2237 when installing a new release are /usr/local/bin/emacs and the Emacs Info
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2238 documentation in /usr/local/info. Back up these files before you install
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2239 a new release, and you shouldn't have too much trouble.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2240
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2241 86: What should I do if I have trouble building Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2242
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2243 First look in the file PROBLEMS (in the top-level directory when you
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2244 unpack the Emacs source) to see if there is already a solution for your
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2245 problem. Next, look for other questions in this FAQ that have to do with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2246 Emacs installation and compilation problems.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2247
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2248 If you'd like to have someone look at your problem and help solve it, see
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2249 question 21.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2250
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2251 If you don't find a solution, then report your problem via e-mail to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2252 bug-gnu-emacs@gnu.org. Please do not post it to gnu.emacs.help
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2253 or e-mail it to help-gnu-emacs@gnu.org. For further guidelines,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2254 see question 8 and question 10.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2255
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2256 87: Why does linking Emacs with -lX11 fail?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2257
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2258 Emacs needs to be linked with the static version of the X11 library,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2259 libX11.a. This may be missing.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2260
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2261 Under OpenWindows, you may need to use "add_services" to add the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2262 "OpenWindows Programmers" optional software category from the CD-ROM.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2263
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2264 Under HP-UX 8.0, you may need to run "update" again to load the X11-PRG
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2265 "fileset". This may be missing even if you specified "all filesets" the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2266 first time. If libcurses.a is missing, you may need to load the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2267 "Berkeley Development Option."
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2268
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2269 David Zuhn <zoo@armadillo.com> says that MIT X builds shared libraries by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2270 default, and only shared libraries, on those platforms that support them.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2271 These shared libraries can't be used when undumping temacs (the last
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2272 stage of the Emacs build process). To get regular libraries in addition
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2273 to shared libraries, add this to site.cf:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2274
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2275 #define ForceNormalLib YES
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2276
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2277 Other systems may have similar problems. You can always define
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2278 CANNOT_DUMP and link with the shared libraries instead.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2279
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2280 To get the Xmenu stuff to work, you need to find a copy of MIT's
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2281 liboldX.a.
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2282
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2283
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2284 Finding/Getting Emacs and Related Packages
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2285
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2286 88: Where can I get Emacs on the net (or by snail mail)?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2287
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2288 Look in the files etc/DISTRIB and etc/FTP for information on nearby
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2289 archive sites and etc/ORDERS for mail orders. If you don't already have
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2290 Emacs, see question 20 for how to get these files.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2291
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2292 See question 84 for information on how to obtain and build the latest
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2293 version of Emacs, and question 92 for a list of archive sites that make
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2294 GNU software available.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2295
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2296 89: How do I find a Emacs Lisp package that does XXX?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2297
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2298 First of all, you should check to make sure that the package isn't
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2299 already available. For example, typing "M-x apropos RET wordstar RET"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2300 lists all functions and variables containing the string "wordstar".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2301
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2302 It is also possible that the package is on your system, but has not been
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2303 loaded. To see which packages are available for loading, look through your
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2304 computer's lisp directory (see question 4) or use the Finder (C-h p) to
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2305 search under keywords. The Lisp source to most packages contains a
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2306 short description of how they should be loaded, invoked, and configured --
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2307 so before you use or modify a Lisp package, see if the author has provided
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2308 any hints in the source code.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2309
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2310 If a package does not come with Emacs, check the Lisp Code Directory,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2311 maintained by Dave Brennan <brennan@hal.com>. The directory is contained
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2312 in the file LCD-datafile.Z, available from the Emacs Lisp Archive (see
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2313 question 90), and is accessed using the "lispdir" package, available from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2314 the same site. Note that lispdir.el requires crypt++, which you can grab
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2315 from the Emacs Lisp Archive's "misc" subdirectory when you get
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2316 lispdir.el.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2317
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2318 Once you have installed lispdir.el and LCD-datafile, you can use "M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2319 lisp-dir-apropos" to search the listing. For example, "M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2320 lisp-dir-apropos RET ange-ftp RET" produces this output:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2321
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2322 GNU Emacs Lisp Code Directory Apropos -- "ange-ftp"
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2323 "~/" refers to ftp.cs.ohio-state.edu:pub/gnu/emacs/elisp-archive/
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2324
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2325 ange-ftp (4.18) 15-Jul-1992
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2326 Andy Norman, <ange@hplb.hpl.hp.com>
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2327 ~/packages/ange-ftp.tar.Z
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2328 transparent FTP Support for GNU Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2329 auto-save (1.19) 01-May-1992
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2330 Sebastian Kremer, <sk@thp.uni-koeln.de>
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2331 ~/misc/auto-save.el.Z
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2332 Safer autosaving with support for ange-ftp and /tmp
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2333 ftp-quik (1.0) 28-Jul-1993
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2334 Terrence Brannon, <tb06@pl122f.eecs.lehigh.edu>
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2335 ~/modes/ftp-quik.el.Z
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2336 Quik access to dired'ing of ange-ftp and normal paths
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2337
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2338 You actually don't need the directory file LCD-datafile if your computer
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2339 is on the Internet, since the latest version is retrieved automatically
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2340 the first time you type "M-x lisp-dir-apropos" in a particular Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2341 session. If you would prefer to use a local copy of LCD-datafile, be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2342 sure to set the variable lisp-code-directory at the top of the lispdir.el
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2343 source code.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2344
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2345 A searchable version of the LCD is also available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2346
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2347 http://www.cs.indiana.edu/LCD/cover.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2348
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2349 90: Where can I get Emacs Lisp packages that don't come with Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2350
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2351 First, check the Lisp Code Directory to find the name of the package you
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2352 are looking for (see question 89). Next, check local archives and the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2353 Emacs Lisp Archive to find a copy of the relevant files. If you still
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2354 haven't found it, you can send e-mail to the author asking for a copy.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2355 If you find Emacs Lisp code that doesn't appear in the LCD, please submit
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2356 a copy to the LCD (see question 91).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2357
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2358 You can access the Emacs Lisp Archive at the following sites:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2359
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2360 ftp://ftp.cs.ohio-state.edu/pub/gnu/emacs/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2361 ftp://calypso-2.oit.unc.edu/pub/gnu/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2362 ftp://faui43.informatik.uni-erlangen.de/pub/gnu/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2363 ftp://ftp.cs.umn.edu/pub/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2364 ftp://ftp.diku.dk/pub/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2365 ftp://ftp.uni-mainz.de/pub/gnu/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2366 ftp://ftp.uu.net/packages/gnu/emacs-lisp/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2367 ftp://gatekeeper.dec.com/pub/GNU/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2368 ftp://nic.funet.fi/pub/gnu/emacs/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2369 ftp://nic.switch.ch/mirror/elisp-archive/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2370 ftp://quepasa.cs.tu-berlin.de/pub/gnu/elisp/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2371 ftp://src.doc.ic.ac.uk/gnu/EmacsBits/elisp-archive/
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2372
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2373 Retrieve and read the file README first.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2374
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2375 NOTE: * The archive maintainers do not have time to answer individual
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2376 requests for packages or the list of packages in the archive. If
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2377 you cannot use FTP or UUCP to access the archive yourself, try to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2378 find a friend who can, but please don't ask the maintainers.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2379
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2380 * Any files with names ending in ".Z", ".z", or ".gz" are
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2381 compressed, so you should use "binary" mode in FTP to retrieve
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2382 them. You should also use binary mode whenever you retrieve any
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2383 files with names ending in ".elc".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2384
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2385 Note that the archive is apparently not being maintained at the time of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2386 writing; a volunteer to take on the task would be welcome.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2387
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2388 Packages which have been posted to gnu.emacs.sources should be locatable
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2389 via a service like Dejanews.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2390
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2391 91: How do I submit code to the Emacs Lisp Archive?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2392
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2393 Guidelines and procedures for submission to the archive can be found in
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2394 the file GUIDELINES in the archive directory (see question 90). It
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2395 covers documentation, copyrights, packaging, submission, and the Lisp
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2396 Code Directory Record. Anonymous FTP uploads are not permitted.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2397 Instead, all submissions are mailed to elisp-archive@cis.ohio-state.edu.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2398 The lispdir.el package has a function named submit-lcd-entry which will
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2399 help you with this.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2400
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2401 See question 90 regarding non-maintenance of the archive.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2402
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2403 92: Where can I get other up-to-date GNU stuff?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2404
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2405 The most up-to-date official GNU software is normally kept on
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2406 gnudist.gnu.org and is available at
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2407
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2408 ftp://gnudist.gnu.org/pub/gnu
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2409
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2410 Read the files etc/DISTRIB and etc/FTP for more information.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2411
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2412 The following sites are all mirror images of the GNU distribution area:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2413
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2414 ASIA: ftp://cair.kaist.ac.kr/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2415 ftp://ftp.nectec.or.th/pub/mirrors/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2416 ftp://utsun.s.u-tokyo.ac.jp/ftpsync/prep,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2417 ftp://ftp.cs.titech.ac.jp/pub/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2418
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2419 AUSTRALIA: ftp://archie.au/gnu (archie.oz or archie.oz.au for ACSnet)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2420
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2421 AFRICA: ftp://ftp.sun.ac.za/pub/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2422
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2423 EUROPE: ftp://ftp.denet.dk/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2424 ftp://ftp.funet.fi/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2425 ftp://ftp.informatik.rwth-aachen.de/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2426 ftp://ftp.informatik.tu-muenchen.de/pub/comp/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2427 ftp://ftp.luth.se/pub/unix/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2428 ftp://ftp.stacken.kth.se/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2429 ftp://ftp.win.tue.nl/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2430 ftp://isy.liu.se/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2431 ftp://nic.switch.ch/mirror/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2432 ftp://archive.eu.net/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2433 ftp://ftp.eunet.ch/software/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2434 ftp://ftp.ieunet.ie/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2435 ftp://ftp.mcc.ac.uk/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2436 ftp://ftp.sunet.se:/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2437 ftp://ftp.univ-lyon1.fr/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2438 ftp://irisa.irisa.fr/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2439 ftp://src.doc.ic.ac.uk/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2440 ftp://unix.hensa.ac.uk/pub/uunet/systems/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2441
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2442 SOUTH AMERICA: ftp.unicamp.br:/pub/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2443
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2444 WESTERN CANADA: ftp.cs.ubc.ca:/mirror2/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2445
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2446 USA: ftp://col.hp.com/mirrors/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2447 ftp://f.ms.uky.edu/pub3/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2448 ftp://ftp.cs.columbia.edu/archives/gnu/prep,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2449 ftp://ftp.digex.net/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2450 ftp://ftp.hawaii.edu/mirrors/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2451 ftp://ftp.kpc.com/pub/mirror/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2452 ftp://ftp.uu.net/systems/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2453 ftp://gatekeeper.dec.com/pub/GNU,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2454 ftp://jaguar.utah.edu/gnustuff,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2455 ftp://labrea.stanford.edu/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2456 ftp://mrcnext.cso.uiuc.edu/pub/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2457 ftp://vixen.cso.uiuc.edu/gnu,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2458 ftp://wuarchive.wustl.edu/systems/gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2459
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2460 The directory at ftp.uu.net is a mirror of gnudist.gnu.org except that files
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2461 larger than one megabyte are split into multiple parts. If you have
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2462 trouble transferring large files, you should try that site. A file
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2463 normally named "XXX" is split into files XXX-split/part[0-9][0-9], and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2464 there will be a file named XXX-split/README which contains the list of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2465 parts (especially helpful when FTP-ing by e-mail), their checksums, and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2466 reassembly instructions.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2467
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2468 93: What is the difference between Emacs and XEmacs (formerly "Lucid
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2469 Emacs")?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2470
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2471 XEmacs is a modified version of GNU Emacs.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2472
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2473 This FAQ refers to the latest version to be distributed by the FSF
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2474 as "Emacs," partly because the XEmacs maintainers now refer to their
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2475 product using the "XEmacs" name, and partly because there isn't any
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2476 accurate way to differentiate between the two without getting mired
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2477 in paragraphs of legalese and history.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2478
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2479 XEmacs, which began life as Lucid Emacs, is based on an early version of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2480 Emacs 19 and Epoch, an X-aware version of Emacs 18.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2481
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2482 Emacs (i.e., the version distributed by the FSF) has a larger installed
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2483 base and now always contains the MULE multilingual facilities. XEmacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2484 can do some clever tricks with X Windows, such as putting arbitrary
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2485 graphics in a buffer; similar facilities have been implemented for Emacs,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2486 which will be integrated after version 20.4. Emacs and XEmacs each come
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2487 with some Lisp packages that are lacking or more up-to-date in the other;
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2488 RMS says that the FSF would include more packages that come with XEmacs,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2489 but that the XEmacs maintainers don't always keep track of the authors of
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2490 contributed code, which makes it impossible for the FSF to have certain
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2491 legal papers signed. (Without these legal papers, the FSF will not
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2492 distribute Lisp packages with Emacs.) The two versions have some
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2493 significant differences at the Lisp programming level.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2494
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2495 94: Where can I get Emacs for my PC running MS-DOS?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2496
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2497 A pre-built binary distribution of Emacs is available from the Simtel
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2498 archives. This version works under MS-DOS and Windows (3.x, 9x, and NT) and
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2499 supports long file names under Windows 9x. More information is available
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2500 from:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2501
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2502 ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/emacs.README
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2503
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2504 And the binary itself is available in the files
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2505
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2506 ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/em1934*.zip
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2507
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2508 where * indicates that you should retrieve all of the files beginning
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2509 with "em1934" and ending with "zip".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2510
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2511 If you prefer to compile Emacs for yourself, you will need a 386 (or
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2512 better) processor, and are running MS-DOS 3.0 or later. According to Eli
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2513 Zaretskii <eliz@is.elta.co.il> and Darrel Hankerson
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2514 <hankedr@dms.auburn.edu>, you will need the following:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2515
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2516 Compiler: djgpp version 1.12 maint 1 or later. Djgpp 2.0 or later is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2517 recommended, since 1.x is being phased out. Djgpp 2 supports
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2518 long filenames under Windows 9x.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2519
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2520 You can get the latest release of djgpp by retrieving
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2521 all of the files in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2522
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2523 ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2524
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2525 Gunzip and tar:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2526
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2527 The easiest way is to use "djtar" which comes with djgpp v2.x,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2528 because it can open gzip'ed tarfiles (i.e., those ending with
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2529 ".tar.gz") in one step. Djtar comes in "djdev201.zip", from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2530 the URL mentioned above.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2531
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2532 Utilities: make, mv, sed, rm.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2533
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2534 All of these utilities are available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2535
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2536 ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2537
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2538 16-bit utilities can be found in GNUish:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2539
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2540 ftp://ftp.simtel.net/pub/simtelnet/gnu/gnuish
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2541
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2542 The files INSTALL and etc/PROBLEMS in the Emacs source contains some
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2543 additional information regarding Emacs under MS-DOS.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2544
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2545 For a list of other MS-DOS implementations of Emacs (and Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2546 look-alikes), consult the list of "Emacs implementations and literature,"
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2547 available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2548
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2549 ftp://rtfm.mit.edu/pub/usenet/comp.emacs/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2550
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2551 Note that while many of these programs look similar to Emacs, they often
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2552 lack certain features, particularly as the Emacs Lisp extension language.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2553
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2554 95: Where can I get Emacs for Microsoft Windows, Windows 9x, or Windows
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2555 NT?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2556
23406
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2557 GNU Emacs has been fully ported to Windows NT and Windows 95/98.
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2558 If you have MSVC 4.0 or greater, then you can compile GNU Emacs
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2559 directly from the source distribution. First read the file
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2560 nt/README, and then the file nt/INSTALL, for step by step
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2561 instructions on how to compile and install GNU Emacs on your system.
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2562
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2563 You can also download precompiled distributions of GNU Emacs from:
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2564
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2565 ftp://ftp.cs.washington.edu/pub/ntemacs
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2566
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2567 If you need the gunzip and tar utilities for unpacking distributions,
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2568 you can download precompiled versions from:
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2569
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2570 ftp://ftp.cs.washington.edu/pub/ntemacs/utilities
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2571
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2572 For more information on configuring your favorite package to run with
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2573 GNU Emacs on Windows NT/95/98, see the following FAQ:
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2574
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2575 http://www.cs.washington.edu/homes/voelker/ntemacs.html
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2576 ftp://ftp.cs.washington.edu/pub/ntemacs/docs/ntemacs.html
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2577
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2578 If you are running Windows 3.11, and if you compile GNU Emacs for MSDOS
37457777218a Update Microsoft Windows entry.
Geoff Voelker <voelker@cs.washington.edu>
parents: 23110
diff changeset
2579 with the tools listed in the previous question, it will run under
14919
b584b8da62cd Update MSDOS info.
Richard M. Stallman <rms@gnu.org>
parents: 12307
diff changeset
2580 Microsoft Windows in a DOS box.
b584b8da62cd Update MSDOS info.
Richard M. Stallman <rms@gnu.org>
parents: 12307
diff changeset
2581
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2582 96: Where can I get Emacs for my PC running OS/2?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2583
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2584 Emacs 19.33 is ported for emx on OS/2 2.0 or 2.1, and is available at:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2585
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2586 ftp://hobbes.nmsu.edu/os2/unix/apps/emacs/v.19.33/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2587
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2588 97: Where can I get Emacs for my Atari ST?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2589
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2590 Roland Schäuble reports that Emacs 18.58 running on plain TOS and MiNT
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2591 is available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2592
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2593 ftp://atari.archive.umich.edu/Editors/Emacs-18-58/1858b-d3.zoo
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2594
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2595 98: Where can I get Emacs for my Amiga?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2596
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2597 The files you need are available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2598
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2599 ftp://ftp.wustl.edu/pub/aminet/util/gnu/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2600
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2601 David Gilbert <dgilbert@gamiga.guelphnet.dweomer.org> has released a beta
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2602 version of Emacs 19.25 for the Amiga. You can get the binary at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2603
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2604 ftp://ftp.wustl.edu/pub/aminet/util/gnu/a2.0bEmacs-bin.lha
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2605
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2606 99: Where can I get Emacs for NeXTSTEP?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2607
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2608 Emacs.app is a NeXTSTEP version of Emacs 19.34 which supports colors,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2609 menus, and multiple frames. You can get it from
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2610
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2611 ftp://next-ftp.peak.org/pub/next/apps/emacs/Emacs_for_NeXTstep.4.20a1.NIHS.b.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2612
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2613 100: Where can I get Emacs for my Apple computer?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2614
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2615
23110
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2616 There used to be a boycott of Apple because of its "look and feel"
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2617 lawsuit. The lawsuit failed, and the boycott is over.
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2618 Currently the GNU project treats Apple like other computer companies.
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2619
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2620 Since the Mac operating system is very different from Unix and GNU,
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2621 support for it would be a big job. And this job would be tangential
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2622 to the GNU project's goals. Meanwhile, we don't have the resources
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2623 to do all we want to do on supporting Emacs for GNU-like systems.
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2624 So if we had to do work on support for the Macintosh, that would
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2625 directly harm the GNU project.
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2626
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2627 Of course, the same is true for MSDOS and Windows NT. We decided to
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2628 incorporate support for those systems because the code was very modular,
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2629 because volunteers not only wrote all the code but also investigate
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2630 all the bugs reported on those systems, and because we hoped that we
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2631 will be able to raise funds for GNU using these versions, and in this
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2632 way these ports will make up for the effort that they took. (We still
0d84817a4973 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 16506
diff changeset
2633 hope so, but it has not happened yet.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2634
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2635 An unofficial port of GNU Emacs 18.59 to the Macintosh is available at a
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2636 number of ftp sites, the home being
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2637
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2638 ftp://ftp.cs.cornell.edu/pub/parmet/Emacs-1.17.sit.bin
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2639
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2640 To the best of our knowledge, Emacs 19 has not been ported to the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2641 Macintosh.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2642
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2643 Apple's forthcoming "OS X" is based largely on NeXTSTEP and OpenStep.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2644 See question 99 for more details about that version.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2645
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2646 101: Where do I get Emacs that runs on VMS under DECwindows?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2647
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2648 Up-to-date information about GNU software (including Emacs) for VMS is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2649 available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2650
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2651 http://vms.gnu.org/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2652
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2653 102: Where can I get modes for Lex, Yacc/Bison, Bourne shell, Csh, C++,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2654 Objective-C, Pascal, Java, and Awk?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2655
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2656 Most of these modes are now available in standard Emacs distribution. To
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2657 get additional modes, look in the Lisp Code Directory (see question 89).
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2658 For C++, if you use lisp-dir-apropos, you must specify the pattern like
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2659 this:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2660
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2661 M-x lisp-dir-apropos RET c\+\+ RET
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2662
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2663 Note that Barry Warsaw's cc-mode now works for C, C++, Objective-C, and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2664 Java code. You can get the latest version from the Emacs Lisp Archive;
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2665 see question 90 for details. A FAQ for cc-mode is available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2666
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2667 http://www.python.org/ftp/emacs/cc-mode.html/Top.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2668
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2669 103: What is the IP address of XXX.YYY.ZZZ?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2670
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2671 If you are on a Unix machine, try using the "nslookup" command, included
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2672 in the Berkeley BIND package. For example, to find the IP address of
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2673 "gnudist.gnu.org", you would type
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2674
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2675 nslookup gnudist.gnu.org
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2676
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2677 Your computer should then provide the IP address of that computer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2678
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2679 If your site's nameserver is deficient, you can use IP addresses to FTP
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2680 files. You can get this information by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2681
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2682 * E-mail:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2683
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2684 To: dns@[134.214.84.25] (to grasp.insa-lyon.fr)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2685 Body: ip XXX.YYY.ZZZ (or "help" for more information
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2686 and options - no quotes)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2687 or:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2688
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2689 To: resolve@[147.31.254.130] (to laverne.cs.widener.edu)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2690 Body: site XXX.YYY.ZZZ
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2691
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2692
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2693 Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2694
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2695 104: VM (View Mail) -- another mail reader within Emacs, with MIME support
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2696
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2697 Author: Kyle Jones <kyle@uunet.uu.net>
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2698 Latest version: 6.62
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2699 Anonymous FTP:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2700 ftp://ftp.uu.net/networking/mail/vm/vm.tar.gz
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2701 Newsgroups and mailing lists:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2702 Informational newsgroup/mailing list:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2703 gnu.emacs.vm.info (newsgroup)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2704 info-vm-request@uunet.uu.net (for subscriptions)
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2705 info-vm@uunet.uu.net (for submissions)
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2706 Bug reports newsgroup/mailing list:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2707 gnu.emacs.vm.bug (newsgroup)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2708 bug-vm-request@uunet.uu.net (for subscriptions)
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2709 bug-vm@uunet.uu.net (for submissions)
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2710 NOTE: VM 6 is not guaranteed to work under Emacs 20 (although many people
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2711 seem to use it without too much trouble). Users of Emacs 20 might prefer
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2712 to use VM 5.97, available from the same FTP site.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2713
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2714 105: SuperCite -- mail and news citation package within Emacs
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2715
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2716 Author: Barry Warsaw <bwarsaw@cen.com>
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2717 Latest version: 3.1 (comes with Emacs 20)
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2718 Anonymous FTP:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2719 ftp://ftp.python.org/pub/emacs/sc3.1.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2720 Mailing list:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2721 supercite-request@merlin.cnri.reston.va.us (for subscriptions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2722 supercite@merlin.cnri.reston.va.us (for submissions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2723 NOTE: Superyank is an old version of SuperCite.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2724
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2725 106: Calc -- poor man's Mathematica within Emacs
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2726
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2727 Author: Dave Gillespie <daveg@csvax.cs.caltech.edu>
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2728 Latest version: 2.02f
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2729 Anonymous FTP:
23905
d36d3bab8291 Incorporate comments from Eli.
Dave Love <fx@gnu.org>
parents: 23872
diff changeset
2730 ftp://gnudist.gnu.org/pub/gnu/calc-2.02f.tar.gz
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2731 NOTE: Unlike Wolfram Research, Dave has never threatened to sue
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2732 anyone for having a program with a similar command language to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2733 Calc. :-)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2734
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2735 107: VIPER -- vi emulation for Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2736
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2737 Since Emacs 19.29, the preferred vi emulation in Emacs is VIPER (M-x
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2738 viper-mode RET), which comes with Emacs. It extends and supersedes VIP
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2739 (including VIP 4.3) and provides vi emulation at several levels, from one
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2740 that closely follows vi to one that departs from vi in several
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2741 significant ways.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2742
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2743 For Emacs 19.28 and earlier, the following version of VIP is generally
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2744 better than the one distributed with Emacs:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2745
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2746 Author: Aamod Sane <sane@cs.uiuc.edu>
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2747 Latest version: 4.3
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2748 Anonymous FTP:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2749 ftp://ftp.cs.ohio-state.edu/pub/gnu/emacs/elisp-archive/modes/vip-mode.tar.Z
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2750
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2751 108: AUC TeX -- enhanced LaTeX mode with debugging facilities
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2752
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2753 Authors: Kresten Krab Thorup <krab@iesd.auc.dk>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2754 and Per Abrahamsen <abraham@iesd.auc.dk>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2755 Latest version: 9.8l
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2756 Anonymous FTP:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2757 ftp://sunsite.auc.dk/packages/auctex/auctex.tar.gz
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2758 Mailing list:
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2759 auc-tex-request@iesd.auc.dk (for subscriptions)
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2760 auc-tex@iesd.auc.dk (for submissions)
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2761 auc-tex_mgr@iesd.auc.dk (auc-tex development team)
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2762 World Wide Web:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2763 http://www.iesd.auc.dk/~amanda/auctex/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2764
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2765 109: BBDB -- personal Info Rolodex integrated with mail/news readers
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2766
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2767 Maintainer: Matt Simmons <simmonmt@acm.org>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2768 Latest released version: 2.00
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2769 Available from:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2770 http://www.netcom.com/~simmonmt/bbdb/index.html
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2771 Mailing lists:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2772 info-bbdb-request@xemacs.org (for subscriptions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2773 info-bbdb@xemacs.org (for submissions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2774 bbdb-announce-request@xemacs.org (to be informed of new releases)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2775
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2776 110: Ispell -- spell checker in C with interface for Emacs
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2777
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2778 Author: Geoff Kuenning <geoff@itcorp.com>
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2779 Latest released version: 3.1.20
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2780 Anonymous FTP:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2781 Master Sites:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2782 ftp://ftp.cs.ucla.edu/pub/ispell/ispell-3.1.20.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2783 Known Mirror Sites:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2784 ftp://ftp.th-darmstadt.de/pub/dicts/ispell/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2785 ftp://ftp.nl.net/pub/textproc/ispell/
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2786 World Wide Web:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2787 http://fmg-www.cs.ucla.edu/geoff/ispell.html
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2788
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2789 NOTE: * Do not ask Geoff to send you the latest version of Ispell.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2790 He does not have free e-mail.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2791
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2792 * This Ispell program is distinct from GNU Ispell 4.0. GNU
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2793 Ispell 4.0 is no longer a supported product.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2794
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2795 111: W3-mode -- A World Wide Web browser inside of Emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2796
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2797 Author: Bill Perry <wmperry@spry.com>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2798 Latest version: 4.0pre.23
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2799 Anonymous FTP:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2800 ftp://ftp.cs.indiana.edu/pub/elisp/w3/.betas/w3.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2801 Mailing lists:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2802 w3-announce-request@indiana.edu (to get announcements of new versions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2803 w3-beta-request@indiana.edu (for beta-testers of new versions)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2804 w3-dev@indiana.edu (for developers of W3)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2805
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2806 112: EDB -- Database program for Emacs; replaces forms editing modes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2807
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2808 Author: Michael Ernst <mernst@theory.lcs.mit.edu>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2809 Latest version: 1.21
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2810 Anonymous FTP:
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2811 ftp://theory.lcs.mit.edu/pub/emacs/edb
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2812
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2813 113: Mailcrypt -- PGP interface within Emacs mail and news
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2814
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2815 Authors: Patrick J. LoPresti <patl@lcs.mit.edu> and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2816 Jin S. Choi <jin@atype.com>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2817 Maintainer: Len Budney <lbudney@pobox.com>
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2818 Latest version: 3.5b6
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2819 Anonymous FTP:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2820 http://www.nb.net/~lbudney/linux/software/mailcrypt/mailcrypt-3.5b6.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2821 World Wide Web:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2822 http://www.nb.net/~lbudney/linux/software/mailcrypt.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2823
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2824 114: Patch -- program to apply "diffs" for updating files
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2825
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2826 Author: Larry Wall <lwall@wall.org> (with GNU modifications)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2827 Latest version: 2.5
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2828 Anonymous FTP: See question 92
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2829
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2830
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2831 Changing Key Bindings and Handling Key Binding Problems
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2832
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2833 115: How do I bind keys (including function keys) to commands?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2834
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2835 Keys can be bound to commands either interactively or in your .emacs
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2836 file. To interactively bind keys for all modes, type
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2837
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2838 M-x global-set-key RET KEY CMD RET
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2839
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2840 To bind a key just in the current major mode, type
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2841
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2842 M-x local-set-key RET KEY CMD RET
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2843
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2844 See "Key Bindings" in the on-line manual for further details.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2845
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2846 To bind keys on starting Emacs or on starting any given mode, use the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2847 following "trick": First bind the key interactively, then immediately
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2848 type "C-x ESC ESC C-a C-k C-g". Now, the command needed to bind the key
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2849 is in the kill ring, and can be yanked into your .emacs file. If the key
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2850 binding is global, no changes to the command are required. For example,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2851
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2852 (global-set-key [f1] 'help-for-help)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2853
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2854 can be placed directly into the .emacs file. If the key binding is
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2855 local, the command is used in conjunction with the "add-hook" command.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2856 For example, in tex-mode, a local binding might be
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2857
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2858 (add-hook 'tex-mode-hook
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2859 (lambda ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2860 (local-set-key [f1] 'help-for-help)))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2861
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2862 NOTE: * Control characters in key sequences, in the form yanked from the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2863 kill ring are given in their graphic form -- i.e., CTRL is shown
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2864 as `^', TAB as a set of spaces (usually 8), etc. You may want to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2865 convert these into their vector or string forms.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2866
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2867 * If a prefix key of the character sequence to be bound is already
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2868 bound as a complete key, then you must unbind it before the new
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2869 binding. For example, if "ESC {" is previously bound:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2870
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2871 (global-unset-key [?\e ?{]) ;; or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2872 (local-unset-key [?\e ?{])
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2873
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2874 * Aside from commands and "lambda lists," a vector or string also
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2875 can be bound to a key and thus treated as a macro. For example:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2876
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2877 (global-set-key [f10] [?\C-x?\e?\e?\C-a?\C-k?\C-g]) ;; or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2878 (global-set-key [f10] "\C-x\e\e\C-a\C-k\C-g")
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2879
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2880 * The "kbd" macro is convenient for converting a key description in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2881 the form used in documentation or printed by C-h c (except that
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2882 function key symbols must be enclosed in angle brackets). For
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2883 example:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2884
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2885 (global-set-key (kbd "<f1>") 'help-for-help)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2886 (global-set-key (kbd "C-h") 'help-for-help)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2887 (local-set-key (kbd "DEL") 'scroll-down)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2888
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2889 116: Why does Emacs say "Key sequence XXX uses invalid prefix characters"?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2890
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2891 Usually, one of two things has happened. In one case, the control
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2892 character in the key sequence has been misspecified (e.g. "C-f" used
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2893 instead of "\C-f" within a Lisp expression). In the other case, a
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2894 "prefix key" in the keystroke sequence you were trying to bind was
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2895 already bound as a "complete key." Historically, the "ESC [" prefix was
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2896 usually the problem, in which case you should evaluate either of these
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2897 forms before attempting to bind the key sequence:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2898
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2899 (global-unset-key [?\e ?[]) ;; or
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2900 (global-unset-key "\e[")
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2901
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2902 117: Why doesn't this [terminal or window-system setup] code work in my
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2903 .emacs file, but it works just fine after Emacs starts up?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2904
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2905 During startup, Emacs initializes itself according to a given code/file
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2906 order. If some of the code executed in your .emacs file needs to be
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2907 postponed until the initial terminal or window-system setup code has been
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2908 executed but is not, then you will experience this problem (this
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2909 code/file execution order is not enforced after startup).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2910
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2911 To postpone the execution of Emacs Lisp code until after terminal or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2912 window-system setup, treat the code as a "lambda list" and set the value
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2913 of either the "term-setup-hook" or "window-setup-hook" variable to this
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2914 "lambda function." For example,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2915
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2916 (setq term-setup-hook
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2917 (function
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2918 (lambda ()
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2919 (cond ((string-match "\\`vt220" (or (getenv "TERM") ""))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2920 ;; Make vt220's "Do" key behave like M-x:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2921 (global-set-key [do] 'execute-extended-command))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2922 ))))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2923
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2924 For information on what Emacs does every time it is started, see
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2925 "Starting Up Emacs" in the Lisp Reference Manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2926
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2927 118: How do I use function keys under X Windows?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2928
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2929 With Emacs 19, functions keys under X are bound like any other key. See
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2930 question 115 for details.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2931
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2932 119: How do I tell what characters or symbols my function or arrow keys
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2933 emit?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2934
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2935 Type "C-h c" then the function or arrow keys. The command will return
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2936 either a function key symbol or character sequence (see the Emacs on-line
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2937 documentation for an explanation). This works for other keys as well.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2938
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2939 120: How do I set the X key "translations" for Emacs?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2940
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2941 Emacs is not written using the Xt library by default, so there are no
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2942 "translations" to be set. (We aren't sure how to set such translations
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2943 if you do build Emacs with Xt; please let us know if you've done this!)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2944
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2945 The only way to affect the behavior of keys within Emacs is through
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2946 "xmodmap" (outside Emacs) or "define-key" (inside Emacs). The
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2947 "define-key" command should be used in conjunction with the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2948 "function-key-map" map. For instance,
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2949
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2950 (define-key function-key-map [M-tab] [?\M-\t])
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2951
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2952 defines the "M-TAB" key sequence.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2953
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2954 121: How do I handle C-s and C-q being used for flow control?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2955
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2956 C-s and C-q are used in the XON/XOFF flow control protocol. This messes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2957 things up when you're using Emacs, because Emacs binds these keys to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2958 commands by default. Because Emacs won't honor them as flow control
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2959 characters, too many of these characters are not passed on and overwhelm
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2960 output buffers. Sometimes, intermediate software using XON/XOFF flow
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2961 control will prevent Emacs from ever seeing C-s and C-q.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2962
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2963 Possible solutions:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2964
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2965 * Disable the use of C-s and C-q for flow control.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2966
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2967 You need to determine the cause of the flow control.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2968
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2969 * your terminal
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2970
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2971 Your terminal may use XON/XOFF flow control to have time to display
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2972 all the characters it receives. For example, VT series terminals do
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2973 this. It may be possible to turn this off from a setup menu. For
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2974 example, on a VT220 you may select "No XOFF" in the setup menu. This
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2975 is also true for some terminal emulation programs on PCs.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2976
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2977 When you turn off flow control at the terminal, you will also need to
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2978 turn it off at the other end, which might be at the computer you are
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2979 logged in to or at some terminal server in between.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2980
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2981 If you turn off flow control, characters may be lost; using a printer
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2982 connected to the terminal may fail. You may be able to get around
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
2983 this problem by modifying the "termcap" entry for your terminal to
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2984 include extra NUL padding characters.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2985
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2986 * a modem
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2987
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2988 If you are using a dialup connection, the modems may be using
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2989 XON/XOFF flow control. It's not clear how to get around this.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2990
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2991 * a router or terminal server
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2992
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2993 Some network box between the terminal and your computer may be using
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2994 XON/XOFF flow control. It may be possible to make it use some other
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2995 kind of flow control. You will probably have to ask your local
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2996 network experts for help with this.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2997
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
2998 * tty and/or pty devices
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
2999
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3000 If your connection to Emacs goes through multiple tty and/or pty
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3001 devices, they may be using XON/XOFF flow control even when it is not
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3002 necessary.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3003
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3004 Eirik Fuller <eirik@theory.tn.cornell.edu> writes:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3005
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3006 Some versions of "rlogin" (and possibly telnet) do not pass flow
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3007 control characters to the remote system to which they connect. On
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3008 such systems, Emacs on the remote system cannot disable flow
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3009 control on the local system. Sometimes "rlogin -8" will avoid this
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3010 problem.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3011
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3012 One way to cure this is to disable flow control on the local host
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3013 (the one running rlogin, not the one running rlogind) using the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3014 stty command, before starting the rlogin process. On many systems,
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3015 "stty start u stop u" will do this.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3016
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3017 Some versions of "tcsh" will prevent even this from working. One
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3018 way around this is to start another shell before starting rlogin,
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3019 and issue the stty command to disable flow control from that shell.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3020
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3021 Use "stty -ixon" instead of "stty start u stop u" on some systems.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3022
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3023 * Make Emacs speak the XON/XOFF flow control protocol.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3024
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3025 You can make Emacs treat C-s and C-q as flow control characters by
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3026 evaluating the form
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3027
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3028 (enable-flow-control)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3029
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3030 to unconditionally enable flow control or
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3031
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3032 (enable-flow-control-on "vt100" "h19")
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3033
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3034 (using your terminal names instead of "vt100" or "h19") to enable
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3035 selectively. These commands will automatically swap `C-s' and `C-q' to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3036 `C-\' and `C-^'. Variables can be used to change the default swap keys
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3037 ("flow-control-c-s-replacement" and "flow-control-c-q-replacement").
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3038
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3039 If you are fixing this for yourself, simply put the form in your .emacs
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3040 file. If you are fixing this for your entire site, the best place to
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3041 put it is in the lisp/site-start.el file. Putting this form in
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3042 lisp/default.el has the problem that if the user's .emacs file has an
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3043 error, this will prevent lisp/default.el from being loaded and Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3044 may be unusable for the user, even for correcting their .emacs file
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3045 (unless they're smart enough to move it to another name).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3046
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3047 For further discussion of this issue, read the file PROBLEMS (in the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3048 top-level directory when you unpack the Emacs source).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3049
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3050 122: How do I bind `C-s' and `C-q' (or any key) if these keys are filtered
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3051 out?
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3052
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3053 To bind `C-s' and `C-q', use either "enable-flow-control" or
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3054 "enable-flow-control-on". See question 121 for usage and implementation
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3055 details.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3056
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3057 To bind other keys, use "keyboard-translate". See question 125 for usage
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3058 details. To do this for an entire site, you should swap the keys in
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3059 lisp/site-start.el. See question 121 for an explanation of why
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3060 lisp/default.el should not be used.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3061
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3062 NOTE: * If you do this for an entire site, the users will be confused by
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3063 the disparity between what the documentation says and how Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3064 actually behaves.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3065
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3066 123: Why does the "Backspace" key invoke help?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3067
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3068 The "Backspace" key (on most keyboards) generates ASCII code 8. `C-h'
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3069 sends the same code. In Emacs by default `C-h' invokes help-command.
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3070 This is intended to be easy to remember since the first letter of "help"
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3071 is `h'. The easiest solution to this problem is to use `C-h' (and
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3072 Backspace) for help and DEL (the Delete key) for deleting the previous
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3073 character.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3074
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3075 For many people this solution may be problematic:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3076
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3077 * They normally use Backspace outside of Emacs for deleting the previous
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3078 character. This can be solved by making DEL the command for deleting
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3079 the previous character outside of Emacs. On many Unix systems, this
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3080 command will remap DEL:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3081
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3082 stty erase `^?'
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3083
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3084 * The person may prefer using the Backspace key for deleting the previous
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3085 character because it is more conveniently located on their keyboard or
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3086 because they don't even have a separate Delete key. In this case, the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3087 Backspace key should be made to behave like Delete. There are several
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3088 methods.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3089
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3090 * Some terminals (e.g., VT3## terminals) allow the character generated by
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3091 the Backspace key to be changed from a setup menu.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3092
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3093 * You may be able to get a keyboard that is completely programmable.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3094
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3095 * Under X or on a dumb terminal, it is possible to swap the Backspace and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3096 Delete keys inside Emacs:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3097
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3098 (keyboard-translate ?\C-h ?\C-?)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3099
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3100 See question 125 for further details of "keyboard-translate".
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3101
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3102 * Another approach is to switch key bindings and put help on "C-x h"
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3103 instead:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3104
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3105 (global-set-key "\C-h" 'delete-backward-char)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3106 (global-set-key "\C-xh" 'help-command) ;; overrides mark-whole-buffer
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3107
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3108 Other popular key bindings for help are M-? and "C-x ?".
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3109
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3110 NOTE: * Don't try to bind DEL to help-command, because there are many
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3111 modes that have local bindings of DEL that will interfere.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3112
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3113 124: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3114
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3115 Good question!
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3116
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3117 125: How do I "swap" two keys?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3118
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3119 In Emacs 19, you can swap two keys (or key sequences) by using the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3120 "keyboard-translate" function. For example, to turn `C-h' into DEL and
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3121 DEL to `C-h', use
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3122
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3123 (keyboard-translate ?\C-h ?\C-?) ; translate `C-h' to DEL
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3124 (keyboard-translate ?\C-? ?\C-h) ; translate DEL to `C-h'.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3125
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3126 The first key sequence of the pair after the function identifies what is
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3127 produced by the keyboard; the second, what is matched for in the keymaps.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3128
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3129 Keyboard translations are not the same as key bindings in keymaps. Emacs
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3130 contains numerous keymaps that apply in different situations, but there
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3131 is only one set of keyboard translations, and it applies to every
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3132 character that Emacs reads from the terminal. Keyboard translations take
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3133 place at the lowest level of input processing; the keys that are looked
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3134 up in keymaps contain the characters that result from keyboard
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3135 translation.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3136
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3137 Also see "Keyboard Translations" in the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3138
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3139 126: How do I produce C-XXX with my keyboard?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3140
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3141 On terminals (but not under X), some common "aliases" are:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3142
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3143 C-2 or C-SPC for C-@
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3144 C-6 for C-^
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3145 C-7 or C-S-- for C-_
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3146 C-4 for C-\
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3147 C-5 for C-]
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3148 C-/ for C-?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3149
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3150 Often other aliases exist; use the "C-h c" command and try `CTRL' with
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3151 all of the digits on your keyboard to see what gets generated. You can
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3152 also try the "C-h w" command if you know the name of the command.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3153
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3154 127: What if I don't have a Meta key?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3155
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3156 Instead of typing "M-a", you can type "ESC a". In fact, Emacs converts
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3157 M-a internally into "ESC a" anyway (depending on the value of
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3158 meta-prefix-char). Note that you press "Meta" and `a' together, while
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3159 you press `ESC', release it, and then press `a'.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3160
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3161 128: What if I don't have an Escape key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3162
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3163 Type `C-[' instead. This should send ASCII code 27 just like an Escape
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3164 key would. `C-3' may also work on some terminal (but not under X). For
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3165 many terminals (notably DEC terminals) `F11' generates ESC. If not, the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3166 following form can be used to bind it:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3167
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3168 (define-key function-key-map [f11] [?\e]) ; F11 is the documented ESC
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3169 ; replacement on DEC terminals.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3170
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3171 129: Can I make my "Compose Character" key behave like a Meta key?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3172
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3173 On a dumb terminal such as a VT220, no. It is rumored that certain VT220
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3174 clones could have their Compose key configured this way. If you're using
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3175 X, you might be able to do this with the "xmodmap" program.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3176
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3177 130: How do I bind a combination of modifier key and function key?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3178
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3179 With Emacs 19 you can represent modified function keys in vector format
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3180 by adding prefixes to the function key symbol. For example (from the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3181 on-line documentation):
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3182
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3183 (global-set-key [?\C-x right] 'forward-page)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3184
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3185 where "?\C-x" is the Lisp character constant for the character "C-x".
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3186
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3187 You can use the modifier keys Control, Meta, Hyper, Super, Alt, and Shift
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3188 with function keys. To represent these modifiers, prepend the strings
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3189 "C-", "M-", "H-", "s-", "A-", and "S-" to the symbol name. Here is how
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3190 to make "Hyper-Meta-RIGHT" move forward a word:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3191
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3192 (global-set-key [H-M-right] 'forward-word)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3193
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3194 In recent Emacs versions this may also be written as:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3195
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3196 (global-set-key [(hyper meta right)] 'forward-word)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3197
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3198 NOTE: * Not all modifiers are permitted in all situations. Hyper, Super,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3199 and Alt are available only under X (provided there are such
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3200 keys). Non-ASCII keys and mouse events (e.g. "C-=" and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3201 "mouse-1") also fall under this category.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3202
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3203 See question 115 for general key binding instructions.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3204
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3205 131: Why doesn't my Meta key work in an xterm window?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3206
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3207 Try all of these methods before asking for further help:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3208
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3209 * You may have big problems using "mwm" as your window manager. {Does
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3210 anyone know a good generic solution to allow the use of the Meta key in
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3211 Emacs with mwm?}
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3212
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3213 * For X11: Make sure it really is a Meta key. Use "xev" to find out what
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3214 keysym your Meta key generates. It should be either Meta_L or Meta_R.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3215 If it isn't, use xmodmap to fix the situation.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3216
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3217 * Make sure the pty the xterm is using is passing 8 bit characters.
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3218 "stty -a" (or "stty everything") should show "cs8" somewhere. If it
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3219 shows "cs7" instead, use "stty cs8 -istrip" (or "stty pass8") to fix
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3220 it.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3221
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3222 * If there is an rlogin connection between the xterm and the Emacs, the
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3223 "-8" argument may need to be given to rlogin to make it pass all 8 bits
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3224 of every character.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3225
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3226 * If the Emacs is running under Ultrix, it is reported that evaluating
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3227 (set-input-mode t nil) helps.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3228
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3229 * If all else fails, you can make xterm generate "ESC W" when you type
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3230 M-W, which is the same conversion Emacs would make if it got the M-W
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3231 anyway. In X11R4, the following resource specification will do this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3232
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3233 XTerm.VT100.EightBitInput: false
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3234
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3235 (This changes the behavior of the insert-eight-bit action.)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3236
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3237 With older xterms, you can specify this behavior with a translation:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3238
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3239 XTerm.VT100.Translations: #override \
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3240 Meta<KeyPress>: string(0x1b) insert()
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3241
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3242 You might have to replace "Meta" with "Alt".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3243
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3244 132: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3245 and 9.x?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3246
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3247 This is a result of an internationalization extension in X11R4 and the
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3248 fact that HP is now using this extension. Emacs assumes that
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3249 XLookupString returns the same result regardless of the Meta key state
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3250 which is no longer necessarily true. Until Emacs is fixed, the temporary
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3251 kludge is to run this command after each time the X server is started but
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3252 preferably before any xterm clients are:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3253
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3254 xmodmap -e 'remove mod1 = Mode_switch'
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3255
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3256 NOTE: This will disable the use of the extra keysyms systemwide, which
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3257 may be undesirable if you actually intend to use them.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3258
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3259
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3260 Using Emacs with Alternate Character Sets
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3261
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3262 133: How do I make Emacs display 8-bit characters?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3263
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3264 Emacs 19 introduced built-in support for 8-bit characters. Emacs 20 can
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3265 operate similarly in Unibyte mode or else in Multibyte mode. See the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3266 "International" node in the online manual, specifically "Single-Byte
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3267 European Support".
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3268
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3269 134: How do I input 8-bit characters?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3270
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3271 Again, see the "International" node of the on-line manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3272
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3273 135: Where can I get an Emacs that handles kanji, Chinese, or other
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3274 character sets?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3275
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3276 Emacs 20 now includes many of the features of MULE, the Multilingual
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3277 Enhancement of Emacs. See question 84 for information on where to find
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3278 and download Emacs.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3279
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3280 The original MULE is available at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3281
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3282 ftp://sh.wide.ad.jp/JAPAN/mule/mule-19.33-delta.tar.gz
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3283
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3284 136: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3285
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3286 Emacs 20 supports Hebrew characters (ISO 8859-8), but does not yet
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3287 support right-to-left character entry.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3288
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3289 Joel M. Hoffman <joel@exc.com> has written a Lisp package called
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3290 hebrew.el that allows right-to-left editing of Hebrew. It reportedly
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3291 works out of the box with Emacs 19, but requires patches for Emacs 18.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3292 Write to Joel if you want the patches or package.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3293
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3294 Hebrew.el requires a Hebrew screen font, but no other Hardware support.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3295 Joel has a screen font for PCs running MS-DOS and Linux.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3296
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3297 You might also try to query archie for files named with "hebrew"; several
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3298 ftp sites in Israel may also have the necessary files.
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3299
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3300
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3301 Mail and News
134
93491679e7e9 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3302
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3303 137: How do I change the included text prefix in mail/news followups?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3304
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3305 If you read mail with Rmail or news with Gnus, set the variable
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3306 mail-yank-prefix. For VM, set vm-included-text-prefix. For mh-e, set
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3307 mh-ins-buf-prefix.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3308
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3309 For fancier control of citations, use SuperCite. See question 105.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3310
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3311 To prevent Emacs from including various headers of the replied-to
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3312 message, set the value of mail-yank-ignored-headers to an appropriate
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3313 regexp.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3314
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3315 138: How do I save a copy of outgoing mail?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3316
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3317 You can either mail yourself a copy by including a "BCC:" header in the
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3318 mail message, or store a copy of the message directly to a file by
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3319 including an "FCC:" header.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3320
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3321 If you use standard mail, you can automatically create a "BCC:" to
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3322 yourself by putting
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3323
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3324 (setq mail-self-blind t)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3325
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3326 in your .emacs file. You can automatically include an "FCC:" field by
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3327 putting something like the following in your .emacs file:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3328
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3329 (setq mail-archive-file-name (expand-file-name "~/outgoing"))
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3330
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3331 The output file will be in Unix mail format, which can be read directly
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3332 by VM, but not always by Rmail. See question 140.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3333
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3334 For Gnus, see the `Archived Messages node of the Gnus manual.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3335
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3336 If you use mh-e, add an "FCC:" or "BCC:" field to your components file.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3337
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3338 It does not work to put "set record filename" in the .mailrc file.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3339
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3340 139: Why doesn't Emacs expand my aliases when sending mail?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3341
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3342 * You must separate multiple addresses in the headers of the mail buffer
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3343 with commas. This is because Emacs supports RFC822 standard addresses
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3344 like this one:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3345
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3346 To: Willy Smith <wks@xpnsv.lwyrs.com>
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3347
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3348 However, you do not need to -- and probably should not, unless your
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3349 system's version of /usr/ucb/mail (aka mailx) supports RFC822 --
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3350 separate addresses with commas in your ~/.mailrc file.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3351
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3352 * Emacs normally only reads the ".mailrc" file once per session, when you
597
434e13b1fc95 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 134
diff changeset
3353 start to compose your first mail message. If you edit .mailrc, you can
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3354 type "M-x rebuild-mail-abbrevs RET" to make Emacs reread your ~/.mailrc
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3355 file.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3356
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3357 * If you like, you can expand mail aliases as abbrevs, as soon as you
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3358 type them in. To enable this feature, execute the following:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3359
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3360 (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3361
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3362 Note that the aliases are expanded automatically only after you type
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3363 RET or a punctuation character (e.g. `,'). You can force their
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3364 expansion by moving point to the end of the alias and typing "C-x a e"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3365 (M-x expand-abbrev).
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3366
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3367 140: Why does Rmail think all my saved messages are one big message?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3368
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3369 A file created through the FCC: field in a message is in Unix mail
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3370 format, not the format that Rmail uses (BABYL format). Rmail will try to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3371 convert a Unix mail file into BABYL format on input, but sometimes it
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3372 makes errors. For guaranteed safety, you can make the saved-messages
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3373 file be an inbox for your Rmail file by using the function
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3374 set-rmail-inbox-list.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3375
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3376 141: How can I sort the messages in my Rmail folder?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3377
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3378 In Rmail, type "C-c C-s C-h" to get a list of sorting functions and their
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3379 key bindings.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3380
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3381 142: Why does Rmail need to write to /usr/spool/mail?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3382
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3383 This is the behavior of the "movemail" program which Rmail uses. This
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3384 indicates that movemail is configured to use lock files.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3385
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3386 RMS writes:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3387
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3388 Certain systems require lock files to interlock access to mail files.
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3389 On these systems, movemail must write lock files, or you risk losing
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3390 mail. You simply must arrange to let movemail write them.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3391
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3392 Other systems use the flock system call to interlock access. On these
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3393 systems, you should configure movemail to use flock.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3394
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3395 143: How do I recover my mail files after Rmail munges their format?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3396
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3397 If you have just done rmail-input on a file and you don't want to save it
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3398 in Rmail's format (called BABYL), just kill the buffer (with C-x k).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3399
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3400 If you typed M-x rmail and it read some messages out of your inbox and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3401 you want to put them in a Unix mail file, use C-o on each message.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3402
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3403 If you want to convert an existing file from BABYL format to Unix mail
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3404 format, use the command M-x unrmail: it will prompt you for the input and
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3405 output file names.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3406
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3407 144: How can I force Rmail to reply to the sender of a message, but not the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3408 other recipients?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3409
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3410 Ron Isaacson <isaacson@seas.upenn.edu> says: When you hit "r" to reply in
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3411 Rmail, by default it CCs all of the original recipients (everyone on the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3412 original "To" and "CC" lists). With a prefix argument (i.e., typing "C-u"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3413 before "r"), it replies only to the sender. However, going through the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3414 whole C-u business every time you want to reply is a pain. This is the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3415 best fix I've been able to come up with:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3416
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3417 (defun rmail-reply-t ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3418 "Reply only to the sender of the current message. (See rmail-reply.)"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3419 (interactive)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3420 (rmail-reply t))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3421
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3422 (add-hook 'rmail-mode-hook
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3423 '(lambda ()
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3424 (define-key rmail-mode-map "r" 'rmail-reply-t)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3425 (define-key rmail-mode-map "R" 'rmail-reply)))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3426
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3427 145: How can I get my favorite Emacs mail package to support MIME?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3428
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3429 Look at the Emacs MIME FAQ, maintained by MacDonald Hall Jackson
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3430 <trey@cs.berkeley.edu> at
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3431
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3432 http://bmrc.berkeley.edu/~trey/emacs/mime.html
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3433
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3434 Version 6.x of VM supports MIME. See question 104.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3435
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3436 MIME support has been added in the development version of Gnus which will
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3437 be included with a future version of Emacs.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3438
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3439 146: How do I make Emacs automatically start my mail/news reader?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3440
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3441 To start Emacs in Gnus:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3442
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3443 emacs -f gnus
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3444
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3445 in Rmail:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3446
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3447 emacs -f rmail
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3448
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3449 A more convenient way to start with Gnus:
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3450
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3451 alias gnus 'emacs -f gnus'
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3452 gnus
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3453
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3454 It is probably unwise to automatically start your mail or news reader
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3455 from your .emacs file. This would cause problems if you needed to run
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3456 two copies of Emacs at one time. Also, this would make it difficult for
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3457 you to start Emacs quickly when you needed to.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3458
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3459 147: How do I read news under Emacs?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3460
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3461 Use M-x gnus. It is documented in Info (see question 14).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3462
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3463 148: Why doesn't Gnus work via NNTP?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3464
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3465 There is a bug in NNTP version 1.5.10, such that when multiple requests
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3466 are sent to the NNTP server, the server only handles the first one before
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3467 blocking waiting for more input which never comes. NNTP version 1.5.11
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3468 claims to fix this.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3469
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3470 You can work around the bug inside Emacs like this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3471
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3472 (setq nntp-maximum-request 1)
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3473
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3474 You can find out what version of NNTP your news server is running by
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3475 telnetting to the NNTP port (usually 119) on the news server machine
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3476 (i.e., "telnet server-machine 119"). The server should give its version
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3477 number in the welcome message. Type "quit" to get out.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3478
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3479 Also see question 75 in this FAQ for some additional ideas.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3480
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3481 149: How do I view news articles with embedded underlining (e.g.,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3482 ClariNews)?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3483
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3484 Underlining appears like this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3485
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3486 _^Hu_^Hn_^Hd_^He_^Hr_^Hl_^Hi_^Hn_^Hi_^Hn_^Hg
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3487
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3488 Use Gnus' "Overstrike" function from the Article -> Washing menu (or type
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3489 "W o"). You can do this for all articles with:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3490
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3491 (add-hook 'gnus-article-prepare-hook 'gnus-article-treat-overstrike)
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3492
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3493 If you prefer to do away with underlining altogether, you can
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3494 destructively remove it with M-x ununderline-region; do this
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3495 automatically via
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3496
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3497 (add-hook 'gnus-article-prepare-hook
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3498 (lambda () (ununderline-region (point-min) (point-max))))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3499
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3500 See the Gnus manual for more information about this and similar methods
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3501 for treating article contents.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3502
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3503 150: How do I save all the items of a multi-part posting in Gnus?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3504
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3505 Use gnus-uu. Type C-c C-v C-h in the Gnus summary buffer to see a list
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3506 of available commands.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3507
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3508 151: How do I make Gnus start up faster?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3509
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3510 From the Gnus FAQ (see question 157):
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3511
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3512 Pranav Kumar Tiwari <pktiwari@eos.ncsu.edu> writes: I posted the same
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3513 query recently and I got an answer to it. I am going to repeat the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3514 answer. What you need is a newer version of gnus, version 5.0.4+. I am
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3515 using 5.0.12 and it works fine with me with the following settings:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3516
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3517 (setq gnus-check-new-newsgroups nil
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3518 gnus-read-active-file 'some
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3519 gnus-nov-is-evil nil
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3520 gnus-select-method '(nntp gnus-nntp-server))
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3521
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3522 152: How do I catch up all newsgroups in Gnus?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3523
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3524 In the "*Newsgroup*" buffer, type the following magical incantation:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3525
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3526 M-< C-x ( c y C-x ) M-0 C-x e
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3527
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3528 Leave off the "M-<" if you only want to catch up from point to the end of
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3529 the "*Newsgroup" buffer.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3530
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3531 153: Why can't I kill in Gnus based on the Newsgroups/Keywords/Control
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3532 headers?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3533
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3534 Gnus will complain that the "Newsgroups:", "Keywords:", and "Control:"
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3535 headers are "Unknown header" fields.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3536
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3537 For the "Newsgroups:" header, there is an easy workaround: kill on the
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3538 "Xref" header instead, which will be present on any cross-posted article
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3539 (as long as your site carries the cross-post group).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3540
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3541 If you really want to kill on one of these headers, you can do it like
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3542 this:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3543
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3544 (gnus-kill nil "^Newsgroups: .*\\(bad\\.group\\|worse\\.group\\)")
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3545
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3546 154: How do I get rid of flashing messages in Gnus for slow connections?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3547
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3548 Set nntp-debug-read to nil.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3549
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3550 155: Why is catch up slow in Gnus?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3551
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3552 Because Gnus is marking crosspostings read. You can control this with
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3553 the variable gnus-use-cross-reference.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3554
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3555 156: Why does Gnus hang for a long time when posting?
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3556
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3557 David Lawrence <tale@uunet.uu.net> explains:
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3558
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3559 The problem is almost always interaction between NNTP and C News. NNTP
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3560 POST asks C News's inews to not background itself but rather hang
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3561 around and give its exit status so it knows whether the post was
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3562 successful. (That wait will on some systems not return the exit status
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3563 of the waited for job is a different sort of problem.) It ends up
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3564 taking a long time because inews is calling relaynews, which often
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3565 waits for another relaynews to free the lock on the news system so it
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3566 can file the article.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3567
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3568 My preferred solution is to change inews to not call relaynews, but
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3569 rather use newsspool. This loses some error-catching functionality,
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3570 but is for the most part safe as inews will detect a lot of the errors
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3571 on its own. The C News folks have sped up inews, too, so speed should
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3572 look better to most folks as that update propagates around.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3573
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3574 157: Where can I find out more about Gnus?
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3575
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3576 Visit http://www.gnus.org/, which has a pointer to the current Gnus FAQ and
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3577 more information. The relevant newsgroup is gnu.emacs.gnus.
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3578
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3579 ------------------------------------------------------------
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3580 Modified, with permission, for the Emacs 20.4 distribution by Dave Love.
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3581
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3582 Copyright 1994-1998 Reuven M. Lerner
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3583 Copyright 1992-1993 Steven Byrnes
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3584 Copyright 1990-1992 Joseph Brian Wells
1736
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3585
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3586 This list of frequently asked questions about GNU Emacs with answers
c18775a6cf55 New version received.
Richard M. Stallman <rms@gnu.org>
parents: 597
diff changeset
3587 ("FAQ") may be translated into other languages, transformed into other
11822
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3588 formats (e.g. Texinfo, Info, WWW, WAIS), and updated with new information.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3589
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3590 The same conditions apply to any derivative of the FAQ as apply to the FAQ
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3591 itself. Every copy of the FAQ must include this notice or an approved
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3592 translation, information on who is currently maintaining the FAQ and how to
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3593 contact them (including their e-mail address), and information on where the
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3594 latest version of the FAQ is archived (including FTP information).
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3595
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3596 The FAQ may be copied and redistributed under these conditions, except that
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3597 the FAQ may not be embedded in a larger literary work unless that work
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3598 itself allows free copying and redistribution.
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3599
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3600 ------------------------------------------------------------
b097ca448b38 New version for Emacs 19.
Richard M. Stallman <rms@gnu.org>
parents: 8958
diff changeset
3601
23872
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3602 People who helped with this version of the FAQ:
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3603
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3604 Ethan Bradford <ethanb@u.washington.edu>, William G. Dubuque
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3605 <wgd@martigny.ai.mit.edu>, Michael Ernst <mernst@theory.lcs.mit.edu>,
546acc9b5282 Somewhat edited copy of the most recently posted version.
Dave Love <fx@gnu.org>
parents: 23406
diff changeset
3606 and Denby Wong <3dw16@qlink.QueensU.CA>.