annotate etc/ONEWS @ 27829:3fe260f697c5

Comment change.
author Dave Love <fx@gnu.org>
date Wed, 23 Feb 2000 20:16:50 +0000
parents e96ffe544684
children 6c3081f54e62
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1 GNU Emacs NEWS -- history of user-visible changes. 1992.
Dave Love <fx@gnu.org>
parents:
diff changeset
2 Copyright (C) 1995 Free Software Foundation, Inc.
Dave Love <fx@gnu.org>
parents:
diff changeset
3 See the end for copying conditions.
Dave Love <fx@gnu.org>
parents:
diff changeset
4
Dave Love <fx@gnu.org>
parents:
diff changeset
5 For older news, see the file OONEWS.
Dave Love <fx@gnu.org>
parents:
diff changeset
6
Dave Love <fx@gnu.org>
parents:
diff changeset
7 * Editing Changes in Emacs 19.30.
Dave Love <fx@gnu.org>
parents:
diff changeset
8
Dave Love <fx@gnu.org>
parents:
diff changeset
9 ** Be sure to recompile your byte-compiled Emacs Lisp files
Dave Love <fx@gnu.org>
parents:
diff changeset
10 if you last compiled them with Emacs 19.28 or earlier.
Dave Love <fx@gnu.org>
parents:
diff changeset
11 You can use M-x byte-force-recompile to recompile all the .elc files
Dave Love <fx@gnu.org>
parents:
diff changeset
12 in a specified directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
13
Dave Love <fx@gnu.org>
parents:
diff changeset
14 ** Emacs now provides multiple-frame support on Windows NT
Dave Love <fx@gnu.org>
parents:
diff changeset
15 and Windows 95.
Dave Love <fx@gnu.org>
parents:
diff changeset
16
Dave Love <fx@gnu.org>
parents:
diff changeset
17 ** M-x column-number-mode toggles a minor mode which displays
Dave Love <fx@gnu.org>
parents:
diff changeset
18 the current column number in the mode line.
Dave Love <fx@gnu.org>
parents:
diff changeset
19
Dave Love <fx@gnu.org>
parents:
diff changeset
20 ** Line Number mode is now enabled by default.
Dave Love <fx@gnu.org>
parents:
diff changeset
21
Dave Love <fx@gnu.org>
parents:
diff changeset
22 ** M-x what-line now displays the line number in the accessible
Dave Love <fx@gnu.org>
parents:
diff changeset
23 portion of the buffer as well as the line number in the full buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
24 when narrowing is in effect.
Dave Love <fx@gnu.org>
parents:
diff changeset
25
Dave Love <fx@gnu.org>
parents:
diff changeset
26 ** If you type a M-x command that has an equivalent key binding,
Dave Love <fx@gnu.org>
parents:
diff changeset
27 the equivalent is shown in the minibuffer before the command executes.
Dave Love <fx@gnu.org>
parents:
diff changeset
28 This feature is enabled by default for the sake of beginning users.
Dave Love <fx@gnu.org>
parents:
diff changeset
29 You can turn the feature off by setting suggest-key-bindings to nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
30
Dave Love <fx@gnu.org>
parents:
diff changeset
31 ** The menu bar is now visible on text-only terminals. To choose a
Dave Love <fx@gnu.org>
parents:
diff changeset
32 command from the menu bar when you have no mouse, type M-`
Dave Love <fx@gnu.org>
parents:
diff changeset
33 (Meta-Backquote) or F10. To turn off menu bar display,
Dave Love <fx@gnu.org>
parents:
diff changeset
34 do (menu-bar-mode -1).
Dave Love <fx@gnu.org>
parents:
diff changeset
35
Dave Love <fx@gnu.org>
parents:
diff changeset
36 ** Whenever you invoke a minibuffer, it appears in the minibuffer
Dave Love <fx@gnu.org>
parents:
diff changeset
37 window that the current frame uses.
Dave Love <fx@gnu.org>
parents:
diff changeset
38
Dave Love <fx@gnu.org>
parents:
diff changeset
39 Emacs can only use one minibuffer window at a time. If you activate
Dave Love <fx@gnu.org>
parents:
diff changeset
40 the minibuffer while a minibuffer window is active in some other
Dave Love <fx@gnu.org>
parents:
diff changeset
41 frame, the outer minibuffer window disappears while the inner one is
Dave Love <fx@gnu.org>
parents:
diff changeset
42 active.
Dave Love <fx@gnu.org>
parents:
diff changeset
43
Dave Love <fx@gnu.org>
parents:
diff changeset
44 ** Echo area messages always appear in the minibuffer window that the
Dave Love <fx@gnu.org>
parents:
diff changeset
45 current frame uses. If a minibuffer is active in some other frame,
Dave Love <fx@gnu.org>
parents:
diff changeset
46 the echo area message does not hide it even temporarily.
Dave Love <fx@gnu.org>
parents:
diff changeset
47
Dave Love <fx@gnu.org>
parents:
diff changeset
48 ** The minibuffer now has a menu-bar menu. You can use it to exit or
Dave Love <fx@gnu.org>
parents:
diff changeset
49 abort the minibuffer, or to ask for completion.
Dave Love <fx@gnu.org>
parents:
diff changeset
50
Dave Love <fx@gnu.org>
parents:
diff changeset
51 ** Dead-key and composite character processing is done in the standard
Dave Love <fx@gnu.org>
parents:
diff changeset
52 X11R6 manner (through the default "input method" using the
Dave Love <fx@gnu.org>
parents:
diff changeset
53 /usr/lib/X11/locale/*/Compose databases of key combinations). I.e. if
Dave Love <fx@gnu.org>
parents:
diff changeset
54 it works in xterm, it should also work in emacs now.
Dave Love <fx@gnu.org>
parents:
diff changeset
55
Dave Love <fx@gnu.org>
parents:
diff changeset
56 ** Mouse changes
Dave Love <fx@gnu.org>
parents:
diff changeset
57
Dave Love <fx@gnu.org>
parents:
diff changeset
58 *** You can now use the mouse when running Emacs in an xterm.
Dave Love <fx@gnu.org>
parents:
diff changeset
59 Use M-x xterm-mouse-mode to let emacs take control over the mouse.
Dave Love <fx@gnu.org>
parents:
diff changeset
60
Dave Love <fx@gnu.org>
parents:
diff changeset
61 *** C-mouse-1 now once again provides a menu of buffers to select.
Dave Love <fx@gnu.org>
parents:
diff changeset
62 S-mouse-1 is now the way to select a default font for the frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
63
Dave Love <fx@gnu.org>
parents:
diff changeset
64 *** There is a new mouse-scroll-min-lines variable to control the
Dave Love <fx@gnu.org>
parents:
diff changeset
65 minimum number of lines scrolled by dragging the mouse outside a
Dave Love <fx@gnu.org>
parents:
diff changeset
66 window's edge.
Dave Love <fx@gnu.org>
parents:
diff changeset
67
Dave Love <fx@gnu.org>
parents:
diff changeset
68 *** Dragging mouse-1 on a vertical line that separates windows
Dave Love <fx@gnu.org>
parents:
diff changeset
69 now moves the line, thus changing the widths of the two windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
70 (This feature is available only if you don't have vertical scroll bars.
Dave Love <fx@gnu.org>
parents:
diff changeset
71 If you do use them, a scroll bar separates two side-by-side windows.)
Dave Love <fx@gnu.org>
parents:
diff changeset
72
Dave Love <fx@gnu.org>
parents:
diff changeset
73 *** Double-click mouse-1 on a character with "symbol" syntax (such as
Dave Love <fx@gnu.org>
parents:
diff changeset
74 underscore, in C mode) selects the entire symbol surrounding that
Dave Love <fx@gnu.org>
parents:
diff changeset
75 character. (Double-click mouse-1 on a letter selects a whole word.)
Dave Love <fx@gnu.org>
parents:
diff changeset
76
Dave Love <fx@gnu.org>
parents:
diff changeset
77 ** When incremental search wraps around to the beginning (or end) of
Dave Love <fx@gnu.org>
parents:
diff changeset
78 the buffer, if you keep on searching until you go past the original
Dave Love <fx@gnu.org>
parents:
diff changeset
79 starting point of the search, the echo area changes from "Wrapped" to
Dave Love <fx@gnu.org>
parents:
diff changeset
80 "Overwrapped". That tells you that you are revisiting matches that
Dave Love <fx@gnu.org>
parents:
diff changeset
81 you have already seen.
Dave Love <fx@gnu.org>
parents:
diff changeset
82
Dave Love <fx@gnu.org>
parents:
diff changeset
83 ** Filling changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
84
Dave Love <fx@gnu.org>
parents:
diff changeset
85 *** If the variable colon-double-space is non-nil, the explicit fill
Dave Love <fx@gnu.org>
parents:
diff changeset
86 commands put two spaces after a colon.
Dave Love <fx@gnu.org>
parents:
diff changeset
87
Dave Love <fx@gnu.org>
parents:
diff changeset
88 *** Auto-Fill mode now supports Adaptive Fill mode just as the
Dave Love <fx@gnu.org>
parents:
diff changeset
89 explicit fill commands do. The variable adaptive-fill-regexp
Dave Love <fx@gnu.org>
parents:
diff changeset
90 specifies a regular expression to match text at the beginning of
Dave Love <fx@gnu.org>
parents:
diff changeset
91 a line that should be the fill prefix.
Dave Love <fx@gnu.org>
parents:
diff changeset
92
Dave Love <fx@gnu.org>
parents:
diff changeset
93 *** Adaptive Fill mode can take a fill prefix from the first line of a
Dave Love <fx@gnu.org>
parents:
diff changeset
94 paragraph, *provided* that line is not a paragraph-starter line.
Dave Love <fx@gnu.org>
parents:
diff changeset
95
Dave Love <fx@gnu.org>
parents:
diff changeset
96 Paragraph-starter lines are indented lines that start a new
Dave Love <fx@gnu.org>
parents:
diff changeset
97 paragraph because they are indented. This indentation shouldn't
Dave Love <fx@gnu.org>
parents:
diff changeset
98 be copied to additional lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
99
Dave Love <fx@gnu.org>
parents:
diff changeset
100 Whether indented lines are paragraph lines depends on the value of the
Dave Love <fx@gnu.org>
parents:
diff changeset
101 variable paragraph-start. Some major modes set this; you can set it
Dave Love <fx@gnu.org>
parents:
diff changeset
102 by hand or in mode hooks as well. For editing text in which paragraph
Dave Love <fx@gnu.org>
parents:
diff changeset
103 first lines are not indented, and which contains paragraphs in which
Dave Love <fx@gnu.org>
parents:
diff changeset
104 all lines are indented, you should use Indented Text mode or arrange
Dave Love <fx@gnu.org>
parents:
diff changeset
105 for paragraph-start not to match these lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
106
Dave Love <fx@gnu.org>
parents:
diff changeset
107 *** You can specify more complex ways of choosing a fill prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
108 automatically by setting `adaptive-fill-function'. This function
Dave Love <fx@gnu.org>
parents:
diff changeset
109 is called with point after the left margin of a line, and it should
Dave Love <fx@gnu.org>
parents:
diff changeset
110 return the appropriate fill prefix based on that line.
Dave Love <fx@gnu.org>
parents:
diff changeset
111 If it returns nil, that means it sees no fill prefix in that line.
Dave Love <fx@gnu.org>
parents:
diff changeset
112
Dave Love <fx@gnu.org>
parents:
diff changeset
113 ** Gnus changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
114
Dave Love <fx@gnu.org>
parents:
diff changeset
115 Gnus, the Emacs news reader, has been rewritten and expanded. Most
Dave Love <fx@gnu.org>
parents:
diff changeset
116 things that worked with the old version should still work with the new
Dave Love <fx@gnu.org>
parents:
diff changeset
117 version. Code that relies heavily on Gnus internals is likely to
Dave Love <fx@gnu.org>
parents:
diff changeset
118 fail, though.
Dave Love <fx@gnu.org>
parents:
diff changeset
119
Dave Love <fx@gnu.org>
parents:
diff changeset
120 *** Incompatibilities with the old GNUS.
Dave Love <fx@gnu.org>
parents:
diff changeset
121
Dave Love <fx@gnu.org>
parents:
diff changeset
122 **** All interactive commands have kept their names, but many internal
Dave Love <fx@gnu.org>
parents:
diff changeset
123 functions have changed names.
Dave Love <fx@gnu.org>
parents:
diff changeset
124
Dave Love <fx@gnu.org>
parents:
diff changeset
125 **** The summary mode gnus-uu commands have been moved from the `C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
126 C-v' keymap to the `X' keymap.
Dave Love <fx@gnu.org>
parents:
diff changeset
127
Dave Love <fx@gnu.org>
parents:
diff changeset
128 **** There can now be several summary buffers active at once.
Dave Love <fx@gnu.org>
parents:
diff changeset
129 Variables that are relevant to each summary buffer are buffer-local to
Dave Love <fx@gnu.org>
parents:
diff changeset
130 that buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
131
Dave Love <fx@gnu.org>
parents:
diff changeset
132 **** Old hilit code doesn't work at all. Gnus performs its own
Dave Love <fx@gnu.org>
parents:
diff changeset
133 highlighting based not only on what's visible in the buffer, but on
Dave Love <fx@gnu.org>
parents:
diff changeset
134 other data structures.
Dave Love <fx@gnu.org>
parents:
diff changeset
135
Dave Love <fx@gnu.org>
parents:
diff changeset
136 **** Old packages like `expire-kill' will no longer work.
Dave Love <fx@gnu.org>
parents:
diff changeset
137
Dave Love <fx@gnu.org>
parents:
diff changeset
138 **** `C-c C-l' in the group buffer no longer switches to a different
Dave Love <fx@gnu.org>
parents:
diff changeset
139 buffer, but instead lists killed groups in the group buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
140
Dave Love <fx@gnu.org>
parents:
diff changeset
141 *** New features.
Dave Love <fx@gnu.org>
parents:
diff changeset
142
Dave Love <fx@gnu.org>
parents:
diff changeset
143 **** The look of all buffers can be changed by setting format-like
Dave Love <fx@gnu.org>
parents:
diff changeset
144 variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
145
Dave Love <fx@gnu.org>
parents:
diff changeset
146 **** Local spool and several NNTP servers can be used at once.
Dave Love <fx@gnu.org>
parents:
diff changeset
147
Dave Love <fx@gnu.org>
parents:
diff changeset
148 **** Groups can be combined into virtual groups.
Dave Love <fx@gnu.org>
parents:
diff changeset
149
Dave Love <fx@gnu.org>
parents:
diff changeset
150 **** Different mail formats can be read much the same way as one would
Dave Love <fx@gnu.org>
parents:
diff changeset
151 read newsgroups. All the mail backends implement mail expiry schemes.
Dave Love <fx@gnu.org>
parents:
diff changeset
152
Dave Love <fx@gnu.org>
parents:
diff changeset
153 **** Gnus can use various strategies for gathering threads that have
Dave Love <fx@gnu.org>
parents:
diff changeset
154 lost their roots (thereby gathering loose sub-threads into one thread)
Dave Love <fx@gnu.org>
parents:
diff changeset
155 or it can go back and retrieve enough headers to build a complete
Dave Love <fx@gnu.org>
parents:
diff changeset
156 thread.
Dave Love <fx@gnu.org>
parents:
diff changeset
157
Dave Love <fx@gnu.org>
parents:
diff changeset
158 **** Killed groups can be read.
Dave Love <fx@gnu.org>
parents:
diff changeset
159
Dave Love <fx@gnu.org>
parents:
diff changeset
160 **** Gnus can do partial group updates - you do not have to retrieve
Dave Love <fx@gnu.org>
parents:
diff changeset
161 the entire active file just to check for new articles in a few groups.
Dave Love <fx@gnu.org>
parents:
diff changeset
162
Dave Love <fx@gnu.org>
parents:
diff changeset
163 **** Gnus implements a sliding scale of subscribedness to groups.
Dave Love <fx@gnu.org>
parents:
diff changeset
164
Dave Love <fx@gnu.org>
parents:
diff changeset
165 **** You can score articles according to any number of criteria. You
Dave Love <fx@gnu.org>
parents:
diff changeset
166 can get Gnus to score articles for you using adaptive scoring.
Dave Love <fx@gnu.org>
parents:
diff changeset
167
Dave Love <fx@gnu.org>
parents:
diff changeset
168 **** Gnus maintains a dribble buffer that is auto-saved the normal
Dave Love <fx@gnu.org>
parents:
diff changeset
169 Emacs manner, so it should be difficult to lose much data on what you
Dave Love <fx@gnu.org>
parents:
diff changeset
170 have read if your machine should go down.
Dave Love <fx@gnu.org>
parents:
diff changeset
171
Dave Love <fx@gnu.org>
parents:
diff changeset
172 **** Gnus now has its own startup file (`.gnus.el') to avoid
Dave Love <fx@gnu.org>
parents:
diff changeset
173 cluttering up the `.emacs' file.
Dave Love <fx@gnu.org>
parents:
diff changeset
174
Dave Love <fx@gnu.org>
parents:
diff changeset
175 **** You can set the process mark on both groups and articles and
Dave Love <fx@gnu.org>
parents:
diff changeset
176 perform operations on all the marked items.
Dave Love <fx@gnu.org>
parents:
diff changeset
177
Dave Love <fx@gnu.org>
parents:
diff changeset
178 **** You can grep through a subset of groups and create a group from
Dave Love <fx@gnu.org>
parents:
diff changeset
179 the results.
Dave Love <fx@gnu.org>
parents:
diff changeset
180
Dave Love <fx@gnu.org>
parents:
diff changeset
181 **** You can list subsets of groups using matches on group names or
Dave Love <fx@gnu.org>
parents:
diff changeset
182 group descriptions.
Dave Love <fx@gnu.org>
parents:
diff changeset
183
Dave Love <fx@gnu.org>
parents:
diff changeset
184 **** You can browse foreign servers and subscribe to groups from those
Dave Love <fx@gnu.org>
parents:
diff changeset
185 servers.
Dave Love <fx@gnu.org>
parents:
diff changeset
186
Dave Love <fx@gnu.org>
parents:
diff changeset
187 **** Gnus can pre-fetch articles asynchronously on a second connection
Dave Love <fx@gnu.org>
parents:
diff changeset
188 to the servers.
Dave Love <fx@gnu.org>
parents:
diff changeset
189
Dave Love <fx@gnu.org>
parents:
diff changeset
190 **** You can cache articles locally.
Dave Love <fx@gnu.org>
parents:
diff changeset
191
Dave Love <fx@gnu.org>
parents:
diff changeset
192 **** Gnus can fetch FAQs to and descriptions of groups.
Dave Love <fx@gnu.org>
parents:
diff changeset
193
Dave Love <fx@gnu.org>
parents:
diff changeset
194 **** Digests (and other files) can be used as the basis for groups.
Dave Love <fx@gnu.org>
parents:
diff changeset
195
Dave Love <fx@gnu.org>
parents:
diff changeset
196 **** Articles can be highlighted and customized.
Dave Love <fx@gnu.org>
parents:
diff changeset
197
Dave Love <fx@gnu.org>
parents:
diff changeset
198 ** Changes to Version Control (VC)
Dave Love <fx@gnu.org>
parents:
diff changeset
199
Dave Love <fx@gnu.org>
parents:
diff changeset
200 *** General changes (all backends).
Dave Love <fx@gnu.org>
parents:
diff changeset
201
Dave Love <fx@gnu.org>
parents:
diff changeset
202 VC directory listings (C-x v d) are now kept up to date when you do a
Dave Love <fx@gnu.org>
parents:
diff changeset
203 vc-next-action (C-x v v) on the marked files. The `g' command updates
Dave Love <fx@gnu.org>
parents:
diff changeset
204 the buffer properly. `=' in a VC dired buffer produces a version
Dave Love <fx@gnu.org>
parents:
diff changeset
205 control diff, not an ordinary diff.
Dave Love <fx@gnu.org>
parents:
diff changeset
206
Dave Love <fx@gnu.org>
parents:
diff changeset
207 *** CVS changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
208
Dave Love <fx@gnu.org>
parents:
diff changeset
209 Under CVS, you no longer need to type C-x C-q before you can edit a
Dave Love <fx@gnu.org>
parents:
diff changeset
210 file. VC doesn't write-protect unmodified buffers anymore; you can
Dave Love <fx@gnu.org>
parents:
diff changeset
211 freely change them at any time. The mode line keeps track of the
Dave Love <fx@gnu.org>
parents:
diff changeset
212 file status.
Dave Love <fx@gnu.org>
parents:
diff changeset
213
Dave Love <fx@gnu.org>
parents:
diff changeset
214 If you do want unmodified files to be write-protected, set your
Dave Love <fx@gnu.org>
parents:
diff changeset
215 CVSREAD environment variable. VC sees this and behaves accordingly;
Dave Love <fx@gnu.org>
parents:
diff changeset
216 that will give you the behaviour of Emacs 19.29, similar to that under
Dave Love <fx@gnu.org>
parents:
diff changeset
217 RCS and SCCS. In this mode, if the variable vc-mistrust-permissions
Dave Love <fx@gnu.org>
parents:
diff changeset
218 is nil, VC learns the modification state from the file permissions.
Dave Love <fx@gnu.org>
parents:
diff changeset
219 When setting CVSREAD for the first time, you should check out the
Dave Love <fx@gnu.org>
parents:
diff changeset
220 whole module anew, so that the file permissions are set correctly.
Dave Love <fx@gnu.org>
parents:
diff changeset
221
Dave Love <fx@gnu.org>
parents:
diff changeset
222 VC also works with remote repositories now. When you visit a file, it
Dave Love <fx@gnu.org>
parents:
diff changeset
223 doesn't run "cvs status" anymore, so there shouldn't be any long delays.
Dave Love <fx@gnu.org>
parents:
diff changeset
224
Dave Love <fx@gnu.org>
parents:
diff changeset
225 Directory listings under VC/CVS have been enhanced. Type C-x v d, and
Dave Love <fx@gnu.org>
parents:
diff changeset
226 you get a list of all files in or below the current directory that are
Dave Love <fx@gnu.org>
parents:
diff changeset
227 not up-to-date. The actual status (modified, merge, conflict, ...) is
Dave Love <fx@gnu.org>
parents:
diff changeset
228 displayed for each file. If you give a prefix argument (C-u C-x v d),
Dave Love <fx@gnu.org>
parents:
diff changeset
229 up-to-date files are also listed. You can mark any number of files,
Dave Love <fx@gnu.org>
parents:
diff changeset
230 and execute the next logical version control command on them (C-x v v).
Dave Love <fx@gnu.org>
parents:
diff changeset
231
Dave Love <fx@gnu.org>
parents:
diff changeset
232 *** Starting a new branch.
Dave Love <fx@gnu.org>
parents:
diff changeset
233
Dave Love <fx@gnu.org>
parents:
diff changeset
234 If you try to lock a version that is not the latest on its branch,
Dave Love <fx@gnu.org>
parents:
diff changeset
235 VC asks for confirmation in the minibuffer. If you say no, it offers
Dave Love <fx@gnu.org>
parents:
diff changeset
236 to lock the latest version instead.
Dave Love <fx@gnu.org>
parents:
diff changeset
237
Dave Love <fx@gnu.org>
parents:
diff changeset
238 *** RCS non-strict locking.
Dave Love <fx@gnu.org>
parents:
diff changeset
239
Dave Love <fx@gnu.org>
parents:
diff changeset
240 VC can now handle RCS non-strict locking, too. In this mode, working
Dave Love <fx@gnu.org>
parents:
diff changeset
241 files are always writable and you needn't lock the file before making
Dave Love <fx@gnu.org>
parents:
diff changeset
242 changes, similar to the default mode under CVS. To enable non-strict
Dave Love <fx@gnu.org>
parents:
diff changeset
243 locking for a file, use the "rcs -U" command.
Dave Love <fx@gnu.org>
parents:
diff changeset
244
Dave Love <fx@gnu.org>
parents:
diff changeset
245 *** Sharing RCS master files.
Dave Love <fx@gnu.org>
parents:
diff changeset
246
Dave Love <fx@gnu.org>
parents:
diff changeset
247 If you share RCS subdirs with other users (through symbolic links),
Dave Love <fx@gnu.org>
parents:
diff changeset
248 and you always want to work on the latest version, set
Dave Love <fx@gnu.org>
parents:
diff changeset
249 vc-consult-headers to nil and vc-mistrust-permissions to `t'.
Dave Love <fx@gnu.org>
parents:
diff changeset
250 Then you see the state of the *latest* version on the mode line, not
Dave Love <fx@gnu.org>
parents:
diff changeset
251 that of your working file. When you do a check out, VC overwrites
Dave Love <fx@gnu.org>
parents:
diff changeset
252 your working file with the latest version from the master.
Dave Love <fx@gnu.org>
parents:
diff changeset
253
Dave Love <fx@gnu.org>
parents:
diff changeset
254 *** RCS customization.
Dave Love <fx@gnu.org>
parents:
diff changeset
255
Dave Love <fx@gnu.org>
parents:
diff changeset
256 There is a new variable vc-consult-headers. If it is t (the default),
Dave Love <fx@gnu.org>
parents:
diff changeset
257 VC searches for RCS headers in working files (like `$Id$') and
Dave Love <fx@gnu.org>
parents:
diff changeset
258 determines the state of the file from them, not from the master file.
Dave Love <fx@gnu.org>
parents:
diff changeset
259 This is fast and more reliable when you use branches. (The variable
Dave Love <fx@gnu.org>
parents:
diff changeset
260 was already present in Emacs 19.29, but didn't get mentioned in the
Dave Love <fx@gnu.org>
parents:
diff changeset
261 NEWS.)
Dave Love <fx@gnu.org>
parents:
diff changeset
262
Dave Love <fx@gnu.org>
parents:
diff changeset
263 ** Calendar changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
264
Dave Love <fx@gnu.org>
parents:
diff changeset
265 *** New calendars supported: Chinese, Coptic, Ethiopic
Dave Love <fx@gnu.org>
parents:
diff changeset
266
Dave Love <fx@gnu.org>
parents:
diff changeset
267 Here are the commands for converting to and from these calendars:
Dave Love <fx@gnu.org>
parents:
diff changeset
268
Dave Love <fx@gnu.org>
parents:
diff changeset
269 gC: calendar-goto-chinese-date
Dave Love <fx@gnu.org>
parents:
diff changeset
270 gk: calendar-goto-coptic-date
Dave Love <fx@gnu.org>
parents:
diff changeset
271 ge: calendar-goto-ethiopic-date
Dave Love <fx@gnu.org>
parents:
diff changeset
272
Dave Love <fx@gnu.org>
parents:
diff changeset
273 pC: calendar-print-chinese-date
Dave Love <fx@gnu.org>
parents:
diff changeset
274 pk: calendar-print-coptic-date
Dave Love <fx@gnu.org>
parents:
diff changeset
275 pe: calendar-print-ethiopic-date
Dave Love <fx@gnu.org>
parents:
diff changeset
276
Dave Love <fx@gnu.org>
parents:
diff changeset
277 *** Printed calendars
Dave Love <fx@gnu.org>
parents:
diff changeset
278
Dave Love <fx@gnu.org>
parents:
diff changeset
279 Calendar mode now has commands to produce fancy printed calendars via
Dave Love <fx@gnu.org>
parents:
diff changeset
280 LaTeX. You can ask for a calendar for one or more days, weeks, months
Dave Love <fx@gnu.org>
parents:
diff changeset
281 or years. The commands all start with `t'; see the manual for a list
Dave Love <fx@gnu.org>
parents:
diff changeset
282 of them.
Dave Love <fx@gnu.org>
parents:
diff changeset
283
Dave Love <fx@gnu.org>
parents:
diff changeset
284 *** New sexp diary entry type
Dave Love <fx@gnu.org>
parents:
diff changeset
285
Dave Love <fx@gnu.org>
parents:
diff changeset
286 Reminders that apply in the days leading up to an event.
Dave Love <fx@gnu.org>
parents:
diff changeset
287
Dave Love <fx@gnu.org>
parents:
diff changeset
288 ** The CC-mode package now provides the default C and C++ modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
289 See the manual for documentation of its features.
Dave Love <fx@gnu.org>
parents:
diff changeset
290
Dave Love <fx@gnu.org>
parents:
diff changeset
291 ** The uniquify package chooses buffer names differently when you
Dave Love <fx@gnu.org>
parents:
diff changeset
292 visit multiple files with the same name (in different directories).
Dave Love <fx@gnu.org>
parents:
diff changeset
293
Dave Love <fx@gnu.org>
parents:
diff changeset
294 ** RMAIL now always uses the movemail program when it renames an
Dave Love <fx@gnu.org>
parents:
diff changeset
295 inbox file, so that it can interlock properly with the mailer
Dave Love <fx@gnu.org>
parents:
diff changeset
296 no matter where it is delivering mail.
Dave Love <fx@gnu.org>
parents:
diff changeset
297
Dave Love <fx@gnu.org>
parents:
diff changeset
298 ** tex-start-of-header and tex-end-of-header are now regular expressions,
Dave Love <fx@gnu.org>
parents:
diff changeset
299 not strings.
Dave Love <fx@gnu.org>
parents:
diff changeset
300
Dave Love <fx@gnu.org>
parents:
diff changeset
301 ** To enable automatic uncompression of compressed files,
Dave Love <fx@gnu.org>
parents:
diff changeset
302 type M-x auto-compression-mode. (This command used to be called
Dave Love <fx@gnu.org>
parents:
diff changeset
303 toggle-auto-compression, but was not documented before.) In Lisp,
Dave Love <fx@gnu.org>
parents:
diff changeset
304 you can do
Dave Love <fx@gnu.org>
parents:
diff changeset
305
Dave Love <fx@gnu.org>
parents:
diff changeset
306 (auto-compression-mode 1)
Dave Love <fx@gnu.org>
parents:
diff changeset
307
Dave Love <fx@gnu.org>
parents:
diff changeset
308 to turn the mode on.
Dave Love <fx@gnu.org>
parents:
diff changeset
309
Dave Love <fx@gnu.org>
parents:
diff changeset
310 ** The new pc-select package emulates the key bindings for cutting and
Dave Love <fx@gnu.org>
parents:
diff changeset
311 pasting, and selection of regions, found in Windows, Motif, and the
Dave Love <fx@gnu.org>
parents:
diff changeset
312 Macintosh.
Dave Love <fx@gnu.org>
parents:
diff changeset
313
Dave Love <fx@gnu.org>
parents:
diff changeset
314 ** Help buffers now use a special major mode, Help mode. This mode
Dave Love <fx@gnu.org>
parents:
diff changeset
315 normally turns on View mode; it also provides a hook, help-mode-hook,
Dave Love <fx@gnu.org>
parents:
diff changeset
316 which you can use for other customization.
Dave Love <fx@gnu.org>
parents:
diff changeset
317
Dave Love <fx@gnu.org>
parents:
diff changeset
318 ** Apropos now uses faces for enhanced legibility. It now describes
Dave Love <fx@gnu.org>
parents:
diff changeset
319 symbol properties as well as their function definitions and variable
Dave Love <fx@gnu.org>
parents:
diff changeset
320 values. You can use Mouse-2 or RET to get more information about a
Dave Love <fx@gnu.org>
parents:
diff changeset
321 function definition, variable, or property.
Dave Love <fx@gnu.org>
parents:
diff changeset
322
Dave Love <fx@gnu.org>
parents:
diff changeset
323 ** Font Lock mode
Dave Love <fx@gnu.org>
parents:
diff changeset
324
Dave Love <fx@gnu.org>
parents:
diff changeset
325 *** Supports Scheme, TCL and Help modes
Dave Love <fx@gnu.org>
parents:
diff changeset
326
Dave Love <fx@gnu.org>
parents:
diff changeset
327 For example, to automatically turn on Font Lock mode in the *Help*
Dave Love <fx@gnu.org>
parents:
diff changeset
328 buffer, put:
Dave Love <fx@gnu.org>
parents:
diff changeset
329
Dave Love <fx@gnu.org>
parents:
diff changeset
330 (add-hook 'help-mode-hook 'turn-on-font-lock)
Dave Love <fx@gnu.org>
parents:
diff changeset
331
Dave Love <fx@gnu.org>
parents:
diff changeset
332 in your ~/.emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
333
Dave Love <fx@gnu.org>
parents:
diff changeset
334 *** Enhanced fontification
Dave Love <fx@gnu.org>
parents:
diff changeset
335
Dave Love <fx@gnu.org>
parents:
diff changeset
336 The structure of font-lock-keywords is extended to allow "anchored" keywords.
Dave Love <fx@gnu.org>
parents:
diff changeset
337 Typically, a keyword item of font-lock-keywords comprises a regexp to search
Dave Love <fx@gnu.org>
parents:
diff changeset
338 for and information to specify how the regexp should be highlighted. However,
Dave Love <fx@gnu.org>
parents:
diff changeset
339 the highlighting information is extended so that it can be another keyword
Dave Love <fx@gnu.org>
parents:
diff changeset
340 item. This keyword item, its regexp and highlighting information, is processed
Dave Love <fx@gnu.org>
parents:
diff changeset
341 before resuming with the keyword item of which it is part.
Dave Love <fx@gnu.org>
parents:
diff changeset
342
Dave Love <fx@gnu.org>
parents:
diff changeset
343 For example, a typical keyword item might be:
Dave Love <fx@gnu.org>
parents:
diff changeset
344
Dave Love <fx@gnu.org>
parents:
diff changeset
345 ("\\<anchor\\>" (0 anchor-face))
Dave Love <fx@gnu.org>
parents:
diff changeset
346
Dave Love <fx@gnu.org>
parents:
diff changeset
347 which fontifies each occurrence of the discrete word "anchor" in the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
348 the variable anchor-face. However, the highlighting information can be used to
Dave Love <fx@gnu.org>
parents:
diff changeset
349 fontify text that is anchored to the word "anchor". For example:
Dave Love <fx@gnu.org>
parents:
diff changeset
350
Dave Love <fx@gnu.org>
parents:
diff changeset
351 ("\\<anchor\\>" (0 anchor-face) ("\\=[ ,]*\\(item\\)" nil nil (1 item-face)))
Dave Love <fx@gnu.org>
parents:
diff changeset
352
Dave Love <fx@gnu.org>
parents:
diff changeset
353 which fontifies each occurrence of "anchor" as above, but for each occurrence
Dave Love <fx@gnu.org>
parents:
diff changeset
354 of "anchor", each occurrence of "item", in any following comma separated list,
Dave Love <fx@gnu.org>
parents:
diff changeset
355 is fontified in the value of the variable item-face. Thus the "item" text is
Dave Love <fx@gnu.org>
parents:
diff changeset
356 anchored to the "anchor" text. See the variable documentation for further
Dave Love <fx@gnu.org>
parents:
diff changeset
357 information.
Dave Love <fx@gnu.org>
parents:
diff changeset
358
Dave Love <fx@gnu.org>
parents:
diff changeset
359 This feature is used to extend the level and quality of fontification in a
Dave Love <fx@gnu.org>
parents:
diff changeset
360 number of modes. For example, C/C++ modes now have level 3 decoration that
Dave Love <fx@gnu.org>
parents:
diff changeset
361 includes the fontification of variable and function names in declaration lists.
Dave Love <fx@gnu.org>
parents:
diff changeset
362 In this instance, the "anchor" described in the above example is a type or
Dave Love <fx@gnu.org>
parents:
diff changeset
363 class name, and an "item" is a variable or function name.
Dave Love <fx@gnu.org>
parents:
diff changeset
364
Dave Love <fx@gnu.org>
parents:
diff changeset
365 *** Fontification levels
Dave Love <fx@gnu.org>
parents:
diff changeset
366
Dave Love <fx@gnu.org>
parents:
diff changeset
367 The variables font-lock-maximum-decoration and font-lock-maximum-size are
Dave Love <fx@gnu.org>
parents:
diff changeset
368 extended to specify levels and sizes for specific modes. The variable
Dave Love <fx@gnu.org>
parents:
diff changeset
369 font-lock-maximum-decoration specifies the preferred level of fontification for
Dave Love <fx@gnu.org>
parents:
diff changeset
370 modes that provide multiple levels (typically from "subdued" to "gaudy"). The
Dave Love <fx@gnu.org>
parents:
diff changeset
371 variable font-lock-maximum-size specifies the buffer size for which buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
372 fontification is suppressed when Font Lock mode is turned on (typically because
Dave Love <fx@gnu.org>
parents:
diff changeset
373 it would take too long).
Dave Love <fx@gnu.org>
parents:
diff changeset
374
Dave Love <fx@gnu.org>
parents:
diff changeset
375 These variables can now specify values for individual modes, by supplying
Dave Love <fx@gnu.org>
parents:
diff changeset
376 lists of mode names and values. For example, to use the above mentioned level
Dave Love <fx@gnu.org>
parents:
diff changeset
377 3 decoration for buffers in C/C++ modes, and default decoration otherwise, put:
Dave Love <fx@gnu.org>
parents:
diff changeset
378
Dave Love <fx@gnu.org>
parents:
diff changeset
379 (setq font-lock-maximum-decoration '((c-mode . 3) (c++-mode . 3)))
Dave Love <fx@gnu.org>
parents:
diff changeset
380
Dave Love <fx@gnu.org>
parents:
diff changeset
381 in your ~/.emacs. Maximum buffer size values for individual modes are
Dave Love <fx@gnu.org>
parents:
diff changeset
382 specified in the same way with the variable font-lock-maximum-size.
Dave Love <fx@gnu.org>
parents:
diff changeset
383
Dave Love <fx@gnu.org>
parents:
diff changeset
384 *** Font Lock configuration
Dave Love <fx@gnu.org>
parents:
diff changeset
385
Dave Love <fx@gnu.org>
parents:
diff changeset
386 The mechanism to provide default settings for Font Lock mode are the variables
Dave Love <fx@gnu.org>
parents:
diff changeset
387 font-lock-defaults and font-lock-maximum-decoration. Typically, you should
Dave Love <fx@gnu.org>
parents:
diff changeset
388 only need to change the value of font-lock-maximum-decoration. However, to
Dave Love <fx@gnu.org>
parents:
diff changeset
389 support Font Lock mode for buffers in modes that currently do not support Font
Dave Love <fx@gnu.org>
parents:
diff changeset
390 Lock mode, you should set a buffer local value of font-lock-defaults for that
Dave Love <fx@gnu.org>
parents:
diff changeset
391 mode, typically via its mode hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
392
Dave Love <fx@gnu.org>
parents:
diff changeset
393 These variables are used by Font Lock mode to set the values of the variables
Dave Love <fx@gnu.org>
parents:
diff changeset
394 font-lock-keywords, font-lock-keywords-only, font-lock-syntax-table,
Dave Love <fx@gnu.org>
parents:
diff changeset
395 font-lock-beginning-of-syntax-function and font-lock-keywords-case-fold-search.
Dave Love <fx@gnu.org>
parents:
diff changeset
396
Dave Love <fx@gnu.org>
parents:
diff changeset
397 You need not set these variables directly, and should not set them yourself
Dave Love <fx@gnu.org>
parents:
diff changeset
398 since the underlining mechanism may change in future.
Dave Love <fx@gnu.org>
parents:
diff changeset
399
Dave Love <fx@gnu.org>
parents:
diff changeset
400 ** Archive mode is now the default mode for various sorts of
Dave Love <fx@gnu.org>
parents:
diff changeset
401 archive files (files whose names end with .arc, .lzh, .zip, and .zoo).
Dave Love <fx@gnu.org>
parents:
diff changeset
402
Dave Love <fx@gnu.org>
parents:
diff changeset
403 ** You can automatically update the years in copyright notice by
Dave Love <fx@gnu.org>
parents:
diff changeset
404 means of (add-hook 'write-file-hooks 'copyright-update).
Dave Love <fx@gnu.org>
parents:
diff changeset
405 Optionally it can update the GPL version as well.
Dave Love <fx@gnu.org>
parents:
diff changeset
406
Dave Love <fx@gnu.org>
parents:
diff changeset
407 ** Scripts of various languages (Shell, AWK, Perl, makefiles ...) can
Dave Love <fx@gnu.org>
parents:
diff changeset
408 be automatically provided with a magic number and be made executable
Dave Love <fx@gnu.org>
parents:
diff changeset
409 by their respective modes under control of various user variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
410 The mode must call (executable-set-magic "perl") or
Dave Love <fx@gnu.org>
parents:
diff changeset
411 (executable-set-magic "make" "-f"). The latter for example has no
Dave Love <fx@gnu.org>
parents:
diff changeset
412 effect on [Mm]akefile.
Dave Love <fx@gnu.org>
parents:
diff changeset
413
Dave Love <fx@gnu.org>
parents:
diff changeset
414 ** Shell script mode now supports over 15 different shells. The new
Dave Love <fx@gnu.org>
parents:
diff changeset
415 command C-c ! executes the region, and optionally beginning of script
Dave Love <fx@gnu.org>
parents:
diff changeset
416 as well, by passing them to the shell.
Dave Love <fx@gnu.org>
parents:
diff changeset
417
Dave Love <fx@gnu.org>
parents:
diff changeset
418 Cases such as `sh' being a `bash' are now accounted for.
Dave Love <fx@gnu.org>
parents:
diff changeset
419 Fontification now also does variables, the magic number and all
Dave Love <fx@gnu.org>
parents:
diff changeset
420 builtin commands. Shell script mode no longer mingles `tab-width' and
Dave Love <fx@gnu.org>
parents:
diff changeset
421 indentation style. The variable `sh-tab-width' has been renamed to
Dave Love <fx@gnu.org>
parents:
diff changeset
422 `sh-indentation'. Empty lines are now indented like previous
Dave Love <fx@gnu.org>
parents:
diff changeset
423 non-empty line, rather than just previous line.
Dave Love <fx@gnu.org>
parents:
diff changeset
424
Dave Love <fx@gnu.org>
parents:
diff changeset
425 The annoying $ variable prompting has been eliminated. Instead, shell
Dave Love <fx@gnu.org>
parents:
diff changeset
426 script mode uses `comint-dynamic-completion' for commands, variables
Dave Love <fx@gnu.org>
parents:
diff changeset
427 and filenames.
Dave Love <fx@gnu.org>
parents:
diff changeset
428
Dave Love <fx@gnu.org>
parents:
diff changeset
429 ** Two-column mode now automatically scrolls both buffers together,
Dave Love <fx@gnu.org>
parents:
diff changeset
430 which makes it possible to eliminate the special scrolling commands
Dave Love <fx@gnu.org>
parents:
diff changeset
431 that used to do so.
Dave Love <fx@gnu.org>
parents:
diff changeset
432
Dave Love <fx@gnu.org>
parents:
diff changeset
433 The commands that operate in two-column mode are no longer bound to
Dave Love <fx@gnu.org>
parents:
diff changeset
434 keys outside that mode. f2 o will now position at the same point in
Dave Love <fx@gnu.org>
parents:
diff changeset
435 associated buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
436
Dave Love <fx@gnu.org>
parents:
diff changeset
437 the new command f2 RET inserts a newline in both buffers, at point and
Dave Love <fx@gnu.org>
parents:
diff changeset
438 at the corresponding position in the associated buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
439
Dave Love <fx@gnu.org>
parents:
diff changeset
440 ** Skeleton commands now work smoothly as abbrev definitions. The
Dave Love <fx@gnu.org>
parents:
diff changeset
441 element < no longer exists, ' is a new element.
Dave Love <fx@gnu.org>
parents:
diff changeset
442
Dave Love <fx@gnu.org>
parents:
diff changeset
443 ** The autoinsert insert facility for prefilling empty files as soon
Dave Love <fx@gnu.org>
parents:
diff changeset
444 as they are found has been extended to accommodate skeletons or calling
Dave Love <fx@gnu.org>
parents:
diff changeset
445 functions. See the function auto-insert.
Dave Love <fx@gnu.org>
parents:
diff changeset
446
Dave Love <fx@gnu.org>
parents:
diff changeset
447 ** TPU-edt Changes
Dave Love <fx@gnu.org>
parents:
diff changeset
448
Dave Love <fx@gnu.org>
parents:
diff changeset
449 Loading tpu-edt no longer turns on tpu-edt mode. In fact, it is no
Dave Love <fx@gnu.org>
parents:
diff changeset
450 longer necessary to explicitly load tpu-edt. All you need to do to
Dave Love <fx@gnu.org>
parents:
diff changeset
451 turn on tpu-edt is run the tpu-edt function. Here's how to run
Dave Love <fx@gnu.org>
parents:
diff changeset
452 tpu-edt instead of loading the file:
Dave Love <fx@gnu.org>
parents:
diff changeset
453
Dave Love <fx@gnu.org>
parents:
diff changeset
454 Running Emacs: Type emacs -f tpu-edt
Dave Love <fx@gnu.org>
parents:
diff changeset
455 not emacs -l tpu-edt
Dave Love <fx@gnu.org>
parents:
diff changeset
456
Dave Love <fx@gnu.org>
parents:
diff changeset
457 Within Emacs: Type M-x tpu-edt <ret>
Dave Love <fx@gnu.org>
parents:
diff changeset
458 not M-x load-library <ret> tpu-edt <ret>
Dave Love <fx@gnu.org>
parents:
diff changeset
459
Dave Love <fx@gnu.org>
parents:
diff changeset
460 In .emacs: Use (tpu-edt)
Dave Love <fx@gnu.org>
parents:
diff changeset
461 not (load "tpu-edt")
Dave Love <fx@gnu.org>
parents:
diff changeset
462
Dave Love <fx@gnu.org>
parents:
diff changeset
463 The default name of the tpu-edt X key definition file has changed from
Dave Love <fx@gnu.org>
parents:
diff changeset
464 ~/.tpu-gnu-keys to ~/.tpu-keys. If you don't rename the file yourself,
Dave Love <fx@gnu.org>
parents:
diff changeset
465 tpu-edt will offer to rename it the first time you invoke it under
Dave Love <fx@gnu.org>
parents:
diff changeset
466 x-windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
467
Dave Love <fx@gnu.org>
parents:
diff changeset
468 ** MS-DOS Enhancements:
Dave Love <fx@gnu.org>
parents:
diff changeset
469
Dave Love <fx@gnu.org>
parents:
diff changeset
470 *** Better mouse control by adding the following functions [in dosfns.c]
Dave Love <fx@gnu.org>
parents:
diff changeset
471 msdos-mouse-enable, msdos-mouse-disable, msdos-mouse-init.
Dave Love <fx@gnu.org>
parents:
diff changeset
472
Dave Love <fx@gnu.org>
parents:
diff changeset
473 *** If another foreground/background color than the default is setup in
Dave Love <fx@gnu.org>
parents:
diff changeset
474 your ~/_emacs, then the screen briefly flickers with the default
Dave Love <fx@gnu.org>
parents:
diff changeset
475 colors before changing to the colors you have specified. To avoid
Dave Love <fx@gnu.org>
parents:
diff changeset
476 this, the EMACSCOLORS environment variable exists. It shall be
Dave Love <fx@gnu.org>
parents:
diff changeset
477 defined as a string with the following elements:
Dave Love <fx@gnu.org>
parents:
diff changeset
478
Dave Love <fx@gnu.org>
parents:
diff changeset
479 set EMACSCOLORS=fb;fb
Dave Love <fx@gnu.org>
parents:
diff changeset
480
Dave Love <fx@gnu.org>
parents:
diff changeset
481 The first set of "fb" defines the initial foreground and background
Dave Love <fx@gnu.org>
parents:
diff changeset
482 colors using standard dos color numbers (0=black,.., 7=white).
Dave Love <fx@gnu.org>
parents:
diff changeset
483 If specified, the second set of "fb" defines the colors which are
Dave Love <fx@gnu.org>
parents:
diff changeset
484 restored when you leave emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
485
Dave Love <fx@gnu.org>
parents:
diff changeset
486 *** The new SUSPEND environment variable can now be set as the shell to
Dave Love <fx@gnu.org>
parents:
diff changeset
487 use when suspending emacs. This can be used to override the stupid
Dave Love <fx@gnu.org>
parents:
diff changeset
488 limitation on the environment of sub-shells in MS-DOS (they are just
Dave Love <fx@gnu.org>
parents:
diff changeset
489 large enough to hold the currently defined variables, not leaving
Dave Love <fx@gnu.org>
parents:
diff changeset
490 room for more); to overcome this limitation, add this to autoexec.bat:
Dave Love <fx@gnu.org>
parents:
diff changeset
491
Dave Love <fx@gnu.org>
parents:
diff changeset
492 set SUSPEND=%COMSPEC% /E:2000
Dave Love <fx@gnu.org>
parents:
diff changeset
493
Dave Love <fx@gnu.org>
parents:
diff changeset
494 ** The escape character can now be displayed on X frames. Try
Dave Love <fx@gnu.org>
parents:
diff changeset
495 this:
Dave Love <fx@gnu.org>
parents:
diff changeset
496 (aset standard-display-table 27 (vector 27))
Dave Love <fx@gnu.org>
parents:
diff changeset
497 after first creating a display table (you can do that by loading
Dave Love <fx@gnu.org>
parents:
diff changeset
498 the disp-table library).
Dave Love <fx@gnu.org>
parents:
diff changeset
499
Dave Love <fx@gnu.org>
parents:
diff changeset
500 ** The new command-line option --eval specifies an expression to evaluate
Dave Love <fx@gnu.org>
parents:
diff changeset
501 from the command line.
Dave Love <fx@gnu.org>
parents:
diff changeset
502
Dave Love <fx@gnu.org>
parents:
diff changeset
503 ** etags has now the ability to tag Perl files. They are recognised
Dave Love <fx@gnu.org>
parents:
diff changeset
504 either by the .pm and .pl suffixes or by a first line which starts
Dave Love <fx@gnu.org>
parents:
diff changeset
505 with `#!' and specifies a Perl interpreter. The tagged lines are
Dave Love <fx@gnu.org>
parents:
diff changeset
506 those beginning with the `sub' keyword.
Dave Love <fx@gnu.org>
parents:
diff changeset
507
Dave Love <fx@gnu.org>
parents:
diff changeset
508 New suffixes recognised are .hpp for C++; .f90 for Fortran; .bib,
Dave Love <fx@gnu.org>
parents:
diff changeset
509 .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp; .prolog for
Dave Love <fx@gnu.org>
parents:
diff changeset
510 prolog (.pl is now Perl).
Dave Love <fx@gnu.org>
parents:
diff changeset
511
Dave Love <fx@gnu.org>
parents:
diff changeset
512 ** The files etc/termcap.dat and etc/termcap.ucb have been replaced
Dave Love <fx@gnu.org>
parents:
diff changeset
513 with a new, merged, and much more comprehensive termcap file. The
Dave Love <fx@gnu.org>
parents:
diff changeset
514 new file should include all the special entries from the old one.
Dave Love <fx@gnu.org>
parents:
diff changeset
515 This new file is under active development as part of the ncurses
Dave Love <fx@gnu.org>
parents:
diff changeset
516 project. If you have any questions about this file, or problems with
Dave Love <fx@gnu.org>
parents:
diff changeset
517 an entry in it, email terminfo@ccil.org.
Dave Love <fx@gnu.org>
parents:
diff changeset
518
Dave Love <fx@gnu.org>
parents:
diff changeset
519 * Lisp changes in Emacs 19.30.
Dave Love <fx@gnu.org>
parents:
diff changeset
520
Dave Love <fx@gnu.org>
parents:
diff changeset
521 ** New Data Types
Dave Love <fx@gnu.org>
parents:
diff changeset
522
Dave Love <fx@gnu.org>
parents:
diff changeset
523 *** There is a new data type called a char-table which is an array
Dave Love <fx@gnu.org>
parents:
diff changeset
524 indexed by a character. Currently this is mostly equivalent to a
Dave Love <fx@gnu.org>
parents:
diff changeset
525 vector of length 256, but in the future, when a wider character set is
Dave Love <fx@gnu.org>
parents:
diff changeset
526 in use, it will be different. To create one, call
Dave Love <fx@gnu.org>
parents:
diff changeset
527 (make-char-table SUBTYPE INITIAL-VALUE)
Dave Love <fx@gnu.org>
parents:
diff changeset
528
Dave Love <fx@gnu.org>
parents:
diff changeset
529 SUBTYPE is a symbol that identifies the specific use of this
Dave Love <fx@gnu.org>
parents:
diff changeset
530 character table. It can be any of these values:
Dave Love <fx@gnu.org>
parents:
diff changeset
531
Dave Love <fx@gnu.org>
parents:
diff changeset
532 syntax-table
Dave Love <fx@gnu.org>
parents:
diff changeset
533 display-table
Dave Love <fx@gnu.org>
parents:
diff changeset
534 keyboard-translate-table
Dave Love <fx@gnu.org>
parents:
diff changeset
535 case-table
Dave Love <fx@gnu.org>
parents:
diff changeset
536
Dave Love <fx@gnu.org>
parents:
diff changeset
537 The function `char-table-subtype' returns the subtype of a char-table.
Dave Love <fx@gnu.org>
parents:
diff changeset
538 You cannot alter the subtype of an existing char-table.
Dave Love <fx@gnu.org>
parents:
diff changeset
539
Dave Love <fx@gnu.org>
parents:
diff changeset
540 A char-table has an element for each character code. It also has some
Dave Love <fx@gnu.org>
parents:
diff changeset
541 "extra slots". The number of extra slots depends on the subtype and
Dave Love <fx@gnu.org>
parents:
diff changeset
542 their use depends on the subtype. (Each subtype symbol has a
Dave Love <fx@gnu.org>
parents:
diff changeset
543 `char-table-extra-slots' property that says how many extra slots to
Dave Love <fx@gnu.org>
parents:
diff changeset
544 make.) Use (char-table-extra-slot TABLE N) to access extra slot N and
Dave Love <fx@gnu.org>
parents:
diff changeset
545 (set-char-table-extra-slot TABLE N VALUE) to store VALUE in slot N.
Dave Love <fx@gnu.org>
parents:
diff changeset
546
Dave Love <fx@gnu.org>
parents:
diff changeset
547 A char-table T can have a parent, which should be another char-table
Dave Love <fx@gnu.org>
parents:
diff changeset
548 P. If you look for the value in T for character C, and the table T
Dave Love <fx@gnu.org>
parents:
diff changeset
549 actually holds nil, P's element for character C is used instead.
Dave Love <fx@gnu.org>
parents:
diff changeset
550 The functions `char-table-parent' and `set-char-table-parent'
Dave Love <fx@gnu.org>
parents:
diff changeset
551 let you read or set the parent of a char-table.
Dave Love <fx@gnu.org>
parents:
diff changeset
552
Dave Love <fx@gnu.org>
parents:
diff changeset
553 To scan all the values in a char-table, do not try to loop through all
Dave Love <fx@gnu.org>
parents:
diff changeset
554 possible character codes. That would work for now, but will not work
Dave Love <fx@gnu.org>
parents:
diff changeset
555 in the future. Instead, call map-char-table. (map-char-table
Dave Love <fx@gnu.org>
parents:
diff changeset
556 FUNCTION TABLE) calls FUNCTION once for each character or character
Dave Love <fx@gnu.org>
parents:
diff changeset
557 set that has a distinct value in TABLE. FUNCTION gets two arguments,
Dave Love <fx@gnu.org>
parents:
diff changeset
558 RANGE and VALUE. RANGE specifies a range of TABLE that has one
Dave Love <fx@gnu.org>
parents:
diff changeset
559 uniform value, and VALUE is the value in TABLE for that range.
Dave Love <fx@gnu.org>
parents:
diff changeset
560
Dave Love <fx@gnu.org>
parents:
diff changeset
561 Currently, RANGE is always a vector containing a single character
Dave Love <fx@gnu.org>
parents:
diff changeset
562 and it refers to that character alone. In the future, other kinds
Dave Love <fx@gnu.org>
parents:
diff changeset
563 of ranges will occur. You can set the value for a given range
Dave Love <fx@gnu.org>
parents:
diff changeset
564 with (set-char-table-range TABLE RANGE VALUE) and examine the value
Dave Love <fx@gnu.org>
parents:
diff changeset
565 for a range with (char-table-range TABLE RANGE).
Dave Love <fx@gnu.org>
parents:
diff changeset
566
Dave Love <fx@gnu.org>
parents:
diff changeset
567 *** Syntax tables are now represented as char-tables.
Dave Love <fx@gnu.org>
parents:
diff changeset
568 All syntax tables other than the standard syntax table
Dave Love <fx@gnu.org>
parents:
diff changeset
569 normally have the standard syntax table as their parent.
Dave Love <fx@gnu.org>
parents:
diff changeset
570 Their subtype is `syntax-table'.
Dave Love <fx@gnu.org>
parents:
diff changeset
571
Dave Love <fx@gnu.org>
parents:
diff changeset
572 *** Display tables are now represented as char-tables.
Dave Love <fx@gnu.org>
parents:
diff changeset
573 Their subtype is `display-table'.
Dave Love <fx@gnu.org>
parents:
diff changeset
574
Dave Love <fx@gnu.org>
parents:
diff changeset
575 *** Case tables are now represented as char-tables.
Dave Love <fx@gnu.org>
parents:
diff changeset
576 Their subtype is `case-table'.
Dave Love <fx@gnu.org>
parents:
diff changeset
577
Dave Love <fx@gnu.org>
parents:
diff changeset
578 *** The value of keyboard-translate-table may now be a char-table
Dave Love <fx@gnu.org>
parents:
diff changeset
579 instead of a string. Normally the char-tables used for this purpose
Dave Love <fx@gnu.org>
parents:
diff changeset
580 have the subtype `keyboard-translate-table', but that is not required.
Dave Love <fx@gnu.org>
parents:
diff changeset
581
Dave Love <fx@gnu.org>
parents:
diff changeset
582 *** A new data type called a bool-vector is a vector of values
Dave Love <fx@gnu.org>
parents:
diff changeset
583 that are either t or nil. To create one, do
Dave Love <fx@gnu.org>
parents:
diff changeset
584 (make-bool-vector LENGTH INITIAL-VALUE)
Dave Love <fx@gnu.org>
parents:
diff changeset
585
Dave Love <fx@gnu.org>
parents:
diff changeset
586 ** You can now specify, for each marker, how it should relocate when
Dave Love <fx@gnu.org>
parents:
diff changeset
587 text is inserted at the place where the marker points. This is called
Dave Love <fx@gnu.org>
parents:
diff changeset
588 the "insertion type" of the marker.
Dave Love <fx@gnu.org>
parents:
diff changeset
589
Dave Love <fx@gnu.org>
parents:
diff changeset
590 To set the insertion type, do (set-marker-insertion-type MARKER TYPE).
Dave Love <fx@gnu.org>
parents:
diff changeset
591 If TYPE is t, it means the marker advances when text is inserted. If
Dave Love <fx@gnu.org>
parents:
diff changeset
592 TYPE is nil, it means the marker does not advance. (In Emacs 19.29,
Dave Love <fx@gnu.org>
parents:
diff changeset
593 markers did not advance.)
Dave Love <fx@gnu.org>
parents:
diff changeset
594
Dave Love <fx@gnu.org>
parents:
diff changeset
595 The function marker-insertion-type reports the insertion type of a
Dave Love <fx@gnu.org>
parents:
diff changeset
596 given marker. The function copy-marker takes a second argument TYPE
Dave Love <fx@gnu.org>
parents:
diff changeset
597 which specifies the insertion type of the new copied marker.
Dave Love <fx@gnu.org>
parents:
diff changeset
598
Dave Love <fx@gnu.org>
parents:
diff changeset
599 ** When you create an overlay, you can specify the insertion type of
Dave Love <fx@gnu.org>
parents:
diff changeset
600 the beginning and of the end. To do this, you can use two new
Dave Love <fx@gnu.org>
parents:
diff changeset
601 arguments to make-overlay: front-advance and rear-advance.
Dave Love <fx@gnu.org>
parents:
diff changeset
602
Dave Love <fx@gnu.org>
parents:
diff changeset
603 ** The new function overlays-in returns a list of the overlays that
Dave Love <fx@gnu.org>
parents:
diff changeset
604 overlap a specified range of the buffer. The returned list includes
Dave Love <fx@gnu.org>
parents:
diff changeset
605 empty overlays at the beginning of this range, as well as within the
Dave Love <fx@gnu.org>
parents:
diff changeset
606 range.
Dave Love <fx@gnu.org>
parents:
diff changeset
607
Dave Love <fx@gnu.org>
parents:
diff changeset
608 ** The new hook window-scroll-functions is run when a window has been
Dave Love <fx@gnu.org>
parents:
diff changeset
609 scrolled. The functions in this list are called just before
Dave Love <fx@gnu.org>
parents:
diff changeset
610 redisplay, after the new window-start has been computed. Each function
Dave Love <fx@gnu.org>
parents:
diff changeset
611 is called with two arguments--the window that has been scrolled, and its
Dave Love <fx@gnu.org>
parents:
diff changeset
612 new window-start position.
Dave Love <fx@gnu.org>
parents:
diff changeset
613
Dave Love <fx@gnu.org>
parents:
diff changeset
614 This hook is useful for on-the-fly fontification and other features
Dave Love <fx@gnu.org>
parents:
diff changeset
615 that affect how the redisplayed text will look when it is displayed.
Dave Love <fx@gnu.org>
parents:
diff changeset
616
Dave Love <fx@gnu.org>
parents:
diff changeset
617 The window-end value of the window is not valid when these functions
Dave Love <fx@gnu.org>
parents:
diff changeset
618 are called. The computation of window-end is byproduct of actual
Dave Love <fx@gnu.org>
parents:
diff changeset
619 redisplay of the window contents, which means it has not yet happened
Dave Love <fx@gnu.org>
parents:
diff changeset
620 when the hook is run. Computing window-end specially in advance for
Dave Love <fx@gnu.org>
parents:
diff changeset
621 the sake of these functions would cause a slowdown.
Dave Love <fx@gnu.org>
parents:
diff changeset
622
Dave Love <fx@gnu.org>
parents:
diff changeset
623 The hook functions can determine where the text on the window will end
Dave Love <fx@gnu.org>
parents:
diff changeset
624 by calling vertical-motion starting with the window-start position.
Dave Love <fx@gnu.org>
parents:
diff changeset
625
Dave Love <fx@gnu.org>
parents:
diff changeset
626 ** The new hook redisplay-end-trigger-functions is run whenever
Dave Love <fx@gnu.org>
parents:
diff changeset
627 redisplay in window uses text that extends past a specified end
Dave Love <fx@gnu.org>
parents:
diff changeset
628 trigger position. You set the end trigger position with the function
Dave Love <fx@gnu.org>
parents:
diff changeset
629 set-window-redisplay-end-trigger. The functions are called with two
Dave Love <fx@gnu.org>
parents:
diff changeset
630 arguments: the window, and the end trigger position. Storing nil for
Dave Love <fx@gnu.org>
parents:
diff changeset
631 the end trigger position turns off the feature, and the trigger value
Dave Love <fx@gnu.org>
parents:
diff changeset
632 is automatically reset to nil just after the hook is run.
Dave Love <fx@gnu.org>
parents:
diff changeset
633
Dave Love <fx@gnu.org>
parents:
diff changeset
634 You can use the function window-redisplay-end-trigger to read a
Dave Love <fx@gnu.org>
parents:
diff changeset
635 window's current end trigger value.
Dave Love <fx@gnu.org>
parents:
diff changeset
636
Dave Love <fx@gnu.org>
parents:
diff changeset
637 ** The new function insert-file-contents-literally inserts the
Dave Love <fx@gnu.org>
parents:
diff changeset
638 contents of a file without any character set translation or decoding.
Dave Love <fx@gnu.org>
parents:
diff changeset
639
Dave Love <fx@gnu.org>
parents:
diff changeset
640 ** The new function safe-length computes the length of a list.
Dave Love <fx@gnu.org>
parents:
diff changeset
641 It never gets an error--it treats any non-list like nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
642 If given a circular list, it returns an upper bound for the number
Dave Love <fx@gnu.org>
parents:
diff changeset
643 of elements before the circularity.
Dave Love <fx@gnu.org>
parents:
diff changeset
644
Dave Love <fx@gnu.org>
parents:
diff changeset
645 ** replace-match now takes a fifth argument, SUBEXP. If SUBEXP is
Dave Love <fx@gnu.org>
parents:
diff changeset
646 non-nil, that says to replace just subexpression number SUBEXP of the
Dave Love <fx@gnu.org>
parents:
diff changeset
647 regexp that was matched, not the entire match. For example, after
Dave Love <fx@gnu.org>
parents:
diff changeset
648 matching `foo \(ba*r\)' calling replace-match with 1 as SUBEXP means
Dave Love <fx@gnu.org>
parents:
diff changeset
649 to replace just the text that matched `\(ba*r\)'.
Dave Love <fx@gnu.org>
parents:
diff changeset
650
Dave Love <fx@gnu.org>
parents:
diff changeset
651 ** The new keymap special-event-map defines bindings for certain
Dave Love <fx@gnu.org>
parents:
diff changeset
652 events that should be handled at a very low level--as soon as they
Dave Love <fx@gnu.org>
parents:
diff changeset
653 are read. The read-event function processes these events itself,
Dave Love <fx@gnu.org>
parents:
diff changeset
654 and never returns them.
Dave Love <fx@gnu.org>
parents:
diff changeset
655
Dave Love <fx@gnu.org>
parents:
diff changeset
656 Events that are handled in this way do not echo, they are never
Dave Love <fx@gnu.org>
parents:
diff changeset
657 grouped into key sequences, and they never appear in the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
658 last-command-event or (this-command-keys). They do not discard a
Dave Love <fx@gnu.org>
parents:
diff changeset
659 numeric argument, they cannot be unread with unread-command-events,
Dave Love <fx@gnu.org>
parents:
diff changeset
660 they may not appear in a keyboard macro, and they are not recorded
Dave Love <fx@gnu.org>
parents:
diff changeset
661 in a keyboard macro while you are defining one.
Dave Love <fx@gnu.org>
parents:
diff changeset
662
Dave Love <fx@gnu.org>
parents:
diff changeset
663 These events do, however, appear in last-input-event immediately after
Dave Love <fx@gnu.org>
parents:
diff changeset
664 they are read, and this is the way for the event's definition to find
Dave Love <fx@gnu.org>
parents:
diff changeset
665 the actual event.
Dave Love <fx@gnu.org>
parents:
diff changeset
666
Dave Love <fx@gnu.org>
parents:
diff changeset
667 The events types iconify-frame, make-frame-visible and delete-frame
Dave Love <fx@gnu.org>
parents:
diff changeset
668 are normally handled in this way.
Dave Love <fx@gnu.org>
parents:
diff changeset
669
Dave Love <fx@gnu.org>
parents:
diff changeset
670 ** encode-time now supports simple date arithmetic by means of
Dave Love <fx@gnu.org>
parents:
diff changeset
671 out-of-range values for its SEC, MINUTE, HOUR, DAY, and MONTH
Dave Love <fx@gnu.org>
parents:
diff changeset
672 arguments; for example, day 0 means the day preceding the given month.
Dave Love <fx@gnu.org>
parents:
diff changeset
673 Also, the ZONE argument can now be a TZ-style string.
Dave Love <fx@gnu.org>
parents:
diff changeset
674
Dave Love <fx@gnu.org>
parents:
diff changeset
675 ** command-execute and call-interactively now accept an optional third
Dave Love <fx@gnu.org>
parents:
diff changeset
676 argument KEYS. If specified and non-nil, this specifies the key
Dave Love <fx@gnu.org>
parents:
diff changeset
677 sequence containing the events that were used to invoke the command.
Dave Love <fx@gnu.org>
parents:
diff changeset
678
Dave Love <fx@gnu.org>
parents:
diff changeset
679 ** The environment variable NAME, if set, now specifies the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
680 (user-full-name), when Emacs starts up.
Dave Love <fx@gnu.org>
parents:
diff changeset
681
Dave Love <fx@gnu.org>
parents:
diff changeset
682 * User Editing Changes in Emacs 19.29
Dave Love <fx@gnu.org>
parents:
diff changeset
683
Dave Love <fx@gnu.org>
parents:
diff changeset
684 ** If you run out of memory.
Dave Love <fx@gnu.org>
parents:
diff changeset
685
Dave Love <fx@gnu.org>
parents:
diff changeset
686 If you get the error message "Virtual memory exhausted", type C-x s.
Dave Love <fx@gnu.org>
parents:
diff changeset
687 That way of saving files has the least additional memory needs. Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
688 19.29 keeps a reserve of memory which it makes available when this
Dave Love <fx@gnu.org>
parents:
diff changeset
689 error happens; that is to ensure that C-x s can complete its work.
Dave Love <fx@gnu.org>
parents:
diff changeset
690
Dave Love <fx@gnu.org>
parents:
diff changeset
691 Once you have saved your data, you can exit and restart Emacs, or use
Dave Love <fx@gnu.org>
parents:
diff changeset
692 M-x kill-some-buffers to free up space. If you kill buffers
Dave Love <fx@gnu.org>
parents:
diff changeset
693 containing a substantial amount of text, you can go on editing.
Dave Love <fx@gnu.org>
parents:
diff changeset
694
Dave Love <fx@gnu.org>
parents:
diff changeset
695 Do not use M-x buffer-menu to save or kill buffers when you are out of
Dave Love <fx@gnu.org>
parents:
diff changeset
696 memory, because that needs a fair amount memory itself and you may not
Dave Love <fx@gnu.org>
parents:
diff changeset
697 have enough to get it started.
Dave Love <fx@gnu.org>
parents:
diff changeset
698
Dave Love <fx@gnu.org>
parents:
diff changeset
699 ** The format of compiled files has changed incompatibly.
Dave Love <fx@gnu.org>
parents:
diff changeset
700
Dave Love <fx@gnu.org>
parents:
diff changeset
701 Byte-compiled files made with Emacs 19.29 normally use a new format
Dave Love <fx@gnu.org>
parents:
diff changeset
702 that will not work in older Emacs versions. You can compile files
Dave Love <fx@gnu.org>
parents:
diff changeset
703 in the old format if you wish; see "Changes in compilation," below.
Dave Love <fx@gnu.org>
parents:
diff changeset
704
Dave Love <fx@gnu.org>
parents:
diff changeset
705 ** Emacs 19.29 supports the DEC Alpha.
Dave Love <fx@gnu.org>
parents:
diff changeset
706
Dave Love <fx@gnu.org>
parents:
diff changeset
707 ** Emacs runs on Windows NT.
Dave Love <fx@gnu.org>
parents:
diff changeset
708
Dave Love <fx@gnu.org>
parents:
diff changeset
709 This port does not yet support windowing features. It works like a
Dave Love <fx@gnu.org>
parents:
diff changeset
710 text-only terminal, but it does support a mouse.
Dave Love <fx@gnu.org>
parents:
diff changeset
711
Dave Love <fx@gnu.org>
parents:
diff changeset
712 In general, support for non-GNU-like operating systems is not a high
Dave Love <fx@gnu.org>
parents:
diff changeset
713 priority for the GNU project. We merged in the support for Windows NT
Dave Love <fx@gnu.org>
parents:
diff changeset
714 because that system is expected to be very widely used.
Dave Love <fx@gnu.org>
parents:
diff changeset
715
Dave Love <fx@gnu.org>
parents:
diff changeset
716 ** Emacs supports Motif widgets.
Dave Love <fx@gnu.org>
parents:
diff changeset
717
Dave Love <fx@gnu.org>
parents:
diff changeset
718 You can build Emacs with Motif widgets by specifying --with-x-toolkit=motif
Dave Love <fx@gnu.org>
parents:
diff changeset
719 when you run configure.
Dave Love <fx@gnu.org>
parents:
diff changeset
720
Dave Love <fx@gnu.org>
parents:
diff changeset
721 Motif defines collections of windows called "tab groups", and uses the
Dave Love <fx@gnu.org>
parents:
diff changeset
722 tab key and the cursor keys to move between windows in a tab group.
Dave Love <fx@gnu.org>
parents:
diff changeset
723 Emacs naturally does not support this--it has other uses for the tab
Dave Love <fx@gnu.org>
parents:
diff changeset
724 key and cursor keys. Emacs does not support Motif accelerators either,
Dave Love <fx@gnu.org>
parents:
diff changeset
725 because it uses its normal keymap event binding features.
Dave Love <fx@gnu.org>
parents:
diff changeset
726
Dave Love <fx@gnu.org>
parents:
diff changeset
727 We give higher priority to operation with a free widget set than to
Dave Love <fx@gnu.org>
parents:
diff changeset
728 operation with a proprietary one.
Dave Love <fx@gnu.org>
parents:
diff changeset
729
Dave Love <fx@gnu.org>
parents:
diff changeset
730 ** If Emacs or the computer crashes, you can recover all the files you
Dave Love <fx@gnu.org>
parents:
diff changeset
731 were editing from their auto save files by typing M-x recover-session.
Dave Love <fx@gnu.org>
parents:
diff changeset
732 This first shows you a list of recorded interrupted sessions. Move
Dave Love <fx@gnu.org>
parents:
diff changeset
733 point to the one you choose, and type C-c C-c.
Dave Love <fx@gnu.org>
parents:
diff changeset
734
Dave Love <fx@gnu.org>
parents:
diff changeset
735 Then recover-session asks about each of the files that were being
Dave Love <fx@gnu.org>
parents:
diff changeset
736 edited during that session, asking whether to recover that file. If
Dave Love <fx@gnu.org>
parents:
diff changeset
737 you answer y, it calls recover-file, which works in its normal
Dave Love <fx@gnu.org>
parents:
diff changeset
738 fashion. It shows the dates of the original file and its auto-save
Dave Love <fx@gnu.org>
parents:
diff changeset
739 file and asks once again whether to recover that file.
Dave Love <fx@gnu.org>
parents:
diff changeset
740
Dave Love <fx@gnu.org>
parents:
diff changeset
741 When recover-session is done, the files you've chosen to recover
Dave Love <fx@gnu.org>
parents:
diff changeset
742 are present in Emacs buffers. You should then save them.
Dave Love <fx@gnu.org>
parents:
diff changeset
743 Only this--saving them--updates the files themselves.
Dave Love <fx@gnu.org>
parents:
diff changeset
744
Dave Love <fx@gnu.org>
parents:
diff changeset
745 ** Menu bar menus now stay up if you click on the menu bar item and
Dave Love <fx@gnu.org>
parents:
diff changeset
746 release the mouse button within a certain amount of time. This is in
Dave Love <fx@gnu.org>
parents:
diff changeset
747 the X Toolkit version.
Dave Love <fx@gnu.org>
parents:
diff changeset
748
Dave Love <fx@gnu.org>
parents:
diff changeset
749 ** The menu bar menus have been rearranged and split up to make for a
Dave Love <fx@gnu.org>
parents:
diff changeset
750 better organization. Two new menu bar menus, Tools and Search,
Dave Love <fx@gnu.org>
parents:
diff changeset
751 contain items that were formerly in the Files and Edit menus, as well
Dave Love <fx@gnu.org>
parents:
diff changeset
752 as some that did not exist in the menu bar menus before.
Dave Love <fx@gnu.org>
parents:
diff changeset
753
Dave Love <fx@gnu.org>
parents:
diff changeset
754 ** Emacs can now display on more than one X display at the same time.
Dave Love <fx@gnu.org>
parents:
diff changeset
755 Use the command make-frame-on-display to create a frame, specifying
Dave Love <fx@gnu.org>
parents:
diff changeset
756 which display to use.
Dave Love <fx@gnu.org>
parents:
diff changeset
757
Dave Love <fx@gnu.org>
parents:
diff changeset
758 ** M-x talk-connect sets up a multi-user talk connection
Dave Love <fx@gnu.org>
parents:
diff changeset
759 via Emacs. Specify the X display of the person you want to talk to.
Dave Love <fx@gnu.org>
parents:
diff changeset
760 You can talk to any number of people (within reason) by using
Dave Love <fx@gnu.org>
parents:
diff changeset
761 this command repeatedly to specify different people.
Dave Love <fx@gnu.org>
parents:
diff changeset
762
Dave Love <fx@gnu.org>
parents:
diff changeset
763 Emacs does not make a fuss about security; the people who you talk to
Dave Love <fx@gnu.org>
parents:
diff changeset
764 can use all Emacs features, including visiting and editing files. If
Dave Love <fx@gnu.org>
parents:
diff changeset
765 this frightens you, don't use M-x talk-connect.
Dave Love <fx@gnu.org>
parents:
diff changeset
766
Dave Love <fx@gnu.org>
parents:
diff changeset
767 ** The range of integer values is now at least 2**28 on all machines.
Dave Love <fx@gnu.org>
parents:
diff changeset
768 This means the maximum size of a buffer is at least 2**27-1,
Dave Love <fx@gnu.org>
parents:
diff changeset
769 or 134,217,727.
Dave Love <fx@gnu.org>
parents:
diff changeset
770
Dave Love <fx@gnu.org>
parents:
diff changeset
771 ** When you start Emacs, you can now specify option names in
Dave Love <fx@gnu.org>
parents:
diff changeset
772 long GNU form (starting with `--') and you can abbreviate the names.
Dave Love <fx@gnu.org>
parents:
diff changeset
773
Dave Love <fx@gnu.org>
parents:
diff changeset
774 You can now specify the options in any order.
Dave Love <fx@gnu.org>
parents:
diff changeset
775 The previous requirements about the order of options
Dave Love <fx@gnu.org>
parents:
diff changeset
776 have been eliminated.
Dave Love <fx@gnu.org>
parents:
diff changeset
777
Dave Love <fx@gnu.org>
parents:
diff changeset
778 The -L or --directory option lets you specify an additional
Dave Love <fx@gnu.org>
parents:
diff changeset
779 directory to search for Lisp libraries (including libraries
Dave Love <fx@gnu.org>
parents:
diff changeset
780 that you specify with the -l or --load options).
Dave Love <fx@gnu.org>
parents:
diff changeset
781
Dave Love <fx@gnu.org>
parents:
diff changeset
782 ** Incremental search in Transient Mark mode, if the mark is already
Dave Love <fx@gnu.org>
parents:
diff changeset
783 active, now leaves the mark active and does not change its position.
Dave Love <fx@gnu.org>
parents:
diff changeset
784 You can make incremental search deactivate the mark once again with
Dave Love <fx@gnu.org>
parents:
diff changeset
785 this expression.
Dave Love <fx@gnu.org>
parents:
diff changeset
786
Dave Love <fx@gnu.org>
parents:
diff changeset
787 (add-hook 'isearch-mode-hook 'deactivate-mark)
Dave Love <fx@gnu.org>
parents:
diff changeset
788
Dave Love <fx@gnu.org>
parents:
diff changeset
789 ** C-delete now deletes a word backwards. This is for compatibility
Dave Love <fx@gnu.org>
parents:
diff changeset
790 with some editors in the PC world. (This key is not available on
Dave Love <fx@gnu.org>
parents:
diff changeset
791 ordinary ASCII terminals, because C-delete is not a distinct character
Dave Love <fx@gnu.org>
parents:
diff changeset
792 on those terminals.)
Dave Love <fx@gnu.org>
parents:
diff changeset
793
Dave Love <fx@gnu.org>
parents:
diff changeset
794 ** ESC ESC ESC is now a command to escape from various temporary modes
Dave Love <fx@gnu.org>
parents:
diff changeset
795 and states.
Dave Love <fx@gnu.org>
parents:
diff changeset
796
Dave Love <fx@gnu.org>
parents:
diff changeset
797 ** M-x pc-bindings-mode sets up bindings compatible with many PC editors.
Dave Love <fx@gnu.org>
parents:
diff changeset
798 In particular, Delete and its variants delete forward instead of backward.
Dave Love <fx@gnu.org>
parents:
diff changeset
799 Use Backspace to delete backward.
Dave Love <fx@gnu.org>
parents:
diff changeset
800
Dave Love <fx@gnu.org>
parents:
diff changeset
801 C-Backspace kills backward a word (as C-Delete normally would).
Dave Love <fx@gnu.org>
parents:
diff changeset
802 M-Backspace does undo.
Dave Love <fx@gnu.org>
parents:
diff changeset
803 Home and End move to beginning and end of line
Dave Love <fx@gnu.org>
parents:
diff changeset
804 C-Home and C-End move to beginning and end of buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
805
Dave Love <fx@gnu.org>
parents:
diff changeset
806 ** The key sequence for evaluating a Lisp expression using the minibuffer
Dave Love <fx@gnu.org>
parents:
diff changeset
807 is now ESC :. It used to be ESC ESC, but we moved it to make way for
Dave Love <fx@gnu.org>
parents:
diff changeset
808 the ESC ESC ESC feature, on the grounds that people who evaluate Lisp
Dave Love <fx@gnu.org>
parents:
diff changeset
809 expressions are experienced users and can cope with a change.
Dave Love <fx@gnu.org>
parents:
diff changeset
810 If you prefer the old ESC ESC binding, put in your `~/.emacs':
Dave Love <fx@gnu.org>
parents:
diff changeset
811
Dave Love <fx@gnu.org>
parents:
diff changeset
812 (global-set-key "\e\e" 'eval-expression)
Dave Love <fx@gnu.org>
parents:
diff changeset
813
Dave Love <fx@gnu.org>
parents:
diff changeset
814 ** The f1 function key is now equivalent to the help key. This is
Dave Love <fx@gnu.org>
parents:
diff changeset
815 done with key-translation-map; delete the binding for f1 in that map
Dave Love <fx@gnu.org>
parents:
diff changeset
816 if you want to use f1 for something else.
Dave Love <fx@gnu.org>
parents:
diff changeset
817
Dave Love <fx@gnu.org>
parents:
diff changeset
818 ** Mouse-3, in the simplest case, still sets the region. But now, it
Dave Love <fx@gnu.org>
parents:
diff changeset
819 places the mark where point was, and sets point where you click.
Dave Love <fx@gnu.org>
parents:
diff changeset
820 (It used to set the mark where you click and leave point alone.)
Dave Love <fx@gnu.org>
parents:
diff changeset
821
Dave Love <fx@gnu.org>
parents:
diff changeset
822 If you position point with Mouse-1, then scroll with the scroll bar
Dave Love <fx@gnu.org>
parents:
diff changeset
823 and use Mouse-3, Mouse-3 uses the position you specified with Mouse-1
Dave Love <fx@gnu.org>
parents:
diff changeset
824 even if it has scrolled off the screen (and point is no longer there).
Dave Love <fx@gnu.org>
parents:
diff changeset
825 This makes it easier to select a region with the mouse which is bigger
Dave Love <fx@gnu.org>
parents:
diff changeset
826 than a screenful.
Dave Love <fx@gnu.org>
parents:
diff changeset
827
Dave Love <fx@gnu.org>
parents:
diff changeset
828 Any editing of the buffer, and any cursor motion or scrolling for any
Dave Love <fx@gnu.org>
parents:
diff changeset
829 reason other than the scroll bar, cancels the special state set up by
Dave Love <fx@gnu.org>
parents:
diff changeset
830 Mouse-1--so that a subsequent Mouse-3 click will use the actual value
Dave Love <fx@gnu.org>
parents:
diff changeset
831 of point.
Dave Love <fx@gnu.org>
parents:
diff changeset
832
Dave Love <fx@gnu.org>
parents:
diff changeset
833 ** C-mouse-3 now pops up a mode-specific menu of commands--normally
Dave Love <fx@gnu.org>
parents:
diff changeset
834 the same ones available in the mode's own menu bar menus.
Dave Love <fx@gnu.org>
parents:
diff changeset
835
Dave Love <fx@gnu.org>
parents:
diff changeset
836 ** C-mouse-2 now pops up a menu of faces, indentation, justification,
Dave Love <fx@gnu.org>
parents:
diff changeset
837 and certain other text properties. This menu is also available
Dave Love <fx@gnu.org>
parents:
diff changeset
838 through the menu-bar Edit menu. It is meant for use with Enriched
Dave Love <fx@gnu.org>
parents:
diff changeset
839 mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
840
Dave Love <fx@gnu.org>
parents:
diff changeset
841 *** You can use this menu to change the face of the region.
Dave Love <fx@gnu.org>
parents:
diff changeset
842 You can also set the face of the region with the new M-g command.
Dave Love <fx@gnu.org>
parents:
diff changeset
843
Dave Love <fx@gnu.org>
parents:
diff changeset
844 *** The menu also includes commands for indenting the region,
Dave Love <fx@gnu.org>
parents:
diff changeset
845 which locally changes the values of left-margin and fill-column that
Dave Love <fx@gnu.org>
parents:
diff changeset
846 are used.
Dave Love <fx@gnu.org>
parents:
diff changeset
847
Dave Love <fx@gnu.org>
parents:
diff changeset
848 *** All fill functions now indent every line to the left-margin. If
Dave Love <fx@gnu.org>
parents:
diff changeset
849 there is also a fill-prefix, that goes after the margin indentation.
Dave Love <fx@gnu.org>
parents:
diff changeset
850
Dave Love <fx@gnu.org>
parents:
diff changeset
851 *** Open-line and newline also make sure that the lines they create
Dave Love <fx@gnu.org>
parents:
diff changeset
852 are indented to the left margin.
Dave Love <fx@gnu.org>
parents:
diff changeset
853
Dave Love <fx@gnu.org>
parents:
diff changeset
854 *** It also allows you to set the "justification" of the region:
Dave Love <fx@gnu.org>
parents:
diff changeset
855 whether it should be centered, flush right, and so forth. The fill
Dave Love <fx@gnu.org>
parents:
diff changeset
856 functions (including auto-fill-mode) will maintain the justification
Dave Love <fx@gnu.org>
parents:
diff changeset
857 and indentation that you request.
Dave Love <fx@gnu.org>
parents:
diff changeset
858
Dave Love <fx@gnu.org>
parents:
diff changeset
859 *** The new function `list-colors-display' shows you what colors are
Dave Love <fx@gnu.org>
parents:
diff changeset
860 available. This is also accessible from the C-mouse-2 menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
861
Dave Love <fx@gnu.org>
parents:
diff changeset
862 ** You can now save and load files including their faces and other
Dave Love <fx@gnu.org>
parents:
diff changeset
863 text-properties by using Enriched-mode. Files are saved in an
Dave Love <fx@gnu.org>
parents:
diff changeset
864 extended version of the MIME text/enriched format. You can use the
Dave Love <fx@gnu.org>
parents:
diff changeset
865 menus described above, or M-g and other keyboard commands, to
Dave Love <fx@gnu.org>
parents:
diff changeset
866 alter the formatting information.
Dave Love <fx@gnu.org>
parents:
diff changeset
867
Dave Love <fx@gnu.org>
parents:
diff changeset
868 ** C-mouse-1 now pops up the menu for changing the frame's default font.
Dave Love <fx@gnu.org>
parents:
diff changeset
869
Dave Love <fx@gnu.org>
parents:
diff changeset
870 ** You can input Hyper, Super, Meta, and Alt characters, as well as
Dave Love <fx@gnu.org>
parents:
diff changeset
871 non-ASCII control characters, on an ASCII-only terminal.
Dave Love <fx@gnu.org>
parents:
diff changeset
872 To do this, use
Dave Love <fx@gnu.org>
parents:
diff changeset
873
Dave Love <fx@gnu.org>
parents:
diff changeset
874 C-x @ h -- hyper
Dave Love <fx@gnu.org>
parents:
diff changeset
875 C-x @ s -- super
Dave Love <fx@gnu.org>
parents:
diff changeset
876 C-x @ m -- meta
Dave Love <fx@gnu.org>
parents:
diff changeset
877 C-x @ a -- alt
Dave Love <fx@gnu.org>
parents:
diff changeset
878 C-x @ S -- shift
Dave Love <fx@gnu.org>
parents:
diff changeset
879 C-x @ c -- control
Dave Love <fx@gnu.org>
parents:
diff changeset
880
Dave Love <fx@gnu.org>
parents:
diff changeset
881 These are not ordinary key sequences; they operate through
Dave Love <fx@gnu.org>
parents:
diff changeset
882 function-key-map, which means they can be used even in the
Dave Love <fx@gnu.org>
parents:
diff changeset
883 middle of an ordinary key sequence.
Dave Love <fx@gnu.org>
parents:
diff changeset
884
Dave Love <fx@gnu.org>
parents:
diff changeset
885 ** Outline minor mode and Hideif mode now use C-c @ as their prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
886 character.
Dave Love <fx@gnu.org>
parents:
diff changeset
887
Dave Love <fx@gnu.org>
parents:
diff changeset
888 ** Echo area messages are now logged in the "*Messages*" buffer. The
Dave Love <fx@gnu.org>
parents:
diff changeset
889 size of this buffer is limited to message-log-max lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
890
Dave Love <fx@gnu.org>
parents:
diff changeset
891 ** RET in various special modes for read-only buffers that contain
Dave Love <fx@gnu.org>
parents:
diff changeset
892 lists of items now selects the item point is on. These modes include
Dave Love <fx@gnu.org>
parents:
diff changeset
893 Dired, Compilation buffers, Buffer-menu, Tar mode, and Occur mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
894 (In Info, RET follows the reference near point; in completion list
Dave Love <fx@gnu.org>
parents:
diff changeset
895 buffers, RET chooses the completion around point.)
Dave Love <fx@gnu.org>
parents:
diff changeset
896
Dave Love <fx@gnu.org>
parents:
diff changeset
897 ** set-background-color now updates the modeline face in a special
Dave Love <fx@gnu.org>
parents:
diff changeset
898 way. If that face was previously set up to be reverse video, the
Dave Love <fx@gnu.org>
parents:
diff changeset
899 reverse of the default face, then set-background-color updates it so
Dave Love <fx@gnu.org>
parents:
diff changeset
900 that it remains the reverse of the default face.
Dave Love <fx@gnu.org>
parents:
diff changeset
901
Dave Love <fx@gnu.org>
parents:
diff changeset
902 ** The functions raise-frame and lower-frame are now commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
903 When used interactively, they apply to the selected frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
904
Dave Love <fx@gnu.org>
parents:
diff changeset
905 ** M-x buffer-menu now displays the buffer list in the selected window.
Dave Love <fx@gnu.org>
parents:
diff changeset
906 Use M-x buffer-menu-other-window to display it in another window.
Dave Love <fx@gnu.org>
parents:
diff changeset
907
Dave Love <fx@gnu.org>
parents:
diff changeset
908 ** M-w followed by a kill command now *does not* append the text in
Dave Love <fx@gnu.org>
parents:
diff changeset
909 the kill ring. In consequence, M-w followed by C-w works as you would
Dave Love <fx@gnu.org>
parents:
diff changeset
910 expect: it leaves the top of the kill ring matching the region that
Dave Love <fx@gnu.org>
parents:
diff changeset
911 you killed.
Dave Love <fx@gnu.org>
parents:
diff changeset
912
Dave Love <fx@gnu.org>
parents:
diff changeset
913 ** In Lisp mode, the C-M-x command now executes defvar forms in a
Dave Love <fx@gnu.org>
parents:
diff changeset
914 special way: it unconditionally sets the variable to the specified
Dave Love <fx@gnu.org>
parents:
diff changeset
915 default value, if there is one. Normal execution of defvar does not
Dave Love <fx@gnu.org>
parents:
diff changeset
916 alter the variable if it already has a non-void value.
Dave Love <fx@gnu.org>
parents:
diff changeset
917
Dave Love <fx@gnu.org>
parents:
diff changeset
918 ** In completion list buffers, the left and right arrow keys run the
Dave Love <fx@gnu.org>
parents:
diff changeset
919 new commands previous-completion and next-completion. They move one
Dave Love <fx@gnu.org>
parents:
diff changeset
920 completion at a time.
Dave Love <fx@gnu.org>
parents:
diff changeset
921
Dave Love <fx@gnu.org>
parents:
diff changeset
922 ** While doing completion in the minibuffer, the `prior' or `pageup'
Dave Love <fx@gnu.org>
parents:
diff changeset
923 key switches to the completion list window.
Dave Love <fx@gnu.org>
parents:
diff changeset
924
Dave Love <fx@gnu.org>
parents:
diff changeset
925 ** When you exit the minibuffer with empty contents, the empty string
Dave Love <fx@gnu.org>
parents:
diff changeset
926 is not put in the minibuffer history.
Dave Love <fx@gnu.org>
parents:
diff changeset
927
Dave Love <fx@gnu.org>
parents:
diff changeset
928 ** The default buffer for insert-buffer is now the "first" buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
929 other than the current one. If you have more than one window, this
Dave Love <fx@gnu.org>
parents:
diff changeset
930 is a buffer visible in another window. (Usually it is the buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
931 that C-M-v would scroll.)
Dave Love <fx@gnu.org>
parents:
diff changeset
932
Dave Love <fx@gnu.org>
parents:
diff changeset
933 ** The etags program is now capable of recording tags based on regular
Dave Love <fx@gnu.org>
parents:
diff changeset
934 expressions provided on the command line.
Dave Love <fx@gnu.org>
parents:
diff changeset
935
Dave Love <fx@gnu.org>
parents:
diff changeset
936 This new feature allows easy support for constructs not normally
Dave Love <fx@gnu.org>
parents:
diff changeset
937 handled by etags, such as the macros frequently used in big C/C++
Dave Love <fx@gnu.org>
parents:
diff changeset
938 projects to define project-specific structures. It also enables the
Dave Love <fx@gnu.org>
parents:
diff changeset
939 use of etags and TAGS files for languages not supported by etags.
Dave Love <fx@gnu.org>
parents:
diff changeset
940
Dave Love <fx@gnu.org>
parents:
diff changeset
941 The Emacs manual section on Tags contains explanations and examples
Dave Love <fx@gnu.org>
parents:
diff changeset
942 for Emacs's DEFVAR, VHDL, Cobol, Postscript and TCL.
Dave Love <fx@gnu.org>
parents:
diff changeset
943
Dave Love <fx@gnu.org>
parents:
diff changeset
944 ** Various mode-specific commands that used to be bound to C-c LETTER
Dave Love <fx@gnu.org>
parents:
diff changeset
945 have been moved.
Dave Love <fx@gnu.org>
parents:
diff changeset
946
Dave Love <fx@gnu.org>
parents:
diff changeset
947 *** In gnus-uu mode, gnus-uu-interactive-scan-directory is now on C-c C-d,
Dave Love <fx@gnu.org>
parents:
diff changeset
948 and gnus-uu-interactive-save-current-file is on C-c C-z.
Dave Love <fx@gnu.org>
parents:
diff changeset
949
Dave Love <fx@gnu.org>
parents:
diff changeset
950 *** In Scribe mode, scribe-insert-environment is now on C-c C-v,
Dave Love <fx@gnu.org>
parents:
diff changeset
951 scribe-chapter is on C-c C-c, scribe-subsection is on C-c C-s,
Dave Love <fx@gnu.org>
parents:
diff changeset
952 scribe-section is on C-c C-t, scribe-bracket-region-be is on C-c C-e,
Dave Love <fx@gnu.org>
parents:
diff changeset
953 scribe-italicize-word is on C-c C-i, scribe-bold-word is on C-c C-b,
Dave Love <fx@gnu.org>
parents:
diff changeset
954 and scribe-underline-word is on C-c C-u.
Dave Love <fx@gnu.org>
parents:
diff changeset
955
Dave Love <fx@gnu.org>
parents:
diff changeset
956 *** In Gomoku mode, gomoku-human-takes-back is now on C-c C-b,
Dave Love <fx@gnu.org>
parents:
diff changeset
957 gomoku-human-plays is on C-c C-p, gomoku-human-resigns is on C-c C-r,
Dave Love <fx@gnu.org>
parents:
diff changeset
958 and gomoku-emacs-plays is on C-c C-e.
Dave Love <fx@gnu.org>
parents:
diff changeset
959
Dave Love <fx@gnu.org>
parents:
diff changeset
960 *** In the Outline mode defined in allout.el,
Dave Love <fx@gnu.org>
parents:
diff changeset
961 outline-rebullet-current-heading is now on C-c *.
Dave Love <fx@gnu.org>
parents:
diff changeset
962
Dave Love <fx@gnu.org>
parents:
diff changeset
963 ** M-s in Info now searches through the nodes of the Info file,
Dave Love <fx@gnu.org>
parents:
diff changeset
964 just like s. The alias M-s was added so that you can use the same
Dave Love <fx@gnu.org>
parents:
diff changeset
965 command for searches in both Info and Rmail.
Dave Love <fx@gnu.org>
parents:
diff changeset
966
Dave Love <fx@gnu.org>
parents:
diff changeset
967 ** iso-acc.el now lets you enter inverted-! and inverted-?
Dave Love <fx@gnu.org>
parents:
diff changeset
968 with the sequences ~! and ~?.
Dave Love <fx@gnu.org>
parents:
diff changeset
969
Dave Love <fx@gnu.org>
parents:
diff changeset
970 ** M-x compare-windows now pushes mark in both windows before
Dave Love <fx@gnu.org>
parents:
diff changeset
971 it starts moving point.
Dave Love <fx@gnu.org>
parents:
diff changeset
972
Dave Love <fx@gnu.org>
parents:
diff changeset
973 ** There are two new commands in Dired, A (dired-do-search)
Dave Love <fx@gnu.org>
parents:
diff changeset
974 and Q (dired-do-query-replace). These are similar to tags-search and
Dave Love <fx@gnu.org>
parents:
diff changeset
975 tags-query-replace, but instead of searching the list of files that
Dave Love <fx@gnu.org>
parents:
diff changeset
976 appears in a tags table, they search all the files marked in Dired.
Dave Love <fx@gnu.org>
parents:
diff changeset
977
Dave Love <fx@gnu.org>
parents:
diff changeset
978 ** Changes to dabbrev.
Dave Love <fx@gnu.org>
parents:
diff changeset
979
Dave Love <fx@gnu.org>
parents:
diff changeset
980 A new function, `dabbrev-completion' (bound to M-C-/), expands the
Dave Love <fx@gnu.org>
parents:
diff changeset
981 unique part of an abbreviation.
Dave Love <fx@gnu.org>
parents:
diff changeset
982
Dave Love <fx@gnu.org>
parents:
diff changeset
983 Dabbrev now looks for expansions in other buffers, looks for symbols
Dave Love <fx@gnu.org>
parents:
diff changeset
984 instead of words and it works in the minibuffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
985
Dave Love <fx@gnu.org>
parents:
diff changeset
986 Dabbrev can be customized to work for shell scripts, with variables
Dave Love <fx@gnu.org>
parents:
diff changeset
987 that sometimes have and sometimes haven't a leading "$". See the
Dave Love <fx@gnu.org>
parents:
diff changeset
988 variable 'dabbrev-abbrev-skip-leading-regexp'.
Dave Love <fx@gnu.org>
parents:
diff changeset
989
Dave Love <fx@gnu.org>
parents:
diff changeset
990 ** In Rmail, the command rmail-input-menu has been eliminated. The
Dave Love <fx@gnu.org>
parents:
diff changeset
991 feature of selecting an Rmail file from a menu is now implemented in
Dave Love <fx@gnu.org>
parents:
diff changeset
992 another way.
Dave Love <fx@gnu.org>
parents:
diff changeset
993
Dave Love <fx@gnu.org>
parents:
diff changeset
994 ** Bookmarks changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
995
Dave Love <fx@gnu.org>
parents:
diff changeset
996 *** It now works to set bookmarks in Info nodes.
Dave Love <fx@gnu.org>
parents:
diff changeset
997
Dave Love <fx@gnu.org>
parents:
diff changeset
998 *** Bookmarks can have annotations; type "C-h m" after doing
Dave Love <fx@gnu.org>
parents:
diff changeset
999 "M-x list-bookmarks", for more information on annotations.
Dave Love <fx@gnu.org>
parents:
diff changeset
1000
Dave Love <fx@gnu.org>
parents:
diff changeset
1001 *** The bookmark-jump popup menu function is now `bookmark-menu-jump', for
Dave Love <fx@gnu.org>
parents:
diff changeset
1002 those who bind it to a mouse click.
Dave Love <fx@gnu.org>
parents:
diff changeset
1003
Dave Love <fx@gnu.org>
parents:
diff changeset
1004 *** The default bookmarks file name is now "~/.emacs.bmk". If you
Dave Love <fx@gnu.org>
parents:
diff changeset
1005 already have a bookmarks file, it will be renamed automagically when
Dave Love <fx@gnu.org>
parents:
diff changeset
1006 you next load it.
Dave Love <fx@gnu.org>
parents:
diff changeset
1007
Dave Love <fx@gnu.org>
parents:
diff changeset
1008 ** New package, ps-print.
Dave Love <fx@gnu.org>
parents:
diff changeset
1009
Dave Love <fx@gnu.org>
parents:
diff changeset
1010 The ps-print package generates PostScript printouts of buffers or
Dave Love <fx@gnu.org>
parents:
diff changeset
1011 regions, and includes face attributes such as color, underlining,
Dave Love <fx@gnu.org>
parents:
diff changeset
1012 boldface and italics in the printed output.
Dave Love <fx@gnu.org>
parents:
diff changeset
1013
Dave Love <fx@gnu.org>
parents:
diff changeset
1014 ** New package, msb.
Dave Love <fx@gnu.org>
parents:
diff changeset
1015
Dave Love <fx@gnu.org>
parents:
diff changeset
1016 The msb package provides a buffer-menu in the menubar with separate
Dave Love <fx@gnu.org>
parents:
diff changeset
1017 menus for different types of buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
1018
Dave Love <fx@gnu.org>
parents:
diff changeset
1019 ** `cpp.el' is a new library that can highlight or hide parts of a C
Dave Love <fx@gnu.org>
parents:
diff changeset
1020 file according to C preprocessor conditionals. To try it, run the
Dave Love <fx@gnu.org>
parents:
diff changeset
1021 command M-x cpp-highlight-buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1022
Dave Love <fx@gnu.org>
parents:
diff changeset
1023 ** Changes in CC mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1024
Dave Love <fx@gnu.org>
parents:
diff changeset
1025 *** c-set-offset and related functions and variables can now accept
Dave Love <fx@gnu.org>
parents:
diff changeset
1026 variable symbols. Also ++ and -- which mean 2* positive and negative
Dave Love <fx@gnu.org>
parents:
diff changeset
1027 c-basic-offset respectively.
Dave Love <fx@gnu.org>
parents:
diff changeset
1028
Dave Love <fx@gnu.org>
parents:
diff changeset
1029 *** New variable, c-recognize-knr-p, which controls whether K&R C
Dave Love <fx@gnu.org>
parents:
diff changeset
1030 constructs will be recognized. Trying to recognize K&R constructs is a
Dave Love <fx@gnu.org>
parents:
diff changeset
1031 time hog so if you're programming strictly in ANSI C, set this
Dave Love <fx@gnu.org>
parents:
diff changeset
1032 variable to nil (it should already be nil in c++-mode).
Dave Love <fx@gnu.org>
parents:
diff changeset
1033
Dave Love <fx@gnu.org>
parents:
diff changeset
1034 *** New variable, c-hanging-comment-ender-p for controlling
Dave Love <fx@gnu.org>
parents:
diff changeset
1035 c-fill-paragraph's behavior.
Dave Love <fx@gnu.org>
parents:
diff changeset
1036
Dave Love <fx@gnu.org>
parents:
diff changeset
1037 *** New syntactic symbol: statement-case-open. This is assigned to lines
Dave Love <fx@gnu.org>
parents:
diff changeset
1038 containing an open brace just after a case/default label.
Dave Love <fx@gnu.org>
parents:
diff changeset
1039
Dave Love <fx@gnu.org>
parents:
diff changeset
1040 *** New variable, c-progress-interval, which controls minibuffer update
Dave Love <fx@gnu.org>
parents:
diff changeset
1041 message displays during long re-indention. This is a new feature
Dave Love <fx@gnu.org>
parents:
diff changeset
1042 which prints percentage complete messages at specified intervals.
Dave Love <fx@gnu.org>
parents:
diff changeset
1043
Dave Love <fx@gnu.org>
parents:
diff changeset
1044 ** Makefile mode changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
1045
Dave Love <fx@gnu.org>
parents:
diff changeset
1046 *** The electric keys are not enabled by default.
Dave Love <fx@gnu.org>
parents:
diff changeset
1047
Dave Love <fx@gnu.org>
parents:
diff changeset
1048 *** There is now a mode-specific menu bar menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
1049
Dave Love <fx@gnu.org>
parents:
diff changeset
1050 *** The mode supports font-lock, add-log, and imenu.
Dave Love <fx@gnu.org>
parents:
diff changeset
1051
Dave Love <fx@gnu.org>
parents:
diff changeset
1052 *** The command M-TAB does completion of target names and variable names.
Dave Love <fx@gnu.org>
parents:
diff changeset
1053
Dave Love <fx@gnu.org>
parents:
diff changeset
1054 ** icomplete.el now works more like a minor mode. Use M-x icomplete-mode
Dave Love <fx@gnu.org>
parents:
diff changeset
1055 to turn it on and off.
Dave Love <fx@gnu.org>
parents:
diff changeset
1056
Dave Love <fx@gnu.org>
parents:
diff changeset
1057 Icomplete now supports an `icomplete-minibuffer-setup-hook', which is
Dave Love <fx@gnu.org>
parents:
diff changeset
1058 run on minibuffer setup whenever icompletion will be occurring. This
Dave Love <fx@gnu.org>
parents:
diff changeset
1059 hook can be used to customize interoperation of icomplete with other
Dave Love <fx@gnu.org>
parents:
diff changeset
1060 minibuffer-specific packages, eg rsz-mini. See the doc string for
Dave Love <fx@gnu.org>
parents:
diff changeset
1061 more info.
Dave Love <fx@gnu.org>
parents:
diff changeset
1062
Dave Love <fx@gnu.org>
parents:
diff changeset
1063 ** Ediff change.
Dave Love <fx@gnu.org>
parents:
diff changeset
1064
Dave Love <fx@gnu.org>
parents:
diff changeset
1065 Use ediff-revision instead of vc-ediff. It also replaces rcs-ediff,
Dave Love <fx@gnu.org>
parents:
diff changeset
1066 for those who use that; if you want to use a version control package
Dave Love <fx@gnu.org>
parents:
diff changeset
1067 other than vc.el, you must set the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
1068 ediff-version-control-package to specify which package.
Dave Love <fx@gnu.org>
parents:
diff changeset
1069
Dave Love <fx@gnu.org>
parents:
diff changeset
1070 ** VC now supports branches with RCS.
Dave Love <fx@gnu.org>
parents:
diff changeset
1071
Dave Love <fx@gnu.org>
parents:
diff changeset
1072 You can use C-u C-x C-q to select any branch or version by number.
Dave Love <fx@gnu.org>
parents:
diff changeset
1073 It reads the version number or branch number with the minibuffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
1074 then checks out the file unlocked.
Dave Love <fx@gnu.org>
parents:
diff changeset
1075
Dave Love <fx@gnu.org>
parents:
diff changeset
1076 Type C-x C-q again to lock the selected branch or version.
Dave Love <fx@gnu.org>
parents:
diff changeset
1077 When you check in changes to that branch or version, there are two
Dave Love <fx@gnu.org>
parents:
diff changeset
1078 possibilities:
Dave Love <fx@gnu.org>
parents:
diff changeset
1079
Dave Love <fx@gnu.org>
parents:
diff changeset
1080 -- If you've selected a branch, or a version at the tip of a branch,
Dave Love <fx@gnu.org>
parents:
diff changeset
1081 then the new version adds to that branch. If you wish to create a
Dave Love <fx@gnu.org>
parents:
diff changeset
1082 new branch, use C-u C-x C-q to specify a version number when you check
Dave Love <fx@gnu.org>
parents:
diff changeset
1083 in the new version.
Dave Love <fx@gnu.org>
parents:
diff changeset
1084
Dave Love <fx@gnu.org>
parents:
diff changeset
1085 -- If you've selected an inner version which is not the latest in its
Dave Love <fx@gnu.org>
parents:
diff changeset
1086 branch, then the new version automatically creates a new branch.
Dave Love <fx@gnu.org>
parents:
diff changeset
1087
Dave Love <fx@gnu.org>
parents:
diff changeset
1088 ** VC now supports CVS as well as RCS and SCCS.
Dave Love <fx@gnu.org>
parents:
diff changeset
1089
Dave Love <fx@gnu.org>
parents:
diff changeset
1090 Since there are no locks in CVS, some things behave slightly
Dave Love <fx@gnu.org>
parents:
diff changeset
1091 different when the backend is CVS. When vc-next-action is invoked
Dave Love <fx@gnu.org>
parents:
diff changeset
1092 in a directory handled by CVS, it does the following:
Dave Love <fx@gnu.org>
parents:
diff changeset
1093
Dave Love <fx@gnu.org>
parents:
diff changeset
1094 If the file is not already registered, this registers it for version
Dave Love <fx@gnu.org>
parents:
diff changeset
1095 control. This does a "cvs add", but no "cvs commit".
Dave Love <fx@gnu.org>
parents:
diff changeset
1096 If the file is added but not committed, it is committed.
Dave Love <fx@gnu.org>
parents:
diff changeset
1097 If the file has not been changed, neither in your working area or
Dave Love <fx@gnu.org>
parents:
diff changeset
1098 in the repository, a message is printed and nothing is done.
Dave Love <fx@gnu.org>
parents:
diff changeset
1099 If your working file is changed, but the repository file is
Dave Love <fx@gnu.org>
parents:
diff changeset
1100 unchanged, this pops up a buffer for entry of a log message; when you
Dave Love <fx@gnu.org>
parents:
diff changeset
1101 finish the log message with C-c C-c, that checks in the resulting
Dave Love <fx@gnu.org>
parents:
diff changeset
1102 changes along with the log message as change commentary. A writable
Dave Love <fx@gnu.org>
parents:
diff changeset
1103 file remains in existence.
Dave Love <fx@gnu.org>
parents:
diff changeset
1104
Dave Love <fx@gnu.org>
parents:
diff changeset
1105 If vc-next-action changes the repository file, it asks you
Dave Love <fx@gnu.org>
parents:
diff changeset
1106 whether to merge in the changes into your working copy.
Dave Love <fx@gnu.org>
parents:
diff changeset
1107
Dave Love <fx@gnu.org>
parents:
diff changeset
1108 vc-directory, when started in a CVS file hierarchy, reports
Dave Love <fx@gnu.org>
parents:
diff changeset
1109 all files that are modified (and thus need to be committed).
Dave Love <fx@gnu.org>
parents:
diff changeset
1110 (When the backend is RCS or SCCS vc-directory reports all
Dave Love <fx@gnu.org>
parents:
diff changeset
1111 locked files).
Dave Love <fx@gnu.org>
parents:
diff changeset
1112
Dave Love <fx@gnu.org>
parents:
diff changeset
1113 VC has no support for running the initial "cvs checkout" to get a
Dave Love <fx@gnu.org>
parents:
diff changeset
1114 working copy of a module. You can only use VC in a working copy of
Dave Love <fx@gnu.org>
parents:
diff changeset
1115 a module.
Dave Love <fx@gnu.org>
parents:
diff changeset
1116
Dave Love <fx@gnu.org>
parents:
diff changeset
1117 You can disable the CVS support as follows:
Dave Love <fx@gnu.org>
parents:
diff changeset
1118
Dave Love <fx@gnu.org>
parents:
diff changeset
1119 (setq vc-master-templates (delq 'vc-find-cvs-master vc-master-templates))
Dave Love <fx@gnu.org>
parents:
diff changeset
1120
Dave Love <fx@gnu.org>
parents:
diff changeset
1121 or by setting vc-handle-cvs to nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
1122
Dave Love <fx@gnu.org>
parents:
diff changeset
1123 This may be desirable if you run a non-standard version of CVS, or
Dave Love <fx@gnu.org>
parents:
diff changeset
1124 if CVS was compiled with FORCE_USE_EDITOR or (possibly)
Dave Love <fx@gnu.org>
parents:
diff changeset
1125 RELATIVE_REPOS.
Dave Love <fx@gnu.org>
parents:
diff changeset
1126
Dave Love <fx@gnu.org>
parents:
diff changeset
1127 ** Comint and shell mode changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
1128
Dave Love <fx@gnu.org>
parents:
diff changeset
1129 *** Completion works with file names containing quoted characters.
Dave Love <fx@gnu.org>
parents:
diff changeset
1130
Dave Love <fx@gnu.org>
parents:
diff changeset
1131 File names containing special characters (such as " ", "!", etc.) that are
Dave Love <fx@gnu.org>
parents:
diff changeset
1132 quoted with a "\" character are recognised during completion. Special
Dave Love <fx@gnu.org>
parents:
diff changeset
1133 characters are quoted when they are inserted during completion.
Dave Love <fx@gnu.org>
parents:
diff changeset
1134
Dave Love <fx@gnu.org>
parents:
diff changeset
1135 *** You can use M-x comint-truncate-buffer to truncate the buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1136
Dave Love <fx@gnu.org>
parents:
diff changeset
1137 When this command is run, the buffer is truncated to a maximum number
Dave Love <fx@gnu.org>
parents:
diff changeset
1138 of lines, specified by the variable comint-buffer-maximum-size. Just
Dave Love <fx@gnu.org>
parents:
diff changeset
1139 like the command comint-strip-ctrl-m, this can be run automatically
Dave Love <fx@gnu.org>
parents:
diff changeset
1140 during process output by doing this:
Dave Love <fx@gnu.org>
parents:
diff changeset
1141
Dave Love <fx@gnu.org>
parents:
diff changeset
1142 (add-hook 'comint-output-filter-functions
Dave Love <fx@gnu.org>
parents:
diff changeset
1143 'comint-truncate-buffer)
Dave Love <fx@gnu.org>
parents:
diff changeset
1144
Dave Love <fx@gnu.org>
parents:
diff changeset
1145 ** Telnet mode buffer name changed.
Dave Love <fx@gnu.org>
parents:
diff changeset
1146
Dave Love <fx@gnu.org>
parents:
diff changeset
1147 The buffer name for a Telnet buffer is now *telnet-HOST*, not
Dave Love <fx@gnu.org>
parents:
diff changeset
1148 *HOST-telnet*. This is for consistency with other Emacs packages.
Dave Love <fx@gnu.org>
parents:
diff changeset
1149
Dave Love <fx@gnu.org>
parents:
diff changeset
1150 ** M-x man (man) is now faster and more robust. On systems where the
Dave Love <fx@gnu.org>
parents:
diff changeset
1151 entire man page is indented, the indentation is removed.
Dave Love <fx@gnu.org>
parents:
diff changeset
1152
Dave Love <fx@gnu.org>
parents:
diff changeset
1153 The user option names that used to end in -p now end in -flag. The
Dave Love <fx@gnu.org>
parents:
diff changeset
1154 new names are: Man-reuse-okay-flag, Man-downcase-section-letters-flag,
Dave Love <fx@gnu.org>
parents:
diff changeset
1155 Man-circular-pages-flag. The Man-notify user option has been renamed to
Dave Love <fx@gnu.org>
parents:
diff changeset
1156 Man-notify-method and accepts one more value, `pushy', that just
Dave Love <fx@gnu.org>
parents:
diff changeset
1157 switches the current buffer to the manpage buffer, without switching
Dave Love <fx@gnu.org>
parents:
diff changeset
1158 frames nor changing your windows configuration.
Dave Love <fx@gnu.org>
parents:
diff changeset
1159
Dave Love <fx@gnu.org>
parents:
diff changeset
1160 A new user option Man-fontify-manpage-flag disables fontification
Dave Love <fx@gnu.org>
parents:
diff changeset
1161 (thus speeding up man) when set to nil. Default is to fontify if a
Dave Love <fx@gnu.org>
parents:
diff changeset
1162 window system is used. Two new user options Man-overstrike-face
Dave Love <fx@gnu.org>
parents:
diff changeset
1163 (default 'bold) and Man-underline-face (default 'underline) can be set
Dave Love <fx@gnu.org>
parents:
diff changeset
1164 to the preferred faces to be used for the words that man overstrikes
Dave Love <fx@gnu.org>
parents:
diff changeset
1165 and underlines. Useful for those who like coloured man pages.
Dave Love <fx@gnu.org>
parents:
diff changeset
1166
Dave Love <fx@gnu.org>
parents:
diff changeset
1167 Two new interactive functions are provided: Man-cleanup-manpage and
Dave Love <fx@gnu.org>
parents:
diff changeset
1168 Man-fontify-manpage. Both can be used on a buffer that contains the
Dave Love <fx@gnu.org>
parents:
diff changeset
1169 output of a `rsh host man manpage' command, or the output of an
Dave Love <fx@gnu.org>
parents:
diff changeset
1170 `nroff -man -Tman manpage' command to make them readable.
Dave Love <fx@gnu.org>
parents:
diff changeset
1171 Man-cleanup-manpage is faster, but does not fontify.
Dave Love <fx@gnu.org>
parents:
diff changeset
1172
Dave Love <fx@gnu.org>
parents:
diff changeset
1173 ** The new function modify-face makes it easy to specify
Dave Love <fx@gnu.org>
parents:
diff changeset
1174 all the attributes of a face, all at once.
Dave Love <fx@gnu.org>
parents:
diff changeset
1175
Dave Love <fx@gnu.org>
parents:
diff changeset
1176 ** Faces now support background stippling.
Dave Love <fx@gnu.org>
parents:
diff changeset
1177
Dave Love <fx@gnu.org>
parents:
diff changeset
1178 Use the command set-face-stipple to specify the stipple-pattern for a
Dave Love <fx@gnu.org>
parents:
diff changeset
1179 face. Use face-stipple to access the specified stipple pattern. The
Dave Love <fx@gnu.org>
parents:
diff changeset
1180 existing face functions now handle the stipple pattern when
Dave Love <fx@gnu.org>
parents:
diff changeset
1181 appropriate.
Dave Love <fx@gnu.org>
parents:
diff changeset
1182
Dave Love <fx@gnu.org>
parents:
diff changeset
1183 If you specify one of the standard gray colors as a face background
Dave Love <fx@gnu.org>
parents:
diff changeset
1184 color, and your display doesn't handle gray, Emacs automatically uses
Dave Love <fx@gnu.org>
parents:
diff changeset
1185 stipple instead to get the same effect.
Dave Love <fx@gnu.org>
parents:
diff changeset
1186
Dave Love <fx@gnu.org>
parents:
diff changeset
1187 ** Changes in Font Lock mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1188
Dave Love <fx@gnu.org>
parents:
diff changeset
1189 *** Fontification
Dave Love <fx@gnu.org>
parents:
diff changeset
1190
Dave Love <fx@gnu.org>
parents:
diff changeset
1191 Two new default faces are provided; `font-lock-variable-name-face' and
Dave Love <fx@gnu.org>
parents:
diff changeset
1192 `font-lock-reference-face'. The face `font-lock-doc-string-face' has
Dave Love <fx@gnu.org>
parents:
diff changeset
1193 been removed since it is the same as the existing
Dave Love <fx@gnu.org>
parents:
diff changeset
1194 `font-lock-string-face'. Where appropriate, fontification
Dave Love <fx@gnu.org>
parents:
diff changeset
1195 automatically uses these new faces.
Dave Love <fx@gnu.org>
parents:
diff changeset
1196
Dave Love <fx@gnu.org>
parents:
diff changeset
1197 Fontification via commands `font-lock-mode' and
Dave Love <fx@gnu.org>
parents:
diff changeset
1198 `font-lock-fontify-buffer' is now cleanly interruptible (i.e., with
Dave Love <fx@gnu.org>
parents:
diff changeset
1199 C-g). If you interrupt during the fontification process, the buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
1200 remains in its previous modified state and all highlighting is removed
Dave Love <fx@gnu.org>
parents:
diff changeset
1201 from the buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1202
Dave Love <fx@gnu.org>
parents:
diff changeset
1203 For C/C++ modes, Font Lock mode is much faster but highlights much
Dave Love <fx@gnu.org>
parents:
diff changeset
1204 more. Other modes are faster/more extensive/more discriminatory, or a
Dave Love <fx@gnu.org>
parents:
diff changeset
1205 combination of these.
Dave Love <fx@gnu.org>
parents:
diff changeset
1206
Dave Love <fx@gnu.org>
parents:
diff changeset
1207 To enable Font Lock mode, add the new function `turn-on-font-lock' in
Dave Love <fx@gnu.org>
parents:
diff changeset
1208 one of the following ways:
Dave Love <fx@gnu.org>
parents:
diff changeset
1209
Dave Love <fx@gnu.org>
parents:
diff changeset
1210 (add-hook 'c-mode-hook 'turn-on-font-lock)
Dave Love <fx@gnu.org>
parents:
diff changeset
1211
Dave Love <fx@gnu.org>
parents:
diff changeset
1212 Or for any visited file with:
Dave Love <fx@gnu.org>
parents:
diff changeset
1213
Dave Love <fx@gnu.org>
parents:
diff changeset
1214 (add-hook 'find-file-hooks 'turn-on-font-lock)
Dave Love <fx@gnu.org>
parents:
diff changeset
1215
Dave Love <fx@gnu.org>
parents:
diff changeset
1216 *** Supports color and grayscale displays
Dave Love <fx@gnu.org>
parents:
diff changeset
1217
Dave Love <fx@gnu.org>
parents:
diff changeset
1218 Font Lock mode supports different ways of highlighting, depending on
Dave Love <fx@gnu.org>
parents:
diff changeset
1219 the type of display and background shade. Attributes (face color,
Dave Love <fx@gnu.org>
parents:
diff changeset
1220 bold, italic and underline, and display type and background mode) can
Dave Love <fx@gnu.org>
parents:
diff changeset
1221 be controlled either from Emacs Lisp or X resources.
Dave Love <fx@gnu.org>
parents:
diff changeset
1222
Dave Love <fx@gnu.org>
parents:
diff changeset
1223 See the new variables `font-lock-display-type' and
Dave Love <fx@gnu.org>
parents:
diff changeset
1224 `font-lock-face-attributes'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1225
Dave Love <fx@gnu.org>
parents:
diff changeset
1226 *** Supports more modes
Dave Love <fx@gnu.org>
parents:
diff changeset
1227
Dave Love <fx@gnu.org>
parents:
diff changeset
1228 The following modes are directly supported:
Dave Love <fx@gnu.org>
parents:
diff changeset
1229
Dave Love <fx@gnu.org>
parents:
diff changeset
1230 ada-mode, asm-mode, bibtex-mode, c++-c-mode, c++-mode, c-mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
1231 change-log-mode, compilation-mode, dired-mode, emacs-lisp-mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
1232 fortran-mode, latex-mode, lisp-mode, mail-mode, makefile-mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
1233 outline-mode, pascal-mode, perl-mode, plain-tex-mode, rmail-mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
1234 rmail-summary-mode, scheme-mode, shell-mode, slitex-mode, tex-mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
1235 texinfo-mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1236
Dave Love <fx@gnu.org>
parents:
diff changeset
1237 See the new variables `font-lock-defaults-alist' and
Dave Love <fx@gnu.org>
parents:
diff changeset
1238 `font-lock-defaults'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1239
Dave Love <fx@gnu.org>
parents:
diff changeset
1240 Some modes support different levels of fontification. You can choose
Dave Love <fx@gnu.org>
parents:
diff changeset
1241 to use the minimum or maximum available decoration by changing the
Dave Love <fx@gnu.org>
parents:
diff changeset
1242 value of the new variable `font-lock-maximum-decoration'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1243
Dave Love <fx@gnu.org>
parents:
diff changeset
1244 Programmers are urged to make available to the community their own
Dave Love <fx@gnu.org>
parents:
diff changeset
1245 keywords for modes not yet supported. See font-lock.el for
Dave Love <fx@gnu.org>
parents:
diff changeset
1246 information about efficiency.
Dave Love <fx@gnu.org>
parents:
diff changeset
1247
Dave Love <fx@gnu.org>
parents:
diff changeset
1248 *** fast-lock
Dave Love <fx@gnu.org>
parents:
diff changeset
1249
Dave Love <fx@gnu.org>
parents:
diff changeset
1250 The fast-lock package speeds up Font Lock mode by saving font choices
Dave Love <fx@gnu.org>
parents:
diff changeset
1251 in associated cache files. When you visit a file with Font Lock mode
Dave Love <fx@gnu.org>
parents:
diff changeset
1252 and Fast Lock mode turned on for the first time, the file's buffer is
Dave Love <fx@gnu.org>
parents:
diff changeset
1253 fontified as normal. When certain events occur (such as exiting
Dave Love <fx@gnu.org>
parents:
diff changeset
1254 Emacs), Fast Lock saves the highlighting in a cache file. When you
Dave Love <fx@gnu.org>
parents:
diff changeset
1255 subsequently visit this file, its cache is used to restore the
Dave Love <fx@gnu.org>
parents:
diff changeset
1256 highlighting.
Dave Love <fx@gnu.org>
parents:
diff changeset
1257
Dave Love <fx@gnu.org>
parents:
diff changeset
1258 To use this package, put in your `~/.emacs':
Dave Love <fx@gnu.org>
parents:
diff changeset
1259
Dave Love <fx@gnu.org>
parents:
diff changeset
1260 (add-hook 'font-lock-mode-hook 'turn-on-fast-lock)
Dave Love <fx@gnu.org>
parents:
diff changeset
1261
Dave Love <fx@gnu.org>
parents:
diff changeset
1262 To control the use of caches, see the documentation for `fast-lock-mode'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1263
Dave Love <fx@gnu.org>
parents:
diff changeset
1264 ** You can tell pop-to-buffer to display certain buffers in the selected
Dave Love <fx@gnu.org>
parents:
diff changeset
1265 window rather than finding some other window to display them in.
Dave Love <fx@gnu.org>
parents:
diff changeset
1266 There are two variables you can use to specify these buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
1267
Dave Love <fx@gnu.org>
parents:
diff changeset
1268 same-window-buffer-names holds a list of buffer names; if a buffer's
Dave Love <fx@gnu.org>
parents:
diff changeset
1269 name appears in this list, pop-to-buffer puts it in the selected window.
Dave Love <fx@gnu.org>
parents:
diff changeset
1270
Dave Love <fx@gnu.org>
parents:
diff changeset
1271 same-window-regexps holds a list of regexps--if any one of them
Dave Love <fx@gnu.org>
parents:
diff changeset
1272 matches a buffer's name, then pop-to-buffer puts that buffer in the
Dave Love <fx@gnu.org>
parents:
diff changeset
1273 selected window.
Dave Love <fx@gnu.org>
parents:
diff changeset
1274
Dave Love <fx@gnu.org>
parents:
diff changeset
1275 The default values of these variables are not nil: they list various
Dave Love <fx@gnu.org>
parents:
diff changeset
1276 buffers that normally appear, when you as for them, in the selected
Dave Love <fx@gnu.org>
parents:
diff changeset
1277 window. These include shell buffers, mail buffers, telnet buffers,
Dave Love <fx@gnu.org>
parents:
diff changeset
1278 and others. By removing elements from these variables, you can ask
Dave Love <fx@gnu.org>
parents:
diff changeset
1279 Emacs to display those buffers in separate windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
1280
Dave Love <fx@gnu.org>
parents:
diff changeset
1281 ** The special-display-buffer-names and special-display-regexps lists
Dave Love <fx@gnu.org>
parents:
diff changeset
1282 have been generalized. An element may now be a list. The car of the list
Dave Love <fx@gnu.org>
parents:
diff changeset
1283 is the buffer name or regular expression for matching buffer names.
Dave Love <fx@gnu.org>
parents:
diff changeset
1284
Dave Love <fx@gnu.org>
parents:
diff changeset
1285 The cdr of the list can be an alist specifying additional frame
Dave Love <fx@gnu.org>
parents:
diff changeset
1286 parameters for use in constructing the special display frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
1287
Dave Love <fx@gnu.org>
parents:
diff changeset
1288 Alternatively, the cdr can have this form:
Dave Love <fx@gnu.org>
parents:
diff changeset
1289
Dave Love <fx@gnu.org>
parents:
diff changeset
1290 (FUNCTION ARGS...)
Dave Love <fx@gnu.org>
parents:
diff changeset
1291
Dave Love <fx@gnu.org>
parents:
diff changeset
1292 where FUNCTION is a symbol. Then the frame is constructed by calling
Dave Love <fx@gnu.org>
parents:
diff changeset
1293 FUNCTION; its first argument is the buffer, and its remaining
Dave Love <fx@gnu.org>
parents:
diff changeset
1294 arguments are ARGS.
Dave Love <fx@gnu.org>
parents:
diff changeset
1295
Dave Love <fx@gnu.org>
parents:
diff changeset
1296 ** If the environment variable REPLYTO is set, its value is the default
Dave Love <fx@gnu.org>
parents:
diff changeset
1297 for mail-default-reply-to.
Dave Love <fx@gnu.org>
parents:
diff changeset
1298
Dave Love <fx@gnu.org>
parents:
diff changeset
1299 ** When you send a message in Emacs, if you specify an Rmail file with
Dave Love <fx@gnu.org>
parents:
diff changeset
1300 the FCC: header field, Emacs converts the message to Rmail format
Dave Love <fx@gnu.org>
parents:
diff changeset
1301 before writing it. Thus, the file never contains anything but Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
1302 format messages.
Dave Love <fx@gnu.org>
parents:
diff changeset
1303
Dave Love <fx@gnu.org>
parents:
diff changeset
1304 ** The new variable mail-from-style controls whether the From: header
Dave Love <fx@gnu.org>
parents:
diff changeset
1305 should include the sender's full name, and if so, which format to use.
Dave Love <fx@gnu.org>
parents:
diff changeset
1306
Dave Love <fx@gnu.org>
parents:
diff changeset
1307 ** The new variable mail-personal-alias-file specifies the name of the
Dave Love <fx@gnu.org>
parents:
diff changeset
1308 user's personal aliases. This defaults to the file ~/.mailrc.
Dave Love <fx@gnu.org>
parents:
diff changeset
1309 mailabbrev.el used to have its own variable for this purpose
Dave Love <fx@gnu.org>
parents:
diff changeset
1310 (mail-abbrev-mailrc-file). That variable is no longer used.
Dave Love <fx@gnu.org>
parents:
diff changeset
1311
Dave Love <fx@gnu.org>
parents:
diff changeset
1312 ** In Buffer-Menu mode, the d and C-d commands (which mark buffers for
Dave Love <fx@gnu.org>
parents:
diff changeset
1313 deletion) now accept a prefix argument which serves as a repeat count.
Dave Love <fx@gnu.org>
parents:
diff changeset
1314
Dave Love <fx@gnu.org>
parents:
diff changeset
1315 ** Changes in BibTeX mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1316
Dave Love <fx@gnu.org>
parents:
diff changeset
1317 *** Reference keys can now be entered with TAB completion. All
Dave Love <fx@gnu.org>
parents:
diff changeset
1318 reference keys defined in that buffer and all labels that appear in
Dave Love <fx@gnu.org>
parents:
diff changeset
1319 crossreference entries are object to completion.
Dave Love <fx@gnu.org>
parents:
diff changeset
1320
Dave Love <fx@gnu.org>
parents:
diff changeset
1321 *** Braces are supported as field delimiters in addition to quotes.
Dave Love <fx@gnu.org>
parents:
diff changeset
1322 BibTeX entries may have brace-delimited and quote-delimited fields
Dave Love <fx@gnu.org>
parents:
diff changeset
1323 intermixed. The delimiters generated for new entries are specified by
Dave Love <fx@gnu.org>
parents:
diff changeset
1324 the variables bibtex-field-left-delimiter and
Dave Love <fx@gnu.org>
parents:
diff changeset
1325 bibtex-field-right-delimiter on a buffer-local basis. Those variables
Dave Love <fx@gnu.org>
parents:
diff changeset
1326 default to braces, since it is easier to put quote accented characters
Dave Love <fx@gnu.org>
parents:
diff changeset
1327 (as the german umlauts) into a brace-delimited entry.
Dave Love <fx@gnu.org>
parents:
diff changeset
1328
Dave Love <fx@gnu.org>
parents:
diff changeset
1329 *** The function bibtex-clean-entry can now be invoked with a prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
1330 argument. In this case, a label is automatically generated from
Dave Love <fx@gnu.org>
parents:
diff changeset
1331 various fields in the record. If bibtex-clean-entry is invoked on a
Dave Love <fx@gnu.org>
parents:
diff changeset
1332 record without label, a label is also generated automatically.
Dave Love <fx@gnu.org>
parents:
diff changeset
1333 Various variables (all beginning with `bibtex-autokey-') control the
Dave Love <fx@gnu.org>
parents:
diff changeset
1334 creation of that key. The variable bibtex-autokey-edit-before-use
Dave Love <fx@gnu.org>
parents:
diff changeset
1335 determines, if the user is allowed to edit auto-generated reference
Dave Love <fx@gnu.org>
parents:
diff changeset
1336 keys before they are used.
Dave Love <fx@gnu.org>
parents:
diff changeset
1337
Dave Love <fx@gnu.org>
parents:
diff changeset
1338 *** A New function bibtex-complete-string completes strings with
Dave Love <fx@gnu.org>
parents:
diff changeset
1339 respect to the strings defined in this buffer and a set of predefined
Dave Love <fx@gnu.org>
parents:
diff changeset
1340 strings (initialized to the string macros defined in the standard
Dave Love <fx@gnu.org>
parents:
diff changeset
1341 BibTeX style files) in the same way in which ispell-complete-word
Dave Love <fx@gnu.org>
parents:
diff changeset
1342 works with respect to words in a dictionary. Candidates for
Dave Love <fx@gnu.org>
parents:
diff changeset
1343 bibtex-complete-string are initialized from variable
Dave Love <fx@gnu.org>
parents:
diff changeset
1344 bibtex-predefined-strings and by parsing the files found in
Dave Love <fx@gnu.org>
parents:
diff changeset
1345 bibtex-string-files for @String definitions.
Dave Love <fx@gnu.org>
parents:
diff changeset
1346
Dave Love <fx@gnu.org>
parents:
diff changeset
1347 *** Every reference/field pair has now attached a comment which
Dave Love <fx@gnu.org>
parents:
diff changeset
1348 appears in the echo area when this field is edited. These comments
Dave Love <fx@gnu.org>
parents:
diff changeset
1349 should provide useful hints for BibTeX usage, especially for BibTeX
Dave Love <fx@gnu.org>
parents:
diff changeset
1350 beginners. New variable bibtex-help-message determines if these help
Dave Love <fx@gnu.org>
parents:
diff changeset
1351 messages are to appear in the minibuffer when moving to a text entry.
Dave Love <fx@gnu.org>
parents:
diff changeset
1352
Dave Love <fx@gnu.org>
parents:
diff changeset
1353 *** Inscriptions of menu bar changed from "Entry Types" to
Dave Love <fx@gnu.org>
parents:
diff changeset
1354 "Entry-Types" and "Bibtex Edit" to "BibTeX-Edit".
Dave Love <fx@gnu.org>
parents:
diff changeset
1355
Dave Love <fx@gnu.org>
parents:
diff changeset
1356 *** The variable bibtex-include-OPTcrossref is now not longer a binary
Dave Love <fx@gnu.org>
parents:
diff changeset
1357 switch but a list of reference names which should contain a crossref
Dave Love <fx@gnu.org>
parents:
diff changeset
1358 field. E.g., you can tell bibtex-mode you want a crossref field for
Dave Love <fx@gnu.org>
parents:
diff changeset
1359 @InProceedings and @InBook entries but for no other.
Dave Love <fx@gnu.org>
parents:
diff changeset
1360
Dave Love <fx@gnu.org>
parents:
diff changeset
1361 *** The function validate-bibtex-buffer was completely rewritten to
Dave Love <fx@gnu.org>
parents:
diff changeset
1362 validate if a buffer is syntactically correct. find-bibtex-duplicates
Dave Love <fx@gnu.org>
parents:
diff changeset
1363 is no longer a function itself but was moved into
Dave Love <fx@gnu.org>
parents:
diff changeset
1364 validate-bibtex-buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1365
Dave Love <fx@gnu.org>
parents:
diff changeset
1366 *** Cleaning a BibTeX entry tests, if necessary fields are there.
Dave Love <fx@gnu.org>
parents:
diff changeset
1367 E.g., if you tell bibtex-mode to include a crossref entry, some fields
Dave Love <fx@gnu.org>
parents:
diff changeset
1368 are optional which would be required without the crossref entry. If
Dave Love <fx@gnu.org>
parents:
diff changeset
1369 you now leave the crossref entry empty and do a bibtex-clean-entry
Dave Love <fx@gnu.org>
parents:
diff changeset
1370 with some now required fields left empty, version 2.0 of bibtex.el
Dave Love <fx@gnu.org>
parents:
diff changeset
1371 complains about the absence of these fields, whereas version 1.3
Dave Love <fx@gnu.org>
parents:
diff changeset
1372 didn't.
Dave Love <fx@gnu.org>
parents:
diff changeset
1373
Dave Love <fx@gnu.org>
parents:
diff changeset
1374 *** Default value for variables bibtex-maintain-sorted-entries and
Dave Love <fx@gnu.org>
parents:
diff changeset
1375 bibtex-sort-ignore-string-entries is now t.
Dave Love <fx@gnu.org>
parents:
diff changeset
1376
Dave Love <fx@gnu.org>
parents:
diff changeset
1377 *** All interactive functions are renamed to begin with `bibtex-'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1378
Dave Love <fx@gnu.org>
parents:
diff changeset
1379 *** Keybindings with \C-c\C-e entry changed for unification. Often
Dave Love <fx@gnu.org>
parents:
diff changeset
1380 used reference types are now on control-modified keys, mediocre used
Dave Love <fx@gnu.org>
parents:
diff changeset
1381 types are on unmodified keys, seldom used types are on shift-modified
Dave Love <fx@gnu.org>
parents:
diff changeset
1382 keys and almost never used types on meta-modified keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
1383
Dave Love <fx@gnu.org>
parents:
diff changeset
1384 * Configuration Changes in Emacs 19.29
Dave Love <fx@gnu.org>
parents:
diff changeset
1385
Dave Love <fx@gnu.org>
parents:
diff changeset
1386 ** Emacs now uses directory /usr/local/share for most of its installed
Dave Love <fx@gnu.org>
parents:
diff changeset
1387 files. This follows a GNU convention for directory usage.
Dave Love <fx@gnu.org>
parents:
diff changeset
1388
Dave Love <fx@gnu.org>
parents:
diff changeset
1389 ** The option --with-x11 is no longer supported.
Dave Love <fx@gnu.org>
parents:
diff changeset
1390 X11 is the only version of X that Emacs 19.29 supports;
Dave Love <fx@gnu.org>
parents:
diff changeset
1391 use --with-x if you need to request X support explicitly.
Dave Love <fx@gnu.org>
parents:
diff changeset
1392 (Normally this should not be necessary, since configure should
Dave Love <fx@gnu.org>
parents:
diff changeset
1393 automatically enable X support if X is installed on your machine.)
Dave Love <fx@gnu.org>
parents:
diff changeset
1394
Dave Love <fx@gnu.org>
parents:
diff changeset
1395 ** If you use the site-init.el file to set the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
1396 mail-host-address to a string in the dumped Emacs, that string becomes
Dave Love <fx@gnu.org>
parents:
diff changeset
1397 the default host address for initializing user-mail-address.
Dave Love <fx@gnu.org>
parents:
diff changeset
1398 It is used instead of the value of (system-name).
Dave Love <fx@gnu.org>
parents:
diff changeset
1399
Dave Love <fx@gnu.org>
parents:
diff changeset
1400 * Lisp-Level Changes in Emacs 19.29
Dave Love <fx@gnu.org>
parents:
diff changeset
1401
Dave Love <fx@gnu.org>
parents:
diff changeset
1402 ** Basic Lisp
Dave Love <fx@gnu.org>
parents:
diff changeset
1403
Dave Love <fx@gnu.org>
parents:
diff changeset
1404 *** The range of integer values is now at least 2**28 on all machines.
Dave Love <fx@gnu.org>
parents:
diff changeset
1405 This means the maximum size of a buffer is at least 2**27-1,
Dave Love <fx@gnu.org>
parents:
diff changeset
1406 or 134,217,727.
Dave Love <fx@gnu.org>
parents:
diff changeset
1407
Dave Love <fx@gnu.org>
parents:
diff changeset
1408 *** You can now use Common Lisp syntax for the backquote and comma
Dave Love <fx@gnu.org>
parents:
diff changeset
1409 macros. Thus, you can now write `(x ,y z) instead of (` (x (, y) z)).
Dave Love <fx@gnu.org>
parents:
diff changeset
1410
Dave Love <fx@gnu.org>
parents:
diff changeset
1411 The old syntax is still accepted.
Dave Love <fx@gnu.org>
parents:
diff changeset
1412
Dave Love <fx@gnu.org>
parents:
diff changeset
1413 *** The new function rassoc is like assoc, except that it compares the
Dave Love <fx@gnu.org>
parents:
diff changeset
1414 key against the cdr of each alist element, where assoc would compare
Dave Love <fx@gnu.org>
parents:
diff changeset
1415 it against the car of each alist element.
Dave Love <fx@gnu.org>
parents:
diff changeset
1416
Dave Love <fx@gnu.org>
parents:
diff changeset
1417 *** The new function unintern deletes a symbol from an obarray. The
Dave Love <fx@gnu.org>
parents:
diff changeset
1418 first argument can be the symbol to delete, or a string giving its
Dave Love <fx@gnu.org>
parents:
diff changeset
1419 name. The second argument specifies the obarray (nil means the
Dave Love <fx@gnu.org>
parents:
diff changeset
1420 current default obarray).
Dave Love <fx@gnu.org>
parents:
diff changeset
1421
Dave Love <fx@gnu.org>
parents:
diff changeset
1422 If the specified symbol is not in the obarray, or if there's no symbol
Dave Love <fx@gnu.org>
parents:
diff changeset
1423 in the obarray matching the specified string, unintern does nothing
Dave Love <fx@gnu.org>
parents:
diff changeset
1424 and returns nil. If it does delete a symbol, it returns t.
Dave Love <fx@gnu.org>
parents:
diff changeset
1425
Dave Love <fx@gnu.org>
parents:
diff changeset
1426 *** You can specify an alternative read function for use by load and
Dave Love <fx@gnu.org>
parents:
diff changeset
1427 eval-region by binding the variable load-read-function to some other
Dave Love <fx@gnu.org>
parents:
diff changeset
1428 function. This function should accept one argument just like read.
Dave Love <fx@gnu.org>
parents:
diff changeset
1429 If load-read-function is nil, load and eval-region use ordinary read.
Dave Love <fx@gnu.org>
parents:
diff changeset
1430
Dave Love <fx@gnu.org>
parents:
diff changeset
1431 *** The new function `type-of' takes any object as argument, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1432 returns a symbol identifying the type of that object--one of `symbol',
Dave Love <fx@gnu.org>
parents:
diff changeset
1433 `integer', `float', `string', `cons', `vector', `marker', `overlay',
Dave Love <fx@gnu.org>
parents:
diff changeset
1434 `window', `buffer', `subr', `compiled-function',
Dave Love <fx@gnu.org>
parents:
diff changeset
1435 `window-configuration', `process'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1436
Dave Love <fx@gnu.org>
parents:
diff changeset
1437 *** When you use eval-after-load for a file that is already loaded, it
Dave Love <fx@gnu.org>
parents:
diff changeset
1438 executes the FORM right away. As before, if the file is not yet
Dave Love <fx@gnu.org>
parents:
diff changeset
1439 loaded, it arranges to execute FORM if and when the file is loaded
Dave Love <fx@gnu.org>
parents:
diff changeset
1440 later. The result is: if you have called eval-after-load for a file,
Dave Love <fx@gnu.org>
parents:
diff changeset
1441 and if that file has been loaded, then regardless of the order of
Dave Love <fx@gnu.org>
parents:
diff changeset
1442 these two events, the specified form has been evaluated.
Dave Love <fx@gnu.org>
parents:
diff changeset
1443
Dave Love <fx@gnu.org>
parents:
diff changeset
1444 *** The Lisp construct #@NUMBER now skips the next NUMBER characters,
Dave Love <fx@gnu.org>
parents:
diff changeset
1445 treating them as a comment.
Dave Love <fx@gnu.org>
parents:
diff changeset
1446
Dave Love <fx@gnu.org>
parents:
diff changeset
1447 You would not want to use this in a file you edit by hand, but it is
Dave Love <fx@gnu.org>
parents:
diff changeset
1448 useful for commenting out parts of machine-generated files.
Dave Love <fx@gnu.org>
parents:
diff changeset
1449
Dave Love <fx@gnu.org>
parents:
diff changeset
1450 *** Two new functions, `plist-get' and `plist-put',
Dave Love <fx@gnu.org>
parents:
diff changeset
1451 allow you to modify and retrieve values from lists formatted as property-lists.
Dave Love <fx@gnu.org>
parents:
diff changeset
1452 They work like `get' and `put', but operate on any list.
Dave Love <fx@gnu.org>
parents:
diff changeset
1453 `plist-put' returns the modified property-list; you must store it
Dave Love <fx@gnu.org>
parents:
diff changeset
1454 back where you got it.
Dave Love <fx@gnu.org>
parents:
diff changeset
1455
Dave Love <fx@gnu.org>
parents:
diff changeset
1456 *** The new function add-to-list is called with two elements,
Dave Love <fx@gnu.org>
parents:
diff changeset
1457 a variable that holds a list and a new element.
Dave Love <fx@gnu.org>
parents:
diff changeset
1458 It adds the element to the list unless it is already present.
Dave Love <fx@gnu.org>
parents:
diff changeset
1459 It compares elements using `equal'. Here is an example:
Dave Love <fx@gnu.org>
parents:
diff changeset
1460
Dave Love <fx@gnu.org>
parents:
diff changeset
1461 (setq foo '(a b)) => (a b)
Dave Love <fx@gnu.org>
parents:
diff changeset
1462
Dave Love <fx@gnu.org>
parents:
diff changeset
1463 (add-to-list 'foo 'c) => (c a b)
Dave Love <fx@gnu.org>
parents:
diff changeset
1464
Dave Love <fx@gnu.org>
parents:
diff changeset
1465 (add-to-list 'foo 'b) => (c a b)
Dave Love <fx@gnu.org>
parents:
diff changeset
1466
Dave Love <fx@gnu.org>
parents:
diff changeset
1467 foo => (c a b)
Dave Love <fx@gnu.org>
parents:
diff changeset
1468
Dave Love <fx@gnu.org>
parents:
diff changeset
1469 ** Changes in compilation.
Dave Love <fx@gnu.org>
parents:
diff changeset
1470
Dave Love <fx@gnu.org>
parents:
diff changeset
1471 Functions and variables loaded from a byte-compiled file
Dave Love <fx@gnu.org>
parents:
diff changeset
1472 now refer to the file for their doc strings.
Dave Love <fx@gnu.org>
parents:
diff changeset
1473
Dave Love <fx@gnu.org>
parents:
diff changeset
1474 This has a few consequences:
Dave Love <fx@gnu.org>
parents:
diff changeset
1475
Dave Love <fx@gnu.org>
parents:
diff changeset
1476 -- Loading the file is faster and uses less memory.
Dave Love <fx@gnu.org>
parents:
diff changeset
1477 -- Reference to doc strings is a little slower (the same speed
Dave Love <fx@gnu.org>
parents:
diff changeset
1478 as reference to the doc strings of primitive and preloaded functions).
Dave Love <fx@gnu.org>
parents:
diff changeset
1479 -- The compiled files will not work in old versions of Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
1480 -- If you move the compiled file after loading it, Emacs can no longer
Dave Love <fx@gnu.org>
parents:
diff changeset
1481 find these doc strings.
Dave Love <fx@gnu.org>
parents:
diff changeset
1482 -- If you alter the compiled file (such as by compiling a new
Dave Love <fx@gnu.org>
parents:
diff changeset
1483 version), then further access to documentation strings will get
Dave Love <fx@gnu.org>
parents:
diff changeset
1484 nonsense results.
Dave Love <fx@gnu.org>
parents:
diff changeset
1485
Dave Love <fx@gnu.org>
parents:
diff changeset
1486 The byte compiler now optionally supports lazy loading of compiled
Dave Love <fx@gnu.org>
parents:
diff changeset
1487 functions' definitions. If you enable this feature when you compile,
Dave Love <fx@gnu.org>
parents:
diff changeset
1488 loading the compiled file does not actually bring the function
Dave Love <fx@gnu.org>
parents:
diff changeset
1489 definitions into core. Instead it creates references to the compiled
Dave Love <fx@gnu.org>
parents:
diff changeset
1490 file, and brings each function's definition into core the first time
Dave Love <fx@gnu.org>
parents:
diff changeset
1491 you call that function, or when you force it with the new function
Dave Love <fx@gnu.org>
parents:
diff changeset
1492 `fetch-bytecode'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1493
Dave Love <fx@gnu.org>
parents:
diff changeset
1494 Using the lazy loading feature has a few consequences:
Dave Love <fx@gnu.org>
parents:
diff changeset
1495
Dave Love <fx@gnu.org>
parents:
diff changeset
1496 -- Loading the file is faster and uses less memory.
Dave Love <fx@gnu.org>
parents:
diff changeset
1497 -- Calling any function in the file for the first time is slower.
Dave Love <fx@gnu.org>
parents:
diff changeset
1498 -- If you move the compiled file after loading it, Emacs can no longer
Dave Love <fx@gnu.org>
parents:
diff changeset
1499 find the function definitions.
Dave Love <fx@gnu.org>
parents:
diff changeset
1500 -- If you alter the compiled file (such as by compiling a new
Dave Love <fx@gnu.org>
parents:
diff changeset
1501 version), then further access to functions not already loaded
Dave Love <fx@gnu.org>
parents:
diff changeset
1502 will get nonsense results.
Dave Love <fx@gnu.org>
parents:
diff changeset
1503
Dave Love <fx@gnu.org>
parents:
diff changeset
1504 To enable the lazy loading feature, set up a non-nil file local
Dave Love <fx@gnu.org>
parents:
diff changeset
1505 variable binding for the variable `byte-compile-dynamic' in the Lisp
Dave Love <fx@gnu.org>
parents:
diff changeset
1506 source file. For example, put this on the first line:
Dave Love <fx@gnu.org>
parents:
diff changeset
1507
Dave Love <fx@gnu.org>
parents:
diff changeset
1508 -*-byte-compile-dynamic: t;-*-
Dave Love <fx@gnu.org>
parents:
diff changeset
1509
Dave Love <fx@gnu.org>
parents:
diff changeset
1510 It's a good idea to use the lazy loading feature for a file that
Dave Love <fx@gnu.org>
parents:
diff changeset
1511 contains many functions, most of which are not actually used by a
Dave Love <fx@gnu.org>
parents:
diff changeset
1512 given user in a given session.
Dave Love <fx@gnu.org>
parents:
diff changeset
1513
Dave Love <fx@gnu.org>
parents:
diff changeset
1514 To turn off the basic feature of referring to the file for doc
Dave Love <fx@gnu.org>
parents:
diff changeset
1515 strings, set byte-compile-dynamic-docstrings to nil. You can do this
Dave Love <fx@gnu.org>
parents:
diff changeset
1516 globally, or for one source file by adding this to the first line:
Dave Love <fx@gnu.org>
parents:
diff changeset
1517
Dave Love <fx@gnu.org>
parents:
diff changeset
1518 -*-byte-compile-dynamic-docstrings: nil;-*-
Dave Love <fx@gnu.org>
parents:
diff changeset
1519
Dave Love <fx@gnu.org>
parents:
diff changeset
1520 ** Strings
Dave Love <fx@gnu.org>
parents:
diff changeset
1521
Dave Love <fx@gnu.org>
parents:
diff changeset
1522 *** Do not pass integer arguments to `concat' (or `vconcat' or
Dave Love <fx@gnu.org>
parents:
diff changeset
1523 `append'). We are phasing out the old unrecommended support for
Dave Love <fx@gnu.org>
parents:
diff changeset
1524 integers as arguments to these functions, in preparation for treating
Dave Love <fx@gnu.org>
parents:
diff changeset
1525 numbers as single characters in a future release. To concatenate
Dave Love <fx@gnu.org>
parents:
diff changeset
1526 numbers in string form, use `number-to-string' first, or rewrite the
Dave Love <fx@gnu.org>
parents:
diff changeset
1527 call to use `format' instead of `concat'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1528
Dave Love <fx@gnu.org>
parents:
diff changeset
1529 *** The new function match-string returns the string of text matched at
Dave Love <fx@gnu.org>
parents:
diff changeset
1530 the given parenthesized expression by the last regexp search, or nil
Dave Love <fx@gnu.org>
parents:
diff changeset
1531 if there was no match. If the last match was by `string-match' on a
Dave Love <fx@gnu.org>
parents:
diff changeset
1532 string, the string must be given. Therefore, this function can be
Dave Love <fx@gnu.org>
parents:
diff changeset
1533 used in place of `buffer-substring' and `substring', when using
Dave Love <fx@gnu.org>
parents:
diff changeset
1534 `match-beginning' and `match-end' to find match positions.
Dave Love <fx@gnu.org>
parents:
diff changeset
1535
Dave Love <fx@gnu.org>
parents:
diff changeset
1536 (match-string N) or (match-string N STRING)
Dave Love <fx@gnu.org>
parents:
diff changeset
1537
Dave Love <fx@gnu.org>
parents:
diff changeset
1538 *** The function replace-match now accepts an optional fourth argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
1539 STRING. Use this after performing string-match on STRING, to replace
Dave Love <fx@gnu.org>
parents:
diff changeset
1540 the portion of STRING that was matched. When used in this way,
Dave Love <fx@gnu.org>
parents:
diff changeset
1541 replace-match returns a newly created string which is the same as
Dave Love <fx@gnu.org>
parents:
diff changeset
1542 STRING except for the matched portion.
Dave Love <fx@gnu.org>
parents:
diff changeset
1543
Dave Love <fx@gnu.org>
parents:
diff changeset
1544 *** The new function buffer-substring-no-properties
Dave Love <fx@gnu.org>
parents:
diff changeset
1545 is like buffer-substring except that the string it returns
Dave Love <fx@gnu.org>
parents:
diff changeset
1546 has no text properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
1547
Dave Love <fx@gnu.org>
parents:
diff changeset
1548 *** The function `equal' now considers two strings to be different
Dave Love <fx@gnu.org>
parents:
diff changeset
1549 if they don't have the same text properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
1550
Dave Love <fx@gnu.org>
parents:
diff changeset
1551 ** Completion
Dave Love <fx@gnu.org>
parents:
diff changeset
1552
Dave Love <fx@gnu.org>
parents:
diff changeset
1553 *** all-completions now takes an optional fourth argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
1554 If that argument is non-nil, completions that start with a space
Dave Love <fx@gnu.org>
parents:
diff changeset
1555 are ignored unless the initial string also starts with a space.
Dave Love <fx@gnu.org>
parents:
diff changeset
1556 (This used to happen unconditionally.)
Dave Love <fx@gnu.org>
parents:
diff changeset
1557
Dave Love <fx@gnu.org>
parents:
diff changeset
1558 ** Local Variables
Dave Love <fx@gnu.org>
parents:
diff changeset
1559
Dave Love <fx@gnu.org>
parents:
diff changeset
1560 *** Local hook variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
1561
Dave Love <fx@gnu.org>
parents:
diff changeset
1562 There is now a clean way to give a hook variable a buffer-local value.
Dave Love <fx@gnu.org>
parents:
diff changeset
1563 Call the function `make-local-hook' to do this.
Dave Love <fx@gnu.org>
parents:
diff changeset
1564
Dave Love <fx@gnu.org>
parents:
diff changeset
1565 Once a hook variable is buffer-local, you can add hooks to it either
Dave Love <fx@gnu.org>
parents:
diff changeset
1566 globally or locally. run-hooks runs the local hook functions
Dave Love <fx@gnu.org>
parents:
diff changeset
1567 of the current buffer, then all the global hook functions.
Dave Love <fx@gnu.org>
parents:
diff changeset
1568
Dave Love <fx@gnu.org>
parents:
diff changeset
1569 The functions add-hook and remove-hook take an additional optional
Dave Love <fx@gnu.org>
parents:
diff changeset
1570 argument LOCAL which says whether to add (or remove) a local hook
Dave Love <fx@gnu.org>
parents:
diff changeset
1571 function or a global one.
Dave Love <fx@gnu.org>
parents:
diff changeset
1572
Dave Love <fx@gnu.org>
parents:
diff changeset
1573 Local hooks use t as an element of the (local) value of the hook
Dave Love <fx@gnu.org>
parents:
diff changeset
1574 variable as a flag meaning to use the global value also.
Dave Love <fx@gnu.org>
parents:
diff changeset
1575
Dave Love <fx@gnu.org>
parents:
diff changeset
1576 *** The new function local-variable-p tells you whether a particular
Dave Love <fx@gnu.org>
parents:
diff changeset
1577 variable is buffer-local in the current buffer or a specified buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1578
Dave Love <fx@gnu.org>
parents:
diff changeset
1579 ** Editing Facilities
Dave Love <fx@gnu.org>
parents:
diff changeset
1580
Dave Love <fx@gnu.org>
parents:
diff changeset
1581 *** The function copy-region-as-kill no longer sets this-command;
Dave Love <fx@gnu.org>
parents:
diff changeset
1582 as a result, a following kill command will not normally append
Dave Love <fx@gnu.org>
parents:
diff changeset
1583 to the text saved by copy-region-as-kill.
Dave Love <fx@gnu.org>
parents:
diff changeset
1584
Dave Love <fx@gnu.org>
parents:
diff changeset
1585 *** Regular expression searching and matching no longer performs full
Dave Love <fx@gnu.org>
parents:
diff changeset
1586 Posix backtracking by default. They now stop with the first match found
Dave Love <fx@gnu.org>
parents:
diff changeset
1587 instead of looking for the longest match--just as they did in Emacs 18.
Dave Love <fx@gnu.org>
parents:
diff changeset
1588 The reason for this change is to get higher speed.
Dave Love <fx@gnu.org>
parents:
diff changeset
1589
Dave Love <fx@gnu.org>
parents:
diff changeset
1590 There are new functions you can use if you really want to search or
Dave Love <fx@gnu.org>
parents:
diff changeset
1591 match with Posix behavior: posix-search-forward,
Dave Love <fx@gnu.org>
parents:
diff changeset
1592 posix-search-backward, posix-looking-at, and posix-string-match. Call
Dave Love <fx@gnu.org>
parents:
diff changeset
1593 these just like re-search-forward, re-search-backward, looking-at, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1594 string-match.
Dave Love <fx@gnu.org>
parents:
diff changeset
1595
Dave Love <fx@gnu.org>
parents:
diff changeset
1596 ** Files
Dave Love <fx@gnu.org>
parents:
diff changeset
1597
Dave Love <fx@gnu.org>
parents:
diff changeset
1598 *** The new variable `format-alist' defines file formats,
Dave Love <fx@gnu.org>
parents:
diff changeset
1599 which are ways of translating between the data in a file and things
Dave Love <fx@gnu.org>
parents:
diff changeset
1600 (text, text-properties, and possibly other information) in a buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1601
Dave Love <fx@gnu.org>
parents:
diff changeset
1602 `format-alist' has one element for each format. Each element is a
Dave Love <fx@gnu.org>
parents:
diff changeset
1603 list like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
1604 (NAME DOC-STRING REGEXP FROM-FN TO-FN MODIFY MODE-FN)
Dave Love <fx@gnu.org>
parents:
diff changeset
1605 containing the name of the format, a documentation string, a regular
Dave Love <fx@gnu.org>
parents:
diff changeset
1606 expression which is used to recognize files in that format, a decoding
Dave Love <fx@gnu.org>
parents:
diff changeset
1607 function, an encoding function, a flag that indicates whether the
Dave Love <fx@gnu.org>
parents:
diff changeset
1608 encoding function modifies the buffer, and a mode function.
Dave Love <fx@gnu.org>
parents:
diff changeset
1609
Dave Love <fx@gnu.org>
parents:
diff changeset
1610 FROM-FN is called to decode files in that format; it gets two args, BEGIN
Dave Love <fx@gnu.org>
parents:
diff changeset
1611 and END, and can make any modifications it likes, returning the new
Dave Love <fx@gnu.org>
parents:
diff changeset
1612 end position. It must make sure that the beginning of the file no
Dave Love <fx@gnu.org>
parents:
diff changeset
1613 longer matches REGEXP, or else it will get called again.
Dave Love <fx@gnu.org>
parents:
diff changeset
1614 TO-FN is called to encode a region into that format; it is also passed BEGIN
Dave Love <fx@gnu.org>
parents:
diff changeset
1615 and END, and either returns a list of annotations as in
Dave Love <fx@gnu.org>
parents:
diff changeset
1616 `write-region-annotate-functions', or modifies the region and returns
Dave Love <fx@gnu.org>
parents:
diff changeset
1617 the new end position.
Dave Love <fx@gnu.org>
parents:
diff changeset
1618 MODIFY, if non-nil, means the TO-FN modifies the region. If nil, TO-FN may
Dave Love <fx@gnu.org>
parents:
diff changeset
1619 not make any changes and should return a list of annotations.
Dave Love <fx@gnu.org>
parents:
diff changeset
1620
Dave Love <fx@gnu.org>
parents:
diff changeset
1621 `insert-file-contents' checks the beginning of the file that it is
Dave Love <fx@gnu.org>
parents:
diff changeset
1622 inserting to see if it matches one of the regexps. If so, then it
Dave Love <fx@gnu.org>
parents:
diff changeset
1623 calls the decoding function, and then looks for another match. When
Dave Love <fx@gnu.org>
parents:
diff changeset
1624 visiting a file, it also calls the mode function, and sets the
Dave Love <fx@gnu.org>
parents:
diff changeset
1625 variable `buffer-file-format' to the list of formats that the file
Dave Love <fx@gnu.org>
parents:
diff changeset
1626 used.
Dave Love <fx@gnu.org>
parents:
diff changeset
1627
Dave Love <fx@gnu.org>
parents:
diff changeset
1628 `write-region' calls the encoding functions for each format in
Dave Love <fx@gnu.org>
parents:
diff changeset
1629 `buffer-file-format' before it writes the file. To save a file in a
Dave Love <fx@gnu.org>
parents:
diff changeset
1630 different format, either set `buffer-file-format' to a different
Dave Love <fx@gnu.org>
parents:
diff changeset
1631 value, or call the new function `format-write-file'.
Dave Love <fx@gnu.org>
parents:
diff changeset
1632
Dave Love <fx@gnu.org>
parents:
diff changeset
1633 Since some encoding functions may be slow, you can request that
Dave Love <fx@gnu.org>
parents:
diff changeset
1634 auto-save use a format different from the buffer's default by setting
Dave Love <fx@gnu.org>
parents:
diff changeset
1635 the variable `auto-save-file-format' to the desired format. This will
Dave Love <fx@gnu.org>
parents:
diff changeset
1636 determine the format of all auto-save files.
Dave Love <fx@gnu.org>
parents:
diff changeset
1637
Dave Love <fx@gnu.org>
parents:
diff changeset
1638 *** The new function file-ownership-preserved-p tells you whether
Dave Love <fx@gnu.org>
parents:
diff changeset
1639 deleting a file and recreating it would keep the file's owner
Dave Love <fx@gnu.org>
parents:
diff changeset
1640 unchanged.
Dave Love <fx@gnu.org>
parents:
diff changeset
1641
Dave Love <fx@gnu.org>
parents:
diff changeset
1642 *** The new function file-regular-p returns t if a file
Dave Love <fx@gnu.org>
parents:
diff changeset
1643 is a "regular" file (not a directory, symlink, named pipe,
Dave Love <fx@gnu.org>
parents:
diff changeset
1644 terminal, or other I/O device).
Dave Love <fx@gnu.org>
parents:
diff changeset
1645
Dave Love <fx@gnu.org>
parents:
diff changeset
1646 *** The new function file-name-sans-extension discards the extension
Dave Love <fx@gnu.org>
parents:
diff changeset
1647 of a file name. You call it with a file name, and returns a string
Dave Love <fx@gnu.org>
parents:
diff changeset
1648 lacking the extension.
Dave Love <fx@gnu.org>
parents:
diff changeset
1649
Dave Love <fx@gnu.org>
parents:
diff changeset
1650 *** The variable path-separator is a string which says which
Dave Love <fx@gnu.org>
parents:
diff changeset
1651 character separates directories in a search path. It is ":"
Dave Love <fx@gnu.org>
parents:
diff changeset
1652 for Unix and GNU systems, ";" for MSDOG and Windows NT.
Dave Love <fx@gnu.org>
parents:
diff changeset
1653
Dave Love <fx@gnu.org>
parents:
diff changeset
1654 ** Commands and Key Sequences
Dave Love <fx@gnu.org>
parents:
diff changeset
1655
Dave Love <fx@gnu.org>
parents:
diff changeset
1656 *** Key sequences consisting of C-c followed by {, }, <, >, : or ; are
Dave Love <fx@gnu.org>
parents:
diff changeset
1657 now reserved for major modes. Sequences consisting of C-c followed by
Dave Love <fx@gnu.org>
parents:
diff changeset
1658 any other punctuation character are now meant for minor modes. We don't
Dave Love <fx@gnu.org>
parents:
diff changeset
1659 plan to convert all existing major modes to stop using those sequences,
Dave Love <fx@gnu.org>
parents:
diff changeset
1660 but we hope to keep them to a minimum.
Dave Love <fx@gnu.org>
parents:
diff changeset
1661
Dave Love <fx@gnu.org>
parents:
diff changeset
1662 *** When the post-command-hook or the pre-command-hook gets an error, the error
Dave Love <fx@gnu.org>
parents:
diff changeset
1663 is silently ignored. Emacs no longer sets the hook variable to nil when this
Dave Love <fx@gnu.org>
parents:
diff changeset
1664 happens. Meanwhile, the hook functions can now alter the hook variable in
Dave Love <fx@gnu.org>
parents:
diff changeset
1665 a normal fashion; there is no need to do anything special.
Dave Love <fx@gnu.org>
parents:
diff changeset
1666
Dave Love <fx@gnu.org>
parents:
diff changeset
1667 *** define-key, lookup-key, and various other functions for changing or
Dave Love <fx@gnu.org>
parents:
diff changeset
1668 looking up key bindings now let you write an event type with a list
Dave Love <fx@gnu.org>
parents:
diff changeset
1669 like (ctrl meta newline) or (meta ?d), as in XEmacs. (ctrl meta newline)
Dave Love <fx@gnu.org>
parents:
diff changeset
1670 is equivalent to the event type symbol C-M-newline, and (meta ?d)
Dave Love <fx@gnu.org>
parents:
diff changeset
1671 is equivalent to the character ?\M-d.
Dave Love <fx@gnu.org>
parents:
diff changeset
1672
Dave Love <fx@gnu.org>
parents:
diff changeset
1673 *** The function event-convert-list converts a list such as
Dave Love <fx@gnu.org>
parents:
diff changeset
1674 (meta ?d) into the corresponding event type (a symbol or integer).
Dave Love <fx@gnu.org>
parents:
diff changeset
1675
Dave Love <fx@gnu.org>
parents:
diff changeset
1676 *** In an interactive spec, `k' means to read a key sequence. In this
Dave Love <fx@gnu.org>
parents:
diff changeset
1677 key sequence, upper case characters and shifted function keys which
Dave Love <fx@gnu.org>
parents:
diff changeset
1678 have no bindings are converted to lower case if that makes them
Dave Love <fx@gnu.org>
parents:
diff changeset
1679 defined.
Dave Love <fx@gnu.org>
parents:
diff changeset
1680
Dave Love <fx@gnu.org>
parents:
diff changeset
1681 The new interactive code `K' reads a key sequence similarly, but does
Dave Love <fx@gnu.org>
parents:
diff changeset
1682 not convert the last event. `K' is useful for reading a key sequence
Dave Love <fx@gnu.org>
parents:
diff changeset
1683 to be given a binding.
Dave Love <fx@gnu.org>
parents:
diff changeset
1684
Dave Love <fx@gnu.org>
parents:
diff changeset
1685 *** The variable overriding-local-map now has no effect on the menu bar
Dave Love <fx@gnu.org>
parents:
diff changeset
1686 display unless overriding-local-map-menu-flag is non-nil. This is why
Dave Love <fx@gnu.org>
parents:
diff changeset
1687 incremental search no longer temporarily changes the menu bars.
Dave Love <fx@gnu.org>
parents:
diff changeset
1688
Dave Love <fx@gnu.org>
parents:
diff changeset
1689 Note that overriding-local-map does still affect the execution of key
Dave Love <fx@gnu.org>
parents:
diff changeset
1690 sequences entered using the menu bar. So if you use
Dave Love <fx@gnu.org>
parents:
diff changeset
1691 overriding-local-map, and a menu bar key sequence comes in, you should
Dave Love <fx@gnu.org>
parents:
diff changeset
1692 make sure to clear overriding-local-map before that key sequence gets
Dave Love <fx@gnu.org>
parents:
diff changeset
1693 looked up and executed. But this is what you'd normally do anyway:
Dave Love <fx@gnu.org>
parents:
diff changeset
1694 programs that use overriding-local-map normally exit and "put back"
Dave Love <fx@gnu.org>
parents:
diff changeset
1695 any event such as menu-bar that they do not handle specially.
Dave Love <fx@gnu.org>
parents:
diff changeset
1696
Dave Love <fx@gnu.org>
parents:
diff changeset
1697 *** The new variable `overriding-terminal-local-map' is like
Dave Love <fx@gnu.org>
parents:
diff changeset
1698 overriding-local-map, but is specific to a single terminal.
Dave Love <fx@gnu.org>
parents:
diff changeset
1699
Dave Love <fx@gnu.org>
parents:
diff changeset
1700 *** delete-frame events.
Dave Love <fx@gnu.org>
parents:
diff changeset
1701
Dave Love <fx@gnu.org>
parents:
diff changeset
1702 When you use the X window manager's "delete window" command, this now
Dave Love <fx@gnu.org>
parents:
diff changeset
1703 generates a delete-frame event. The standard definition of this event
Dave Love <fx@gnu.org>
parents:
diff changeset
1704 is a command that deletes the frame that received the event, and kills
Dave Love <fx@gnu.org>
parents:
diff changeset
1705 Emacs when the last visible or iconified frame is deleted. You can
Dave Love <fx@gnu.org>
parents:
diff changeset
1706 rebind the event to some other command if you wish.
Dave Love <fx@gnu.org>
parents:
diff changeset
1707
Dave Love <fx@gnu.org>
parents:
diff changeset
1708 *** Two new types of events, iconify-frame and make-frame-visible,
Dave Love <fx@gnu.org>
parents:
diff changeset
1709 indicate that the user iconified or deiconified a frame with the
Dave Love <fx@gnu.org>
parents:
diff changeset
1710 window manager. Since the window manager has already done the work,
Dave Love <fx@gnu.org>
parents:
diff changeset
1711 the default definition for both event types in Emacs is to do nothing.
Dave Love <fx@gnu.org>
parents:
diff changeset
1712
Dave Love <fx@gnu.org>
parents:
diff changeset
1713 ** Frames and X
Dave Love <fx@gnu.org>
parents:
diff changeset
1714
Dave Love <fx@gnu.org>
parents:
diff changeset
1715 *** Certain Lisp variables are now local to an X terminal (in other
Dave Love <fx@gnu.org>
parents:
diff changeset
1716 words, all the screens of a single X server). The value in effect, at
Dave Love <fx@gnu.org>
parents:
diff changeset
1717 any given time, is the one that belongs to the terminal of the
Dave Love <fx@gnu.org>
parents:
diff changeset
1718 selected frame. The terminal-local variables are
Dave Love <fx@gnu.org>
parents:
diff changeset
1719 default-minibuffer-frame, system-key-alist, defining-kbd-macro, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1720 last-kbd-macro. There is no way for Lisp programs to create others.
Dave Love <fx@gnu.org>
parents:
diff changeset
1721
Dave Love <fx@gnu.org>
parents:
diff changeset
1722 The terminal-local variables cannot be buffer-local.
Dave Love <fx@gnu.org>
parents:
diff changeset
1723
Dave Love <fx@gnu.org>
parents:
diff changeset
1724 *** When you create an X frame, for the `top' and `left' frame
Dave Love <fx@gnu.org>
parents:
diff changeset
1725 parameters, you can now use values of the form (+ N) or (- N), where N
Dave Love <fx@gnu.org>
parents:
diff changeset
1726 is an integer. (+ N) means N pixels to the right of the left edge of
Dave Love <fx@gnu.org>
parents:
diff changeset
1727 the screen and (- N) means N pixels to the left of the right edge. In
Dave Love <fx@gnu.org>
parents:
diff changeset
1728 both cases, N may be zero (exactly at the edge) or negative (putting
Dave Love <fx@gnu.org>
parents:
diff changeset
1729 the window partly off the screen).
Dave Love <fx@gnu.org>
parents:
diff changeset
1730
Dave Love <fx@gnu.org>
parents:
diff changeset
1731 The function x-parse-geometry can return values of these forms
Dave Love <fx@gnu.org>
parents:
diff changeset
1732 for certain inputs.
Dave Love <fx@gnu.org>
parents:
diff changeset
1733
Dave Love <fx@gnu.org>
parents:
diff changeset
1734 *** The variable menu-bar-file-menu has been renamed to
Dave Love <fx@gnu.org>
parents:
diff changeset
1735 menu-bar-files-menu to match the actual item that appears in the menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
1736 (All the other such variable names do match.)
Dave Love <fx@gnu.org>
parents:
diff changeset
1737
Dave Love <fx@gnu.org>
parents:
diff changeset
1738 *** The new function active-minibuffer-window returns the minibuffer window
Dave Love <fx@gnu.org>
parents:
diff changeset
1739 currently active, or nil if none is now active.
Dave Love <fx@gnu.org>
parents:
diff changeset
1740
Dave Love <fx@gnu.org>
parents:
diff changeset
1741 *** In the functions next-window, previous-window, next-frame,
Dave Love <fx@gnu.org>
parents:
diff changeset
1742 previous-frame, get-buffer-window, get-lru-window, get-largest-window
Dave Love <fx@gnu.org>
parents:
diff changeset
1743 and delete-windows-on, if you specify 0 for the last argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
1744 it means to consider all visible and iconified frames.
Dave Love <fx@gnu.org>
parents:
diff changeset
1745
Dave Love <fx@gnu.org>
parents:
diff changeset
1746 *** When you set a frame's cursor type with modify-frame-parameters,
Dave Love <fx@gnu.org>
parents:
diff changeset
1747 you can now specify (bar . INTEGER) as the cursor type. This stands
Dave Love <fx@gnu.org>
parents:
diff changeset
1748 for a bar cursor of width INTEGER.
Dave Love <fx@gnu.org>
parents:
diff changeset
1749
Dave Love <fx@gnu.org>
parents:
diff changeset
1750 *** The new function facep returns t if its argument is a face name
Dave Love <fx@gnu.org>
parents:
diff changeset
1751 (or if it is a vector such as is used internally by the Lisp code
Dave Love <fx@gnu.org>
parents:
diff changeset
1752 to represent a face).
Dave Love <fx@gnu.org>
parents:
diff changeset
1753
Dave Love <fx@gnu.org>
parents:
diff changeset
1754 *** Each frame can now have a buffer-predicate function,
Dave Love <fx@gnu.org>
parents:
diff changeset
1755 which is the `buffer-predicate' frame parameter.
Dave Love <fx@gnu.org>
parents:
diff changeset
1756 When `other-buffer' looks for an alternative buffer, it considers
Dave Love <fx@gnu.org>
parents:
diff changeset
1757 only the buffers that fit the selected frame's buffer predicate (if it
Dave Love <fx@gnu.org>
parents:
diff changeset
1758 has one). This is useful for applications that make their own frames.
Dave Love <fx@gnu.org>
parents:
diff changeset
1759
Dave Love <fx@gnu.org>
parents:
diff changeset
1760 *** When you create an X frame, you can now specify the frame parameter
Dave Love <fx@gnu.org>
parents:
diff changeset
1761 `display'. This says which display to put the frame on. The value
Dave Love <fx@gnu.org>
parents:
diff changeset
1762 should be a display name--a string of the form
Dave Love <fx@gnu.org>
parents:
diff changeset
1763 "HOST:DPYNUMBER.SCREENNUMBER".
Dave Love <fx@gnu.org>
parents:
diff changeset
1764
Dave Love <fx@gnu.org>
parents:
diff changeset
1765 The functions x-server-... and x-display-... now take an optional
Dave Love <fx@gnu.org>
parents:
diff changeset
1766 argument which specifies the display to ask about. You can use either
Dave Love <fx@gnu.org>
parents:
diff changeset
1767 a display name string or a frame. A value of nil stands for the
Dave Love <fx@gnu.org>
parents:
diff changeset
1768 selected frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
1769
Dave Love <fx@gnu.org>
parents:
diff changeset
1770 To close the connection to an X display, use the function
Dave Love <fx@gnu.org>
parents:
diff changeset
1771 x-close-connection. Specify which display with a display name. You
Dave Love <fx@gnu.org>
parents:
diff changeset
1772 cannot close the connection if Emacs still has frames open on that
Dave Love <fx@gnu.org>
parents:
diff changeset
1773 display.
Dave Love <fx@gnu.org>
parents:
diff changeset
1774
Dave Love <fx@gnu.org>
parents:
diff changeset
1775 x-display-list returns a list indicating which displays Emacs has
Dave Love <fx@gnu.org>
parents:
diff changeset
1776 connections to. Its elements are display names (strings).
Dave Love <fx@gnu.org>
parents:
diff changeset
1777
Dave Love <fx@gnu.org>
parents:
diff changeset
1778 *** The icon-type frame parameter may now be a file name.
Dave Love <fx@gnu.org>
parents:
diff changeset
1779 Then the contents of that file specify the icon bitmap to use
Dave Love <fx@gnu.org>
parents:
diff changeset
1780 for that frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
1781
Dave Love <fx@gnu.org>
parents:
diff changeset
1782 *** The title of an Emacs frame, displayed by most window managers, is
Dave Love <fx@gnu.org>
parents:
diff changeset
1783 set from frame-title-format or icon-title-format. These have the same
Dave Love <fx@gnu.org>
parents:
diff changeset
1784 structure as mode-line-format.
Dave Love <fx@gnu.org>
parents:
diff changeset
1785
Dave Love <fx@gnu.org>
parents:
diff changeset
1786 *** x-display-grayscale-p is a new function that returns non-nil if
Dave Love <fx@gnu.org>
parents:
diff changeset
1787 your X server can display shades of gray. Currently it returns
Dave Love <fx@gnu.org>
parents:
diff changeset
1788 non-nil for color displays (because they can display shades of gray);
Dave Love <fx@gnu.org>
parents:
diff changeset
1789 we may change it in the next version to return nil for color displays.
Dave Love <fx@gnu.org>
parents:
diff changeset
1790
Dave Love <fx@gnu.org>
parents:
diff changeset
1791 *** The frame parameter scroll-bar-width specifies the width of the
Dave Love <fx@gnu.org>
parents:
diff changeset
1792 scrollbar in pixels.
Dave Love <fx@gnu.org>
parents:
diff changeset
1793
Dave Love <fx@gnu.org>
parents:
diff changeset
1794 ** Buffers
Dave Love <fx@gnu.org>
parents:
diff changeset
1795
Dave Love <fx@gnu.org>
parents:
diff changeset
1796 *** Creating a buffer with get-buffer-create does not obey
Dave Love <fx@gnu.org>
parents:
diff changeset
1797 default-major-mode. That variable is now handled in a separate
Dave Love <fx@gnu.org>
parents:
diff changeset
1798 function, set-buffer-major-mode. get-buffer-create and generate-new-buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
1799 always leave the newly created buffer in Fundamental mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1800
Dave Love <fx@gnu.org>
parents:
diff changeset
1801 Creating a new buffer by visiting a file or with switch-to-buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
1802 pop-to-buffer, and similar functions does call set-buffer-major-mode
Dave Love <fx@gnu.org>
parents:
diff changeset
1803 to select the default major mode specified with default-major-mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
1804
Dave Love <fx@gnu.org>
parents:
diff changeset
1805 *** You can now create an "indirect buffer". An indirect buffer shares
Dave Love <fx@gnu.org>
parents:
diff changeset
1806 its text, including text properties, with another buffer (the "base
Dave Love <fx@gnu.org>
parents:
diff changeset
1807 buffer"), but has its own major mode, local variables, overlays, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1808 narrowing. An indirect buffer has a name of its own, distinct from
Dave Love <fx@gnu.org>
parents:
diff changeset
1809 those of the base buffer and all other buffers. An indirect buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
1810 cannot itself be visiting a file (though its base buffer can be).
Dave Love <fx@gnu.org>
parents:
diff changeset
1811 The base buffer cannot itself be indirect.
Dave Love <fx@gnu.org>
parents:
diff changeset
1812
Dave Love <fx@gnu.org>
parents:
diff changeset
1813 Use (make-indirect-buffer BASE-BUFFER NAME) to make an indirect buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
1814 named NAME whose base is BASE-BUFFER. If BASE-BUFFER is an indirect
Dave Love <fx@gnu.org>
parents:
diff changeset
1815 buffer, its base buffer is used as the base for the new buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1816
Dave Love <fx@gnu.org>
parents:
diff changeset
1817 You can make an indirect buffer current, or switch to it in a window,
Dave Love <fx@gnu.org>
parents:
diff changeset
1818 just as you would a non-indirect buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1819
Dave Love <fx@gnu.org>
parents:
diff changeset
1820 The function buffer-base-buffer, given an indirect buffer, returns its
Dave Love <fx@gnu.org>
parents:
diff changeset
1821 base buffer. It returns nil when given an ordinary buffer (not
Dave Love <fx@gnu.org>
parents:
diff changeset
1822 indirect).
Dave Love <fx@gnu.org>
parents:
diff changeset
1823
Dave Love <fx@gnu.org>
parents:
diff changeset
1824 The library `noutline' has versions of Outline mode and Outline minor
Dave Love <fx@gnu.org>
parents:
diff changeset
1825 mode which let you display different parts of the outline in different
Dave Love <fx@gnu.org>
parents:
diff changeset
1826 indirect buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
1827
Dave Love <fx@gnu.org>
parents:
diff changeset
1828 ** Subprocesses
Dave Love <fx@gnu.org>
parents:
diff changeset
1829
Dave Love <fx@gnu.org>
parents:
diff changeset
1830 *** The functions call-process and call-process-region now allow
Dave Love <fx@gnu.org>
parents:
diff changeset
1831 you to direct error message output from the subprocess into a
Dave Love <fx@gnu.org>
parents:
diff changeset
1832 separate destination, instead of mixing it with ordinary output.
Dave Love <fx@gnu.org>
parents:
diff changeset
1833 To do this, specify for the third argument, BUFFER, a list of the form
Dave Love <fx@gnu.org>
parents:
diff changeset
1834 (BUFFER-OR-NAME ERROR-DESTINATION)
Dave Love <fx@gnu.org>
parents:
diff changeset
1835 BUFFER-OR-NAME specifies where to put ordinary output; it should
Dave Love <fx@gnu.org>
parents:
diff changeset
1836 be a buffer or buffer name, or t, nil or 0. This is what would
Dave Love <fx@gnu.org>
parents:
diff changeset
1837 have been the BUFFER argument, ordinarily.
Dave Love <fx@gnu.org>
parents:
diff changeset
1838
Dave Love <fx@gnu.org>
parents:
diff changeset
1839 ERROR-DESTINATION specifies where to put the error output.
Dave Love <fx@gnu.org>
parents:
diff changeset
1840 nil means discard it, t means mix it with the ordinary output,
Dave Love <fx@gnu.org>
parents:
diff changeset
1841 and a string specifies a file name to write this output into.
Dave Love <fx@gnu.org>
parents:
diff changeset
1842
Dave Love <fx@gnu.org>
parents:
diff changeset
1843 You can't specify a buffer to put the error output in; that is not
Dave Love <fx@gnu.org>
parents:
diff changeset
1844 easy to implement directly. You can put the error output into a
Dave Love <fx@gnu.org>
parents:
diff changeset
1845 buffer by sending it to a temporary file and then inserting the file
Dave Love <fx@gnu.org>
parents:
diff changeset
1846 into a buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1847
Dave Love <fx@gnu.org>
parents:
diff changeset
1848 *** Comint mode changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
1849
Dave Love <fx@gnu.org>
parents:
diff changeset
1850 **** The variable comint-completion-addsuffix can also be a cons pair
Dave Love <fx@gnu.org>
parents:
diff changeset
1851 of the form (DIRSUFFIX . FILESUFFIX), where DIRSUFFIX and FILESUFFIX are
Dave Love <fx@gnu.org>
parents:
diff changeset
1852 strings added on unambiguous or exact completion of directories and file
Dave Love <fx@gnu.org>
parents:
diff changeset
1853 names, respectively.
Dave Love <fx@gnu.org>
parents:
diff changeset
1854
Dave Love <fx@gnu.org>
parents:
diff changeset
1855 ** Text properties
Dave Love <fx@gnu.org>
parents:
diff changeset
1856
Dave Love <fx@gnu.org>
parents:
diff changeset
1857 *** You can now specify which values of the `invisible' property
Dave Love <fx@gnu.org>
parents:
diff changeset
1858 make text invisible in a given buffer. The variable
Dave Love <fx@gnu.org>
parents:
diff changeset
1859 `buffer-invisibility-spec', which is always local in all buffers,
Dave Love <fx@gnu.org>
parents:
diff changeset
1860 controls this.
Dave Love <fx@gnu.org>
parents:
diff changeset
1861
Dave Love <fx@gnu.org>
parents:
diff changeset
1862 If its value is t, then any non-nil `invisible' property makes
Dave Love <fx@gnu.org>
parents:
diff changeset
1863 a character invisible.
Dave Love <fx@gnu.org>
parents:
diff changeset
1864
Dave Love <fx@gnu.org>
parents:
diff changeset
1865 If its value is a list, then a character is invisible if its
Dave Love <fx@gnu.org>
parents:
diff changeset
1866 `invisible' property value appears as a member of the list, or if it
Dave Love <fx@gnu.org>
parents:
diff changeset
1867 appears as the car of a member of the list.
Dave Love <fx@gnu.org>
parents:
diff changeset
1868
Dave Love <fx@gnu.org>
parents:
diff changeset
1869 When the `invisible' property value appears as the car of a member of
Dave Love <fx@gnu.org>
parents:
diff changeset
1870 the `buffer-invisibility-spec' list, then the cdr of that member has
Dave Love <fx@gnu.org>
parents:
diff changeset
1871 an effect. If it is non-nil, then an ellipsis appears in place of the
Dave Love <fx@gnu.org>
parents:
diff changeset
1872 character. (This happens only for the *last* invisible character in a
Dave Love <fx@gnu.org>
parents:
diff changeset
1873 series of consecutive invisible characters, and only at the end of a
Dave Love <fx@gnu.org>
parents:
diff changeset
1874 line.)
Dave Love <fx@gnu.org>
parents:
diff changeset
1875
Dave Love <fx@gnu.org>
parents:
diff changeset
1876 If a character's `invisible' property is a list, then Emacs checks each
Dave Love <fx@gnu.org>
parents:
diff changeset
1877 element of the list against `buffer-invisibility-spec'. If any element
Dave Love <fx@gnu.org>
parents:
diff changeset
1878 matches, the character is invisible.
Dave Love <fx@gnu.org>
parents:
diff changeset
1879
Dave Love <fx@gnu.org>
parents:
diff changeset
1880 *** The command `list-text-properties-at' shows what text properties
Dave Love <fx@gnu.org>
parents:
diff changeset
1881 are in effect at point.
Dave Love <fx@gnu.org>
parents:
diff changeset
1882
Dave Love <fx@gnu.org>
parents:
diff changeset
1883 *** Frame objects now exist in Emacs even on systems that don't support
Dave Love <fx@gnu.org>
parents:
diff changeset
1884 X Windows. You can create multiple frames, and switch between them
Dave Love <fx@gnu.org>
parents:
diff changeset
1885 using select-frame. The selected frame is actually displayed on your
Dave Love <fx@gnu.org>
parents:
diff changeset
1886 terminal; other frames are not displayed at all. The selected frame
Dave Love <fx@gnu.org>
parents:
diff changeset
1887 number appears in the mode line after `Emacs', except for frame 1.
Dave Love <fx@gnu.org>
parents:
diff changeset
1888
Dave Love <fx@gnu.org>
parents:
diff changeset
1889 Switching frames on ASCII terminals is therefore more or less
Dave Love <fx@gnu.org>
parents:
diff changeset
1890 equivalent to switching between different window configurations.
Dave Love <fx@gnu.org>
parents:
diff changeset
1891
Dave Love <fx@gnu.org>
parents:
diff changeset
1892 *** The new variable window-size-change-functions holds a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
1893 functions to be called if window sizes change (or if windows are
Dave Love <fx@gnu.org>
parents:
diff changeset
1894 created or deleted). The functions are called once for each frame on
Dave Love <fx@gnu.org>
parents:
diff changeset
1895 which changes have occurred, with the frame as the sole argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
1896 This takes place shortly before redisplay.
Dave Love <fx@gnu.org>
parents:
diff changeset
1897
Dave Love <fx@gnu.org>
parents:
diff changeset
1898 *** The modification hook functions of overlays now work differently.
Dave Love <fx@gnu.org>
parents:
diff changeset
1899 They are called both before and after each change. This makes it
Dave Love <fx@gnu.org>
parents:
diff changeset
1900 possible for the functions to determine exactly what the change was.
Dave Love <fx@gnu.org>
parents:
diff changeset
1901
Dave Love <fx@gnu.org>
parents:
diff changeset
1902 This change affects three overlay properties: the modification-hooks
Dave Love <fx@gnu.org>
parents:
diff changeset
1903 property, a list of functions called for deletions overlapping the
Dave Love <fx@gnu.org>
parents:
diff changeset
1904 overlay's range and for insertions inside it; the
Dave Love <fx@gnu.org>
parents:
diff changeset
1905 insert-in-front-hooks, a list of functions called for insertions at
Dave Love <fx@gnu.org>
parents:
diff changeset
1906 the beginning of the overlay; and the insert-behind-hooks, a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
1907 functions called for insertions at the end of the overlay.
Dave Love <fx@gnu.org>
parents:
diff changeset
1908
Dave Love <fx@gnu.org>
parents:
diff changeset
1909 Each function is called both before and after each change that it
Dave Love <fx@gnu.org>
parents:
diff changeset
1910 applies to. Before the change, it is called with four arguments:
Dave Love <fx@gnu.org>
parents:
diff changeset
1911 (funcall FUNCTION OVERLAY nil START END)
Dave Love <fx@gnu.org>
parents:
diff changeset
1912 START and END are the same arguments that the before-change-functions
Dave Love <fx@gnu.org>
parents:
diff changeset
1913 receive.
Dave Love <fx@gnu.org>
parents:
diff changeset
1914
Dave Love <fx@gnu.org>
parents:
diff changeset
1915 After the change, each function is called with five arguments:
Dave Love <fx@gnu.org>
parents:
diff changeset
1916 (funcall FUNCTION OVERLAY t START END OLDSIZE)
Dave Love <fx@gnu.org>
parents:
diff changeset
1917 The last arguments, START and END and OLDSIZE,
Dave Love <fx@gnu.org>
parents:
diff changeset
1918 are the same arguments that the after-change-functions receive.
Dave Love <fx@gnu.org>
parents:
diff changeset
1919
Dave Love <fx@gnu.org>
parents:
diff changeset
1920 This means the function must accept either four or five arguments.
Dave Love <fx@gnu.org>
parents:
diff changeset
1921
Dave Love <fx@gnu.org>
parents:
diff changeset
1922 *** You can set defaults for text-properties with the new variable
Dave Love <fx@gnu.org>
parents:
diff changeset
1923 `default-text-properties'. Its value is a property list; the values
Dave Love <fx@gnu.org>
parents:
diff changeset
1924 specified there are used whenever a character (or its category) does
Dave Love <fx@gnu.org>
parents:
diff changeset
1925 not specify a value.
Dave Love <fx@gnu.org>
parents:
diff changeset
1926
Dave Love <fx@gnu.org>
parents:
diff changeset
1927 *** The `face' property of a character or an overlay can now be a list
Dave Love <fx@gnu.org>
parents:
diff changeset
1928 of face names. Formerly it had to be just one face name.
Dave Love <fx@gnu.org>
parents:
diff changeset
1929
Dave Love <fx@gnu.org>
parents:
diff changeset
1930 *** Changes in handling the `intangible' text property.
Dave Love <fx@gnu.org>
parents:
diff changeset
1931
Dave Love <fx@gnu.org>
parents:
diff changeset
1932 **** If inhibit-point-motion-hooks is non-nil, then `intangible' properties
Dave Love <fx@gnu.org>
parents:
diff changeset
1933 are ignored.
Dave Love <fx@gnu.org>
parents:
diff changeset
1934
Dave Love <fx@gnu.org>
parents:
diff changeset
1935 **** Moving to just before a stretch of intangible text
Dave Love <fx@gnu.org>
parents:
diff changeset
1936 is no longer special in any way. Point stays at that place.
Dave Love <fx@gnu.org>
parents:
diff changeset
1937
Dave Love <fx@gnu.org>
parents:
diff changeset
1938 **** When you move point backwards into the midst of intangible text,
Dave Love <fx@gnu.org>
parents:
diff changeset
1939 point moves back to the beginning of that text. (It used to move
Dave Love <fx@gnu.org>
parents:
diff changeset
1940 forward to the end of that text, which was not very useful.)
Dave Love <fx@gnu.org>
parents:
diff changeset
1941
Dave Love <fx@gnu.org>
parents:
diff changeset
1942 **** When moving across intangible text, Emacs stops wherever the
Dave Love <fx@gnu.org>
parents:
diff changeset
1943 property value changes. So if you have two stretches of intangible
Dave Love <fx@gnu.org>
parents:
diff changeset
1944 text, with different non-nil intangible properties, it is possible to
Dave Love <fx@gnu.org>
parents:
diff changeset
1945 place point between them.
Dave Love <fx@gnu.org>
parents:
diff changeset
1946
Dave Love <fx@gnu.org>
parents:
diff changeset
1947 ** Overlays
Dave Love <fx@gnu.org>
parents:
diff changeset
1948
Dave Love <fx@gnu.org>
parents:
diff changeset
1949 *** Overlay changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
1950
Dave Love <fx@gnu.org>
parents:
diff changeset
1951 **** The new function previous-overlay-change returns the position of
Dave Love <fx@gnu.org>
parents:
diff changeset
1952 the previous overlay start or end, before a specified position. This
Dave Love <fx@gnu.org>
parents:
diff changeset
1953 is the backwards-moving counterpart of next-overlay-change.
Dave Love <fx@gnu.org>
parents:
diff changeset
1954
Dave Love <fx@gnu.org>
parents:
diff changeset
1955 **** overlay-get now supports category properties on an overlay
Dave Love <fx@gnu.org>
parents:
diff changeset
1956 the same way get-text-property supports them as text properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
1957
Dave Love <fx@gnu.org>
parents:
diff changeset
1958 Specifically, if an overlay does not have the property PROP that you
Dave Love <fx@gnu.org>
parents:
diff changeset
1959 ask for, but it does have a `category' property which is a symbol,
Dave Love <fx@gnu.org>
parents:
diff changeset
1960 then that symbol's PROP property is used.
Dave Love <fx@gnu.org>
parents:
diff changeset
1961
Dave Love <fx@gnu.org>
parents:
diff changeset
1962 **** If an overlay has a non-nil `evaporate' property, it will be
Dave Love <fx@gnu.org>
parents:
diff changeset
1963 deleted if it ever becomes empty (i.e., when it spans no characters).
Dave Love <fx@gnu.org>
parents:
diff changeset
1964
Dave Love <fx@gnu.org>
parents:
diff changeset
1965 **** If an overlay has a `before-string' and/or `after-string' property,
Dave Love <fx@gnu.org>
parents:
diff changeset
1966 these strings are displayed at the overlay's endpoints.
Dave Love <fx@gnu.org>
parents:
diff changeset
1967
Dave Love <fx@gnu.org>
parents:
diff changeset
1968 ** Filling
Dave Love <fx@gnu.org>
parents:
diff changeset
1969
Dave Love <fx@gnu.org>
parents:
diff changeset
1970 *** The new variable fill-paragraph-function provides a way for major
Dave Love <fx@gnu.org>
parents:
diff changeset
1971 modes to override the filling of paragraphs. If this is non-nil,
Dave Love <fx@gnu.org>
parents:
diff changeset
1972 fill-paragraph calls it as a function, passing along its sole
Dave Love <fx@gnu.org>
parents:
diff changeset
1973 argument. If the function returns non-nil, fill-paragraph assumes it
Dave Love <fx@gnu.org>
parents:
diff changeset
1974 has done the job and simply passes on whatever value it returned.
Dave Love <fx@gnu.org>
parents:
diff changeset
1975
Dave Love <fx@gnu.org>
parents:
diff changeset
1976 The usual use of this feature is to fill comments in programming
Dave Love <fx@gnu.org>
parents:
diff changeset
1977 language modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
1978
Dave Love <fx@gnu.org>
parents:
diff changeset
1979 *** Text filling and justification changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
1980
Dave Love <fx@gnu.org>
parents:
diff changeset
1981 **** The new variable use-hard-newlines can be used to make a
Dave Love <fx@gnu.org>
parents:
diff changeset
1982 distinction between "hard" and "soft" newlines; the fill functions
Dave Love <fx@gnu.org>
parents:
diff changeset
1983 will then never remove a newline that was manually inserted. Hard
Dave Love <fx@gnu.org>
parents:
diff changeset
1984 newlines are marked with a non-nil `hard' text-property.
Dave Love <fx@gnu.org>
parents:
diff changeset
1985
Dave Love <fx@gnu.org>
parents:
diff changeset
1986 **** The fill-column and left-margin can now be modified by text-properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
1987 Most lisp programs should use the new functions (current-fill-column) and
Dave Love <fx@gnu.org>
parents:
diff changeset
1988 (current-left-margin), which return the proper values to use for the
Dave Love <fx@gnu.org>
parents:
diff changeset
1989 current line.
Dave Love <fx@gnu.org>
parents:
diff changeset
1990
Dave Love <fx@gnu.org>
parents:
diff changeset
1991 **** There are new functions for dealing with margins:
Dave Love <fx@gnu.org>
parents:
diff changeset
1992
Dave Love <fx@gnu.org>
parents:
diff changeset
1993 ***** Set-left-margin and set-right-margin (set the value for a region
Dave Love <fx@gnu.org>
parents:
diff changeset
1994 and re-fill). These functions take three arguments: two to specify
Dave Love <fx@gnu.org>
parents:
diff changeset
1995 a region, and the desired margin value.
Dave Love <fx@gnu.org>
parents:
diff changeset
1996
Dave Love <fx@gnu.org>
parents:
diff changeset
1997 ***** Increase-left-margin, decrease-left-margin, increase-right-margin, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1998 decrease-right-margin (change settings relative to current values, and
Dave Love <fx@gnu.org>
parents:
diff changeset
1999 re-fill).
Dave Love <fx@gnu.org>
parents:
diff changeset
2000
Dave Love <fx@gnu.org>
parents:
diff changeset
2001 ***** move-to-left-margin moves point there, optionally adding
Dave Love <fx@gnu.org>
parents:
diff changeset
2002 indentation or changing tabs to spaces in order to make that possible.
Dave Love <fx@gnu.org>
parents:
diff changeset
2003 beginning-of-line-text also moves past the fill-prefix and any
Dave Love <fx@gnu.org>
parents:
diff changeset
2004 indentation added to center or right-justify a line, to the beginning
Dave Love <fx@gnu.org>
parents:
diff changeset
2005 of the text that the user actually typed.
Dave Love <fx@gnu.org>
parents:
diff changeset
2006
Dave Love <fx@gnu.org>
parents:
diff changeset
2007 ***** delete-to-left-margin removes any left-margin indentation, but
Dave Love <fx@gnu.org>
parents:
diff changeset
2008 does not change the property.
Dave Love <fx@gnu.org>
parents:
diff changeset
2009
Dave Love <fx@gnu.org>
parents:
diff changeset
2010 **** The paragraph-movement functions look for the paragraph-start and
Dave Love <fx@gnu.org>
parents:
diff changeset
2011 paragraph-separate regexps at the current left margin, not at the
Dave Love <fx@gnu.org>
parents:
diff changeset
2012 beginning of the line. This means that those regexps should NOT use ^
Dave Love <fx@gnu.org>
parents:
diff changeset
2013 to anchor the search. However, for backwards compatibility, a ^ at
Dave Love <fx@gnu.org>
parents:
diff changeset
2014 the beginning of the regexp will be ignored, so most packages won't break.
Dave Love <fx@gnu.org>
parents:
diff changeset
2015
Dave Love <fx@gnu.org>
parents:
diff changeset
2016 **** justify-current-line is now capable of doing left, center, or
Dave Love <fx@gnu.org>
parents:
diff changeset
2017 right justification as well as full justification.
Dave Love <fx@gnu.org>
parents:
diff changeset
2018
Dave Love <fx@gnu.org>
parents:
diff changeset
2019 **** The fill functions can do any kind of justification based on the new
Dave Love <fx@gnu.org>
parents:
diff changeset
2020 `justification' text-property and `default-justification' variable,
Dave Love <fx@gnu.org>
parents:
diff changeset
2021 or arguments to the functions. They also have a new option which
Dave Love <fx@gnu.org>
parents:
diff changeset
2022 defeats the normal removal of extra whitespace.
Dave Love <fx@gnu.org>
parents:
diff changeset
2023
Dave Love <fx@gnu.org>
parents:
diff changeset
2024 **** The new function `current-justification' returns the kind of
Dave Love <fx@gnu.org>
parents:
diff changeset
2025 justification used for the current line. The new function
Dave Love <fx@gnu.org>
parents:
diff changeset
2026 `set-justification' can be used to change it, including re-justifying
Dave Love <fx@gnu.org>
parents:
diff changeset
2027 the text of the region according to the new value.
Dave Love <fx@gnu.org>
parents:
diff changeset
2028
Dave Love <fx@gnu.org>
parents:
diff changeset
2029 **** Filling and auto-fill are disabled if justification is `none'.
Dave Love <fx@gnu.org>
parents:
diff changeset
2030
Dave Love <fx@gnu.org>
parents:
diff changeset
2031 **** The auto-fill-function is now called regardless of whether
Dave Love <fx@gnu.org>
parents:
diff changeset
2032 the fill-column has been exceeded; the function can determine on its
Dave Love <fx@gnu.org>
parents:
diff changeset
2033 own whether filling (or justification) is necessary.
Dave Love <fx@gnu.org>
parents:
diff changeset
2034
Dave Love <fx@gnu.org>
parents:
diff changeset
2035 ** Processes
Dave Love <fx@gnu.org>
parents:
diff changeset
2036
Dave Love <fx@gnu.org>
parents:
diff changeset
2037 *** process-tty-name is a new function that returns the name of the
Dave Love <fx@gnu.org>
parents:
diff changeset
2038 terminal that the process itself reads and writes on (not the name of
Dave Love <fx@gnu.org>
parents:
diff changeset
2039 the pty that Emacs uses to talk with that terminal).
Dave Love <fx@gnu.org>
parents:
diff changeset
2040
Dave Love <fx@gnu.org>
parents:
diff changeset
2041 *** Errors in process filters and sentinels are now normally caught
Dave Love <fx@gnu.org>
parents:
diff changeset
2042 automatically, so that they don't abort other Lisp programs.
Dave Love <fx@gnu.org>
parents:
diff changeset
2043
Dave Love <fx@gnu.org>
parents:
diff changeset
2044 Setting debug-on-error non-nil turns off this feature; then errors in
Dave Love <fx@gnu.org>
parents:
diff changeset
2045 filters and sentinels are not caught. As a result, they can invoke
Dave Love <fx@gnu.org>
parents:
diff changeset
2046 the debugger, under the control of debug-on-error.
Dave Love <fx@gnu.org>
parents:
diff changeset
2047
Dave Love <fx@gnu.org>
parents:
diff changeset
2048 *** Emacs now preserves the match data around the execution of process
Dave Love <fx@gnu.org>
parents:
diff changeset
2049 filters and sentinels. You can use search and match functions freely
Dave Love <fx@gnu.org>
parents:
diff changeset
2050 in filters and sentinels without explicitly bothering to save the
Dave Love <fx@gnu.org>
parents:
diff changeset
2051 match data.
Dave Love <fx@gnu.org>
parents:
diff changeset
2052
Dave Love <fx@gnu.org>
parents:
diff changeset
2053 ** Display
Dave Love <fx@gnu.org>
parents:
diff changeset
2054
Dave Love <fx@gnu.org>
parents:
diff changeset
2055 *** The variable message-log-max controls how messages are logged in the
Dave Love <fx@gnu.org>
parents:
diff changeset
2056 "*Messages*" buffer. An integer value means to keep that many lines;
Dave Love <fx@gnu.org>
parents:
diff changeset
2057 t means to log with no limit; nil means disable message logging. Lisp
Dave Love <fx@gnu.org>
parents:
diff changeset
2058 code that calls `message' excessively (e.g. isearch.el) should probably
Dave Love <fx@gnu.org>
parents:
diff changeset
2059 bind this variable to nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
2060
Dave Love <fx@gnu.org>
parents:
diff changeset
2061 *** Display tables now have a new element, at index 261, specifying the
Dave Love <fx@gnu.org>
parents:
diff changeset
2062 glyph to use for the separator between two side-by-side windows. By
Dave Love <fx@gnu.org>
parents:
diff changeset
2063 default, this is the vertical bar character `|'. Probably the only
Dave Love <fx@gnu.org>
parents:
diff changeset
2064 other useful character to store for this element is a space, to make
Dave Love <fx@gnu.org>
parents:
diff changeset
2065 less visual separation between two side-by-side windows displaying
Dave Love <fx@gnu.org>
parents:
diff changeset
2066 related information.
Dave Love <fx@gnu.org>
parents:
diff changeset
2067
Dave Love <fx@gnu.org>
parents:
diff changeset
2068 *** The new mode-line-format spec %c displays the current column number.
Dave Love <fx@gnu.org>
parents:
diff changeset
2069
Dave Love <fx@gnu.org>
parents:
diff changeset
2070 *** The new variable blink-matching-delay specifies how long to keep
Dave Love <fx@gnu.org>
parents:
diff changeset
2071 the cursor at the matching open-paren, after you insert a close-paren.
Dave Love <fx@gnu.org>
parents:
diff changeset
2072 This is useful mainly on systems which can wait for a fraction of a
Dave Love <fx@gnu.org>
parents:
diff changeset
2073 second--you can then specify fractional values such as 0.5.
Dave Love <fx@gnu.org>
parents:
diff changeset
2074
Dave Love <fx@gnu.org>
parents:
diff changeset
2075 *** Faster processing of buffers with long lines
Dave Love <fx@gnu.org>
parents:
diff changeset
2076
Dave Love <fx@gnu.org>
parents:
diff changeset
2077 The new variable cache-long-line-scans determines whether Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
2078 should use caches to handle long lines more quickly. This variable is
Dave Love <fx@gnu.org>
parents:
diff changeset
2079 buffer-local, in all buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
2080
Dave Love <fx@gnu.org>
parents:
diff changeset
2081 Normally, the line-motion functions work by scanning the buffer for
Dave Love <fx@gnu.org>
parents:
diff changeset
2082 newlines. Columnar operations (like `move-to-column' and
Dave Love <fx@gnu.org>
parents:
diff changeset
2083 `compute-motion') also work by scanning the buffer, summing character
Dave Love <fx@gnu.org>
parents:
diff changeset
2084 widths as they go. This works well for ordinary text, but if the
Dave Love <fx@gnu.org>
parents:
diff changeset
2085 buffer's lines are very long (say, more than 500 characters), these
Dave Love <fx@gnu.org>
parents:
diff changeset
2086 motion functions will take longer to execute. Emacs may also take
Dave Love <fx@gnu.org>
parents:
diff changeset
2087 longer to update the display.
Dave Love <fx@gnu.org>
parents:
diff changeset
2088
Dave Love <fx@gnu.org>
parents:
diff changeset
2089 If cache-long-line-scans is non-nil, these motion functions cache
Dave Love <fx@gnu.org>
parents:
diff changeset
2090 the results of their scans, and consult the cache to avoid rescanning
Dave Love <fx@gnu.org>
parents:
diff changeset
2091 regions of the buffer until the text is modified. The caches are most
Dave Love <fx@gnu.org>
parents:
diff changeset
2092 beneficial when they prevent the most searching---that is, when the
Dave Love <fx@gnu.org>
parents:
diff changeset
2093 buffer contains long lines and large regions of characters with the
Dave Love <fx@gnu.org>
parents:
diff changeset
2094 same, fixed screen width.
Dave Love <fx@gnu.org>
parents:
diff changeset
2095
Dave Love <fx@gnu.org>
parents:
diff changeset
2096 When cache-long-line-scans is non-nil, processing short lines will
Dave Love <fx@gnu.org>
parents:
diff changeset
2097 become slightly slower (because of the overhead of consulting the
Dave Love <fx@gnu.org>
parents:
diff changeset
2098 cache), and the caches will use memory roughly proportional to the
Dave Love <fx@gnu.org>
parents:
diff changeset
2099 number of newlines and characters whose screen width varies.
Dave Love <fx@gnu.org>
parents:
diff changeset
2100
Dave Love <fx@gnu.org>
parents:
diff changeset
2101 The caches require no explicit maintenance; their accuracy is
Dave Love <fx@gnu.org>
parents:
diff changeset
2102 maintained internally by the Emacs primitives. Enabling or disabling
Dave Love <fx@gnu.org>
parents:
diff changeset
2103 the cache should not affect the behavior of any of the motion functions;
Dave Love <fx@gnu.org>
parents:
diff changeset
2104 it should only affect their performance.
Dave Love <fx@gnu.org>
parents:
diff changeset
2105
Dave Love <fx@gnu.org>
parents:
diff changeset
2106 ** System Interface
Dave Love <fx@gnu.org>
parents:
diff changeset
2107
Dave Love <fx@gnu.org>
parents:
diff changeset
2108 *** The function user-login-name now accepts an optional
Dave Love <fx@gnu.org>
parents:
diff changeset
2109 argument uid. If the argument is non-nil, user-login-name
Dave Love <fx@gnu.org>
parents:
diff changeset
2110 returns the login name for that user id.
Dave Love <fx@gnu.org>
parents:
diff changeset
2111
Dave Love <fx@gnu.org>
parents:
diff changeset
2112 *** system-name, user-name, user-full-name and user-real-name are now
Dave Love <fx@gnu.org>
parents:
diff changeset
2113 variables as well as functions. The variables hold the same values
Dave Love <fx@gnu.org>
parents:
diff changeset
2114 that the functions would return. The new variable multiple-frames
Dave Love <fx@gnu.org>
parents:
diff changeset
2115 is non-nil if at least two non-minibuffer frames are visible. These
Dave Love <fx@gnu.org>
parents:
diff changeset
2116 variables may be useful in constructing the value of frame-title-format
Dave Love <fx@gnu.org>
parents:
diff changeset
2117 or icon-title-format.
Dave Love <fx@gnu.org>
parents:
diff changeset
2118
Dave Love <fx@gnu.org>
parents:
diff changeset
2119 *** Changes in time-conversion functions.
Dave Love <fx@gnu.org>
parents:
diff changeset
2120
Dave Love <fx@gnu.org>
parents:
diff changeset
2121 **** The new function format-time-string takes a format string and a
Dave Love <fx@gnu.org>
parents:
diff changeset
2122 time value. It converts the time to a string, according to the format
Dave Love <fx@gnu.org>
parents:
diff changeset
2123 specified. You can specify what kind of conversion to use with
Dave Love <fx@gnu.org>
parents:
diff changeset
2124 %-specifications.
Dave Love <fx@gnu.org>
parents:
diff changeset
2125
Dave Love <fx@gnu.org>
parents:
diff changeset
2126 **** The new function decode-time converts a time value into a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
2127 specific items of information: the year, month, day of week, day of
Dave Love <fx@gnu.org>
parents:
diff changeset
2128 month, hour, minute and second. (A time value is a list of two or
Dave Love <fx@gnu.org>
parents:
diff changeset
2129 three integers.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2130
Dave Love <fx@gnu.org>
parents:
diff changeset
2131 **** The new function encode-time converts specific items of time
Dave Love <fx@gnu.org>
parents:
diff changeset
2132 information--the second, minute, hour, day, month, year, and time
Dave Love <fx@gnu.org>
parents:
diff changeset
2133 zone--into a time value.
Dave Love <fx@gnu.org>
parents:
diff changeset
2134
Dave Love <fx@gnu.org>
parents:
diff changeset
2135 * Changes in Emacs 19.27
Dave Love <fx@gnu.org>
parents:
diff changeset
2136
Dave Love <fx@gnu.org>
parents:
diff changeset
2137 There are no changes; however, here is one bug fix made in 19.26 that users
Dave Love <fx@gnu.org>
parents:
diff changeset
2138 think should be documented here.
Dave Love <fx@gnu.org>
parents:
diff changeset
2139
Dave Love <fx@gnu.org>
parents:
diff changeset
2140 ** SPC and DEL in Info now handle menus consistently.
Dave Love <fx@gnu.org>
parents:
diff changeset
2141
Dave Love <fx@gnu.org>
parents:
diff changeset
2142 SPC and DEL scroll through an entire subtree an Info manual. Once you
Dave Love <fx@gnu.org>
parents:
diff changeset
2143 scroll through a node far enough to reach a menu, SPC begins moving
Dave Love <fx@gnu.org>
parents:
diff changeset
2144 into the subnodes of the menu, starting with the first one. When you
Dave Love <fx@gnu.org>
parents:
diff changeset
2145 reach the end of a subnode, SPC moves into the next subnode, and so
Dave Love <fx@gnu.org>
parents:
diff changeset
2146 on.
Dave Love <fx@gnu.org>
parents:
diff changeset
2147
Dave Love <fx@gnu.org>
parents:
diff changeset
2148 DEL more or less scrolls through the same text in reverse order.
Dave Love <fx@gnu.org>
parents:
diff changeset
2149
Dave Love <fx@gnu.org>
parents:
diff changeset
2150 * User Editing Changes in Emacs 19.26
Dave Love <fx@gnu.org>
parents:
diff changeset
2151
Dave Love <fx@gnu.org>
parents:
diff changeset
2152 ** In the X toolkit version, if you click on a menu bar item and
Dave Love <fx@gnu.org>
parents:
diff changeset
2153 release the button quickly outside the menu, the menu remains visible
Dave Love <fx@gnu.org>
parents:
diff changeset
2154 until you click or type something else. If you click on the menu, you
Dave Love <fx@gnu.org>
parents:
diff changeset
2155 select from the menu. Any other mouse click makes the menu disappear.
Dave Love <fx@gnu.org>
parents:
diff changeset
2156 Keyboard input gets rid of the menu and then is processed normally.
Dave Love <fx@gnu.org>
parents:
diff changeset
2157
Dave Love <fx@gnu.org>
parents:
diff changeset
2158 "Quickly" means within double-click-time milliseconds.
Dave Love <fx@gnu.org>
parents:
diff changeset
2159
Dave Love <fx@gnu.org>
parents:
diff changeset
2160 ** The C-x 5 commands to select a buffer in "another frame" now use an
Dave Love <fx@gnu.org>
parents:
diff changeset
2161 existing iconified frame, if any, deiconifying it. They also raise
Dave Love <fx@gnu.org>
parents:
diff changeset
2162 the frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2163
Dave Love <fx@gnu.org>
parents:
diff changeset
2164 ** Region highlighting on a black-and-white-only display now uses
Dave Love <fx@gnu.org>
parents:
diff changeset
2165 underlining. Inverse-video had the problem that you couldn't see
Dave Love <fx@gnu.org>
parents:
diff changeset
2166 the cursor.
Dave Love <fx@gnu.org>
parents:
diff changeset
2167
Dave Love <fx@gnu.org>
parents:
diff changeset
2168 ** You can now change the height of a window by pressing mouse-1 on
Dave Love <fx@gnu.org>
parents:
diff changeset
2169 the mode line and dragging it up and down.
Dave Love <fx@gnu.org>
parents:
diff changeset
2170
Dave Love <fx@gnu.org>
parents:
diff changeset
2171 ** If you set the environment variable LC_CTYPE to iso_8859_1 or
Dave Love <fx@gnu.org>
parents:
diff changeset
2172 iso-8859-1, Emacs automatically sets up for display and syntactic
Dave Love <fx@gnu.org>
parents:
diff changeset
2173 handling of the ISO Latin-1 character set.
Dave Love <fx@gnu.org>
parents:
diff changeset
2174
Dave Love <fx@gnu.org>
parents:
diff changeset
2175 This does not automatically load any of the packages for input of
Dave Love <fx@gnu.org>
parents:
diff changeset
2176 these characters, because it's not yet clear what is right to do.
Dave Love <fx@gnu.org>
parents:
diff changeset
2177 You must still explicitly load either iso-transl or iso-acc.
Dave Love <fx@gnu.org>
parents:
diff changeset
2178
Dave Love <fx@gnu.org>
parents:
diff changeset
2179 ** For a read-only buffer that is also modified, the mode line now displays
Dave Love <fx@gnu.org>
parents:
diff changeset
2180 %* instead of %%.
Dave Love <fx@gnu.org>
parents:
diff changeset
2181
Dave Love <fx@gnu.org>
parents:
diff changeset
2182 ** M-prior (scroll-other-window-down) is a new command that works like
Dave Love <fx@gnu.org>
parents:
diff changeset
2183 M-next (and C-M-v) but scrolls in the opposite direction.
Dave Love <fx@gnu.org>
parents:
diff changeset
2184
Dave Love <fx@gnu.org>
parents:
diff changeset
2185 M-home moves to the beginning of the buffer, in the other window.
Dave Love <fx@gnu.org>
parents:
diff changeset
2186 M-end moves to the end of the buffer, in the other window. These two
Dave Love <fx@gnu.org>
parents:
diff changeset
2187 commands, along with M-next and M-prior, form a series of commands for
Dave Love <fx@gnu.org>
parents:
diff changeset
2188 moving around in the other window.
Dave Love <fx@gnu.org>
parents:
diff changeset
2189
Dave Love <fx@gnu.org>
parents:
diff changeset
2190 ** In change logs, the mail address is now delimited with <...> instead
Dave Love <fx@gnu.org>
parents:
diff changeset
2191 of (...).
Dave Love <fx@gnu.org>
parents:
diff changeset
2192
Dave Love <fx@gnu.org>
parents:
diff changeset
2193 This makes it a little more convenient to extract the mail address for
Dave Love <fx@gnu.org>
parents:
diff changeset
2194 use in mailing a message.
Dave Love <fx@gnu.org>
parents:
diff changeset
2195
Dave Love <fx@gnu.org>
parents:
diff changeset
2196 ** In Shell mode and other comint modes, C-a has now returned to
Dave Love <fx@gnu.org>
parents:
diff changeset
2197 its ordinary meaning: move to the beginning of the line.
Dave Love <fx@gnu.org>
parents:
diff changeset
2198 Use C-c C-a to move to the end of the prompt.
Dave Love <fx@gnu.org>
parents:
diff changeset
2199
Dave Love <fx@gnu.org>
parents:
diff changeset
2200 ** If you set mail-signature to t to cause automatic insertion of
Dave Love <fx@gnu.org>
parents:
diff changeset
2201 your .signature file, you now get a -- before the signature.
Dave Love <fx@gnu.org>
parents:
diff changeset
2202
Dave Love <fx@gnu.org>
parents:
diff changeset
2203 ** Setting rmail-highlighted-headers to nil entirely turns off
Dave Love <fx@gnu.org>
parents:
diff changeset
2204 highlighting in Rmail. However, if your motivation for doing this is
Dave Love <fx@gnu.org>
parents:
diff changeset
2205 that the highlighted text doesn't look good on your display, it might
Dave Love <fx@gnu.org>
parents:
diff changeset
2206 be better to change the appearance of the `highlight' face. Once
Dave Love <fx@gnu.org>
parents:
diff changeset
2207 you've done that, you may find Rmail highlighting is useful.
Dave Love <fx@gnu.org>
parents:
diff changeset
2208
Dave Love <fx@gnu.org>
parents:
diff changeset
2209 ** In the calendar, mouse-2 is now used only for commands that apply to a date.
Dave Love <fx@gnu.org>
parents:
diff changeset
2210 If you click it when not on a date, it gives an immediate error.
Dave Love <fx@gnu.org>
parents:
diff changeset
2211
Dave Love <fx@gnu.org>
parents:
diff changeset
2212 Mouse-3 in the calendar now gives a menu of commands that do not apply
Dave Love <fx@gnu.org>
parents:
diff changeset
2213 to a particular date.
Dave Love <fx@gnu.org>
parents:
diff changeset
2214
Dave Love <fx@gnu.org>
parents:
diff changeset
2215 The D command displays diary entries from a specified diary file (not
Dave Love <fx@gnu.org>
parents:
diff changeset
2216 your standard diary file).
Dave Love <fx@gnu.org>
parents:
diff changeset
2217
Dave Love <fx@gnu.org>
parents:
diff changeset
2218 ** In the gnus-uu package, the binding for gnus-uu-threaded-decode-and-view
Dave Love <fx@gnu.org>
parents:
diff changeset
2219 is now C-c C-v C-d, not C-c C-v C-h. Thus, C-c C-v C-h is now available
Dave Love <fx@gnu.org>
parents:
diff changeset
2220 for asking for a list of the subcommands of C-c C-v.
Dave Love <fx@gnu.org>
parents:
diff changeset
2221
Dave Love <fx@gnu.org>
parents:
diff changeset
2222 ** You can now specify "who you are" for various Emacs packages by
Dave Love <fx@gnu.org>
parents:
diff changeset
2223 setting just one variable, user-mail-address. This currently applies
Dave Love <fx@gnu.org>
parents:
diff changeset
2224 to posting news with GNUS and to making change log entries. It may
Dave Love <fx@gnu.org>
parents:
diff changeset
2225 apply to additional Emacs features in the future.
Dave Love <fx@gnu.org>
parents:
diff changeset
2226
Dave Love <fx@gnu.org>
parents:
diff changeset
2227 * Lisp-Level Changes in Emacs 19.26:
Dave Love <fx@gnu.org>
parents:
diff changeset
2228
Dave Love <fx@gnu.org>
parents:
diff changeset
2229 ** The function insert-char now takes an optional third argument
Dave Love <fx@gnu.org>
parents:
diff changeset
2230 which, if non-nil, says the inserted characters should inherit sticky
Dave Love <fx@gnu.org>
parents:
diff changeset
2231 text properties from the surrounding text.
Dave Love <fx@gnu.org>
parents:
diff changeset
2232
Dave Love <fx@gnu.org>
parents:
diff changeset
2233 ** The `diary' library has been renamed to `diary-lib'. If you refer
Dave Love <fx@gnu.org>
parents:
diff changeset
2234 to this library in your Lisp code, you must update the references.
Dave Love <fx@gnu.org>
parents:
diff changeset
2235
Dave Love <fx@gnu.org>
parents:
diff changeset
2236 ** Sending text to a subprocess can read input from subprocesses if it
Dave Love <fx@gnu.org>
parents:
diff changeset
2237 has to wait because the destination subprocess's terminal input buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
2238 is full.
Dave Love <fx@gnu.org>
parents:
diff changeset
2239
Dave Love <fx@gnu.org>
parents:
diff changeset
2240 It was already possible in unusual occasions for this operation to
Dave Love <fx@gnu.org>
parents:
diff changeset
2241 read subprocess input, but it did not happen very often. It is now
Dave Love <fx@gnu.org>
parents:
diff changeset
2242 more likely to happen.
Dave Love <fx@gnu.org>
parents:
diff changeset
2243
Dave Love <fx@gnu.org>
parents:
diff changeset
2244 ** last-nonmenu-event is now bound to t around filter functions and sentinels.
Dave Love <fx@gnu.org>
parents:
diff changeset
2245 This is to ensure that y-or-n-p and yes-or-no-p use the keyboard by default.
Dave Love <fx@gnu.org>
parents:
diff changeset
2246
Dave Love <fx@gnu.org>
parents:
diff changeset
2247 ** In mode lines, %+ now displays as % for unmodified read-only
Dave Love <fx@gnu.org>
parents:
diff changeset
2248 buffers. It is now the same as %* except in the case of a modified
Dave Love <fx@gnu.org>
parents:
diff changeset
2249 read-only buffer; in that case, %+ displays as *.
Dave Love <fx@gnu.org>
parents:
diff changeset
2250
Dave Love <fx@gnu.org>
parents:
diff changeset
2251 The old meaning of %+ is now available on %&.
Dave Love <fx@gnu.org>
parents:
diff changeset
2252 It displays * for a modified buffer and - for an unmodified buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
2253 regardless of read-only status.
Dave Love <fx@gnu.org>
parents:
diff changeset
2254
Dave Love <fx@gnu.org>
parents:
diff changeset
2255 ** You can now use `underline' in the color list of a face.
Dave Love <fx@gnu.org>
parents:
diff changeset
2256 It serves as a last resort, and says to underline the face
Dave Love <fx@gnu.org>
parents:
diff changeset
2257 (if previous color list elements can't be used).
Dave Love <fx@gnu.org>
parents:
diff changeset
2258
Dave Love <fx@gnu.org>
parents:
diff changeset
2259 ** The new function x-color-values returns the list of color values
Dave Love <fx@gnu.org>
parents:
diff changeset
2260 for a given color name (a string). The list contains three integers
Dave Love <fx@gnu.org>
parents:
diff changeset
2261 which give the amounts of red, green and blue in the color: (R G B).
Dave Love <fx@gnu.org>
parents:
diff changeset
2262
Dave Love <fx@gnu.org>
parents:
diff changeset
2263 ** In run-at-time, 0 as the repeat interval means "don't repeat".
Dave Love <fx@gnu.org>
parents:
diff changeset
2264
Dave Love <fx@gnu.org>
parents:
diff changeset
2265 ** The variable trim-versions-without-asking has been renamed to
Dave Love <fx@gnu.org>
parents:
diff changeset
2266 delete-old-versions.
Dave Love <fx@gnu.org>
parents:
diff changeset
2267
Dave Love <fx@gnu.org>
parents:
diff changeset
2268 ** The new function other-window-for-scrolling returns the choice of
Dave Love <fx@gnu.org>
parents:
diff changeset
2269 other window for C-M-v to scroll.
Dave Love <fx@gnu.org>
parents:
diff changeset
2270
Dave Love <fx@gnu.org>
parents:
diff changeset
2271 ** Note that the function fceiling was mistakenly documented as fceil before.
Dave Love <fx@gnu.org>
parents:
diff changeset
2272
Dave Love <fx@gnu.org>
parents:
diff changeset
2273 * Changes in cc-mode.el in Emacs 19.26:
Dave Love <fx@gnu.org>
parents:
diff changeset
2274
Dave Love <fx@gnu.org>
parents:
diff changeset
2275 ** A new syntactic symbol has been added: substatement-open. It
Dave Love <fx@gnu.org>
parents:
diff changeset
2276 defines the open brace of a substatement block. These used to get:
Dave Love <fx@gnu.org>
parents:
diff changeset
2277 ((block-open ...) (substatement . ...)).
Dave Love <fx@gnu.org>
parents:
diff changeset
2278
Dave Love <fx@gnu.org>
parents:
diff changeset
2279 Non-block substatement lines still get just ((substatement . ...))
Dave Love <fx@gnu.org>
parents:
diff changeset
2280
Dave Love <fx@gnu.org>
parents:
diff changeset
2281 Note that the custom indent function c-adaptive-block-open has been
Dave Love <fx@gnu.org>
parents:
diff changeset
2282 removed as obsolete.
Dave Love <fx@gnu.org>
parents:
diff changeset
2283
Dave Love <fx@gnu.org>
parents:
diff changeset
2284 ** You can now specify the `hanginess' of closing braces. See
Dave Love <fx@gnu.org>
parents:
diff changeset
2285 c-hanging-braces-alist.
Dave Love <fx@gnu.org>
parents:
diff changeset
2286
Dave Love <fx@gnu.org>
parents:
diff changeset
2287 ** Recognizes try and catch blocks in C++. They are given the
Dave Love <fx@gnu.org>
parents:
diff changeset
2288 substatement syntactic symbol.
Dave Love <fx@gnu.org>
parents:
diff changeset
2289
Dave Love <fx@gnu.org>
parents:
diff changeset
2290 ** should be generally more forgiving about non-GNU standard top-level
Dave Love <fx@gnu.org>
parents:
diff changeset
2291 construct definition styles (i.e. where the function/class/struct
Dave Love <fx@gnu.org>
parents:
diff changeset
2292 opening brace does not start in column zero).
Dave Love <fx@gnu.org>
parents:
diff changeset
2293
Dave Love <fx@gnu.org>
parents:
diff changeset
2294 If you hang the braces that open a top-level construct on the right
Dave Love <fx@gnu.org>
parents:
diff changeset
2295 edge, and you find you still need to define defun-open-prompt (Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
2296 19) please let me know. Note that there may still be performance
Dave Love <fx@gnu.org>
parents:
diff changeset
2297 issues related to non-column zero opening braces.
Dave Love <fx@gnu.org>
parents:
diff changeset
2298
Dave Love <fx@gnu.org>
parents:
diff changeset
2299 ** c-macro-expand is put on C-c C-e
Dave Love <fx@gnu.org>
parents:
diff changeset
2300
Dave Love <fx@gnu.org>
parents:
diff changeset
2301 ** New style: "Default". Resets indentation to those shipped with
Dave Love <fx@gnu.org>
parents:
diff changeset
2302 cc-mode.el.
Dave Love <fx@gnu.org>
parents:
diff changeset
2303
Dave Love <fx@gnu.org>
parents:
diff changeset
2304 ** internal defun c-indent-via-language-element has been renamed
Dave Love <fx@gnu.org>
parents:
diff changeset
2305 c-indent-line for compatibility with c-mode.el and awk-mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2306
Dave Love <fx@gnu.org>
parents:
diff changeset
2307 ** new buffer-local variable c-comment-start-regexp for (potential)
Dave Love <fx@gnu.org>
parents:
diff changeset
2308 flexibility in adding new modes based on cc-mode.el
Dave Love <fx@gnu.org>
parents:
diff changeset
2309
Dave Love <fx@gnu.org>
parents:
diff changeset
2310 * Changes in Emacs 19.25
Dave Love <fx@gnu.org>
parents:
diff changeset
2311
Dave Love <fx@gnu.org>
parents:
diff changeset
2312 The variable x-cross-pointer-shape (which didn't really exist) has
Dave Love <fx@gnu.org>
parents:
diff changeset
2313 been renamed to x-sensitive-text-pointer-shape, and now does exist.
Dave Love <fx@gnu.org>
parents:
diff changeset
2314
Dave Love <fx@gnu.org>
parents:
diff changeset
2315 * Changes in Emacs 19.24
Dave Love <fx@gnu.org>
parents:
diff changeset
2316
Dave Love <fx@gnu.org>
parents:
diff changeset
2317 Here is a list of new Lisp packages introduced since 19.22.
Dave Love <fx@gnu.org>
parents:
diff changeset
2318
Dave Love <fx@gnu.org>
parents:
diff changeset
2319 derived.el Define new major modes based on old ones.
Dave Love <fx@gnu.org>
parents:
diff changeset
2320 dired-x.el Extra Dired features.
Dave Love <fx@gnu.org>
parents:
diff changeset
2321 double.el New mode for conveniently inputting non-beyond chars.
Dave Love <fx@gnu.org>
parents:
diff changeset
2322 easymenu.el Create menus easily.
Dave Love <fx@gnu.org>
parents:
diff changeset
2323 ediff.el Snazzy diff interface.
Dave Love <fx@gnu.org>
parents:
diff changeset
2324 foldout.el A kind of outline mode designed for editing programs.
Dave Love <fx@gnu.org>
parents:
diff changeset
2325 gnus-uu.el UUdecode in GNUS buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
2326 ielm.el Interactively evaluate Lisp.
Dave Love <fx@gnu.org>
parents:
diff changeset
2327 This is a replacement for Lisp Interaction Mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2328 iso-cvt.el Conversion of beyond-ASCII characters between
Dave Love <fx@gnu.org>
parents:
diff changeset
2329 various different representations.
Dave Love <fx@gnu.org>
parents:
diff changeset
2330 jka-compr.el Automatic compression/decompression.
Dave Love <fx@gnu.org>
parents:
diff changeset
2331 mldrag.el Drag modeline to change heights of windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
2332 mail-hist.el Provides history for headers of outgoing mail.
Dave Love <fx@gnu.org>
parents:
diff changeset
2333 rsz-mini.el Automatically resizing minibuffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
2334 s-region.el Set region by holding shift.
Dave Love <fx@gnu.org>
parents:
diff changeset
2335 skeleton.el Templates for statement insertion.
Dave Love <fx@gnu.org>
parents:
diff changeset
2336 soundex.el Classifying words by how they sound.
Dave Love <fx@gnu.org>
parents:
diff changeset
2337 tempo.el Template insertion with hotspots.
Dave Love <fx@gnu.org>
parents:
diff changeset
2338
Dave Love <fx@gnu.org>
parents:
diff changeset
2339 * User Editing Changes in 19.23.
Dave Love <fx@gnu.org>
parents:
diff changeset
2340
Dave Love <fx@gnu.org>
parents:
diff changeset
2341 ** Emacs 19.23 uses Ispell version 3.
Dave Love <fx@gnu.org>
parents:
diff changeset
2342
Dave Love <fx@gnu.org>
parents:
diff changeset
2343 Previous Emacs 19 versions used Ispell version 4. That version had
Dave Love <fx@gnu.org>
parents:
diff changeset
2344 improvements in storing the dictionary compactly, but these are not
Dave Love <fx@gnu.org>
parents:
diff changeset
2345 very important nowadays. Meanwhile, in parallel to the work on Ispell
Dave Love <fx@gnu.org>
parents:
diff changeset
2346 4, many useful features were added to Ispell 3. Until a few months
Dave Love <fx@gnu.org>
parents:
diff changeset
2347 ago, the terms on Ispell 3 did not let us use it; but they have now
Dave Love <fx@gnu.org>
parents:
diff changeset
2348 been changed, so now we are using it. We are dropping Ispell 4.
Dave Love <fx@gnu.org>
parents:
diff changeset
2349
Dave Love <fx@gnu.org>
parents:
diff changeset
2350 ** Emacs 19.23 can run on MS-DOG. See the file MSDOS in the same
Dave Love <fx@gnu.org>
parents:
diff changeset
2351 directory as this file.
Dave Love <fx@gnu.org>
parents:
diff changeset
2352
Dave Love <fx@gnu.org>
parents:
diff changeset
2353 ** Emacs 19.23 can work with an X toolkit. You must specify toolkit
Dave Love <fx@gnu.org>
parents:
diff changeset
2354 operation when you configure Emacs: use the option
Dave Love <fx@gnu.org>
parents:
diff changeset
2355 --with-x-toolkit=yes. (This option uses code developed by Lucid;
Dave Love <fx@gnu.org>
parents:
diff changeset
2356 thanks to Frederic Pierresteguy for helping to adapt it.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2357
Dave Love <fx@gnu.org>
parents:
diff changeset
2358 ** Emacs now has dialog boxes; yes/no and y/n questions automatically
Dave Love <fx@gnu.org>
parents:
diff changeset
2359 use them in commands invoked with the mouse. For more information,
Dave Love <fx@gnu.org>
parents:
diff changeset
2360 see below under "Lisp programming changes".
Dave Love <fx@gnu.org>
parents:
diff changeset
2361
Dave Love <fx@gnu.org>
parents:
diff changeset
2362 ** Menus now display the keyboard equivalents (if any) of the menu
Dave Love <fx@gnu.org>
parents:
diff changeset
2363 commands in parentheses after the menu item.
Dave Love <fx@gnu.org>
parents:
diff changeset
2364
Dave Love <fx@gnu.org>
parents:
diff changeset
2365 ** Kill commands, used in a read-only buffer, now move point across
Dave Love <fx@gnu.org>
parents:
diff changeset
2366 the text they would otherwise have killed. This way, you can use
Dave Love <fx@gnu.org>
parents:
diff changeset
2367 repeated kill commands to transfer text into the kill ring.
Dave Love <fx@gnu.org>
parents:
diff changeset
2368
Dave Love <fx@gnu.org>
parents:
diff changeset
2369 ** There is now a global mark ring in addition to the mark ring that is local
Dave Love <fx@gnu.org>
parents:
diff changeset
2370 to each buffer. The global mark ring stores positions in any buffer. Any
Dave Love <fx@gnu.org>
parents:
diff changeset
2371 time the mark is set and the current buffer is different from the last time
Dave Love <fx@gnu.org>
parents:
diff changeset
2372 the mark was set, the new mark is pushed on the global mark ring as well.
Dave Love <fx@gnu.org>
parents:
diff changeset
2373 The new command C-x C-SPC (pop-global-mark) pops the global mark ring and
Dave Love <fx@gnu.org>
parents:
diff changeset
2374 jumps to the last mark pushed, first switching to that buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2375
Dave Love <fx@gnu.org>
parents:
diff changeset
2376 ** Query Replace is now available in the Edit menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
2377
Dave Love <fx@gnu.org>
parents:
diff changeset
2378 ** ESC no longer simply exits a Query Replace. It now exits the Query
Dave Love <fx@gnu.org>
parents:
diff changeset
2379 Replace and remains pending. Thus, ESC A and M-A are now equivalent
Dave Love <fx@gnu.org>
parents:
diff changeset
2380 in Query Replace.
Dave Love <fx@gnu.org>
parents:
diff changeset
2381
Dave Love <fx@gnu.org>
parents:
diff changeset
2382 To simply exit a Query Replace, type RET or Period.
Dave Love <fx@gnu.org>
parents:
diff changeset
2383
Dave Love <fx@gnu.org>
parents:
diff changeset
2384 ** M-mouse-2 now puts point at the end of the yanked secondary selection.
Dave Love <fx@gnu.org>
parents:
diff changeset
2385
Dave Love <fx@gnu.org>
parents:
diff changeset
2386 ** Mouse-1 in the mode line now simply selects the window above that
Dave Love <fx@gnu.org>
parents:
diff changeset
2387 mode line. Mouse-2 in the mode line selects that window and expands
Dave Love <fx@gnu.org>
parents:
diff changeset
2388 it to fill the frame it is in.
Dave Love <fx@gnu.org>
parents:
diff changeset
2389
Dave Love <fx@gnu.org>
parents:
diff changeset
2390 ** You can now use mouse-2 in a Dired buffer or Tar mode buffer to find
Dave Love <fx@gnu.org>
parents:
diff changeset
2391 a file you click on, in a compilation buffer to go to a particular
Dave Love <fx@gnu.org>
parents:
diff changeset
2392 error message, and in a *Occur* buffer to go to a particular
Dave Love <fx@gnu.org>
parents:
diff changeset
2393 occurrence.
Dave Love <fx@gnu.org>
parents:
diff changeset
2394
Dave Love <fx@gnu.org>
parents:
diff changeset
2395 (It was already possible to do likewise in Info and in completion list
Dave Love <fx@gnu.org>
parents:
diff changeset
2396 buffers.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2397
Dave Love <fx@gnu.org>
parents:
diff changeset
2398 What's more, the sensitive areas of the buffer now highlight when you
Dave Love <fx@gnu.org>
parents:
diff changeset
2399 move the mouse over them.
Dave Love <fx@gnu.org>
parents:
diff changeset
2400
Dave Love <fx@gnu.org>
parents:
diff changeset
2401 ** In a completion list buffer, the command RET now chooses the completion
Dave Love <fx@gnu.org>
parents:
diff changeset
2402 that is around or next to point.
Dave Love <fx@gnu.org>
parents:
diff changeset
2403
Dave Love <fx@gnu.org>
parents:
diff changeset
2404 ** If you specify the foreground color for the `mode-line' face, and
Dave Love <fx@gnu.org>
parents:
diff changeset
2405 mode-line-inverse-video is non-nil, then the default background color
Dave Love <fx@gnu.org>
parents:
diff changeset
2406 is the usual foreground color.
Dave Love <fx@gnu.org>
parents:
diff changeset
2407
Dave Love <fx@gnu.org>
parents:
diff changeset
2408 ** revert-buffer now preserves markers pointing within the unchanged
Dave Love <fx@gnu.org>
parents:
diff changeset
2409 text (if any) at the beginning and end of the file.
Dave Love <fx@gnu.org>
parents:
diff changeset
2410
Dave Love <fx@gnu.org>
parents:
diff changeset
2411 ** Version control checkin and checkout preserve all markers if the
Dave Love <fx@gnu.org>
parents:
diff changeset
2412 file does not contain any of the magic version header sequences that
Dave Love <fx@gnu.org>
parents:
diff changeset
2413 are updated automatically by RCS and SCCS. If such version headers
Dave Love <fx@gnu.org>
parents:
diff changeset
2414 are present, checkin and checkout preserve a marker unless it comes
Dave Love <fx@gnu.org>
parents:
diff changeset
2415 between two such sequences. (So it's a good idea to put all the
Dave Love <fx@gnu.org>
parents:
diff changeset
2416 header sequences close together.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2417
Dave Love <fx@gnu.org>
parents:
diff changeset
2418 ** When a large deletion shuts off auto save temporarily in a buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
2419 you can now turn it on again by saving the buffer with C-x C-s (as was
Dave Love <fx@gnu.org>
parents:
diff changeset
2420 possible in Emacs 18). You can also turn it on again with M-1 M-x
Dave Love <fx@gnu.org>
parents:
diff changeset
2421 auto-save (as has been possible in Emacs 19).
Dave Love <fx@gnu.org>
parents:
diff changeset
2422
Dave Love <fx@gnu.org>
parents:
diff changeset
2423 ** C-x r d now runs the command delete-rectangle.
Dave Love <fx@gnu.org>
parents:
diff changeset
2424
Dave Love <fx@gnu.org>
parents:
diff changeset
2425 ** The new command imenu shows you a menu of interesting places in the
Dave Love <fx@gnu.org>
parents:
diff changeset
2426 current buffer and lets you select one; then it moves point there.
Dave Love <fx@gnu.org>
parents:
diff changeset
2427 The definition of interesting places depends on the major mode, but
Dave Love <fx@gnu.org>
parents:
diff changeset
2428 typically this includes function definitions and such. Normally,
Dave Love <fx@gnu.org>
parents:
diff changeset
2429 imenu displays the menu in a buffer; but if you bind it to a mouse
Dave Love <fx@gnu.org>
parents:
diff changeset
2430 event, it shows a mouse popup menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
2431
Dave Love <fx@gnu.org>
parents:
diff changeset
2432 ** You can make certain chosen buffers, that normally appear in a
Dave Love <fx@gnu.org>
parents:
diff changeset
2433 separate window, appear in special frames of their own. To do this,
Dave Love <fx@gnu.org>
parents:
diff changeset
2434 set special-display-buffer-names to a list of buffer names; any buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
2435 whose name is in that list automatically gets a special frame when it
Dave Love <fx@gnu.org>
parents:
diff changeset
2436 is to be displayed in another window.
Dave Love <fx@gnu.org>
parents:
diff changeset
2437
Dave Love <fx@gnu.org>
parents:
diff changeset
2438 A good value to try is ("*compilation*" "*grep*" "*TeX Shell*").
Dave Love <fx@gnu.org>
parents:
diff changeset
2439
Dave Love <fx@gnu.org>
parents:
diff changeset
2440 More generally, you can set special-display-regexps to a list of regular
Dave Love <fx@gnu.org>
parents:
diff changeset
2441 expressions; then each buffer whose name matches any of those regular
Dave Love <fx@gnu.org>
parents:
diff changeset
2442 expressions gets its own frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2443
Dave Love <fx@gnu.org>
parents:
diff changeset
2444 The variable special-display-frame-alist specifies the frame
Dave Love <fx@gnu.org>
parents:
diff changeset
2445 parameters for these frames. It has a default value, so you don't
Dave Love <fx@gnu.org>
parents:
diff changeset
2446 need to set it.
Dave Love <fx@gnu.org>
parents:
diff changeset
2447
Dave Love <fx@gnu.org>
parents:
diff changeset
2448 ** If you set sentence-end-double-space to nil, the fill commands
Dave Love <fx@gnu.org>
parents:
diff changeset
2449 expect just one space at the end of a sentence. (If you want the
Dave Love <fx@gnu.org>
parents:
diff changeset
2450 sentence commands to accept single spaces, you must modify the regexp
Dave Love <fx@gnu.org>
parents:
diff changeset
2451 sentence-end also.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2452
Dave Love <fx@gnu.org>
parents:
diff changeset
2453 ** You can suppress the startup echo area message by adding text like
Dave Love <fx@gnu.org>
parents:
diff changeset
2454 this to your .emacs file:
Dave Love <fx@gnu.org>
parents:
diff changeset
2455
Dave Love <fx@gnu.org>
parents:
diff changeset
2456 (setq inhibit-startup-echo-area-message "YOUR-LOGIN-NAME")
Dave Love <fx@gnu.org>
parents:
diff changeset
2457
Dave Love <fx@gnu.org>
parents:
diff changeset
2458 Simply setting inhibit-startup-echo-area-message to your login name is
Dave Love <fx@gnu.org>
parents:
diff changeset
2459 not sufficient to inhibit the message; Emacs explicitly checks whether
Dave Love <fx@gnu.org>
parents:
diff changeset
2460 .emacs contains an expression as shown above. Your login name must
Dave Love <fx@gnu.org>
parents:
diff changeset
2461 appear in the expression as a Lisp string constant.
Dave Love <fx@gnu.org>
parents:
diff changeset
2462
Dave Love <fx@gnu.org>
parents:
diff changeset
2463 This way, you can easily inhibit the message for yourself if you wish,
Dave Love <fx@gnu.org>
parents:
diff changeset
2464 but thoughtless copying of your .emacs file will not inhibit the
Dave Love <fx@gnu.org>
parents:
diff changeset
2465 message for someone else.
Dave Love <fx@gnu.org>
parents:
diff changeset
2466
Dave Love <fx@gnu.org>
parents:
diff changeset
2467 ** Outline minor mode now uses C-c C-o as a prefix instead of just C-c.
Dave Love <fx@gnu.org>
parents:
diff changeset
2468
Dave Love <fx@gnu.org>
parents:
diff changeset
2469 ** In Outline mode, hide-subtree is now C-c C-d. (It was C-c C-h; but
Dave Love <fx@gnu.org>
parents:
diff changeset
2470 that is now a conventional way to ask for help about C-c commands.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2471
Dave Love <fx@gnu.org>
parents:
diff changeset
2472 ** There are two additional commands in Outline mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2473 M-x hide-sublevels
Dave Love <fx@gnu.org>
parents:
diff changeset
2474 hides all headers except the topmost N levels.
Dave Love <fx@gnu.org>
parents:
diff changeset
2475 M-x hide-other
Dave Love <fx@gnu.org>
parents:
diff changeset
2476 hides everything about the body that point is in
Dave Love <fx@gnu.org>
parents:
diff changeset
2477 plus the headers leading up from there to the top of the tree.
Dave Love <fx@gnu.org>
parents:
diff changeset
2478
Dave Love <fx@gnu.org>
parents:
diff changeset
2479 ** In iso-transl and iso-insert, the sequences for entering A-ring and
Dave Love <fx@gnu.org>
parents:
diff changeset
2480 the AE ligature are now just A and E (plus the initial C-x 8 or Alt).
Dave Love <fx@gnu.org>
parents:
diff changeset
2481 You used to have to enter AA or AE, after the C-x 8 prefix of course.
Dave Love <fx@gnu.org>
parents:
diff changeset
2482 Likewise for lower case a-ring and ae.
Dave Love <fx@gnu.org>
parents:
diff changeset
2483
Dave Love <fx@gnu.org>
parents:
diff changeset
2484 ** iso-transl now defines convenient Alt keys as well as the C-x 8 prefix.
Dave Love <fx@gnu.org>
parents:
diff changeset
2485 Instead of prefixing a sequence with C-x 8, you can add Alt to the
Dave Love <fx@gnu.org>
parents:
diff changeset
2486 first character of the sequence. For example, Alt-" a is now a way
Dave Love <fx@gnu.org>
parents:
diff changeset
2487 to enter an a-umlaut.
Dave Love <fx@gnu.org>
parents:
diff changeset
2488
Dave Love <fx@gnu.org>
parents:
diff changeset
2489 ** CC mode is a greatly improved mode for C and C++.
Dave Love <fx@gnu.org>
parents:
diff changeset
2490 See the following page.
Dave Love <fx@gnu.org>
parents:
diff changeset
2491
Dave Love <fx@gnu.org>
parents:
diff changeset
2492 ** tcl mode is a new major mode. It provides features for
Dave Love <fx@gnu.org>
parents:
diff changeset
2493 editing, indenting and running tcl programs.
Dave Love <fx@gnu.org>
parents:
diff changeset
2494
Dave Love <fx@gnu.org>
parents:
diff changeset
2495 ** Compilation minor mode lets you parse error messages in any buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
2496 not just a normal compilation output buffer. Type M-x
Dave Love <fx@gnu.org>
parents:
diff changeset
2497 compilation-minor-mode to enable the minor mode; then C-c C-c jumps to
Dave Love <fx@gnu.org>
parents:
diff changeset
2498 the source location for the error at point, as in the `*compilation*'
Dave Love <fx@gnu.org>
parents:
diff changeset
2499 buffer. If you use compilation-minor-mode in an Rlogin buffer, it
Dave Love <fx@gnu.org>
parents:
diff changeset
2500 automatically accesses remote source files by ftp.
Dave Love <fx@gnu.org>
parents:
diff changeset
2501
Dave Love <fx@gnu.org>
parents:
diff changeset
2502 ** Comint and shell mode changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
2503
Dave Love <fx@gnu.org>
parents:
diff changeset
2504 *** Comint modes (including Shell mode, GUD modes, etc.) now bind
Dave Love <fx@gnu.org>
parents:
diff changeset
2505 C-M-l to the command comint-show-output. This command scrolls the
Dave Love <fx@gnu.org>
parents:
diff changeset
2506 buffer to show the last batch of output from the subprogram.
Dave Love <fx@gnu.org>
parents:
diff changeset
2507
Dave Love <fx@gnu.org>
parents:
diff changeset
2508 *** Completion in Comint modes now truly operates on the string before
Dave Love <fx@gnu.org>
parents:
diff changeset
2509 point, rather than the word that point is within.
Dave Love <fx@gnu.org>
parents:
diff changeset
2510
Dave Love <fx@gnu.org>
parents:
diff changeset
2511 *** Comint mode file name completion ignores those files that end with a
Dave Love <fx@gnu.org>
parents:
diff changeset
2512 string in the new variable comint-completion-fignore. This variable's
Dave Love <fx@gnu.org>
parents:
diff changeset
2513 default value is nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
2514
Dave Love <fx@gnu.org>
parents:
diff changeset
2515 *** Shell mode uses the variable shell-completion-fignore to set
Dave Love <fx@gnu.org>
parents:
diff changeset
2516 comint-completion-fignore. The default value is nil, but some
Dave Love <fx@gnu.org>
parents:
diff changeset
2517 people prefer ("~" "#" "%").
Dave Love <fx@gnu.org>
parents:
diff changeset
2518
Dave Love <fx@gnu.org>
parents:
diff changeset
2519 *** The function `comint-watch-for-password-prompt' can be used to
Dave Love <fx@gnu.org>
parents:
diff changeset
2520 suppress echoing when a subprocess asks for a password. To use it,
Dave Love <fx@gnu.org>
parents:
diff changeset
2521 do this:
Dave Love <fx@gnu.org>
parents:
diff changeset
2522
Dave Love <fx@gnu.org>
parents:
diff changeset
2523 (add-hook 'comint-output-filter-functions
Dave Love <fx@gnu.org>
parents:
diff changeset
2524 'comint-watch-for-password-prompt)
Dave Love <fx@gnu.org>
parents:
diff changeset
2525
Dave Love <fx@gnu.org>
parents:
diff changeset
2526 *** You can use M-x shell-strip-ctrl-m to strip ^M characters from
Dave Love <fx@gnu.org>
parents:
diff changeset
2527 process output.
Dave Love <fx@gnu.org>
parents:
diff changeset
2528
Dave Love <fx@gnu.org>
parents:
diff changeset
2529 *** In Shell mode, TAB now completes environment variables, if possible,
Dave Love <fx@gnu.org>
parents:
diff changeset
2530 and expands directory references.
Dave Love <fx@gnu.org>
parents:
diff changeset
2531
Dave Love <fx@gnu.org>
parents:
diff changeset
2532 *** You can use M-x comint-run to execute any program of your choice in
Dave Love <fx@gnu.org>
parents:
diff changeset
2533 a comint mode. Some programs such as shells, rlogin, and debuggers
Dave Love <fx@gnu.org>
parents:
diff changeset
2534 have their own specialized modes; this command is one way to use
Dave Love <fx@gnu.org>
parents:
diff changeset
2535 comint to run programs for which no such specialized mode exits. (You
Dave Love <fx@gnu.org>
parents:
diff changeset
2536 can also run a shell with M-x shell and run the program of your choice
Dave Love <fx@gnu.org>
parents:
diff changeset
2537 under the shell--but that gives you the specializations of Shell
Dave Love <fx@gnu.org>
parents:
diff changeset
2538 mode.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2539
Dave Love <fx@gnu.org>
parents:
diff changeset
2540 ** When you run GUD (M-x gdb, M-x dbx, and so on), you can use TAB
Dave Love <fx@gnu.org>
parents:
diff changeset
2541 to do file name completion in the minibuffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2542
Dave Love <fx@gnu.org>
parents:
diff changeset
2543 The "Complete" menu includes an item for directory expansion.
Dave Love <fx@gnu.org>
parents:
diff changeset
2544
Dave Love <fx@gnu.org>
parents:
diff changeset
2545 ** GUD working with future versions of GDB will permit TAB for
Dave Love <fx@gnu.org>
parents:
diff changeset
2546 GDB-style symbol completion. This will work with GDB 4.13.
Dave Love <fx@gnu.org>
parents:
diff changeset
2547
Dave Love <fx@gnu.org>
parents:
diff changeset
2548 ** Rmail no longer gets new mail automatically when you visit an Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
2549 file specified by name--not even if it is your primary Rmail file. To
Dave Love <fx@gnu.org>
parents:
diff changeset
2550 get new mail, type `g'. This feature is an advantage because you now
Dave Love <fx@gnu.org>
parents:
diff changeset
2551 have a choice of whether to get new mail. (This change actually
Dave Love <fx@gnu.org>
parents:
diff changeset
2552 occurred in an earlier version, but wasn't listed here then, since it
Dave Love <fx@gnu.org>
parents:
diff changeset
2553 made the code do what the documentation already said.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2554
Dave Love <fx@gnu.org>
parents:
diff changeset
2555 ** Rmail now highlights certain fields automatically, when you use X
Dave Love <fx@gnu.org>
parents:
diff changeset
2556 windows. The variable rmail-highlighted-headers controls which
Dave Love <fx@gnu.org>
parents:
diff changeset
2557 fields.
Dave Love <fx@gnu.org>
parents:
diff changeset
2558
Dave Love <fx@gnu.org>
parents:
diff changeset
2559 ** If you set rmail-summary-window-size to an integer, Rmail uses
Dave Love <fx@gnu.org>
parents:
diff changeset
2560 a window that many lines high for the summary buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2561
Dave Love <fx@gnu.org>
parents:
diff changeset
2562 ** rmail-input-menu is a new command that visits an Rmail file letting
Dave Love <fx@gnu.org>
parents:
diff changeset
2563 you choose which file with a mouse menu. rmail-output-menu is
Dave Love <fx@gnu.org>
parents:
diff changeset
2564 similar; it outputs the current message, using a mouse menu to choose
Dave Love <fx@gnu.org>
parents:
diff changeset
2565 which Rmail file. These commands use the variables
Dave Love <fx@gnu.org>
parents:
diff changeset
2566 rmail-secondary-file-directory and rmail-secondary-file-regexp.
Dave Love <fx@gnu.org>
parents:
diff changeset
2567
Dave Love <fx@gnu.org>
parents:
diff changeset
2568 ** The mh-e package has been changed substantially.
Dave Love <fx@gnu.org>
parents:
diff changeset
2569 See the file ./MH-E-NEWS for details.
Dave Love <fx@gnu.org>
parents:
diff changeset
2570
Dave Love <fx@gnu.org>
parents:
diff changeset
2571 ** The calendar and diary have new features.
Dave Love <fx@gnu.org>
parents:
diff changeset
2572
Dave Love <fx@gnu.org>
parents:
diff changeset
2573 The menu bar for the calendar contains most of the calendar commands,
Dave Love <fx@gnu.org>
parents:
diff changeset
2574 arranged into logical categories.
Dave Love <fx@gnu.org>
parents:
diff changeset
2575
Dave Love <fx@gnu.org>
parents:
diff changeset
2576 Mouse-2 now performs specific-date-related commands when clicked on a
Dave Love <fx@gnu.org>
parents:
diff changeset
2577 date in the calendar window and common three-month-related commands
Dave Love <fx@gnu.org>
parents:
diff changeset
2578 when clicked elsewhere in the calendar window.
Dave Love <fx@gnu.org>
parents:
diff changeset
2579
Dave Love <fx@gnu.org>
parents:
diff changeset
2580 You can set up colored/shaded highlighting of holidays, diary entry
Dave Love <fx@gnu.org>
parents:
diff changeset
2581 dates, and today's date, by setting calendar-holiday-marker,
Dave Love <fx@gnu.org>
parents:
diff changeset
2582 diary-entry-marker, and calendar-today-marker to a face instead of a
Dave Love <fx@gnu.org>
parents:
diff changeset
2583 character. Using a special face is now the default if you are using a
Dave Love <fx@gnu.org>
parents:
diff changeset
2584 window system.
Dave Love <fx@gnu.org>
parents:
diff changeset
2585
Dave Love <fx@gnu.org>
parents:
diff changeset
2586 ** The appt package for displaying appointment reminders has new
Dave Love <fx@gnu.org>
parents:
diff changeset
2587 features.
Dave Love <fx@gnu.org>
parents:
diff changeset
2588
Dave Love <fx@gnu.org>
parents:
diff changeset
2589 *** The appt alarm window stays for the full duration of
Dave Love <fx@gnu.org>
parents:
diff changeset
2590 appt-display-duration. It no longer disappears when you start typing
Dave Love <fx@gnu.org>
parents:
diff changeset
2591 text.
Dave Love <fx@gnu.org>
parents:
diff changeset
2592
Dave Love <fx@gnu.org>
parents:
diff changeset
2593 *** You can change the way the appointment window is created/deleted by
Dave Love <fx@gnu.org>
parents:
diff changeset
2594 setting the variables appt-disp-window-function and
Dave Love <fx@gnu.org>
parents:
diff changeset
2595 appt-delete-window-function.
Dave Love <fx@gnu.org>
parents:
diff changeset
2596
Dave Love <fx@gnu.org>
parents:
diff changeset
2597 For instance, these variables can be set to functions that display
Dave Love <fx@gnu.org>
parents:
diff changeset
2598 appointments in pop-up frames, which are lowered or iconified after
Dave Love <fx@gnu.org>
parents:
diff changeset
2599 appt-display-duration seconds.
Dave Love <fx@gnu.org>
parents:
diff changeset
2600
Dave Love <fx@gnu.org>
parents:
diff changeset
2601 ** desktop.el can now save a list of buffer-local variables,
Dave Love <fx@gnu.org>
parents:
diff changeset
2602 and saves more global ones.
Dave Love <fx@gnu.org>
parents:
diff changeset
2603
Dave Love <fx@gnu.org>
parents:
diff changeset
2604 ** Pascal mode has been completely rewritten. It now features
Dave Love <fx@gnu.org>
parents:
diff changeset
2605 completing of function names, variables and type definitions around
Dave Love <fx@gnu.org>
parents:
diff changeset
2606 current point (like M-TAB does with lisp-symbols). There's also an
Dave Love <fx@gnu.org>
parents:
diff changeset
2607 outline mode (M-x pascal-outline) that hides the bodies of all
Dave Love <fx@gnu.org>
parents:
diff changeset
2608 functions you're not working with.
Dave Love <fx@gnu.org>
parents:
diff changeset
2609
Dave Love <fx@gnu.org>
parents:
diff changeset
2610 ** Edebug has a number of changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
2611
Dave Love <fx@gnu.org>
parents:
diff changeset
2612 *** Edebug syntax error reporting is improved.
Dave Love <fx@gnu.org>
parents:
diff changeset
2613
Dave Love <fx@gnu.org>
parents:
diff changeset
2614 *** Top-level forms and defining forms other than defun and defmacro may
Dave Love <fx@gnu.org>
parents:
diff changeset
2615 now be debugged with Edebug.
Dave Love <fx@gnu.org>
parents:
diff changeset
2616
Dave Love <fx@gnu.org>
parents:
diff changeset
2617 *** Edebug specifications may now contain body, &define, name, arg or
Dave Love <fx@gnu.org>
parents:
diff changeset
2618 arglist, def-body, and def-form, to support definitions.
Dave Love <fx@gnu.org>
parents:
diff changeset
2619
Dave Love <fx@gnu.org>
parents:
diff changeset
2620 *** edebug-all-defuns is renamed to edebug-all-defs.
Dave Love <fx@gnu.org>
parents:
diff changeset
2621 def-edebug-form-spec is replaced by def-edebug-form whose arguments
Dave Love <fx@gnu.org>
parents:
diff changeset
2622 are unevaluated. The old names are still available for now.
Dave Love <fx@gnu.org>
parents:
diff changeset
2623
Dave Love <fx@gnu.org>
parents:
diff changeset
2624 *** Frequency counts and coverage data may be displayed for functions being
Dave Love <fx@gnu.org>
parents:
diff changeset
2625 debugged.
Dave Love <fx@gnu.org>
parents:
diff changeset
2626
Dave Love <fx@gnu.org>
parents:
diff changeset
2627 *** A global break condition is now checked at every stop point.
Dave Love <fx@gnu.org>
parents:
diff changeset
2628
Dave Love <fx@gnu.org>
parents:
diff changeset
2629 *** The previous condition at a breakpoint may now be edited.
Dave Love <fx@gnu.org>
parents:
diff changeset
2630
Dave Love <fx@gnu.org>
parents:
diff changeset
2631 *** A new "next" mode stops only after expression evaluation.
Dave Love <fx@gnu.org>
parents:
diff changeset
2632
Dave Love <fx@gnu.org>
parents:
diff changeset
2633 *** A new command, top-level-nonstop, does not even stop for unwind-protect,
Dave Love <fx@gnu.org>
parents:
diff changeset
2634 as top-level would.
Dave Love <fx@gnu.org>
parents:
diff changeset
2635
Dave Love <fx@gnu.org>
parents:
diff changeset
2636 * Changes in CC mode in Emacs 19.23.
Dave Love <fx@gnu.org>
parents:
diff changeset
2637
Dave Love <fx@gnu.org>
parents:
diff changeset
2638 `cc-mode' provides ANSI C, K&R C, and ARM C++ language editing. It
Dave Love <fx@gnu.org>
parents:
diff changeset
2639 represents the merge of c++-mode.el and c-mode.el. cc-mode provides a
Dave Love <fx@gnu.org>
parents:
diff changeset
2640 new, more flexible indentation engine so that indentation
Dave Love <fx@gnu.org>
parents:
diff changeset
2641 customization is more intuitive. There are two steps to calculating
Dave Love <fx@gnu.org>
parents:
diff changeset
2642 indentation: first, CC mode analyzes the line for syntactic content,
Dave Love <fx@gnu.org>
parents:
diff changeset
2643 then based on this content it applies user defined offsets and adds
Dave Love <fx@gnu.org>
parents:
diff changeset
2644 this offset to the indentation of some previous line.
Dave Love <fx@gnu.org>
parents:
diff changeset
2645
Dave Love <fx@gnu.org>
parents:
diff changeset
2646 The syntactic analysis determines if the line describes a `statement',
Dave Love <fx@gnu.org>
parents:
diff changeset
2647 `substatement', `class-open', `member-init-intro', etc. These are
Dave Love <fx@gnu.org>
parents:
diff changeset
2648 described in detail with C-h v c-offsets-alist. You can change the
Dave Love <fx@gnu.org>
parents:
diff changeset
2649 offsets interactively with C-c C-o (c-set-offsets), or
Dave Love <fx@gnu.org>
parents:
diff changeset
2650 programmatically in your c-mode-common-hook, which is run both by
Dave Love <fx@gnu.org>
parents:
diff changeset
2651 c-mode and c++-mode. You can also set up "styles" in the same way
Dave Love <fx@gnu.org>
parents:
diff changeset
2652 that you could with c-mode.el. The variable c-basic-offset controls
Dave Love <fx@gnu.org>
parents:
diff changeset
2653 the basic offset given to a level of indentation.
Dave Love <fx@gnu.org>
parents:
diff changeset
2654
Dave Love <fx@gnu.org>
parents:
diff changeset
2655 If, for example, you wanted to change this style:
Dave Love <fx@gnu.org>
parents:
diff changeset
2656
Dave Love <fx@gnu.org>
parents:
diff changeset
2657 int foo (int i)
Dave Love <fx@gnu.org>
parents:
diff changeset
2658 {
Dave Love <fx@gnu.org>
parents:
diff changeset
2659 switch (i) {
Dave Love <fx@gnu.org>
parents:
diff changeset
2660 case 1:
Dave Love <fx@gnu.org>
parents:
diff changeset
2661 printf ("its a foo\n");
Dave Love <fx@gnu.org>
parents:
diff changeset
2662 break;
Dave Love <fx@gnu.org>
parents:
diff changeset
2663 default:
Dave Love <fx@gnu.org>
parents:
diff changeset
2664 printf ("don't know what it is\n");
Dave Love <fx@gnu.org>
parents:
diff changeset
2665 break;
Dave Love <fx@gnu.org>
parents:
diff changeset
2666 }
Dave Love <fx@gnu.org>
parents:
diff changeset
2667 }
Dave Love <fx@gnu.org>
parents:
diff changeset
2668
Dave Love <fx@gnu.org>
parents:
diff changeset
2669 into this:
Dave Love <fx@gnu.org>
parents:
diff changeset
2670
Dave Love <fx@gnu.org>
parents:
diff changeset
2671 int foo (int i)
Dave Love <fx@gnu.org>
parents:
diff changeset
2672 {
Dave Love <fx@gnu.org>
parents:
diff changeset
2673 switch (i) {
Dave Love <fx@gnu.org>
parents:
diff changeset
2674 case 1:
Dave Love <fx@gnu.org>
parents:
diff changeset
2675 printf ("its a foo\n");
Dave Love <fx@gnu.org>
parents:
diff changeset
2676 break;
Dave Love <fx@gnu.org>
parents:
diff changeset
2677 default:
Dave Love <fx@gnu.org>
parents:
diff changeset
2678 printf ("don't know what it is\n");
Dave Love <fx@gnu.org>
parents:
diff changeset
2679 break;
Dave Love <fx@gnu.org>
parents:
diff changeset
2680 }
Dave Love <fx@gnu.org>
parents:
diff changeset
2681 }
Dave Love <fx@gnu.org>
parents:
diff changeset
2682
Dave Love <fx@gnu.org>
parents:
diff changeset
2683 you could add the following to your .emacs file:
Dave Love <fx@gnu.org>
parents:
diff changeset
2684
Dave Love <fx@gnu.org>
parents:
diff changeset
2685 (defun my-c-mode-common-hook ()
Dave Love <fx@gnu.org>
parents:
diff changeset
2686 (c-set-offset 'case-label 2)
Dave Love <fx@gnu.org>
parents:
diff changeset
2687 (c-set-offset 'statement-case-intro 2))
Dave Love <fx@gnu.org>
parents:
diff changeset
2688 (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
Dave Love <fx@gnu.org>
parents:
diff changeset
2689
Dave Love <fx@gnu.org>
parents:
diff changeset
2690 ** New variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
2691
Dave Love <fx@gnu.org>
parents:
diff changeset
2692 c-offsets-alist contains an association list of syntactic symbols and
Dave Love <fx@gnu.org>
parents:
diff changeset
2693 their relative offsets. Do a "C-h v c-offsets-alist" to get a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
2694 all syntactic symbols currently defined, and their meanings. You
Dave Love <fx@gnu.org>
parents:
diff changeset
2695 should not change this variable directly; use the supplied interface
Dave Love <fx@gnu.org>
parents:
diff changeset
2696 commands c-set-offset and c-set-style.
Dave Love <fx@gnu.org>
parents:
diff changeset
2697
Dave Love <fx@gnu.org>
parents:
diff changeset
2698 c-mode-common-hook is run by both c-mode and c++-mode during their
Dave Love <fx@gnu.org>
parents:
diff changeset
2699 common initializations. You should put any customizations that are
Dave Love <fx@gnu.org>
parents:
diff changeset
2700 the same for both C and C++ into this hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
2701
Dave Love <fx@gnu.org>
parents:
diff changeset
2702 The variable c-strict-semantics-p is used mainly for debugging. When
Dave Love <fx@gnu.org>
parents:
diff changeset
2703 non-nil, CC mode signals an error if it returns a syntactic symbol
Dave Love <fx@gnu.org>
parents:
diff changeset
2704 that can't be found in c-offsets-alist.
Dave Love <fx@gnu.org>
parents:
diff changeset
2705
Dave Love <fx@gnu.org>
parents:
diff changeset
2706 If you want CC mode to echo the syntactic analysis for a particular
Dave Love <fx@gnu.org>
parents:
diff changeset
2707 line when you hit the TAB key, set c-echo-semantic-information-p to
Dave Love <fx@gnu.org>
parents:
diff changeset
2708 non-nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
2709
Dave Love <fx@gnu.org>
parents:
diff changeset
2710 c-basic-offset controls the standard amount of offset for a level of
Dave Love <fx@gnu.org>
parents:
diff changeset
2711 indentation. You can set a syntactic symbol's offset to + or - as a
Dave Love <fx@gnu.org>
parents:
diff changeset
2712 short-hand for positive or negative c-basic-offset.
Dave Love <fx@gnu.org>
parents:
diff changeset
2713
Dave Love <fx@gnu.org>
parents:
diff changeset
2714 c-comment-only-line-offset lets you control indentation given to lines
Dave Love <fx@gnu.org>
parents:
diff changeset
2715 which contain only a comment, in the case of C++ line style comments,
Dave Love <fx@gnu.org>
parents:
diff changeset
2716 or the introduction to a C block comment. Comment-only lines at
Dave Love <fx@gnu.org>
parents:
diff changeset
2717 column zero can be anchored there independent of the indentation given
Dave Love <fx@gnu.org>
parents:
diff changeset
2718 to other comment-only lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
2719
Dave Love <fx@gnu.org>
parents:
diff changeset
2720 c-block-comments-indent-p controls the style of C block comment
Dave Love <fx@gnu.org>
parents:
diff changeset
2721 re-indentation. If you put leading stars in front of comment
Dave Love <fx@gnu.org>
parents:
diff changeset
2722 continuation lines, you should set this variable to nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
2723
Dave Love <fx@gnu.org>
parents:
diff changeset
2724 c-cleanup-list is a list describing certain C and C++ constructs to be
Dave Love <fx@gnu.org>
parents:
diff changeset
2725 "cleaned up" as they are typed, but only when the auto-newline feature
Dave Love <fx@gnu.org>
parents:
diff changeset
2726 is turned on. In C++, make sure this variable contains at least
Dave Love <fx@gnu.org>
parents:
diff changeset
2727 'scope-operator so that double colons will not be separated by a
Dave Love <fx@gnu.org>
parents:
diff changeset
2728 newline.
Dave Love <fx@gnu.org>
parents:
diff changeset
2729
Dave Love <fx@gnu.org>
parents:
diff changeset
2730 Colons (`:') and braces (`{` and `}') are special in C and C++. For
Dave Love <fx@gnu.org>
parents:
diff changeset
2731 certain constructs, you may like them to hang on the right edge of the
Dave Love <fx@gnu.org>
parents:
diff changeset
2732 code, or you may like them to start a new line of code. You can use
Dave Love <fx@gnu.org>
parents:
diff changeset
2733 the two variables c-hanging-braces-alist and c-hanging-colons-alist
Dave Love <fx@gnu.org>
parents:
diff changeset
2734 to control whether newlines are placed before and/or after colons and
Dave Love <fx@gnu.org>
parents:
diff changeset
2735 braces when certain C and C++ constructs are entered. For example,
Dave Love <fx@gnu.org>
parents:
diff changeset
2736 you can control whether the colon that introduces a C++ member
Dave Love <fx@gnu.org>
parents:
diff changeset
2737 initialization list hangs on the right edge, starts a new line, or has
Dave Love <fx@gnu.org>
parents:
diff changeset
2738 no newlines either before or after it.
Dave Love <fx@gnu.org>
parents:
diff changeset
2739
Dave Love <fx@gnu.org>
parents:
diff changeset
2740 c-special-indent-hook is run after a line is indented by CC mode. You
Dave Love <fx@gnu.org>
parents:
diff changeset
2741 can perform any custom indentations here.
Dave Love <fx@gnu.org>
parents:
diff changeset
2742
Dave Love <fx@gnu.org>
parents:
diff changeset
2743 c-delete-function is the function that is called when a single
Dave Love <fx@gnu.org>
parents:
diff changeset
2744 character is deleted with the c-electric-delete command (DEL).
Dave Love <fx@gnu.org>
parents:
diff changeset
2745
Dave Love <fx@gnu.org>
parents:
diff changeset
2746 c-electric-pound-behavior describes what happens when you enter the
Dave Love <fx@gnu.org>
parents:
diff changeset
2747 `#' that introduces a cpp macro.
Dave Love <fx@gnu.org>
parents:
diff changeset
2748
Dave Love <fx@gnu.org>
parents:
diff changeset
2749 If c-tab-always-indent is neither t nor nil, then TAB inserts a tab
Dave Love <fx@gnu.org>
parents:
diff changeset
2750 when within strings, comments, and cpp directives, but it reindents
Dave Love <fx@gnu.org>
parents:
diff changeset
2751 the line unconditionally.
Dave Love <fx@gnu.org>
parents:
diff changeset
2752
Dave Love <fx@gnu.org>
parents:
diff changeset
2753 c-inhibit-startup-warnings-p inhibits warnings about any old
Dave Love <fx@gnu.org>
parents:
diff changeset
2754 version of Emacs you might be running, which could be incompatible
Dave Love <fx@gnu.org>
parents:
diff changeset
2755 with cc-mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2756
Dave Love <fx@gnu.org>
parents:
diff changeset
2757 ** There are two new minor-mode features in CC mode: auto-newline and
Dave Love <fx@gnu.org>
parents:
diff changeset
2758 hungry-delete. Auto-newline inserts newlines automatically as you
Dave Love <fx@gnu.org>
parents:
diff changeset
2759 type certain constructs. Hungry-delete consumes all preceding
Dave Love <fx@gnu.org>
parents:
diff changeset
2760 whitespace (spaces, tabs, and newlines) when the delete key is hit.
Dave Love <fx@gnu.org>
parents:
diff changeset
2761 You can toggle auto-newline on and off on a per-buffer basis by
Dave Love <fx@gnu.org>
parents:
diff changeset
2762 hitting C-c C-a. You can toggle hungry-delete on and off by hitting
Dave Love <fx@gnu.org>
parents:
diff changeset
2763 C-c C-d. You can toggle them both on and off together with C-c C-t.
Dave Love <fx@gnu.org>
parents:
diff changeset
2764
Dave Love <fx@gnu.org>
parents:
diff changeset
2765 ** Slash (`/') and star (`*') are now both electric characters.
Dave Love <fx@gnu.org>
parents:
diff changeset
2766
Dave Love <fx@gnu.org>
parents:
diff changeset
2767 ** New commands:
Dave Love <fx@gnu.org>
parents:
diff changeset
2768
Dave Love <fx@gnu.org>
parents:
diff changeset
2769 The new C-c C-o (c-set-offset) command can be used to interactively change
Dave Love <fx@gnu.org>
parents:
diff changeset
2770 the offset for a particular syntactic symbol.
Dave Love <fx@gnu.org>
parents:
diff changeset
2771
Dave Love <fx@gnu.org>
parents:
diff changeset
2772 The new command C-c : (c-scope-operator) inserts the C++ scope operator in
Dave Love <fx@gnu.org>
parents:
diff changeset
2773 c++-mode only.
Dave Love <fx@gnu.org>
parents:
diff changeset
2774
Dave Love <fx@gnu.org>
parents:
diff changeset
2775 The new command C-c C-q (c-indent-defun) indents the entire enclosing
Dave Love <fx@gnu.org>
parents:
diff changeset
2776 top-level function or class.
Dave Love <fx@gnu.org>
parents:
diff changeset
2777
Dave Love <fx@gnu.org>
parents:
diff changeset
2778 The new command C-c C-s (c-show-semantic-information) echos the current
Dave Love <fx@gnu.org>
parents:
diff changeset
2779 syntactic analysis without re-indenting the current line.
Dave Love <fx@gnu.org>
parents:
diff changeset
2780
Dave Love <fx@gnu.org>
parents:
diff changeset
2781 The new commands M-x c-forward-into-nomenclature and M-x
Dave Love <fx@gnu.org>
parents:
diff changeset
2782 c-backward-into-nomenclature (currently otherwise unbound to a key
Dave Love <fx@gnu.org>
parents:
diff changeset
2783 sequence), make movement easier when using the C++ variable naming
Dave Love <fx@gnu.org>
parents:
diff changeset
2784 convention of VariableNamesWithoutUnderscoresButEachWordCapitalized.
Dave Love <fx@gnu.org>
parents:
diff changeset
2785
Dave Love <fx@gnu.org>
parents:
diff changeset
2786 ** Command from c-mode.el that have been renamed in cc-mode.el:
Dave Love <fx@gnu.org>
parents:
diff changeset
2787
Dave Love <fx@gnu.org>
parents:
diff changeset
2788 electric-c-brace => c-electric-brace
Dave Love <fx@gnu.org>
parents:
diff changeset
2789 electric-c-semi => c-electric-semi&comma
Dave Love <fx@gnu.org>
parents:
diff changeset
2790 electric-c-sharp-sign => c-electric-pound
Dave Love <fx@gnu.org>
parents:
diff changeset
2791 mark-c-function => c-mark-function
Dave Love <fx@gnu.org>
parents:
diff changeset
2792 electric-c-terminator => c-electric-colon
Dave Love <fx@gnu.org>
parents:
diff changeset
2793 indent-c-exp => c-indent-exp
Dave Love <fx@gnu.org>
parents:
diff changeset
2794 set-c-style => c-set-style
Dave Love <fx@gnu.org>
parents:
diff changeset
2795
Dave Love <fx@gnu.org>
parents:
diff changeset
2796 ** Variables from c-mode.el that are obsolete with cc-mode.el:
Dave Love <fx@gnu.org>
parents:
diff changeset
2797
Dave Love <fx@gnu.org>
parents:
diff changeset
2798 c-indent-level
Dave Love <fx@gnu.org>
parents:
diff changeset
2799 c-brace-imaginary-offset
Dave Love <fx@gnu.org>
parents:
diff changeset
2800 c-brace-offset
Dave Love <fx@gnu.org>
parents:
diff changeset
2801 c-argdecl-indent
Dave Love <fx@gnu.org>
parents:
diff changeset
2802 c-label-offset
Dave Love <fx@gnu.org>
parents:
diff changeset
2803 c-continued-statement-offset
Dave Love <fx@gnu.org>
parents:
diff changeset
2804 c-continued-brace-offset
Dave Love <fx@gnu.org>
parents:
diff changeset
2805
Dave Love <fx@gnu.org>
parents:
diff changeset
2806 * Lisp programming changes in Emacs 19.23.
Dave Love <fx@gnu.org>
parents:
diff changeset
2807
Dave Love <fx@gnu.org>
parents:
diff changeset
2808 ** To pop up a dialog box, call x-popup-dialog.
Dave Love <fx@gnu.org>
parents:
diff changeset
2809 It takes two arguments, POSITION and CONTENTS.
Dave Love <fx@gnu.org>
parents:
diff changeset
2810
Dave Love <fx@gnu.org>
parents:
diff changeset
2811 POSITION specifies which frame to place the dialog box over;
Dave Love <fx@gnu.org>
parents:
diff changeset
2812 the dialog box always goes on the center of the frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2813 POSITION may be a mouse event, a window, a frame,
Dave Love <fx@gnu.org>
parents:
diff changeset
2814 or t meaning use the frame that the mouse is in.
Dave Love <fx@gnu.org>
parents:
diff changeset
2815
Dave Love <fx@gnu.org>
parents:
diff changeset
2816 CONTENTS specifies the contents of the dialog box.
Dave Love <fx@gnu.org>
parents:
diff changeset
2817 It looks like a single pane of a popup menu:
Dave Love <fx@gnu.org>
parents:
diff changeset
2818 (TITLE ITEM1 ITEM2 ...), where each ITEM has the form (STRING . VALUE).
Dave Love <fx@gnu.org>
parents:
diff changeset
2819 The return value is VALUE from the chosen item.
Dave Love <fx@gnu.org>
parents:
diff changeset
2820
Dave Love <fx@gnu.org>
parents:
diff changeset
2821 An ITEM may also be just a string--that makes a nonselectable item.
Dave Love <fx@gnu.org>
parents:
diff changeset
2822 An ITEM may also be nil--that means to put all preceding items
Dave Love <fx@gnu.org>
parents:
diff changeset
2823 on the left of the dialog box and all following items on the right.
Dave Love <fx@gnu.org>
parents:
diff changeset
2824 (By default, approximately half appear on each side.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2825
Dave Love <fx@gnu.org>
parents:
diff changeset
2826 If your Emacs is not using an X toolkit, then it cannot display a
Dave Love <fx@gnu.org>
parents:
diff changeset
2827 real dialog box; so instead it displays a pop-up menu in the center
Dave Love <fx@gnu.org>
parents:
diff changeset
2828 of the frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2829
Dave Love <fx@gnu.org>
parents:
diff changeset
2830 ** y-or-n-p, yes-or-no-p and map-y-or-n-p now use menus or dialog boxes
Dave Love <fx@gnu.org>
parents:
diff changeset
2831 to ask their question(s) if the command that is running was reached by
Dave Love <fx@gnu.org>
parents:
diff changeset
2832 a mouse event.
Dave Love <fx@gnu.org>
parents:
diff changeset
2833
Dave Love <fx@gnu.org>
parents:
diff changeset
2834 If you want to control which way these functions work, bind the
Dave Love <fx@gnu.org>
parents:
diff changeset
2835 variable last-nonmenu-event around the call. These functions use the
Dave Love <fx@gnu.org>
parents:
diff changeset
2836 keyboard if that variable holds a keyboard event (actually, any
Dave Love <fx@gnu.org>
parents:
diff changeset
2837 non-list); they use the mouse if that variable holds a mouse event
Dave Love <fx@gnu.org>
parents:
diff changeset
2838 (actually, any list).
Dave Love <fx@gnu.org>
parents:
diff changeset
2839
Dave Love <fx@gnu.org>
parents:
diff changeset
2840 ** The mouse-face property is now implemented, both in overlays and as
Dave Love <fx@gnu.org>
parents:
diff changeset
2841 a text property. It specifies a face to use when the mouse is in the
Dave Love <fx@gnu.org>
parents:
diff changeset
2842 range of text for which the property is specified.
Dave Love <fx@gnu.org>
parents:
diff changeset
2843
Dave Love <fx@gnu.org>
parents:
diff changeset
2844 ** When text has a non-nil `intangible' property, you cannot move point
Dave Love <fx@gnu.org>
parents:
diff changeset
2845 within it or right before it. If you try, point actually moves to the
Dave Love <fx@gnu.org>
parents:
diff changeset
2846 end of the intangible text. Note that this means that backward-char
Dave Love <fx@gnu.org>
parents:
diff changeset
2847 is a no-op when there is an intangible character to the left of point.
Dave Love <fx@gnu.org>
parents:
diff changeset
2848
Dave Love <fx@gnu.org>
parents:
diff changeset
2849 ** minibuffer-exit-hook is a new normal hook that is run when you
Dave Love <fx@gnu.org>
parents:
diff changeset
2850 exit the minibuffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2851
Dave Love <fx@gnu.org>
parents:
diff changeset
2852 ** The variable x-cross-pointer-shape specifies the cursor shape to use
Dave Love <fx@gnu.org>
parents:
diff changeset
2853 when the mouse is over text that has a mouse-face property.
Dave Love <fx@gnu.org>
parents:
diff changeset
2854
Dave Love <fx@gnu.org>
parents:
diff changeset
2855 ** The new variable interpreter-mode-alist specifies major modes to use
Dave Love <fx@gnu.org>
parents:
diff changeset
2856 for shell scripts that specify a command interpreter. Its elements
Dave Love <fx@gnu.org>
parents:
diff changeset
2857 look like (INTERPRETER . MODE); for example, ("perl" . perl-mode) is
Dave Love <fx@gnu.org>
parents:
diff changeset
2858 one element present by default. This feature applies only when the
Dave Love <fx@gnu.org>
parents:
diff changeset
2859 file name doesn't indicate which mode to use.
Dave Love <fx@gnu.org>
parents:
diff changeset
2860
Dave Love <fx@gnu.org>
parents:
diff changeset
2861 ** If you use a minibuffer-only frame, set the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
2862 minibuffer-auto-raise to t, and entering the minibuffer will then
Dave Love <fx@gnu.org>
parents:
diff changeset
2863 raise the minibuffer frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2864
Dave Love <fx@gnu.org>
parents:
diff changeset
2865 ** If pop-up-frames is t, display-buffer now looks for an existing
Dave Love <fx@gnu.org>
parents:
diff changeset
2866 window in any visible frame, showing the specified buffer, and uses
Dave Love <fx@gnu.org>
parents:
diff changeset
2867 such a window in preference to making a new frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
2868
Dave Love <fx@gnu.org>
parents:
diff changeset
2869 ** In the functions next-window, previous-window, next-frame,
Dave Love <fx@gnu.org>
parents:
diff changeset
2870 previous-frame, get-buffer-window, get-lru-window, get-largest-window
Dave Love <fx@gnu.org>
parents:
diff changeset
2871 and delete-windows-on, if you specify `visible' for the last argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
2872 it means to consider all visible frames.
Dave Love <fx@gnu.org>
parents:
diff changeset
2873
Dave Love <fx@gnu.org>
parents:
diff changeset
2874 ** Mouse events now give the X and Y coordinates in pixels, rather than
Dave Love <fx@gnu.org>
parents:
diff changeset
2875 in characters. You can convert these values to characters by dividing by
Dave Love <fx@gnu.org>
parents:
diff changeset
2876 the values of (frame-char-width) and (frame-char-height).
Dave Love <fx@gnu.org>
parents:
diff changeset
2877
Dave Love <fx@gnu.org>
parents:
diff changeset
2878 ** The new functions mouse-pixel-position and set-mouse-pixel-position
Dave Love <fx@gnu.org>
parents:
diff changeset
2879 read and set the mouse position in units of pixels. The existing
Dave Love <fx@gnu.org>
parents:
diff changeset
2880 functions mouse-position and set-mouse-position continue to work with
Dave Love <fx@gnu.org>
parents:
diff changeset
2881 units of characters.
Dave Love <fx@gnu.org>
parents:
diff changeset
2882
Dave Love <fx@gnu.org>
parents:
diff changeset
2883 ** The new function compute-motion is useful for computing the width
Dave Love <fx@gnu.org>
parents:
diff changeset
2884 of certain text when it is displayed.
Dave Love <fx@gnu.org>
parents:
diff changeset
2885
Dave Love <fx@gnu.org>
parents:
diff changeset
2886 ** The function vertical-motion now takes an option second argument WINDOW
Dave Love <fx@gnu.org>
parents:
diff changeset
2887 which says which window to use for the display calculations.
Dave Love <fx@gnu.org>
parents:
diff changeset
2888
Dave Love <fx@gnu.org>
parents:
diff changeset
2889 vertical-motion always operates on the current buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2890 It is ok to specify a window displaying some other buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2891 Then vertical-motion uses the width, hscroll and display-table of
Dave Love <fx@gnu.org>
parents:
diff changeset
2892 the specified window, but still scans the current buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
2893
Dave Love <fx@gnu.org>
parents:
diff changeset
2894 ** An error no longer sets last-command to t; the value of last-command
Dave Love <fx@gnu.org>
parents:
diff changeset
2895 does reflect the previous command (the one that got an error).
Dave Love <fx@gnu.org>
parents:
diff changeset
2896
Dave Love <fx@gnu.org>
parents:
diff changeset
2897 If you do not want a particular command to be recognized as the
Dave Love <fx@gnu.org>
parents:
diff changeset
2898 previous command in the case where it got an error, you must code that
Dave Love <fx@gnu.org>
parents:
diff changeset
2899 command to prevent this. Set this-command to t at the beginning of
Dave Love <fx@gnu.org>
parents:
diff changeset
2900 the command, and set this-command back to its proper value at the end,
Dave Love <fx@gnu.org>
parents:
diff changeset
2901 like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
2902
Dave Love <fx@gnu.org>
parents:
diff changeset
2903 (defun foo (args...)
Dave Love <fx@gnu.org>
parents:
diff changeset
2904 (interactive ...)
Dave Love <fx@gnu.org>
parents:
diff changeset
2905 (setq this-command t)
Dave Love <fx@gnu.org>
parents:
diff changeset
2906 ...do the work...
Dave Love <fx@gnu.org>
parents:
diff changeset
2907 (setq this-command 'foo))
Dave Love <fx@gnu.org>
parents:
diff changeset
2908
Dave Love <fx@gnu.org>
parents:
diff changeset
2909 or like this:
Dave Love <fx@gnu.org>
parents:
diff changeset
2910
Dave Love <fx@gnu.org>
parents:
diff changeset
2911 (defun foo (args...)
Dave Love <fx@gnu.org>
parents:
diff changeset
2912 (interactive ...)
Dave Love <fx@gnu.org>
parents:
diff changeset
2913 (let ((old-this-command this-command))
Dave Love <fx@gnu.org>
parents:
diff changeset
2914 (setq this-command t)
Dave Love <fx@gnu.org>
parents:
diff changeset
2915 ...do the work...
Dave Love <fx@gnu.org>
parents:
diff changeset
2916 (setq this-command old-this-command)))
Dave Love <fx@gnu.org>
parents:
diff changeset
2917
Dave Love <fx@gnu.org>
parents:
diff changeset
2918 The undo and yank commands do this.
Dave Love <fx@gnu.org>
parents:
diff changeset
2919
Dave Love <fx@gnu.org>
parents:
diff changeset
2920 ** If you specify an explicit title for a new frame when you create it,
Dave Love <fx@gnu.org>
parents:
diff changeset
2921 the title is used as the resource name when looking up X resources to
Dave Love <fx@gnu.org>
parents:
diff changeset
2922 control the shape of that frame. If you don't specify the frame title,
Dave Love <fx@gnu.org>
parents:
diff changeset
2923 the value of x-resource-name is used, as before.
Dave Love <fx@gnu.org>
parents:
diff changeset
2924
Dave Love <fx@gnu.org>
parents:
diff changeset
2925 ** The frame parameter user-position, if non-nil, says that the user
Dave Love <fx@gnu.org>
parents:
diff changeset
2926 has specified the frame position. Emacs reports this to the window
Dave Love <fx@gnu.org>
parents:
diff changeset
2927 manager, to tell it not to override the position that the user
Dave Love <fx@gnu.org>
parents:
diff changeset
2928 specified.
Dave Love <fx@gnu.org>
parents:
diff changeset
2929
Dave Love <fx@gnu.org>
parents:
diff changeset
2930 ** Major modes can now set change-major-mode-hook to arrange for state
Dave Love <fx@gnu.org>
parents:
diff changeset
2931 to be cleaned up when the user switches to a new major mode. The function
Dave Love <fx@gnu.org>
parents:
diff changeset
2932 kill-all-local-variables runs this hook. For best results, make the hook a
Dave Love <fx@gnu.org>
parents:
diff changeset
2933 buffer-local variable so that it will disappear after doing its job and will
Dave Love <fx@gnu.org>
parents:
diff changeset
2934 not interfere with the subsequent major mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2935
Dave Love <fx@gnu.org>
parents:
diff changeset
2936 ** The new variable overriding-local-map, if non-nil, specifies a keymap
Dave Love <fx@gnu.org>
parents:
diff changeset
2937 that overrides the current local map, all minor mode keymaps, and all
Dave Love <fx@gnu.org>
parents:
diff changeset
2938 text property keymaps. Incremental search uses this feature to override
Dave Love <fx@gnu.org>
parents:
diff changeset
2939 all other keymaps temporarily.
Dave Love <fx@gnu.org>
parents:
diff changeset
2940
Dave Love <fx@gnu.org>
parents:
diff changeset
2941 ** A key definition in a menu keymap can now have additional structure:
Dave Love <fx@gnu.org>
parents:
diff changeset
2942 in addition to (ITEMNAME [HELPSTRING] . COMMAND) which was allowed
Dave Love <fx@gnu.org>
parents:
diff changeset
2943 before, the form (ITEMNAME [HELPSTRING] (...) . COMMAND) is
Dave Love <fx@gnu.org>
parents:
diff changeset
2944 allowed. (HELPSTRING is optional, and is not currently used.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2945
Dave Love <fx@gnu.org>
parents:
diff changeset
2946 Here (...) represents a sublist containing information about keyboard
Dave Love <fx@gnu.org>
parents:
diff changeset
2947 key sequences that run the same command COMMAND. Displaying the menu
Dave Love <fx@gnu.org>
parents:
diff changeset
2948 automatically creates and updates the sublist when appropriate; you
Dave Love <fx@gnu.org>
parents:
diff changeset
2949 need never set these up yourself.
Dave Love <fx@gnu.org>
parents:
diff changeset
2950
Dave Love <fx@gnu.org>
parents:
diff changeset
2951 lookup-key, key-binding, and similar functions return just COMMAND,
Dave Love <fx@gnu.org>
parents:
diff changeset
2952 not the whole binding.
Dave Love <fx@gnu.org>
parents:
diff changeset
2953
Dave Love <fx@gnu.org>
parents:
diff changeset
2954 To precompute this information for a given keymap, you can do
Dave Love <fx@gnu.org>
parents:
diff changeset
2955 (x-popup-menu nil KEYMAP).
Dave Love <fx@gnu.org>
parents:
diff changeset
2956
Dave Love <fx@gnu.org>
parents:
diff changeset
2957 ** When you specify coordinates for x-popup-menu as a list ((XOFFSET
Dave Love <fx@gnu.org>
parents:
diff changeset
2958 YOFFSET) WINDOW), the coordinates are now measured in pixels.
Dave Love <fx@gnu.org>
parents:
diff changeset
2959
Dave Love <fx@gnu.org>
parents:
diff changeset
2960 ** where-is-internal now takes just four arguments:
Dave Love <fx@gnu.org>
parents:
diff changeset
2961 DEFINITION KEYMAP FIRSTONLY NOINDIRECT.
Dave Love <fx@gnu.org>
parents:
diff changeset
2962 The single argument KEYMAP replaces two arguments KEYMAP and KEYMAP1.
Dave Love <fx@gnu.org>
parents:
diff changeset
2963
Dave Love <fx@gnu.org>
parents:
diff changeset
2964 If KEYMAP is non-nil, where-is-internal searches only KEYMAP and the
Dave Love <fx@gnu.org>
parents:
diff changeset
2965 global keymap.
Dave Love <fx@gnu.org>
parents:
diff changeset
2966
Dave Love <fx@gnu.org>
parents:
diff changeset
2967 If KEYMAP is nil, where-is-internal searches all the currently active
Dave Love <fx@gnu.org>
parents:
diff changeset
2968 keymaps, but finds the active keymaps as if overriding-local-map were
Dave Love <fx@gnu.org>
parents:
diff changeset
2969 nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
2970
Dave Love <fx@gnu.org>
parents:
diff changeset
2971 If you pass a list of the form (keymap) as KEYMAP, where-is-internal
Dave Love <fx@gnu.org>
parents:
diff changeset
2972 searches only the global map. (This is not a special case--it follows
Dave Love <fx@gnu.org>
parents:
diff changeset
2973 from the specifications above.)
Dave Love <fx@gnu.org>
parents:
diff changeset
2974
Dave Love <fx@gnu.org>
parents:
diff changeset
2975 If you pass the value of overriding-local-map as KEYMAP, where-is-internal
Dave Love <fx@gnu.org>
parents:
diff changeset
2976 searches in exactly the same was as command execution does.
Dave Love <fx@gnu.org>
parents:
diff changeset
2977
Dave Love <fx@gnu.org>
parents:
diff changeset
2978 ** Use the macro define-derived-mode to define a new major mode that
Dave Love <fx@gnu.org>
parents:
diff changeset
2979 inherits the definition of another major mode. Here's how to define a
Dave Love <fx@gnu.org>
parents:
diff changeset
2980 command named hypertext-mode that inherits from the command text-mode:
Dave Love <fx@gnu.org>
parents:
diff changeset
2981
Dave Love <fx@gnu.org>
parents:
diff changeset
2982 (define-derived-mode hypertext-mode text-mode "Hypertext"
Dave Love <fx@gnu.org>
parents:
diff changeset
2983 "Major mode for hypertext.\n\n\\{hypertext-mode-map}"
Dave Love <fx@gnu.org>
parents:
diff changeset
2984 (setq case-fold-search nil))
Dave Love <fx@gnu.org>
parents:
diff changeset
2985
Dave Love <fx@gnu.org>
parents:
diff changeset
2986 (define-key hypertext-mode-map [down-mouse-3] 'do-hyper-link)
Dave Love <fx@gnu.org>
parents:
diff changeset
2987
Dave Love <fx@gnu.org>
parents:
diff changeset
2988 The new mode has its own keymap, which inherits from that of the
Dave Love <fx@gnu.org>
parents:
diff changeset
2989 original mode. It also has its own syntax and abbrev tables, which
Dave Love <fx@gnu.org>
parents:
diff changeset
2990 are initialized by copying those of the original mode. It also has
Dave Love <fx@gnu.org>
parents:
diff changeset
2991 its own mode hook. All are given names made by appending a suffix
Dave Love <fx@gnu.org>
parents:
diff changeset
2992 to the name of the new mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
2993
Dave Love <fx@gnu.org>
parents:
diff changeset
2994 ** A syntax table can now inherit the data for some characters from
Dave Love <fx@gnu.org>
parents:
diff changeset
2995 standard-syntax-table, while specifying other characters itself.
Dave Love <fx@gnu.org>
parents:
diff changeset
2996 Syntax code 13 means "inherit this character from the standard syntax
Dave Love <fx@gnu.org>
parents:
diff changeset
2997 table." In modify-syntax-entry, the character `@' represents this code.
Dave Love <fx@gnu.org>
parents:
diff changeset
2998
Dave Love <fx@gnu.org>
parents:
diff changeset
2999 The function `make-syntax-table' now creates a syntax table which
Dave Love <fx@gnu.org>
parents:
diff changeset
3000 inherits all letters and control characters (0 to 31 and 128 to 255)
Dave Love <fx@gnu.org>
parents:
diff changeset
3001 from the standard syntax table, while copying the other characters
Dave Love <fx@gnu.org>
parents:
diff changeset
3002 from the standard syntax table. Most syntax tables in Emacs are set
Dave Love <fx@gnu.org>
parents:
diff changeset
3003 up this way.
Dave Love <fx@gnu.org>
parents:
diff changeset
3004
Dave Love <fx@gnu.org>
parents:
diff changeset
3005 This sort of inheritance is useful for people who set up character
Dave Love <fx@gnu.org>
parents:
diff changeset
3006 sets with additional alphabetic characters in the range 128 to 255.
Dave Love <fx@gnu.org>
parents:
diff changeset
3007 Just changing the standard syntax for these characters affects all
Dave Love <fx@gnu.org>
parents:
diff changeset
3008 major modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
3009
Dave Love <fx@gnu.org>
parents:
diff changeset
3010 ** The new function transpose-regions swaps two regions of the buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3011 It preserves the markers in those two regions, so that they stay with
Dave Love <fx@gnu.org>
parents:
diff changeset
3012 the surrounding text as it is swapped.
Dave Love <fx@gnu.org>
parents:
diff changeset
3013
Dave Love <fx@gnu.org>
parents:
diff changeset
3014 ** revert-buffer now runs before-revert-hook at the beginning and
Dave Love <fx@gnu.org>
parents:
diff changeset
3015 after-revert-hook at the end. These can be used by minor modes
Dave Love <fx@gnu.org>
parents:
diff changeset
3016 that need to clean up state variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
3017
Dave Love <fx@gnu.org>
parents:
diff changeset
3018 ** The new function get-char-property is like get-text-property, but
Dave Love <fx@gnu.org>
parents:
diff changeset
3019 checks for overlays with properties as well as for text properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
3020 It checks for overlays first, in order of descending priority, and
Dave Love <fx@gnu.org>
parents:
diff changeset
3021 text properties last.
Dave Love <fx@gnu.org>
parents:
diff changeset
3022
Dave Love <fx@gnu.org>
parents:
diff changeset
3023 get-char-property allows windows as the OBJECT argument, as well
Dave Love <fx@gnu.org>
parents:
diff changeset
3024 as buffers and strings. If you specify a window, then only overlays
Dave Love <fx@gnu.org>
parents:
diff changeset
3025 active on that window are considered.
Dave Love <fx@gnu.org>
parents:
diff changeset
3026
Dave Love <fx@gnu.org>
parents:
diff changeset
3027 ** Overlays can have the `invisible' property.
Dave Love <fx@gnu.org>
parents:
diff changeset
3028
Dave Love <fx@gnu.org>
parents:
diff changeset
3029 ** The function insert-file-contents now takes an optional fifth
Dave Love <fx@gnu.org>
parents:
diff changeset
3030 argument called REPLACE. If this is t, it means to replace the
Dave Love <fx@gnu.org>
parents:
diff changeset
3031 contents of the buffer (actually, just the accessible portion)
Dave Love <fx@gnu.org>
parents:
diff changeset
3032 with the contents of the file.
Dave Love <fx@gnu.org>
parents:
diff changeset
3033
Dave Love <fx@gnu.org>
parents:
diff changeset
3034 This is better than simply deleting and inserting the whole thing
Dave Love <fx@gnu.org>
parents:
diff changeset
3035 because (1) it preserves some marker positions and (2) it puts less
Dave Love <fx@gnu.org>
parents:
diff changeset
3036 data in the undo list.
Dave Love <fx@gnu.org>
parents:
diff changeset
3037
Dave Love <fx@gnu.org>
parents:
diff changeset
3038 ** The variable inhibit-first-line-modes-regexps specifies classes of
Dave Love <fx@gnu.org>
parents:
diff changeset
3039 file names for which -*- on the first line should not be looked for.
Dave Love <fx@gnu.org>
parents:
diff changeset
3040
Dave Love <fx@gnu.org>
parents:
diff changeset
3041 ** The variables before-change-functions and after-change-functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3042 hold lists of functions to call before and after a change in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3043 buffer's text. They work much like before-change-function and
Dave Love <fx@gnu.org>
parents:
diff changeset
3044 after-change-function, except that they hold a list of functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3045 instead of just one.
Dave Love <fx@gnu.org>
parents:
diff changeset
3046
Dave Love <fx@gnu.org>
parents:
diff changeset
3047 These variables will eventually make before-change-function and
Dave Love <fx@gnu.org>
parents:
diff changeset
3048 after-change-function obsolete.
Dave Love <fx@gnu.org>
parents:
diff changeset
3049
Dave Love <fx@gnu.org>
parents:
diff changeset
3050 ** The variable kill-buffer-query-functions holds a list of functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3051 to be called with no arguments when a buffer is about to be killed.
Dave Love <fx@gnu.org>
parents:
diff changeset
3052 (That buffer is the current buffer when the function is called.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3053 If any of the functions returns nil, the buffer is not killed
Dave Love <fx@gnu.org>
parents:
diff changeset
3054 (and the remaining functions in the list are not called).
Dave Love <fx@gnu.org>
parents:
diff changeset
3055
Dave Love <fx@gnu.org>
parents:
diff changeset
3056 ** The variable kill-emacs-query-functions holds a list of functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3057 to be called with no arguments when you ask to exit Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3058 If any of the functions returns nil, the exit is canceled
Dave Love <fx@gnu.org>
parents:
diff changeset
3059 (and the remaining functions in the list are not called).
Dave Love <fx@gnu.org>
parents:
diff changeset
3060
Dave Love <fx@gnu.org>
parents:
diff changeset
3061 ** The argument for buffer-disable-undo is now optional,
Dave Love <fx@gnu.org>
parents:
diff changeset
3062 like the argument for buffer-enable-undo.
Dave Love <fx@gnu.org>
parents:
diff changeset
3063
Dave Love <fx@gnu.org>
parents:
diff changeset
3064 ** The new variable system-configuration holds the canonical three-part
Dave Love <fx@gnu.org>
parents:
diff changeset
3065 GNU configuration name for which Emacs was built.
Dave Love <fx@gnu.org>
parents:
diff changeset
3066
Dave Love <fx@gnu.org>
parents:
diff changeset
3067 ** The function system-name now tries harder to return a fully qualified
Dave Love <fx@gnu.org>
parents:
diff changeset
3068 domain name.
Dave Love <fx@gnu.org>
parents:
diff changeset
3069
Dave Love <fx@gnu.org>
parents:
diff changeset
3070 ** The variable emacs-major-version holds the major version number
Dave Love <fx@gnu.org>
parents:
diff changeset
3071 of Emacs. (Currently 19.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3072
Dave Love <fx@gnu.org>
parents:
diff changeset
3073 ** The variable emacs-minor-version holds the minor version number
Dave Love <fx@gnu.org>
parents:
diff changeset
3074 of Emacs. (Currently 23.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3075
Dave Love <fx@gnu.org>
parents:
diff changeset
3076 ** The default value of comint-input-autoexpand is now nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
3077 However, Shell mode sets it from the value of shell-input-autoexpand,
Dave Love <fx@gnu.org>
parents:
diff changeset
3078 whose default value is `history'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3079
Dave Love <fx@gnu.org>
parents:
diff changeset
3080 ** The new function set-process-window-size specifies the terminal window
Dave Love <fx@gnu.org>
parents:
diff changeset
3081 size for a subprocess. On some systems it sends the subprocess a signal
Dave Love <fx@gnu.org>
parents:
diff changeset
3082 to let it know that the size has changed.
Dave Love <fx@gnu.org>
parents:
diff changeset
3083
Dave Love <fx@gnu.org>
parents:
diff changeset
3084 ** %P is a new way to display a percentage in the mode line. It
Dave Love <fx@gnu.org>
parents:
diff changeset
3085 displays the percentage of the buffer text that is above the *bottom*
Dave Love <fx@gnu.org>
parents:
diff changeset
3086 of the window (which includes the text visible, in the window as well
Dave Love <fx@gnu.org>
parents:
diff changeset
3087 as the text above the top). It displays `Top' as well as the
Dave Love <fx@gnu.org>
parents:
diff changeset
3088 percentage if the top of the buffer is visible on screen.
Dave Love <fx@gnu.org>
parents:
diff changeset
3089
Dave Love <fx@gnu.org>
parents:
diff changeset
3090 ** %+ in the mode line specs displays `*' if the buffer is modified,
Dave Love <fx@gnu.org>
parents:
diff changeset
3091 and otherwise `-'. It never displays `%', as `%*' would do; whether the
Dave Love <fx@gnu.org>
parents:
diff changeset
3092 buffer is read-only has no effect on %+.
Dave Love <fx@gnu.org>
parents:
diff changeset
3093
Dave Love <fx@gnu.org>
parents:
diff changeset
3094 ** The new functions ffloor, fceiling, fround and ftruncate take a
Dave Love <fx@gnu.org>
parents:
diff changeset
3095 floating point argument and return a floating point result whose value
Dave Love <fx@gnu.org>
parents:
diff changeset
3096 is a nearby integer. ffloor returns the nearest integer below; fceiling,
Dave Love <fx@gnu.org>
parents:
diff changeset
3097 the nearest integer above; ftruncate, the nearest integer in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3098 direction towards zero; fround, the nearest integer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3099
Dave Love <fx@gnu.org>
parents:
diff changeset
3100 ** Setting `print-escape-newlines' to a non-nil value now also makes
Dave Love <fx@gnu.org>
parents:
diff changeset
3101 formfeeds print as ``\f''.
Dave Love <fx@gnu.org>
parents:
diff changeset
3102
Dave Love <fx@gnu.org>
parents:
diff changeset
3103 ** auto-mode-alist now has a new feature. If an element has the form
Dave Love <fx@gnu.org>
parents:
diff changeset
3104 (REGEXP FUNCTION t), and REGEXP matches the file name, then after calling
Dave Love <fx@gnu.org>
parents:
diff changeset
3105 FUNCTION, Emacs deletes the part of the file name that matched REGEXP
Dave Love <fx@gnu.org>
parents:
diff changeset
3106 and then searches auto-mode-alist again for a new match.
Dave Love <fx@gnu.org>
parents:
diff changeset
3107
Dave Love <fx@gnu.org>
parents:
diff changeset
3108 This is useful for uncompression packages. An entry of this sort for
Dave Love <fx@gnu.org>
parents:
diff changeset
3109 .gz can uncompress the file and then put the uncompressed file in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3110 proper mode according to the name sans .gz.
Dave Love <fx@gnu.org>
parents:
diff changeset
3111
Dave Love <fx@gnu.org>
parents:
diff changeset
3112 ** The new function emacs-pid returns the process ID number of Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3113
Dave Love <fx@gnu.org>
parents:
diff changeset
3114 ** user-login-name now consistently checks the LOGNAME environment
Dave Love <fx@gnu.org>
parents:
diff changeset
3115 variable before USER. user-original-login-name is obsolete, since it
Dave Love <fx@gnu.org>
parents:
diff changeset
3116 provides the same functionality. To ignore the environment variables,
Dave Love <fx@gnu.org>
parents:
diff changeset
3117 use user-real-login-name.
Dave Love <fx@gnu.org>
parents:
diff changeset
3118
Dave Love <fx@gnu.org>
parents:
diff changeset
3119 ** There is a more general way of handling the system-specific X
Dave Love <fx@gnu.org>
parents:
diff changeset
3120 keysyms. Set the variable system-key-alist to an alist containing
Dave Love <fx@gnu.org>
parents:
diff changeset
3121 elements of the form (CODE . SYMBOL), where CODE is the numeric keysym
Dave Love <fx@gnu.org>
parents:
diff changeset
3122 code minus the "vendor specific" bit, and symbol is the name for the
Dave Love <fx@gnu.org>
parents:
diff changeset
3123 function key.
Dave Love <fx@gnu.org>
parents:
diff changeset
3124
Dave Love <fx@gnu.org>
parents:
diff changeset
3125 ** You can use the variable command-line-functions to set up functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3126 to process unrecognized command line arguments. The variable's value
Dave Love <fx@gnu.org>
parents:
diff changeset
3127 should be a list of functions of no arguments. The functions are
Dave Love <fx@gnu.org>
parents:
diff changeset
3128 called successively until one of them returns non-nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
3129
Dave Love <fx@gnu.org>
parents:
diff changeset
3130 Each function should access the free variables argi (the current
Dave Love <fx@gnu.org>
parents:
diff changeset
3131 argument) and command-line-args-left (the remaining arguments). The
Dave Love <fx@gnu.org>
parents:
diff changeset
3132 function should return non-nil only if it recognizes and processes the
Dave Love <fx@gnu.org>
parents:
diff changeset
3133 argument in argi. If it does so, it may consume following arguments
Dave Love <fx@gnu.org>
parents:
diff changeset
3134 as well by removing them from command-line-args-left.
Dave Love <fx@gnu.org>
parents:
diff changeset
3135
Dave Love <fx@gnu.org>
parents:
diff changeset
3136 ** There's a new way for a magic file name handler to run a primitive
Dave Love <fx@gnu.org>
parents:
diff changeset
3137 and inhibit handling of the file name. Here is how to do it:
Dave Love <fx@gnu.org>
parents:
diff changeset
3138
Dave Love <fx@gnu.org>
parents:
diff changeset
3139 (let ((inhibit-file-name-handlers
Dave Love <fx@gnu.org>
parents:
diff changeset
3140 (cons 'ange-ftp-file-handler
Dave Love <fx@gnu.org>
parents:
diff changeset
3141 (and (eq inhibit-file-name-operation operation)
Dave Love <fx@gnu.org>
parents:
diff changeset
3142 inhibit-file-name-handlers)))
Dave Love <fx@gnu.org>
parents:
diff changeset
3143 (inhibit-file-name-operation operation))
Dave Love <fx@gnu.org>
parents:
diff changeset
3144 (apply this-operation args))
Dave Love <fx@gnu.org>
parents:
diff changeset
3145
Dave Love <fx@gnu.org>
parents:
diff changeset
3146 The function find-file-name-handler now takes two arguments. The
Dave Love <fx@gnu.org>
parents:
diff changeset
3147 second argument is OPERATION, the operation for which the handler is
Dave Love <fx@gnu.org>
parents:
diff changeset
3148 being sought.
Dave Love <fx@gnu.org>
parents:
diff changeset
3149
Dave Love <fx@gnu.org>
parents:
diff changeset
3150 People have suggested that the second argument should be optional, for
Dave Love <fx@gnu.org>
parents:
diff changeset
3151 backward compatibility. It would be nice if that were possible, but
Dave Love <fx@gnu.org>
parents:
diff changeset
3152 it is not. There is simply no way for find-file-name-handler to do
Dave Love <fx@gnu.org>
parents:
diff changeset
3153 the right thing without receiving the proper value for its second
Dave Love <fx@gnu.org>
parents:
diff changeset
3154 argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
3155
Dave Love <fx@gnu.org>
parents:
diff changeset
3156 ** The variable completion-regexp-list affects the completion
Dave Love <fx@gnu.org>
parents:
diff changeset
3157 primitives try-completion and all-completions. They consider
Dave Love <fx@gnu.org>
parents:
diff changeset
3158 only the possible completions that match each regexp in the list.
Dave Love <fx@gnu.org>
parents:
diff changeset
3159
Dave Love <fx@gnu.org>
parents:
diff changeset
3160 ** Case conversion in the function replace-match has been changed.
Dave Love <fx@gnu.org>
parents:
diff changeset
3161
Dave Love <fx@gnu.org>
parents:
diff changeset
3162 The old behavior was this: if any word in the old text was
Dave Love <fx@gnu.org>
parents:
diff changeset
3163 capitalized, replace-match capitalized each word of the replacement
Dave Love <fx@gnu.org>
parents:
diff changeset
3164 text.
Dave Love <fx@gnu.org>
parents:
diff changeset
3165
Dave Love <fx@gnu.org>
parents:
diff changeset
3166 The new behavior is this: if the first word in the old text is capitalized,
Dave Love <fx@gnu.org>
parents:
diff changeset
3167 replace-match capitalizes the first word of the replacement text.
Dave Love <fx@gnu.org>
parents:
diff changeset
3168
Dave Love <fx@gnu.org>
parents:
diff changeset
3169 ** You can now specify a case table with CANON non-nil and EQV nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
3170 Then the EQV part of the case table is deduced from CANON.
Dave Love <fx@gnu.org>
parents:
diff changeset
3171
Dave Love <fx@gnu.org>
parents:
diff changeset
3172 ** The new function minibuffer-prompt takes no arguments and returns
Dave Love <fx@gnu.org>
parents:
diff changeset
3173 the current minibuffer prompt string.
Dave Love <fx@gnu.org>
parents:
diff changeset
3174
Dave Love <fx@gnu.org>
parents:
diff changeset
3175 The new function minibuffer-prompt-width takes no arguments and
Dave Love <fx@gnu.org>
parents:
diff changeset
3176 returns the display width of the minibuffer prompt string.
Dave Love <fx@gnu.org>
parents:
diff changeset
3177
Dave Love <fx@gnu.org>
parents:
diff changeset
3178 ** The new function frame-first-window returns the window at the
Dave Love <fx@gnu.org>
parents:
diff changeset
3179 upper left corner of a given frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
3180
Dave Love <fx@gnu.org>
parents:
diff changeset
3181 ** wholenump is a new alias for natnump.
Dave Love <fx@gnu.org>
parents:
diff changeset
3182
Dave Love <fx@gnu.org>
parents:
diff changeset
3183 ** The variable installation-directory, if non-@code{nil}, names a
Dave Love <fx@gnu.org>
parents:
diff changeset
3184 directory within which to look for the `lib-src' and `etc'
Dave Love <fx@gnu.org>
parents:
diff changeset
3185 subdirectories. This is non-nil when Emacs can't find those
Dave Love <fx@gnu.org>
parents:
diff changeset
3186 directories in their standard installed locations, but can find them
Dave Love <fx@gnu.org>
parents:
diff changeset
3187 near where the Emacs executable was found.
Dave Love <fx@gnu.org>
parents:
diff changeset
3188
Dave Love <fx@gnu.org>
parents:
diff changeset
3189 ** invocation-name and invocation-directory are now variables as well
Dave Love <fx@gnu.org>
parents:
diff changeset
3190 as functions. The variable values are the same values that the
Dave Love <fx@gnu.org>
parents:
diff changeset
3191 functions return: the Emacs program name sans directories, and the
Dave Love <fx@gnu.org>
parents:
diff changeset
3192 directory it was found in. (invocation-directory may be nil, if Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
3193 can't determine which directory it should be.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3194
Dave Love <fx@gnu.org>
parents:
diff changeset
3195 ** Installation change regarding version number counting.
Dave Love <fx@gnu.org>
parents:
diff changeset
3196
Dave Love <fx@gnu.org>
parents:
diff changeset
3197 The version number of an Emacs executable contains three numbers.
Dave Love <fx@gnu.org>
parents:
diff changeset
3198 The first two describe the Emacs release and the third increments
Dave Love <fx@gnu.org>
parents:
diff changeset
3199 each time you build Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3200
Dave Love <fx@gnu.org>
parents:
diff changeset
3201 Now the file version.el contains only the first two version numbers.
Dave Love <fx@gnu.org>
parents:
diff changeset
3202 The third component is now determined on the basis of the names of the
Dave Love <fx@gnu.org>
parents:
diff changeset
3203 existing executable files. This means that version.el is not altered
Dave Love <fx@gnu.org>
parents:
diff changeset
3204 by building Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3205
Dave Love <fx@gnu.org>
parents:
diff changeset
3206 * Changes in 19.22.
Dave Love <fx@gnu.org>
parents:
diff changeset
3207
Dave Love <fx@gnu.org>
parents:
diff changeset
3208 ** The mouse click M-mouse-2 now inserts the current secondary
Dave Love <fx@gnu.org>
parents:
diff changeset
3209 selection (from Emacs or any other X client) where you click.
Dave Love <fx@gnu.org>
parents:
diff changeset
3210 It does not move point.
Dave Love <fx@gnu.org>
parents:
diff changeset
3211 This command is called mouse-yank-secondary.
Dave Love <fx@gnu.org>
parents:
diff changeset
3212
Dave Love <fx@gnu.org>
parents:
diff changeset
3213 mouse-kill-secondary no longer has a key binding by default.
Dave Love <fx@gnu.org>
parents:
diff changeset
3214 Clicking M-mouse-3 (mouse-secondary-save-then-kill) twice
Dave Love <fx@gnu.org>
parents:
diff changeset
3215 may be a convenient enough way of killing the secondary selection.
Dave Love <fx@gnu.org>
parents:
diff changeset
3216 Or perhaps there should be a keyboard binding for killing the
Dave Love <fx@gnu.org>
parents:
diff changeset
3217 secondary selection. Any suggestions?
Dave Love <fx@gnu.org>
parents:
diff changeset
3218
Dave Love <fx@gnu.org>
parents:
diff changeset
3219 ** New packages:
Dave Love <fx@gnu.org>
parents:
diff changeset
3220
Dave Love <fx@gnu.org>
parents:
diff changeset
3221 *** `icomplete' provides character-by-character information
Dave Love <fx@gnu.org>
parents:
diff changeset
3222 about what you could complete if you type TAB.
Dave Love <fx@gnu.org>
parents:
diff changeset
3223
Dave Love <fx@gnu.org>
parents:
diff changeset
3224 *** `avoid' moves the mouse away from point so that it doesn't hide
Dave Love <fx@gnu.org>
parents:
diff changeset
3225 your typing.
Dave Love <fx@gnu.org>
parents:
diff changeset
3226
Dave Love <fx@gnu.org>
parents:
diff changeset
3227 *** `shadowfile' helps you update files that are supposed to be stored
Dave Love <fx@gnu.org>
parents:
diff changeset
3228 identically in different places (perhaps on different machines).
Dave Love <fx@gnu.org>
parents:
diff changeset
3229
Dave Love <fx@gnu.org>
parents:
diff changeset
3230 ** C-h p now knows about four additional keywords: data, faces, mouse,
Dave Love <fx@gnu.org>
parents:
diff changeset
3231 and matching.
Dave Love <fx@gnu.org>
parents:
diff changeset
3232
Dave Love <fx@gnu.org>
parents:
diff changeset
3233 ** The key for starting an inferior Lisp process, in Lisp mode,
Dave Love <fx@gnu.org>
parents:
diff changeset
3234 is now C-c C-z instead of C-c C-l.
Dave Love <fx@gnu.org>
parents:
diff changeset
3235
Dave Love <fx@gnu.org>
parents:
diff changeset
3236 ** When the VC commands ask whether to save the buffer, if you say no,
Dave Love <fx@gnu.org>
parents:
diff changeset
3237 they signal an error. This is so that you won't operate on the wrong
Dave Love <fx@gnu.org>
parents:
diff changeset
3238 data.
Dave Love <fx@gnu.org>
parents:
diff changeset
3239
Dave Love <fx@gnu.org>
parents:
diff changeset
3240 ** ISO Accents mode now supports `"s' as a way of typing German sharp s.
Dave Love <fx@gnu.org>
parents:
diff changeset
3241
Dave Love <fx@gnu.org>
parents:
diff changeset
3242 ** By default, comint buffers (including Shell mode and debuggers)
Dave Love <fx@gnu.org>
parents:
diff changeset
3243 no longer try to scroll to keep the cursor on the bottom line.
Dave Love <fx@gnu.org>
parents:
diff changeset
3244 This feature was added in 19.21 but did not work smoothly enough.
Dave Love <fx@gnu.org>
parents:
diff changeset
3245
Dave Love <fx@gnu.org>
parents:
diff changeset
3246 ** Emacs now handles the window manager "delete window" operation.
Dave Love <fx@gnu.org>
parents:
diff changeset
3247
Dave Love <fx@gnu.org>
parents:
diff changeset
3248 ** Display of buffers with text properties is much faster now.
Dave Love <fx@gnu.org>
parents:
diff changeset
3249
Dave Love <fx@gnu.org>
parents:
diff changeset
3250 ** The feature previously announced whereby `insert' does not inherit
Dave Love <fx@gnu.org>
parents:
diff changeset
3251 text properties from surrounding text was not fully implemented
Dave Love <fx@gnu.org>
parents:
diff changeset
3252 before; but now it is. use `insert-and-inherit' if you wish to
Dave Love <fx@gnu.org>
parents:
diff changeset
3253 inherit sticky properties from the surrounding text.
Dave Love <fx@gnu.org>
parents:
diff changeset
3254
Dave Love <fx@gnu.org>
parents:
diff changeset
3255 ** The functions next-property-change, previous-property-change,
Dave Love <fx@gnu.org>
parents:
diff changeset
3256 next-single-property-change, and previous-single-property-change
Dave Love <fx@gnu.org>
parents:
diff changeset
3257 now take one additional optional argument LIMIT that is a position at
Dave Love <fx@gnu.org>
parents:
diff changeset
3258 which to stop scanning. If scan ends without finding the property
Dave Love <fx@gnu.org>
parents:
diff changeset
3259 change sought, these functions return the specified limit.
Dave Love <fx@gnu.org>
parents:
diff changeset
3260
Dave Love <fx@gnu.org>
parents:
diff changeset
3261 The value returned by previous-single-property-change and
Dave Love <fx@gnu.org>
parents:
diff changeset
3262 previous-property-change, when they do find a change, is now one
Dave Love <fx@gnu.org>
parents:
diff changeset
3263 greater than what it used to be. It is the position between the two
Dave Love <fx@gnu.org>
parents:
diff changeset
3264 characters whose properties differ, which is one greater than the
Dave Love <fx@gnu.org>
parents:
diff changeset
3265 position of the first character found (while scanning back) with
Dave Love <fx@gnu.org>
parents:
diff changeset
3266 different properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
3267
Dave Love <fx@gnu.org>
parents:
diff changeset
3268 * User editing changes in version 19.21.
Dave Love <fx@gnu.org>
parents:
diff changeset
3269
Dave Love <fx@gnu.org>
parents:
diff changeset
3270 ** ISO Accents mode supports four additional characters:
Dave Love <fx@gnu.org>
parents:
diff changeset
3271 A-with-ring (entered as /A), AE ligature (entered as /E),
Dave Love <fx@gnu.org>
parents:
diff changeset
3272 and their lower-case equivalents.
Dave Love <fx@gnu.org>
parents:
diff changeset
3273
Dave Love <fx@gnu.org>
parents:
diff changeset
3274 * User editing changes in version 19.20.
Dave Love <fx@gnu.org>
parents:
diff changeset
3275 (See following page for Lisp programming changes.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3276
Dave Love <fx@gnu.org>
parents:
diff changeset
3277 Note that some of these changes were made subsequent to the Emacs 19.20
Dave Love <fx@gnu.org>
parents:
diff changeset
3278 editions of the Emacs manual and Emacs Lisp manual; therefore, if you
Dave Love <fx@gnu.org>
parents:
diff changeset
3279 have those editions, do read this page.
Dave Love <fx@gnu.org>
parents:
diff changeset
3280
Dave Love <fx@gnu.org>
parents:
diff changeset
3281 ** Dragging with mouse button 1 now puts the selected region
Dave Love <fx@gnu.org>
parents:
diff changeset
3282 in the kill ring so you can paste it into other X applications.
Dave Love <fx@gnu.org>
parents:
diff changeset
3283
Dave Love <fx@gnu.org>
parents:
diff changeset
3284 ** Double and triple clicks with button 1 now behave as in xterm,
Dave Love <fx@gnu.org>
parents:
diff changeset
3285 selecting the word or line surrounding where you click. If you drag
Dave Love <fx@gnu.org>
parents:
diff changeset
3286 after the last click, you can select a range of words or lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
3287
Dave Love <fx@gnu.org>
parents:
diff changeset
3288 ** You can use button 3 to extend a mouse-selected region, as in xterm.
Dave Love <fx@gnu.org>
parents:
diff changeset
3289 This works for regions selected either by dragging Mouse-1 or by
Dave Love <fx@gnu.org>
parents:
diff changeset
3290 multiple-clicking Mouse-1. Clicking Mouse-3 moves the end of the
Dave Love <fx@gnu.org>
parents:
diff changeset
3291 region that is (initially) nearer to where you click.
Dave Love <fx@gnu.org>
parents:
diff changeset
3292
Dave Love <fx@gnu.org>
parents:
diff changeset
3293 If the selection was first made by multiple-clicking Mouse-1, and thus
Dave Love <fx@gnu.org>
parents:
diff changeset
3294 consists of entire words or lines, Mouse-3 preserves that state.
Dave Love <fx@gnu.org>
parents:
diff changeset
3295
Dave Love <fx@gnu.org>
parents:
diff changeset
3296 As before, clicking Mouse-3 again in the same place kills the region
Dave Love <fx@gnu.org>
parents:
diff changeset
3297 thus selected.
Dave Love <fx@gnu.org>
parents:
diff changeset
3298
Dave Love <fx@gnu.org>
parents:
diff changeset
3299 ** The secondary selection commands, M-Mouse-1 and M-Mouse-3, have been
Dave Love <fx@gnu.org>
parents:
diff changeset
3300 likewise modified.
Dave Love <fx@gnu.org>
parents:
diff changeset
3301
Dave Love <fx@gnu.org>
parents:
diff changeset
3302 ** You can now search for strings and regexps using the Edit menu bar menu.
Dave Love <fx@gnu.org>
parents:
diff changeset
3303
Dave Love <fx@gnu.org>
parents:
diff changeset
3304 ** You can now access bookmarks using the Bookmark submenu in the File
Dave Love <fx@gnu.org>
parents:
diff changeset
3305 menu in the menu bar.
Dave Love <fx@gnu.org>
parents:
diff changeset
3306
Dave Love <fx@gnu.org>
parents:
diff changeset
3307 ** ISO Accents mode, a buffer-local minor mode, provides a convenient
Dave Love <fx@gnu.org>
parents:
diff changeset
3308 way to type certain non-ASCII characters. It makes the characters `,
Dave Love <fx@gnu.org>
parents:
diff changeset
3309 ', ", ^, ~ and / serve as modifiers for the following letter. ` and '
Dave Love <fx@gnu.org>
parents:
diff changeset
3310 add accents, " adds an umlaut or dieresis, ^ adds a circumflex, ~
Dave Love <fx@gnu.org>
parents:
diff changeset
3311 adds a tilde, and / adds a slash to the following letter.
Dave Love <fx@gnu.org>
parents:
diff changeset
3312
Dave Love <fx@gnu.org>
parents:
diff changeset
3313 If the following character is not a letter, or cannot be modified as
Dave Love <fx@gnu.org>
parents:
diff changeset
3314 requested, then both characters stand for themselves. If you
Dave Love <fx@gnu.org>
parents:
diff changeset
3315 duplicate the modifier accent character, that enters the corresponding
Dave Love <fx@gnu.org>
parents:
diff changeset
3316 ISO non-spacing accent character (thus, '' enters the ISO acute-accent
Dave Love <fx@gnu.org>
parents:
diff changeset
3317 character). To enter a modifier character itself, type it followed by
Dave Love <fx@gnu.org>
parents:
diff changeset
3318 a space.
Dave Love <fx@gnu.org>
parents:
diff changeset
3319
Dave Love <fx@gnu.org>
parents:
diff changeset
3320 This feature can be used whenever a key sequence is expected: for
Dave Love <fx@gnu.org>
parents:
diff changeset
3321 ordinary insertion, for searching, and for certain command arguments.
Dave Love <fx@gnu.org>
parents:
diff changeset
3322
Dave Love <fx@gnu.org>
parents:
diff changeset
3323 A few special combinations:
Dave Love <fx@gnu.org>
parents:
diff changeset
3324
Dave Love <fx@gnu.org>
parents:
diff changeset
3325 ~c => c with cedilla
Dave Love <fx@gnu.org>
parents:
diff changeset
3326 ~d => d with stroke
Dave Love <fx@gnu.org>
parents:
diff changeset
3327 ~< => left guillemot
Dave Love <fx@gnu.org>
parents:
diff changeset
3328 ~> => right guillemot
Dave Love <fx@gnu.org>
parents:
diff changeset
3329
Dave Love <fx@gnu.org>
parents:
diff changeset
3330 ** iso-transl.el is a new library that replaces iso-insert.el.
Dave Love <fx@gnu.org>
parents:
diff changeset
3331 It defines C-x 8 as an insertion prefix for the ISO characters
Dave Love <fx@gnu.org>
parents:
diff changeset
3332 between 128 and 255, much like iso-insert, except that iso-transl
Dave Love <fx@gnu.org>
parents:
diff changeset
3333 works even in searches and help commands--wherever a key sequence
Dave Love <fx@gnu.org>
parents:
diff changeset
3334 is expected.
Dave Love <fx@gnu.org>
parents:
diff changeset
3335
Dave Love <fx@gnu.org>
parents:
diff changeset
3336 To define case-conversion for these characters for ISO 8859/1,
Dave Love <fx@gnu.org>
parents:
diff changeset
3337 load the library iso-syntax. (This is not new.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3338
Dave Love <fx@gnu.org>
parents:
diff changeset
3339 ** M-TAB in Text mode now runs the command ispell-complete-word
Dave Love <fx@gnu.org>
parents:
diff changeset
3340 which performs completion using the spelling dictionary.
Dave Love <fx@gnu.org>
parents:
diff changeset
3341
Dave Love <fx@gnu.org>
parents:
diff changeset
3342 The spelling correction submenu now includes this command
Dave Love <fx@gnu.org>
parents:
diff changeset
3343 and another command which completes a word fragment (that is,
Dave Love <fx@gnu.org>
parents:
diff changeset
3344 it doesn't assume that the text to be completed starts at the
Dave Love <fx@gnu.org>
parents:
diff changeset
3345 beginning of a word.
Dave Love <fx@gnu.org>
parents:
diff changeset
3346
Dave Love <fx@gnu.org>
parents:
diff changeset
3347 ** In incremental search, you can use M-y to yank the most recent kill
Dave Love <fx@gnu.org>
parents:
diff changeset
3348 into the search string.
Dave Love <fx@gnu.org>
parents:
diff changeset
3349
Dave Love <fx@gnu.org>
parents:
diff changeset
3350 ** The new function ispell-message checks the spelling of a message
Dave Love <fx@gnu.org>
parents:
diff changeset
3351 you are about to send or post. It ignores text cited from other
Dave Love <fx@gnu.org>
parents:
diff changeset
3352 messages.
Dave Love <fx@gnu.org>
parents:
diff changeset
3353
Dave Love <fx@gnu.org>
parents:
diff changeset
3354 To automatically check all your outgoing messages, include the
Dave Love <fx@gnu.org>
parents:
diff changeset
3355 following line in your .emacs file:
Dave Love <fx@gnu.org>
parents:
diff changeset
3356 (setq news-inews-hook (setq mail-send-hook 'ispell-message))
Dave Love <fx@gnu.org>
parents:
diff changeset
3357
Dave Love <fx@gnu.org>
parents:
diff changeset
3358 ** There is now a separate minibuffer history list for the names of
Dave Love <fx@gnu.org>
parents:
diff changeset
3359 extended commands. This history list is used by M-x when reading
Dave Love <fx@gnu.org>
parents:
diff changeset
3360 the command name. The motivation for this is to prevent command
Dave Love <fx@gnu.org>
parents:
diff changeset
3361 names from appearing in the history used for other minibuffer
Dave Love <fx@gnu.org>
parents:
diff changeset
3362 arguments.
Dave Love <fx@gnu.org>
parents:
diff changeset
3363
Dave Love <fx@gnu.org>
parents:
diff changeset
3364 Note that the history list for entire commands that use the minibuffer
Dave Love <fx@gnu.org>
parents:
diff changeset
3365 is a separate feature. That history list records a command with all
Dave Love <fx@gnu.org>
parents:
diff changeset
3366 its arguments, and you must use C-x ESC ESC to access it.
Dave Love <fx@gnu.org>
parents:
diff changeset
3367
Dave Love <fx@gnu.org>
parents:
diff changeset
3368 ** You can use the new command C-x v ~ VERSION RET to examine a
Dave Love <fx@gnu.org>
parents:
diff changeset
3369 specified version of a file that is maintained with version control.
Dave Love <fx@gnu.org>
parents:
diff changeset
3370
Dave Love <fx@gnu.org>
parents:
diff changeset
3371 ** In Indented Text mode, only blank lines now separate paragraphs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3372 Indented lines continue the paragraph that is in progress. This makes
Dave Love <fx@gnu.org>
parents:
diff changeset
3373 the user option variable adaptive-fill-mode have its intended effect.
Dave Love <fx@gnu.org>
parents:
diff changeset
3374
Dave Love <fx@gnu.org>
parents:
diff changeset
3375 ** Local variable specifications in files for variables whose names end
Dave Love <fx@gnu.org>
parents:
diff changeset
3376 in `-hook' and `-function' are now controlled by the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
3377 `enable-local-eval', just like the `eval' variable.
Dave Love <fx@gnu.org>
parents:
diff changeset
3378
Dave Love <fx@gnu.org>
parents:
diff changeset
3379 ** C-x r j (jump-to-register) when restoring a frame configuration now
Dave Love <fx@gnu.org>
parents:
diff changeset
3380 makes all unwanted frames (existing frames not mentioned in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3381 configuration) invisible.
Dave Love <fx@gnu.org>
parents:
diff changeset
3382
Dave Love <fx@gnu.org>
parents:
diff changeset
3383 If you want to delete these unwanted frames, use a prefix argument for
Dave Love <fx@gnu.org>
parents:
diff changeset
3384 C-x r j.
Dave Love <fx@gnu.org>
parents:
diff changeset
3385
Dave Love <fx@gnu.org>
parents:
diff changeset
3386 ** You can customize the calendar to display weeks beginning on
Dave Love <fx@gnu.org>
parents:
diff changeset
3387 Monday: set the variable `calendar-week-start-day' to 1.
Dave Love <fx@gnu.org>
parents:
diff changeset
3388
Dave Love <fx@gnu.org>
parents:
diff changeset
3389 ** Rmail changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
3390
Dave Love <fx@gnu.org>
parents:
diff changeset
3391 If you save messages to a file in Unix format while viewing a message
Dave Love <fx@gnu.org>
parents:
diff changeset
3392 with its whole header, this now copies to the file the entire header
Dave Love <fx@gnu.org>
parents:
diff changeset
3393 of each message copied.
Dave Love <fx@gnu.org>
parents:
diff changeset
3394
Dave Love <fx@gnu.org>
parents:
diff changeset
3395 ** Comint mode changes.
Dave Love <fx@gnu.org>
parents:
diff changeset
3396
Dave Love <fx@gnu.org>
parents:
diff changeset
3397 C-c C-e shows as much output as possible in the window.
Dave Love <fx@gnu.org>
parents:
diff changeset
3398 C-c RET copies an old input (the one at point)
Dave Love <fx@gnu.org>
parents:
diff changeset
3399 and places the copy after the latest prompt.
Dave Love <fx@gnu.org>
parents:
diff changeset
3400 C-c C-p and C-c C-n move through the buffer, stopping at places
Dave Love <fx@gnu.org>
parents:
diff changeset
3401 where the subshell prompted for input.
Dave Love <fx@gnu.org>
parents:
diff changeset
3402 C-c C-h lists the input history in a `*Help*' buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3403
Dave Love <fx@gnu.org>
parents:
diff changeset
3404 There are new menu bar items for completion/input/output/signal commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
3405
Dave Love <fx@gnu.org>
parents:
diff changeset
3406 Input behaviour is configurable. Variables control whether some windows
Dave Love <fx@gnu.org>
parents:
diff changeset
3407 showing the buffer scroll to the bottom before insertion. These are
Dave Love <fx@gnu.org>
parents:
diff changeset
3408 `comint-scroll-to-bottom-on-input' and `before-change-function'. By default,
Dave Love <fx@gnu.org>
parents:
diff changeset
3409 insertion causes the selected window to scroll to the bottom before insertion
Dave Love <fx@gnu.org>
parents:
diff changeset
3410 occurs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3411
Dave Love <fx@gnu.org>
parents:
diff changeset
3412 Subprocess output now keeps point at the end of the buffer in each
Dave Love <fx@gnu.org>
parents:
diff changeset
3413 window individually if point was already at the end of the buffer in
Dave Love <fx@gnu.org>
parents:
diff changeset
3414 that window.
Dave Love <fx@gnu.org>
parents:
diff changeset
3415
Dave Love <fx@gnu.org>
parents:
diff changeset
3416 If `comint-scroll-show-maximum-output' is non-nil (which is the
Dave Love <fx@gnu.org>
parents:
diff changeset
3417 default), then scrolling due to arrival of output tries to place the
Dave Love <fx@gnu.org>
parents:
diff changeset
3418 last line of text at the bottom line of the window, so as to show as
Dave Love <fx@gnu.org>
parents:
diff changeset
3419 much useful text as possible. (This mimics the scrolling behavior of
Dave Love <fx@gnu.org>
parents:
diff changeset
3420 many terminals.)
Dave Love <fx@gnu.org>
parents:
diff changeset
3421
Dave Love <fx@gnu.org>
parents:
diff changeset
3422 By setting `comint-scroll-to-bottom-on-output', you can opt for having
Dave Love <fx@gnu.org>
parents:
diff changeset
3423 point jump to the end of the buffer whenever output arrives--no matter
Dave Love <fx@gnu.org>
parents:
diff changeset
3424 where in the buffer point was before. If the value is `this', point
Dave Love <fx@gnu.org>
parents:
diff changeset
3425 jumps in the selected window. If the value is `all', point jumps in
Dave Love <fx@gnu.org>
parents:
diff changeset
3426 each window that shows the comint buffer. If the value is `other',
Dave Love <fx@gnu.org>
parents:
diff changeset
3427 point jumps in all nonselected windows that show the current buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3428 The default value is nil, which means point does not jump to the end.
Dave Love <fx@gnu.org>
parents:
diff changeset
3429
Dave Love <fx@gnu.org>
parents:
diff changeset
3430 Input history insertion is configurable. A variable controls whether only the
Dave Love <fx@gnu.org>
parents:
diff changeset
3431 first instance of successive identical inputs is stored in the input history.
Dave Love <fx@gnu.org>
parents:
diff changeset
3432 This is `comint-input-ignoredups'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3433
Dave Love <fx@gnu.org>
parents:
diff changeset
3434 Completion (bound to TAB) is now more general. Depending on context,
Dave Love <fx@gnu.org>
parents:
diff changeset
3435 completion now operates on the input history, on command names, or (as
Dave Love <fx@gnu.org>
parents:
diff changeset
3436 before) on filenames.
Dave Love <fx@gnu.org>
parents:
diff changeset
3437
Dave Love <fx@gnu.org>
parents:
diff changeset
3438 Filename completion is configurable. Variables control whether
Dave Love <fx@gnu.org>
parents:
diff changeset
3439 file/directory suffix characters are added (`comint-completion-addsuffix'),
Dave Love <fx@gnu.org>
parents:
diff changeset
3440 whether shortest completion is acceptable when no further unambiguous
Dave Love <fx@gnu.org>
parents:
diff changeset
3441 completion is possible (`comint-completion-recexact'), and the timing of
Dave Love <fx@gnu.org>
parents:
diff changeset
3442 completion candidate listing (`comint-completion-autolist').
Dave Love <fx@gnu.org>
parents:
diff changeset
3443
Dave Love <fx@gnu.org>
parents:
diff changeset
3444 Comint mode now provides history expansion. Insert input using `!'
Dave Love <fx@gnu.org>
parents:
diff changeset
3445 and `^', in the same syntax that typical shells use; then type TAB.
Dave Love <fx@gnu.org>
parents:
diff changeset
3446 This searches the comint input history for a matching element,
Dave Love <fx@gnu.org>
parents:
diff changeset
3447 performs substitution if necessary, and places the result in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3448 comint buffer in place of the original input.
Dave Love <fx@gnu.org>
parents:
diff changeset
3449
Dave Love <fx@gnu.org>
parents:
diff changeset
3450 History references in the input may be expanded before insertion into
Dave Love <fx@gnu.org>
parents:
diff changeset
3451 the input ring, or on input to the interpreter (and therefore
Dave Love <fx@gnu.org>
parents:
diff changeset
3452 visibly). The variable `comint-input-autoexpand' specifies which.
Dave Love <fx@gnu.org>
parents:
diff changeset
3453
Dave Love <fx@gnu.org>
parents:
diff changeset
3454 You can make the SPC key perform history expansion by binding
Dave Love <fx@gnu.org>
parents:
diff changeset
3455 SPC to the command `comint-magic-space'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3456
Dave Love <fx@gnu.org>
parents:
diff changeset
3457 The command `comint-dynamic-complete-variable' does variable name
Dave Love <fx@gnu.org>
parents:
diff changeset
3458 completion using the environment variables as set within Emacs. The
Dave Love <fx@gnu.org>
parents:
diff changeset
3459 variables controlling filename completion apply to variable name
Dave Love <fx@gnu.org>
parents:
diff changeset
3460 completion too. This command is normally available through the menu
Dave Love <fx@gnu.org>
parents:
diff changeset
3461 bar.
Dave Love <fx@gnu.org>
parents:
diff changeset
3462
Dave Love <fx@gnu.org>
parents:
diff changeset
3463 ** Shell mode
Dave Love <fx@gnu.org>
parents:
diff changeset
3464
Dave Love <fx@gnu.org>
parents:
diff changeset
3465 Paragraph motion and marking commands (default bindings M-{, M-}, M-h) operate
Dave Love <fx@gnu.org>
parents:
diff changeset
3466 on output groups (i.e., shell prompt plus associated shell output).
Dave Love <fx@gnu.org>
parents:
diff changeset
3467
Dave Love <fx@gnu.org>
parents:
diff changeset
3468 TAB now completes commands, as well as file names and expand history.
Dave Love <fx@gnu.org>
parents:
diff changeset
3469 Commands are searched for along the path that Emacs has on startup.
Dave Love <fx@gnu.org>
parents:
diff changeset
3470
Dave Love <fx@gnu.org>
parents:
diff changeset
3471 C-c C-f now moves forward a command (`shell-forward-command') and
Dave Love <fx@gnu.org>
parents:
diff changeset
3472 C-c C-b now moves backward a command (`shell-backward-command').
Dave Love <fx@gnu.org>
parents:
diff changeset
3473
Dave Love <fx@gnu.org>
parents:
diff changeset
3474 Command completion is configurable. The variables controlling
Dave Love <fx@gnu.org>
parents:
diff changeset
3475 filename completion in comint mode apply, together with a variable
Dave Love <fx@gnu.org>
parents:
diff changeset
3476 controlling whether to restrict possible completions to only files
Dave Love <fx@gnu.org>
parents:
diff changeset
3477 that are executable (`shell-command-execonly').
Dave Love <fx@gnu.org>
parents:
diff changeset
3478
Dave Love <fx@gnu.org>
parents:
diff changeset
3479 The input history is initialised from the file name given in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3480 variable `shell-input-ring-file-name'--normally `.history' in your
Dave Love <fx@gnu.org>
parents:
diff changeset
3481 home directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
3482
Dave Love <fx@gnu.org>
parents:
diff changeset
3483 Directory tracking is more robust. It can cope with command sequences
Dave Love <fx@gnu.org>
parents:
diff changeset
3484 and forked commands, and can detect the failure of directory changing
Dave Love <fx@gnu.org>
parents:
diff changeset
3485 commands in most circumstances. It's still not infallible, of course.
Dave Love <fx@gnu.org>
parents:
diff changeset
3486
Dave Love <fx@gnu.org>
parents:
diff changeset
3487 You can now configure the behaviour of `pushd'. Variables control
Dave Love <fx@gnu.org>
parents:
diff changeset
3488 whether `pushd' behaves like `cd' if no argument is given
Dave Love <fx@gnu.org>
parents:
diff changeset
3489 (`shell-pushd-tohome'), pop rather than rotate with a numeric argument
Dave Love <fx@gnu.org>
parents:
diff changeset
3490 (`shell-pushd-dextract'), and only add directories to the directory
Dave Love <fx@gnu.org>
parents:
diff changeset
3491 stack if they are not already on it (`shell-pushd-dunique'). The
Dave Love <fx@gnu.org>
parents:
diff changeset
3492 configuration you choose should match the underlying shell, of course.
Dave Love <fx@gnu.org>
parents:
diff changeset
3493
Dave Love <fx@gnu.org>
parents:
diff changeset
3494 * Emacs Lisp programming changes in Emacs 19.20.
Dave Love <fx@gnu.org>
parents:
diff changeset
3495
Dave Love <fx@gnu.org>
parents:
diff changeset
3496 ** A new function `remove-hook' is now used to remove a hook that you might
Dave Love <fx@gnu.org>
parents:
diff changeset
3497 have added with `add-hook'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3498
Dave Love <fx@gnu.org>
parents:
diff changeset
3499 ** There is now a Lisp pretty-printer in the library `pp'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3500
Dave Love <fx@gnu.org>
parents:
diff changeset
3501 ** The partial Common Lisp support has been entirely reimplemented.
Dave Love <fx@gnu.org>
parents:
diff changeset
3502
Dave Love <fx@gnu.org>
parents:
diff changeset
3503 ** When you insert text using `insert', `insert-before-markers' or
Dave Love <fx@gnu.org>
parents:
diff changeset
3504 `insert-buffer-substring', text properties are no longer inherited
Dave Love <fx@gnu.org>
parents:
diff changeset
3505 from the surrounding text.
Dave Love <fx@gnu.org>
parents:
diff changeset
3506
Dave Love <fx@gnu.org>
parents:
diff changeset
3507 When you want to inherit text properties, use the new functions
Dave Love <fx@gnu.org>
parents:
diff changeset
3508 `insert-and-inherit' or `insert-before-markers-and-inherit'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3509
Dave Love <fx@gnu.org>
parents:
diff changeset
3510 The self-inserting character command does do inheritance.
Dave Love <fx@gnu.org>
parents:
diff changeset
3511
Dave Love <fx@gnu.org>
parents:
diff changeset
3512 ** Frame creation hooks.
Dave Love <fx@gnu.org>
parents:
diff changeset
3513
Dave Love <fx@gnu.org>
parents:
diff changeset
3514 The function make-frame now runs the normal hooks
Dave Love <fx@gnu.org>
parents:
diff changeset
3515 before-make-frame-hook and after-make-frame-hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3516
Dave Love <fx@gnu.org>
parents:
diff changeset
3517 ** You can now use function-key-map to make a key an alias for other
Dave Love <fx@gnu.org>
parents:
diff changeset
3518 key sequences that can vary depending on circumstances. To do this,
Dave Love <fx@gnu.org>
parents:
diff changeset
3519 give the key a definition in function-key-map which is a function
Dave Love <fx@gnu.org>
parents:
diff changeset
3520 rather than a specific expansion key sequence.
Dave Love <fx@gnu.org>
parents:
diff changeset
3521
Dave Love <fx@gnu.org>
parents:
diff changeset
3522 If the function reads input itself, it can have the effect of altering
Dave Love <fx@gnu.org>
parents:
diff changeset
3523 the event that follows. For example, here's how to define C-c h to
Dave Love <fx@gnu.org>
parents:
diff changeset
3524 turn the character that follows into a hyper character:
Dave Love <fx@gnu.org>
parents:
diff changeset
3525
Dave Love <fx@gnu.org>
parents:
diff changeset
3526 (define-key function-key-map "\C-ch" 'hyperify)
Dave Love <fx@gnu.org>
parents:
diff changeset
3527
Dave Love <fx@gnu.org>
parents:
diff changeset
3528 (defun hyperify (prompt)
Dave Love <fx@gnu.org>
parents:
diff changeset
3529 (let ((e (read-event)))
Dave Love <fx@gnu.org>
parents:
diff changeset
3530 (vector (if (numberp e)
Dave Love <fx@gnu.org>
parents:
diff changeset
3531 (logior (lsh 1 20) e)
Dave Love <fx@gnu.org>
parents:
diff changeset
3532 (if (memq 'hyper (event-modifiers e))
Dave Love <fx@gnu.org>
parents:
diff changeset
3533 e
Dave Love <fx@gnu.org>
parents:
diff changeset
3534 (add-event-modifier "H-" e))))))
Dave Love <fx@gnu.org>
parents:
diff changeset
3535
Dave Love <fx@gnu.org>
parents:
diff changeset
3536 (defun add-event-modifier (string e)
Dave Love <fx@gnu.org>
parents:
diff changeset
3537 (let ((symbol (if (symbolp e) e (car e))))
Dave Love <fx@gnu.org>
parents:
diff changeset
3538 (setq symbol (intern (concat string (symbol-name symbol))))
Dave Love <fx@gnu.org>
parents:
diff changeset
3539 (if (symbolp e)
Dave Love <fx@gnu.org>
parents:
diff changeset
3540 symbol
Dave Love <fx@gnu.org>
parents:
diff changeset
3541 (cons symbol (cdr e)))))
Dave Love <fx@gnu.org>
parents:
diff changeset
3542
Dave Love <fx@gnu.org>
parents:
diff changeset
3543 The character translation function gets one argument, which is the
Dave Love <fx@gnu.org>
parents:
diff changeset
3544 prompt that was specified in read-key-sequence--or nil if the key
Dave Love <fx@gnu.org>
parents:
diff changeset
3545 sequence is being read by the editor command loop. In most cases
Dave Love <fx@gnu.org>
parents:
diff changeset
3546 you can just ignore the prompt value.
Dave Love <fx@gnu.org>
parents:
diff changeset
3547
Dave Love <fx@gnu.org>
parents:
diff changeset
3548 ** Changes for reading and writing text properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
3549
Dave Love <fx@gnu.org>
parents:
diff changeset
3550 New low-level Lisp features make it possible to write Lisp programs to
Dave Love <fx@gnu.org>
parents:
diff changeset
3551 save text properties in files, and read text properties from files.
Dave Love <fx@gnu.org>
parents:
diff changeset
3552 You can program any file format you like.
Dave Love <fx@gnu.org>
parents:
diff changeset
3553
Dave Love <fx@gnu.org>
parents:
diff changeset
3554 The variable `write-region-annotation-functions' should contain a list
Dave Love <fx@gnu.org>
parents:
diff changeset
3555 of functions to be run by `write-region' to encode text properties in
Dave Love <fx@gnu.org>
parents:
diff changeset
3556 some fashion as annotations to the text that is written.
Dave Love <fx@gnu.org>
parents:
diff changeset
3557
Dave Love <fx@gnu.org>
parents:
diff changeset
3558 Each function in the list is called with two arguments: the start and
Dave Love <fx@gnu.org>
parents:
diff changeset
3559 end of the region to be written. These functions should not alter the
Dave Love <fx@gnu.org>
parents:
diff changeset
3560 contents of the buffer. Instead, they should return lists indicating
Dave Love <fx@gnu.org>
parents:
diff changeset
3561 annotations to write in the file in addition to the text in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3562 buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3563
Dave Love <fx@gnu.org>
parents:
diff changeset
3564 Each function should return a list of elements of the form (POSITION
Dave Love <fx@gnu.org>
parents:
diff changeset
3565 . STRING), where POSITION is an integer specifying the relative
Dave Love <fx@gnu.org>
parents:
diff changeset
3566 position in the text to be written, and STRING is the annotation to
Dave Love <fx@gnu.org>
parents:
diff changeset
3567 add there.
Dave Love <fx@gnu.org>
parents:
diff changeset
3568
Dave Love <fx@gnu.org>
parents:
diff changeset
3569 Each list returned by one of these functions must be already sorted in
Dave Love <fx@gnu.org>
parents:
diff changeset
3570 increasing order by POSITION. If there is more than one function,
Dave Love <fx@gnu.org>
parents:
diff changeset
3571 `write-region' merges the lists destructively into one sorted list.
Dave Love <fx@gnu.org>
parents:
diff changeset
3572
Dave Love <fx@gnu.org>
parents:
diff changeset
3573 When `write-region' actually writes the text from the buffer to the
Dave Love <fx@gnu.org>
parents:
diff changeset
3574 file, it intermixes the specified annotations at the corresponding
Dave Love <fx@gnu.org>
parents:
diff changeset
3575 positions. All this takes place without modifying the buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3576
Dave Love <fx@gnu.org>
parents:
diff changeset
3577 The variable `after-insert-file-functions' should contain a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
3578 functions to be run each time a file's contents have been inserted into
Dave Love <fx@gnu.org>
parents:
diff changeset
3579 a buffer. Each function receives one argument, the length of the
Dave Love <fx@gnu.org>
parents:
diff changeset
3580 inserted text; point indicates the start of that text. The function
Dave Love <fx@gnu.org>
parents:
diff changeset
3581 should make whatever changes it wants to make, then return the updated
Dave Love <fx@gnu.org>
parents:
diff changeset
3582 length of the inserted text, as it stands after those changes. The
Dave Love <fx@gnu.org>
parents:
diff changeset
3583 value returned by one function is used as the argument to the next.
Dave Love <fx@gnu.org>
parents:
diff changeset
3584 These functions should always return with point at the beginning of
Dave Love <fx@gnu.org>
parents:
diff changeset
3585 the inserted text.
Dave Love <fx@gnu.org>
parents:
diff changeset
3586
Dave Love <fx@gnu.org>
parents:
diff changeset
3587 The intended use of `after-insert-file-functions' is for converting
Dave Love <fx@gnu.org>
parents:
diff changeset
3588 some sort of textual annotations into actual text properties. But many
Dave Love <fx@gnu.org>
parents:
diff changeset
3589 other uses may be possible.
Dave Love <fx@gnu.org>
parents:
diff changeset
3590
Dave Love <fx@gnu.org>
parents:
diff changeset
3591 We now invite users to begin implementing Lisp programs to store and
Dave Love <fx@gnu.org>
parents:
diff changeset
3592 retrieve text properties in files, using these new primitive features,
Dave Love <fx@gnu.org>
parents:
diff changeset
3593 and thus to experiment with various data formats and find good ones.
Dave Love <fx@gnu.org>
parents:
diff changeset
3594
Dave Love <fx@gnu.org>
parents:
diff changeset
3595 We suggest not trying to handle arbitrary Lisp objects as property
Dave Love <fx@gnu.org>
parents:
diff changeset
3596 names or property values--because a program that general is probably
Dave Love <fx@gnu.org>
parents:
diff changeset
3597 difficult to write, and slow. Instead, choose a set of possible data
Dave Love <fx@gnu.org>
parents:
diff changeset
3598 types that are reasonably flexible, and not too hard to encode.
Dave Love <fx@gnu.org>
parents:
diff changeset
3599
Dave Love <fx@gnu.org>
parents:
diff changeset
3600 ** Comint completion.
Dave Love <fx@gnu.org>
parents:
diff changeset
3601
Dave Love <fx@gnu.org>
parents:
diff changeset
3602 Currently comint-dynamic-complete-command (and associated variable
Dave Love <fx@gnu.org>
parents:
diff changeset
3603 comint-after-partial-pathname-command) are set by default to complete a
Dave Love <fx@gnu.org>
parents:
diff changeset
3604 filename. Other comint-mode users should have their own functions to achieve
Dave Love <fx@gnu.org>
parents:
diff changeset
3605 this. For example, gud-mode could complete debugger commands. A completion
Dave Love <fx@gnu.org>
parents:
diff changeset
3606 function is provided solely for this reason (comint-dynamic-simple-complete).
Dave Love <fx@gnu.org>
parents:
diff changeset
3607
Dave Love <fx@gnu.org>
parents:
diff changeset
3608 Other comint-mode users should bind comint-dynamic-complete (shell-mode does
Dave Love <fx@gnu.org>
parents:
diff changeset
3609 already).
Dave Love <fx@gnu.org>
parents:
diff changeset
3610
Dave Love <fx@gnu.org>
parents:
diff changeset
3611 ** Comint history reference expansion
Dave Love <fx@gnu.org>
parents:
diff changeset
3612
Dave Love <fx@gnu.org>
parents:
diff changeset
3613 Currently comint-input-autoexpand is 'history, which means only expand
Dave Love <fx@gnu.org>
parents:
diff changeset
3614 history on insertion to comint-input-ring. For non-shell modes, this is
Dave Love <fx@gnu.org>
parents:
diff changeset
3615 a strange default, since non-shells will not understand history references.
Dave Love <fx@gnu.org>
parents:
diff changeset
3616 Perhaps it would be better for the variable to be 'input, which means expand
Dave Love <fx@gnu.org>
parents:
diff changeset
3617 on RET.
Dave Love <fx@gnu.org>
parents:
diff changeset
3618
Dave Love <fx@gnu.org>
parents:
diff changeset
3619 The value 'history might possibly be wrong even for shells, since the
Dave Love <fx@gnu.org>
parents:
diff changeset
3620 expansion will be done both by comint and the underlying shell (except sh, of
Dave Love <fx@gnu.org>
parents:
diff changeset
3621 course). It would be better for expansion to be done by one or the other,
Dave Love <fx@gnu.org>
parents:
diff changeset
3622 not both since they may (ahem) disagree. Since it is silly to put a literal
Dave Love <fx@gnu.org>
parents:
diff changeset
3623 history reference into comint-input-ring, perhaps it would be better for the
Dave Love <fx@gnu.org>
parents:
diff changeset
3624 variable to be 'input too.
Dave Love <fx@gnu.org>
parents:
diff changeset
3625
Dave Love <fx@gnu.org>
parents:
diff changeset
3626 The reason the variable is not 'input by default is that I was attempting to
Dave Love <fx@gnu.org>
parents:
diff changeset
3627 adhere to The Principle of Least Astonishment. I didn't want to shock users
Dave Love <fx@gnu.org>
parents:
diff changeset
3628 by having their input change in front of their eyes.
Dave Love <fx@gnu.org>
parents:
diff changeset
3629
Dave Love <fx@gnu.org>
parents:
diff changeset
3630 ** Argument delimiters and Comint mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
3631
Dave Love <fx@gnu.org>
parents:
diff changeset
3632 Currently comint-delimiter-argument-list is '(), which means no strings are
Dave Love <fx@gnu.org>
parents:
diff changeset
3633 to be treated as delimiters and arguments. In shell-mode, this variable is
Dave Love <fx@gnu.org>
parents:
diff changeset
3634 set to shell-delimiter-argument-list, '("|" "&" "<" ">" "(" ")" ";"). Other
Dave Love <fx@gnu.org>
parents:
diff changeset
3635 comint-mode users should set this variable too. For example, a lisp-type
Dave Love <fx@gnu.org>
parents:
diff changeset
3636 mode might want to set this to '("." "(" ")") or some such.
Dave Love <fx@gnu.org>
parents:
diff changeset
3637
Dave Love <fx@gnu.org>
parents:
diff changeset
3638 ** Comint output hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3639
Dave Love <fx@gnu.org>
parents:
diff changeset
3640 There is now a hook, comint-output-filter-hook, that is run-hooks'ed by the
Dave Love <fx@gnu.org>
parents:
diff changeset
3641 output filter, comint-output-filter. This is useful for scrolling (see
Dave Love <fx@gnu.org>
parents:
diff changeset
3642 below), but also things like processing output for specific text, output
Dave Love <fx@gnu.org>
parents:
diff changeset
3643 highlighting, etc.
Dave Love <fx@gnu.org>
parents:
diff changeset
3644
Dave Love <fx@gnu.org>
parents:
diff changeset
3645 So that such output processing may be done efficiently, there is a new
Dave Love <fx@gnu.org>
parents:
diff changeset
3646 variable, comint-last-output-start, that records the position of the start of
Dave Love <fx@gnu.org>
parents:
diff changeset
3647 the lastest output inserted into the buffer (effectively the previous value
Dave Love <fx@gnu.org>
parents:
diff changeset
3648 of process-mark). Output processing functions should process the text
Dave Love <fx@gnu.org>
parents:
diff changeset
3649 between comint-last-output-start (or perhaps the beginning of the line that
Dave Love <fx@gnu.org>
parents:
diff changeset
3650 the position lies on) and process-mark.
Dave Love <fx@gnu.org>
parents:
diff changeset
3651
Dave Love <fx@gnu.org>
parents:
diff changeset
3652 ** Comint scrolling.
Dave Love <fx@gnu.org>
parents:
diff changeset
3653
Dave Love <fx@gnu.org>
parents:
diff changeset
3654 There is now automatic scrolling of process windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
3655
Dave Love <fx@gnu.org>
parents:
diff changeset
3656 Currently comint-scroll-show-maximum-output is t, which means when scrolling
Dave Love <fx@gnu.org>
parents:
diff changeset
3657 output put process-mark at the bottom of the window. There is a good case
Dave Love <fx@gnu.org>
parents:
diff changeset
3658 for it to be t, since the user is likely to want to see as much output as
Dave Love <fx@gnu.org>
parents:
diff changeset
3659 possible. But, then again, there is a comint-show-maximum-output command.
Dave Love <fx@gnu.org>
parents:
diff changeset
3660
Dave Love <fx@gnu.org>
parents:
diff changeset
3661 ** Comint history retrieval.
Dave Love <fx@gnu.org>
parents:
diff changeset
3662
Dave Love <fx@gnu.org>
parents:
diff changeset
3663 The input following point is not deleted when moving around the input history
Dave Love <fx@gnu.org>
parents:
diff changeset
3664 (with M-p etc.). Emacs maintainers may not like this. However, I feel this
Dave Love <fx@gnu.org>
parents:
diff changeset
3665 is a useful feature. The simple remedy is to put end-of-line in before
Dave Love <fx@gnu.org>
parents:
diff changeset
3666 delete-region in comint-previous-matching-input.
Dave Love <fx@gnu.org>
parents:
diff changeset
3667
Dave Love <fx@gnu.org>
parents:
diff changeset
3668 The input history retrieval commands still wrap-around the input ring, unlike
Dave Love <fx@gnu.org>
parents:
diff changeset
3669 Emacs command history.
Dave Love <fx@gnu.org>
parents:
diff changeset
3670
Dave Love <fx@gnu.org>
parents:
diff changeset
3671 * Changes in version 19.19.
Dave Love <fx@gnu.org>
parents:
diff changeset
3672
Dave Love <fx@gnu.org>
parents:
diff changeset
3673 ** The new package bookmark.el records named bookmarks: positions that
Dave Love <fx@gnu.org>
parents:
diff changeset
3674 you can jump to. Bookmarks are saved automatically between Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
3675 sessions.
Dave Love <fx@gnu.org>
parents:
diff changeset
3676
Dave Love <fx@gnu.org>
parents:
diff changeset
3677 ** Another simpler package saveplace.el records your position in each
Dave Love <fx@gnu.org>
parents:
diff changeset
3678 file when you kill its buffer (or kill Emacs), and jumps to the same
Dave Love <fx@gnu.org>
parents:
diff changeset
3679 position when you visit the file again (even in another Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
3680 session). Use `toggle-save-place' to turn on place-saving in a given file;
Dave Love <fx@gnu.org>
parents:
diff changeset
3681 use (setq-default save-place t) to turn it on for all files.
Dave Love <fx@gnu.org>
parents:
diff changeset
3682
Dave Love <fx@gnu.org>
parents:
diff changeset
3683 ** In Outline mode, you can now customize how to compute the level of a
Dave Love <fx@gnu.org>
parents:
diff changeset
3684 heading line. Set `outline-level' to a function of no arguments which
Dave Love <fx@gnu.org>
parents:
diff changeset
3685 returns the level, assuming point is at the beginning of a heading
Dave Love <fx@gnu.org>
parents:
diff changeset
3686 line.
Dave Love <fx@gnu.org>
parents:
diff changeset
3687
Dave Love <fx@gnu.org>
parents:
diff changeset
3688 ** You can now specify the prefix key to use for Outline minor mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
3689 (The default is C-c.) Set the variable outline-minor-mode-prefix to
Dave Love <fx@gnu.org>
parents:
diff changeset
3690 the key sequence you want to use (as a string or vector).
Dave Love <fx@gnu.org>
parents:
diff changeset
3691
Dave Love <fx@gnu.org>
parents:
diff changeset
3692 ** In Bibtex mode, C-c e has been changed to C-c C-b. This is because
Dave Love <fx@gnu.org>
parents:
diff changeset
3693 C-c followed by a letter is reserved for users.
Dave Love <fx@gnu.org>
parents:
diff changeset
3694
Dave Love <fx@gnu.org>
parents:
diff changeset
3695 ** The `mod' function is no longer an alias for `%', but is a separate function
Dave Love <fx@gnu.org>
parents:
diff changeset
3696 that yields a result with the same sign as the divisor. `floor' now takes an
Dave Love <fx@gnu.org>
parents:
diff changeset
3697 optional second argument, which divides the first argument before the floor is
Dave Love <fx@gnu.org>
parents:
diff changeset
3698 taken.
Dave Love <fx@gnu.org>
parents:
diff changeset
3699
Dave Love <fx@gnu.org>
parents:
diff changeset
3700 ** `%' no longer allows floating point arguments, since the results were often
Dave Love <fx@gnu.org>
parents:
diff changeset
3701 inconsistent with integer `%'.
Dave Love <fx@gnu.org>
parents:
diff changeset
3702
Dave Love <fx@gnu.org>
parents:
diff changeset
3703 * Changes in version 19.18.
Dave Love <fx@gnu.org>
parents:
diff changeset
3704
Dave Love <fx@gnu.org>
parents:
diff changeset
3705 ** Typing C-z in an iconified Emacs frame now deiconifies it.
Dave Love <fx@gnu.org>
parents:
diff changeset
3706
Dave Love <fx@gnu.org>
parents:
diff changeset
3707 ** hilit19 is a new library for automatic highlighting of parts of the
Dave Love <fx@gnu.org>
parents:
diff changeset
3708 text in the buffer, based on its meaning and context.
Dave Love <fx@gnu.org>
parents:
diff changeset
3709
Dave Love <fx@gnu.org>
parents:
diff changeset
3710 ** Killing no longer sends the killed text to the X clipboard.
Dave Love <fx@gnu.org>
parents:
diff changeset
3711 And large strings are not put in the cut buffer either.
Dave Love <fx@gnu.org>
parents:
diff changeset
3712 The variable x-cut-buffer-max specifies the maximum number of characters
Dave Love <fx@gnu.org>
parents:
diff changeset
3713 to put in the cut buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
3714
Dave Love <fx@gnu.org>
parents:
diff changeset
3715 ** The new command C-x 5 o (other-frame) selects different frames,
Dave Love <fx@gnu.org>
parents:
diff changeset
3716 successively, in cyclic order. It does for frames what C-x o
Dave Love <fx@gnu.org>
parents:
diff changeset
3717 does for windows.
Dave Love <fx@gnu.org>
parents:
diff changeset
3718
Dave Love <fx@gnu.org>
parents:
diff changeset
3719 ** The command M-ESC (eval-expression) has its own command history.
Dave Love <fx@gnu.org>
parents:
diff changeset
3720
Dave Love <fx@gnu.org>
parents:
diff changeset
3721 ** The commands M-! and M-| for running shell commands have their own
Dave Love <fx@gnu.org>
parents:
diff changeset
3722 command history.
Dave Love <fx@gnu.org>
parents:
diff changeset
3723
Dave Love <fx@gnu.org>
parents:
diff changeset
3724 ** If the directory containing the Emacs executable has a sibling named
Dave Love <fx@gnu.org>
parents:
diff changeset
3725 `lisp', that `lisp' directory is added to the end of `load-path'
Dave Love <fx@gnu.org>
parents:
diff changeset
3726 (provided you don't override the normal value with the EMACSLOADPATH
Dave Love <fx@gnu.org>
parents:
diff changeset
3727 environment variable). This feature may make it easier to move
Dave Love <fx@gnu.org>
parents:
diff changeset
3728 an installed Emacs from place to place.
Dave Love <fx@gnu.org>
parents:
diff changeset
3729
Dave Love <fx@gnu.org>
parents:
diff changeset
3730 ** M-x validate-tex-buffer now records the locations of mismatches
Dave Love <fx@gnu.org>
parents:
diff changeset
3731 found in the `*Occur*' buffer. You can go to that buffer and type C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
3732 C-c to visit a particular mismatch.
Dave Love <fx@gnu.org>
parents:
diff changeset
3733
Dave Love <fx@gnu.org>
parents:
diff changeset
3734 ** There are new commands in Shell mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
3735
Dave Love <fx@gnu.org>
parents:
diff changeset
3736 C-c C-n and C-c C-p move point to the next or previous shell input line.
Dave Love <fx@gnu.org>
parents:
diff changeset
3737
Dave Love <fx@gnu.org>
parents:
diff changeset
3738 C-c C-d is now another way to send an end-of-file to the subshell.
Dave Love <fx@gnu.org>
parents:
diff changeset
3739
Dave Love <fx@gnu.org>
parents:
diff changeset
3740 ** Changes to calendar/diary.
Dave Love <fx@gnu.org>
parents:
diff changeset
3741
Dave Love <fx@gnu.org>
parents:
diff changeset
3742 Time zone data is now determined automatically, including the
Dave Love <fx@gnu.org>
parents:
diff changeset
3743 start/stop days and times of daylight savings time. The code now
Dave Love <fx@gnu.org>
parents:
diff changeset
3744 works correctly almost anywhere in the world.
Dave Love <fx@gnu.org>
parents:
diff changeset
3745
Dave Love <fx@gnu.org>
parents:
diff changeset
3746 The format of the holiday specifications has changed and IS NO LONGER
Dave Love <fx@gnu.org>
parents:
diff changeset
3747 COMPATIBLE with the old (version 18) format. See the documentation of
Dave Love <fx@gnu.org>
parents:
diff changeset
3748 the variable calendar-holidays for details of the new, improved
Dave Love <fx@gnu.org>
parents:
diff changeset
3749 format.
Dave Love <fx@gnu.org>
parents:
diff changeset
3750
Dave Love <fx@gnu.org>
parents:
diff changeset
3751 The hook `diary-display-hook' has been split into two:
Dave Love <fx@gnu.org>
parents:
diff changeset
3752 diary-display-hook which should be used ONLY for the display and
Dave Love <fx@gnu.org>
parents:
diff changeset
3753 `diary-hook' which should be used for appointment notification. If
Dave Love <fx@gnu.org>
parents:
diff changeset
3754 diary-display-hook is nil (the default), simple-diary-display is
Dave Love <fx@gnu.org>
parents:
diff changeset
3755 used. This allows the diary hooks to be correctly set with add-hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3756
Dave Love <fx@gnu.org>
parents:
diff changeset
3757 The forms used for dates in diary entries and general display are no
Dave Love <fx@gnu.org>
parents:
diff changeset
3758 longer autoloaded, but set at load time; this means they will be set
Dave Love <fx@gnu.org>
parents:
diff changeset
3759 correctly based on values you assign to various variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
3760
Dave Love <fx@gnu.org>
parents:
diff changeset
3761 ** The functions x-rebind-key and x-rebind-keys have been deleted,
Dave Love <fx@gnu.org>
parents:
diff changeset
3762 because you can accomplish the same job by binding keys to keyboard
Dave Love <fx@gnu.org>
parents:
diff changeset
3763 macros.
Dave Love <fx@gnu.org>
parents:
diff changeset
3764
Dave Love <fx@gnu.org>
parents:
diff changeset
3765 ** Emacs now distinguishes double and triple drag events and double and
Dave Love <fx@gnu.org>
parents:
diff changeset
3766 triple button-down events. These work analogously to double and
Dave Love <fx@gnu.org>
parents:
diff changeset
3767 triple click events.
Dave Love <fx@gnu.org>
parents:
diff changeset
3768
Dave Love <fx@gnu.org>
parents:
diff changeset
3769 Double drag events, if not defined, convert to ordinary click events.
Dave Love <fx@gnu.org>
parents:
diff changeset
3770 Double down events, if not defined, convert first to ordinary down
Dave Love <fx@gnu.org>
parents:
diff changeset
3771 events, which are then discarded if not defined. Triple events that
Dave Love <fx@gnu.org>
parents:
diff changeset
3772 are not defined convert to the corresponding double event; if that is
Dave Love <fx@gnu.org>
parents:
diff changeset
3773 also not defined, it may convert further.
Dave Love <fx@gnu.org>
parents:
diff changeset
3774
Dave Love <fx@gnu.org>
parents:
diff changeset
3775 ** The new function event-click-count returns the number of clicks,
Dave Love <fx@gnu.org>
parents:
diff changeset
3776 from an event which is a list. It is 1 for an ordinary click, drag,
Dave Love <fx@gnu.org>
parents:
diff changeset
3777 or button-down event, 2 for a double event, and 3 or more for a triple
Dave Love <fx@gnu.org>
parents:
diff changeset
3778 event.
Dave Love <fx@gnu.org>
parents:
diff changeset
3779
Dave Love <fx@gnu.org>
parents:
diff changeset
3780 ** The new function previous-frame is like next-frame, but moves
Dave Love <fx@gnu.org>
parents:
diff changeset
3781 around through the set of existing frames in the opposite order.
Dave Love <fx@gnu.org>
parents:
diff changeset
3782
Dave Love <fx@gnu.org>
parents:
diff changeset
3783 ** The post-command-hook now runs even after commands that get an error
Dave Love <fx@gnu.org>
parents:
diff changeset
3784 and return to top level. As a consequence of the same change, this
Dave Love <fx@gnu.org>
parents:
diff changeset
3785 hook also runs before Emacs reads the first command. That might sound
Dave Love <fx@gnu.org>
parents:
diff changeset
3786 paradoxical, as if this hook were the same as the pre-command-hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3787 Actually, they are not similar; the latter runs before *execution* of
Dave Love <fx@gnu.org>
parents:
diff changeset
3788 a command, but after it has been read.
Dave Love <fx@gnu.org>
parents:
diff changeset
3789
Dave Love <fx@gnu.org>
parents:
diff changeset
3790 ** You can turn off the text property hooks that run when point moves
Dave Love <fx@gnu.org>
parents:
diff changeset
3791 to certain places in the buffer, by binding inhibit-point-motion-hooks
Dave Love <fx@gnu.org>
parents:
diff changeset
3792 to a non-nil value.
Dave Love <fx@gnu.org>
parents:
diff changeset
3793
Dave Love <fx@gnu.org>
parents:
diff changeset
3794 ** Inserting a string with no text properties into the buffer normally
Dave Love <fx@gnu.org>
parents:
diff changeset
3795 inherits the properties of the preceding character. You can now
Dave Love <fx@gnu.org>
parents:
diff changeset
3796 control this inheritance by setting the front-sticky and
Dave Love <fx@gnu.org>
parents:
diff changeset
3797 rear-nonsticky properties of a character.
Dave Love <fx@gnu.org>
parents:
diff changeset
3798
Dave Love <fx@gnu.org>
parents:
diff changeset
3799 If you make a character's front-sticky property t, then insertion
Dave Love <fx@gnu.org>
parents:
diff changeset
3800 before the character inherits its properties. If you make the
Dave Love <fx@gnu.org>
parents:
diff changeset
3801 rear-nonsticky property t, then insertion after the character does not
Dave Love <fx@gnu.org>
parents:
diff changeset
3802 inherit its properties. You can regard characters as normally being
Dave Love <fx@gnu.org>
parents:
diff changeset
3803 rear-sticky and not front-sticky, and this is why insertion normally
Dave Love <fx@gnu.org>
parents:
diff changeset
3804 inherits from the previous character.
Dave Love <fx@gnu.org>
parents:
diff changeset
3805
Dave Love <fx@gnu.org>
parents:
diff changeset
3806 If neither side of an insertion is suitably sticky, then the inserted
Dave Love <fx@gnu.org>
parents:
diff changeset
3807 text gets no properties. If both sides are sticky, then the inserted
Dave Love <fx@gnu.org>
parents:
diff changeset
3808 text gets the properties of both sides, with the previous character's
Dave Love <fx@gnu.org>
parents:
diff changeset
3809 properties taking precedence when both sides have a property in
Dave Love <fx@gnu.org>
parents:
diff changeset
3810 common.
Dave Love <fx@gnu.org>
parents:
diff changeset
3811
Dave Love <fx@gnu.org>
parents:
diff changeset
3812 You can also specify stickiness for individual properties. To do so,
Dave Love <fx@gnu.org>
parents:
diff changeset
3813 use a list of property names as the value of the front-sticky property
Dave Love <fx@gnu.org>
parents:
diff changeset
3814 or the rear-nonsticky property. For example, if a character has a
Dave Love <fx@gnu.org>
parents:
diff changeset
3815 rear-nonsticky property whose value is (face read-only), then
Dave Love <fx@gnu.org>
parents:
diff changeset
3816 insertion after the character will not inherit its face property or
Dave Love <fx@gnu.org>
parents:
diff changeset
3817 read-only property (if any), but will inherit any other properties.
Dave Love <fx@gnu.org>
parents:
diff changeset
3818
Dave Love <fx@gnu.org>
parents:
diff changeset
3819 The merging of properties when both sides of the insertion are sticky
Dave Love <fx@gnu.org>
parents:
diff changeset
3820 takes place one property at a time. If the preceding character is
Dave Love <fx@gnu.org>
parents:
diff changeset
3821 rear-sticky for the property, and the property is non-nil, it
Dave Love <fx@gnu.org>
parents:
diff changeset
3822 dominates. Otherwise, the following character's property value is
Dave Love <fx@gnu.org>
parents:
diff changeset
3823 used if it is front-sticky for that property.
Dave Love <fx@gnu.org>
parents:
diff changeset
3824
Dave Love <fx@gnu.org>
parents:
diff changeset
3825 ** If you give a character a non-nil `invisible' text property, the
Dave Love <fx@gnu.org>
parents:
diff changeset
3826 character does not appear on the screen. This works much like
Dave Love <fx@gnu.org>
parents:
diff changeset
3827 selective display.
Dave Love <fx@gnu.org>
parents:
diff changeset
3828
Dave Love <fx@gnu.org>
parents:
diff changeset
3829 The details of this feature are likely to change in future Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
3830 versions.
Dave Love <fx@gnu.org>
parents:
diff changeset
3831
Dave Love <fx@gnu.org>
parents:
diff changeset
3832 ** In Info, when you go to a node, it runs the normal hook
Dave Love <fx@gnu.org>
parents:
diff changeset
3833 Info-selection-hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3834
Dave Love <fx@gnu.org>
parents:
diff changeset
3835 ** You can use the new function `invocation-directory' to get the name
Dave Love <fx@gnu.org>
parents:
diff changeset
3836 of the directory containing the Emacs executable that was run.
Dave Love <fx@gnu.org>
parents:
diff changeset
3837
Dave Love <fx@gnu.org>
parents:
diff changeset
3838 ** Entry to the minibuffer runs the normal hook minibuffer-setup-hook.
Dave Love <fx@gnu.org>
parents:
diff changeset
3839
Dave Love <fx@gnu.org>
parents:
diff changeset
3840 ** The new function minibuffer-window-active-p takes one argument, a
Dave Love <fx@gnu.org>
parents:
diff changeset
3841 minibuffer window, and returns t if the window is currently active.
Dave Love <fx@gnu.org>
parents:
diff changeset
3842
Dave Love <fx@gnu.org>
parents:
diff changeset
3843 * Changes in version 19.17.
Dave Love <fx@gnu.org>
parents:
diff changeset
3844
Dave Love <fx@gnu.org>
parents:
diff changeset
3845 ** When Emacs displays a list of completions in a buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
3846 you can select a completion by clicking mouse button 2
Dave Love <fx@gnu.org>
parents:
diff changeset
3847 on that completion.
Dave Love <fx@gnu.org>
parents:
diff changeset
3848
Dave Love <fx@gnu.org>
parents:
diff changeset
3849 ** Use the command `list-faces-display' to display a list of
Dave Love <fx@gnu.org>
parents:
diff changeset
3850 all the currently defined faces, showing what they look like.
Dave Love <fx@gnu.org>
parents:
diff changeset
3851
Dave Love <fx@gnu.org>
parents:
diff changeset
3852 ** Menu bar items from local maps now come after the usual items.
Dave Love <fx@gnu.org>
parents:
diff changeset
3853
Dave Love <fx@gnu.org>
parents:
diff changeset
3854 ** The Help menu bar item always comes last in the menu bar.
Dave Love <fx@gnu.org>
parents:
diff changeset
3855
Dave Love <fx@gnu.org>
parents:
diff changeset
3856 ** If you enable Font-Lock mode on a buffer containing a program
Dave Love <fx@gnu.org>
parents:
diff changeset
3857 (certain languages such as C and Lisp are supported), everything you
Dave Love <fx@gnu.org>
parents:
diff changeset
3858 type is automatically given a face property appropriate to its
Dave Love <fx@gnu.org>
parents:
diff changeset
3859 syntactic role. For example, there are faces for comments, string
Dave Love <fx@gnu.org>
parents:
diff changeset
3860 constants, names of functions being defined, and so on.
Dave Love <fx@gnu.org>
parents:
diff changeset
3861
Dave Love <fx@gnu.org>
parents:
diff changeset
3862 ** Dunnet, an adventure game, is now available.
Dave Love <fx@gnu.org>
parents:
diff changeset
3863
Dave Love <fx@gnu.org>
parents:
diff changeset
3864 ** Several major modes now have their own menu bar items,
Dave Love <fx@gnu.org>
parents:
diff changeset
3865 including Dired, Rmail, and Sendmail. We would like to add
Dave Love <fx@gnu.org>
parents:
diff changeset
3866 suitable menu bar items to other major modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
3867
Dave Love <fx@gnu.org>
parents:
diff changeset
3868 ** The key binding C-x a C-h has been eliminated.
Dave Love <fx@gnu.org>
parents:
diff changeset
3869 This is because it got in the way of the general feature of typing
Dave Love <fx@gnu.org>
parents:
diff changeset
3870 C-h after a prefix character. If you want to run
Dave Love <fx@gnu.org>
parents:
diff changeset
3871 inverse-add-global-abbrev, you can use C-x a - or C-x a i g instead.
Dave Love <fx@gnu.org>
parents:
diff changeset
3872
Dave Love <fx@gnu.org>
parents:
diff changeset
3873 ** If you set the variable `rmail-mail-new-frame' to a non-nil value,
Dave Love <fx@gnu.org>
parents:
diff changeset
3874 all the Rmail commands to send mail make a new frame to do it in.
Dave Love <fx@gnu.org>
parents:
diff changeset
3875 When you send the message, or use the menu bar command not to send it,
Dave Love <fx@gnu.org>
parents:
diff changeset
3876 that frame is deleted.
Dave Love <fx@gnu.org>
parents:
diff changeset
3877
Dave Love <fx@gnu.org>
parents:
diff changeset
3878 ** In Rmail, the o and C-o commands are now almost interchangeable.
Dave Love <fx@gnu.org>
parents:
diff changeset
3879 Both commands check the format of the file you specify, and append
Dave Love <fx@gnu.org>
parents:
diff changeset
3880 the message to it in Rmail format if it is an Rmail file, and in
Dave Love <fx@gnu.org>
parents:
diff changeset
3881 inbox file format otherwise. C-o and o are different only when you
Dave Love <fx@gnu.org>
parents:
diff changeset
3882 specify a new file.
Dave Love <fx@gnu.org>
parents:
diff changeset
3883
Dave Love <fx@gnu.org>
parents:
diff changeset
3884 ** The function `copy-face' now takes an optional fourth argument
Dave Love <fx@gnu.org>
parents:
diff changeset
3885 NEW-FRAME. If you specify this, it copies the definition of face
Dave Love <fx@gnu.org>
parents:
diff changeset
3886 OLD-FACE on frame FRAME to face NEW-NAME on frame NEW-FRAME.
Dave Love <fx@gnu.org>
parents:
diff changeset
3887
Dave Love <fx@gnu.org>
parents:
diff changeset
3888 ** A local map can now cancel out one of the global map's menu items.
Dave Love <fx@gnu.org>
parents:
diff changeset
3889 Just define that subcommand of the menu item with `undefined'
Dave Love <fx@gnu.org>
parents:
diff changeset
3890 as the definition. For example, this cancels out the `Buffers' item
Dave Love <fx@gnu.org>
parents:
diff changeset
3891 for the current major mode:
Dave Love <fx@gnu.org>
parents:
diff changeset
3892
Dave Love <fx@gnu.org>
parents:
diff changeset
3893 (local-set-key [menu-bar buffer] 'undefined)
Dave Love <fx@gnu.org>
parents:
diff changeset
3894
Dave Love <fx@gnu.org>
parents:
diff changeset
3895 ** To put global items at the end of the menu bar, use the new variable
Dave Love <fx@gnu.org>
parents:
diff changeset
3896 `menu-bar-final-items'. It should be a list of symbols--event types
Dave Love <fx@gnu.org>
parents:
diff changeset
3897 bound in the menu bar. The menu bar items for these symbols are
Dave Love <fx@gnu.org>
parents:
diff changeset
3898 moved to the end.
Dave Love <fx@gnu.org>
parents:
diff changeset
3899
Dave Love <fx@gnu.org>
parents:
diff changeset
3900 ** The list returned by `buffer-local-variables' now contains cons-cell
Dave Love <fx@gnu.org>
parents:
diff changeset
3901 elements of the form (SYMBOL . VALUE) only for buffer-local variables
Dave Love <fx@gnu.org>
parents:
diff changeset
3902 that have values. For unbound buffer-local variables, the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
3903 name (symbol) appears directly as an element of the list.
Dave Love <fx@gnu.org>
parents:
diff changeset
3904
Dave Love <fx@gnu.org>
parents:
diff changeset
3905 ** The `modification-hooks' property of a character no longer affects
Dave Love <fx@gnu.org>
parents:
diff changeset
3906 insertion; it runs only for deletion and modification of the character.
Dave Love <fx@gnu.org>
parents:
diff changeset
3907
Dave Love <fx@gnu.org>
parents:
diff changeset
3908 To detect insertion, use `insert-in-front-hooks' and
Dave Love <fx@gnu.org>
parents:
diff changeset
3909 `insert-behind-hooks' properties. The former runs when text is
Dave Love <fx@gnu.org>
parents:
diff changeset
3910 inserted immediately preceding the character that has the property;
Dave Love <fx@gnu.org>
parents:
diff changeset
3911 the latter runs when text is inserted immediately following the
Dave Love <fx@gnu.org>
parents:
diff changeset
3912 character.
Dave Love <fx@gnu.org>
parents:
diff changeset
3913
Dave Love <fx@gnu.org>
parents:
diff changeset
3914 ** Buffer modification now runs hooks belonging to overlays as well as
Dave Love <fx@gnu.org>
parents:
diff changeset
3915 hooks belonging to characters. If an overlay has a
Dave Love <fx@gnu.org>
parents:
diff changeset
3916 `modification-hooks' property, it applies to any change to text in the
Dave Love <fx@gnu.org>
parents:
diff changeset
3917 overlay, and any insertion within the overlay. If the overlay has a
Dave Love <fx@gnu.org>
parents:
diff changeset
3918 `insert-in-front-hooks' property, it runs for insertion at the
Dave Love <fx@gnu.org>
parents:
diff changeset
3919 beginning boundary of the overlay. If the overlay has an
Dave Love <fx@gnu.org>
parents:
diff changeset
3920 `insert-behind-hooks' property, it runs for insertion at the end
Dave Love <fx@gnu.org>
parents:
diff changeset
3921 boundary of the overlay.
Dave Love <fx@gnu.org>
parents:
diff changeset
3922
Dave Love <fx@gnu.org>
parents:
diff changeset
3923 The values of these properties should be lists of functions. Each
Dave Love <fx@gnu.org>
parents:
diff changeset
3924 function is called, receiving as arguments the overlay in question,
Dave Love <fx@gnu.org>
parents:
diff changeset
3925 followed by the bounds of the range being modified.
Dave Love <fx@gnu.org>
parents:
diff changeset
3926
Dave Love <fx@gnu.org>
parents:
diff changeset
3927 ** The new `-name NAME' option directs Emacs to search for its X
Dave Love <fx@gnu.org>
parents:
diff changeset
3928 resources using the name `NAME', and sets the title of the initial
Dave Love <fx@gnu.org>
parents:
diff changeset
3929 frame. This argument was added for consistency with other X clients.
Dave Love <fx@gnu.org>
parents:
diff changeset
3930
Dave Love <fx@gnu.org>
parents:
diff changeset
3931 ** The new `-xrm DATABASE' option tells Emacs to treat the string
Dave Love <fx@gnu.org>
parents:
diff changeset
3932 DATABASE as the text of an X resource database. Emacs searches
Dave Love <fx@gnu.org>
parents:
diff changeset
3933 DATABASE for resource values, in addition to the usual places. This
Dave Love <fx@gnu.org>
parents:
diff changeset
3934 argument was added for consistency with other X clients.
Dave Love <fx@gnu.org>
parents:
diff changeset
3935
Dave Love <fx@gnu.org>
parents:
diff changeset
3936 ** Emacs now searches for X resources in the files specified by the
Dave Love <fx@gnu.org>
parents:
diff changeset
3937 XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
Dave Love <fx@gnu.org>
parents:
diff changeset
3938 variables, emulating the functionality provided by programs written
Dave Love <fx@gnu.org>
parents:
diff changeset
3939 using Xt. Because of this change, Emacs will now notice system-wide
Dave Love <fx@gnu.org>
parents:
diff changeset
3940 application defaults files, as other X clients do.
Dave Love <fx@gnu.org>
parents:
diff changeset
3941
Dave Love <fx@gnu.org>
parents:
diff changeset
3942 XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
Dave Love <fx@gnu.org>
parents:
diff changeset
3943 separated by colons; XAPPLRESDIR should be a list of directory names
Dave Love <fx@gnu.org>
parents:
diff changeset
3944 separated by colons.
Dave Love <fx@gnu.org>
parents:
diff changeset
3945
Dave Love <fx@gnu.org>
parents:
diff changeset
3946 Emacs searches for X resources
Dave Love <fx@gnu.org>
parents:
diff changeset
3947 + specified on the command line, with the `-xrm RESOURCESTRING'
Dave Love <fx@gnu.org>
parents:
diff changeset
3948 option,
Dave Love <fx@gnu.org>
parents:
diff changeset
3949 + then in the value of the XENVIRONMENT environment variable,
Dave Love <fx@gnu.org>
parents:
diff changeset
3950 - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it exists
Dave Love <fx@gnu.org>
parents:
diff changeset
3951 (where HOSTNAME is the hostname of the machine Emacs is running on),
Dave Love <fx@gnu.org>
parents:
diff changeset
3952 + then in the screen-specific and server-wide resource properties
Dave Love <fx@gnu.org>
parents:
diff changeset
3953 provided by the server,
Dave Love <fx@gnu.org>
parents:
diff changeset
3954 - or if those properties are unset, in the file named ~/.Xdefaults
Dave Love <fx@gnu.org>
parents:
diff changeset
3955 if it exists,
Dave Love <fx@gnu.org>
parents:
diff changeset
3956 + then in the files listed in XUSERFILESEARCHPATH,
Dave Love <fx@gnu.org>
parents:
diff changeset
3957 - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
Dave Love <fx@gnu.org>
parents:
diff changeset
3958 (where LANG is the value of the LANG environment variable), if
Dave Love <fx@gnu.org>
parents:
diff changeset
3959 the LANG environment variable is set,
Dave Love <fx@gnu.org>
parents:
diff changeset
3960 - or in files named Emacs in the directories listed in XAPPLRESDIR
Dave Love <fx@gnu.org>
parents:
diff changeset
3961 - or in ~/LANG/Emacs (if the LANG environment variable is set),
Dave Love <fx@gnu.org>
parents:
diff changeset
3962 - or in ~/Emacs,
Dave Love <fx@gnu.org>
parents:
diff changeset
3963 + then in the files listed in XFILESEARCHPATH.
Dave Love <fx@gnu.org>
parents:
diff changeset
3964
Dave Love <fx@gnu.org>
parents:
diff changeset
3965 The paths in the variables XFILESEARCHPATH, XUSERFILESEARCHPATH, and
Dave Love <fx@gnu.org>
parents:
diff changeset
3966 XAPPLRESDIR may contain %-escapes (like the control strings passed to
Dave Love <fx@gnu.org>
parents:
diff changeset
3967 the the Emacs lisp `format' function or C printf function), which
Dave Love <fx@gnu.org>
parents:
diff changeset
3968 Emacs expands.
Dave Love <fx@gnu.org>
parents:
diff changeset
3969
Dave Love <fx@gnu.org>
parents:
diff changeset
3970 %N is replaced by the string "Emacs" wherever it occurs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3971 %T is replaced by "app-defaults" wherever it occurs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3972 %S is replaced by the empty string wherever it occurs.
Dave Love <fx@gnu.org>
parents:
diff changeset
3973 %L and %l are replaced by the value of the LANG environment variable; if LANG
Dave Love <fx@gnu.org>
parents:
diff changeset
3974 is not set, Emacs does not use that directory or file name at all.
Dave Love <fx@gnu.org>
parents:
diff changeset
3975 %C is replaced by the value of the resource named "customization"
Dave Love <fx@gnu.org>
parents:
diff changeset
3976 (class "Customization"), as retrieved from the server's resource
Dave Love <fx@gnu.org>
parents:
diff changeset
3977 properties or the user's ~/.Xdefaults file, or the empty string if
Dave Love <fx@gnu.org>
parents:
diff changeset
3978 that resource doesn't exist.
Dave Love <fx@gnu.org>
parents:
diff changeset
3979
Dave Love <fx@gnu.org>
parents:
diff changeset
3980 So, for example,
Dave Love <fx@gnu.org>
parents:
diff changeset
3981 if XFILESEARCHPATH is set to the value
Dave Love <fx@gnu.org>
parents:
diff changeset
3982 "/usr/lib/X11/%L/%T/%N%C:/usr/lib/X11/%T/%N%C:/usr/lib/X11/%T/%N",
Dave Love <fx@gnu.org>
parents:
diff changeset
3983 and the LANG environment variable is set to
Dave Love <fx@gnu.org>
parents:
diff changeset
3984 "english",
Dave Love <fx@gnu.org>
parents:
diff changeset
3985 and the customization resource is the string
Dave Love <fx@gnu.org>
parents:
diff changeset
3986 "-color",
Dave Love <fx@gnu.org>
parents:
diff changeset
3987 then, in the last step of the process described above, Emacs checks
Dave Love <fx@gnu.org>
parents:
diff changeset
3988 for resources in the first of the following files that is present and
Dave Love <fx@gnu.org>
parents:
diff changeset
3989 readable:
Dave Love <fx@gnu.org>
parents:
diff changeset
3990 /usr/lib/X11/english/app-defaults/Emacs-color
Dave Love <fx@gnu.org>
parents:
diff changeset
3991 /usr/lib/X11/app-defaults/Emacs-color
Dave Love <fx@gnu.org>
parents:
diff changeset
3992 /usr/lib/X11/app-defaults/Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
3993 If the LANG environment variable is not set, then Emacs never uses the
Dave Love <fx@gnu.org>
parents:
diff changeset
3994 first element of the path, "/usr/lib/X11/%L/%T/%N%C", because it
Dave Love <fx@gnu.org>
parents:
diff changeset
3995 contains the %L escape.
Dave Love <fx@gnu.org>
parents:
diff changeset
3996
Dave Love <fx@gnu.org>
parents:
diff changeset
3997 If XFILESEARCHPATH is unset, Emacs uses the default value
Dave Love <fx@gnu.org>
parents:
diff changeset
3998 "/usr/lib/X11/%L/app-defaults/Emacs%C:\
Dave Love <fx@gnu.org>
parents:
diff changeset
3999 /usr/lib/X11/app-defaults/Emacs%C:\
Dave Love <fx@gnu.org>
parents:
diff changeset
4000 /usr/lib/X11/%L/app-defaults/Emacs:\
Dave Love <fx@gnu.org>
parents:
diff changeset
4001 /usr/lib/X11/app-defaults/Emacs"
Dave Love <fx@gnu.org>
parents:
diff changeset
4002
Dave Love <fx@gnu.org>
parents:
diff changeset
4003 This feature was added for consistency with other X applications.
Dave Love <fx@gnu.org>
parents:
diff changeset
4004
Dave Love <fx@gnu.org>
parents:
diff changeset
4005 ** The new function `text-property-any' scans the region of text from
Dave Love <fx@gnu.org>
parents:
diff changeset
4006 START to END to see if any character's property PROP is `eq' to
Dave Love <fx@gnu.org>
parents:
diff changeset
4007 VALUE. If so, it returns the position of the first such character.
Dave Love <fx@gnu.org>
parents:
diff changeset
4008 Otherwise, it returns nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
4009
Dave Love <fx@gnu.org>
parents:
diff changeset
4010 The optional fifth argument, OBJECT, specifies the string or buffer to
Dave Love <fx@gnu.org>
parents:
diff changeset
4011 be examined.
Dave Love <fx@gnu.org>
parents:
diff changeset
4012
Dave Love <fx@gnu.org>
parents:
diff changeset
4013 ** The new function `text-property-not-all' scans the region of text from
Dave Love <fx@gnu.org>
parents:
diff changeset
4014 START to END to see if any character's property PROP is not `eq' to
Dave Love <fx@gnu.org>
parents:
diff changeset
4015 VALUE. If so, it returns the position of the first such character.
Dave Love <fx@gnu.org>
parents:
diff changeset
4016 Otherwise, it returns nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
4017
Dave Love <fx@gnu.org>
parents:
diff changeset
4018 The optional fifth argument, OBJECT, specifies the string or buffer to
Dave Love <fx@gnu.org>
parents:
diff changeset
4019 be examined.
Dave Love <fx@gnu.org>
parents:
diff changeset
4020
Dave Love <fx@gnu.org>
parents:
diff changeset
4021 ** The function `delete-windows-on' now takes an optional second
Dave Love <fx@gnu.org>
parents:
diff changeset
4022 argument FRAME, which specifies which frames it should affect.
Dave Love <fx@gnu.org>
parents:
diff changeset
4023 + If FRAME is nil or omitted, then `delete-windows-on' deletes windows
Dave Love <fx@gnu.org>
parents:
diff changeset
4024 showing BUFFER (its first argument) on all frames.
Dave Love <fx@gnu.org>
parents:
diff changeset
4025 + If FRAME is t, then `delete-windows-on' only deletes windows on the
Dave Love <fx@gnu.org>
parents:
diff changeset
4026 selected frame; other frames are unaffected.
Dave Love <fx@gnu.org>
parents:
diff changeset
4027 + If FRAME is a frame, then `delete-windows-on' only deletes windows on
Dave Love <fx@gnu.org>
parents:
diff changeset
4028 the given frame; other frames are unaffected.
Dave Love <fx@gnu.org>
parents:
diff changeset
4029
Dave Love <fx@gnu.org>
parents:
diff changeset
4030
Dave Love <fx@gnu.org>
parents:
diff changeset
4031 * Changes in version 19.16.
Dave Love <fx@gnu.org>
parents:
diff changeset
4032
Dave Love <fx@gnu.org>
parents:
diff changeset
4033 ** When dragging the mouse to select a region, Emacs now highlights the
Dave Love <fx@gnu.org>
parents:
diff changeset
4034 region as you drag (if Transient Mark mode is enabled). If you
Dave Love <fx@gnu.org>
parents:
diff changeset
4035 continue the drag beyond the boundaries of the window, Emacs scrolls
Dave Love <fx@gnu.org>
parents:
diff changeset
4036 the window at a steady rate until you either move the mouse back into
Dave Love <fx@gnu.org>
parents:
diff changeset
4037 the window or release the button.
Dave Love <fx@gnu.org>
parents:
diff changeset
4038
Dave Love <fx@gnu.org>
parents:
diff changeset
4039 ** RET now exits `query-replace' and `query-replace-regexp'; this makes it
Dave Love <fx@gnu.org>
parents:
diff changeset
4040 more consistent with the incremental search facility, which uses RET
Dave Love <fx@gnu.org>
parents:
diff changeset
4041 to end the search.
Dave Love <fx@gnu.org>
parents:
diff changeset
4042
Dave Love <fx@gnu.org>
parents:
diff changeset
4043 ** In C mode, C-c C-u now runs c-up-conditional.
Dave Love <fx@gnu.org>
parents:
diff changeset
4044 C-c C-n and C-c C-p now run new commands that move forward
Dave Love <fx@gnu.org>
parents:
diff changeset
4045 and back over balanced sets of C conditionals (c-forward-conditional
Dave Love <fx@gnu.org>
parents:
diff changeset
4046 and c-backward-conditional).
Dave Love <fx@gnu.org>
parents:
diff changeset
4047
Dave Love <fx@gnu.org>
parents:
diff changeset
4048 ** The Edit entry in the menu bar has a new alternative:
Dave Love <fx@gnu.org>
parents:
diff changeset
4049 "Choose Next Paste". It gives you a menu showing the various
Dave Love <fx@gnu.org>
parents:
diff changeset
4050 strings in the kill ring; click on one to select it as the text
Dave Love <fx@gnu.org>
parents:
diff changeset
4051 to be yanked ("pasted") the next time you yank.
Dave Love <fx@gnu.org>
parents:
diff changeset
4052
Dave Love <fx@gnu.org>
parents:
diff changeset
4053 ** If you enable Transient Mark mode and set `mark-even-if-inactive' to
Dave Love <fx@gnu.org>
parents:
diff changeset
4054 non-nil, then the region is highlighted in a transient fashion just as
Dave Love <fx@gnu.org>
parents:
diff changeset
4055 normally in Transient Mark mode, but the mark really remains active
Dave Love <fx@gnu.org>
parents:
diff changeset
4056 all the time; commands that use the region can be used even if the
Dave Love <fx@gnu.org>
parents:
diff changeset
4057 region highlighting turns off.
Dave Love <fx@gnu.org>
parents:
diff changeset
4058
Dave Love <fx@gnu.org>
parents:
diff changeset
4059 ** If you type C-h after a prefix key, it displays the bindings
Dave Love <fx@gnu.org>
parents:
diff changeset
4060 that start with that prefix.
Dave Love <fx@gnu.org>
parents:
diff changeset
4061
Dave Love <fx@gnu.org>
parents:
diff changeset
4062 ** The VC package now searches for version control commands in the
Dave Love <fx@gnu.org>
parents:
diff changeset
4063 directories named by the variable `vc-path'; its value should be a
Dave Love <fx@gnu.org>
parents:
diff changeset
4064 list of strings.
Dave Love <fx@gnu.org>
parents:
diff changeset
4065
Dave Love <fx@gnu.org>
parents:
diff changeset
4066 ** If you are visiting a file that has locks registered under RCS,
Dave Love <fx@gnu.org>
parents:
diff changeset
4067 VC now displays each lock's owner and version number in the mode line
Dave Love <fx@gnu.org>
parents:
diff changeset
4068 after the string `RCS'. If there are no locks, VC displays the head
Dave Love <fx@gnu.org>
parents:
diff changeset
4069 version number.
Dave Love <fx@gnu.org>
parents:
diff changeset
4070
Dave Love <fx@gnu.org>
parents:
diff changeset
4071 ** When using X, if you load the `paren' library, Emacs automatically
Dave Love <fx@gnu.org>
parents:
diff changeset
4072 underlines or highlights the matching paren whenever point is
Dave Love <fx@gnu.org>
parents:
diff changeset
4073 next to the outside of a paren. When point is before an open-paren,
Dave Love <fx@gnu.org>
parents:
diff changeset
4074 this shows the matching close; when point is after a close-paren,
Dave Love <fx@gnu.org>
parents:
diff changeset
4075 this shows the matching open.
Dave Love <fx@gnu.org>
parents:
diff changeset
4076
Dave Love <fx@gnu.org>
parents:
diff changeset
4077 ** The new function `define-key-after' is like `define-key',
Dave Love <fx@gnu.org>
parents:
diff changeset
4078 but takes an extra argument AFTER. It places the newly defined
Dave Love <fx@gnu.org>
parents:
diff changeset
4079 binding after the binding for the event AFTER.
Dave Love <fx@gnu.org>
parents:
diff changeset
4080
Dave Love <fx@gnu.org>
parents:
diff changeset
4081 ** `accessible-keymaps' now takes an optional second argument, PREFIX.
Dave Love <fx@gnu.org>
parents:
diff changeset
4082 If PREFIX is non-nil, it means the value should include only maps for
Dave Love <fx@gnu.org>
parents:
diff changeset
4083 keys that start with PREFIX.
Dave Love <fx@gnu.org>
parents:
diff changeset
4084
Dave Love <fx@gnu.org>
parents:
diff changeset
4085 `describe-bindings' also accepts an optional argument PREFIX which
Dave Love <fx@gnu.org>
parents:
diff changeset
4086 means to describe only the keys that start with PREFIX.
Dave Love <fx@gnu.org>
parents:
diff changeset
4087
Dave Love <fx@gnu.org>
parents:
diff changeset
4088 ** The variable `prefix-help-command' hold a command to run to display help
Dave Love <fx@gnu.org>
parents:
diff changeset
4089 whenever the character `help-char' follows a prefix key and does not have
Dave Love <fx@gnu.org>
parents:
diff changeset
4090 a key binding in that context.
Dave Love <fx@gnu.org>
parents:
diff changeset
4091
Dave Love <fx@gnu.org>
parents:
diff changeset
4092 ** Emacs now detects double- and triple-mouse clicks. A single mouse
Dave Love <fx@gnu.org>
parents:
diff changeset
4093 click produces a pair events of the form:
Dave Love <fx@gnu.org>
parents:
diff changeset
4094 (down-mouse-N POSITION)
Dave Love <fx@gnu.org>
parents:
diff changeset
4095 (mouse-N POSITION)
Dave Love <fx@gnu.org>
parents:
diff changeset
4096 Clicking the same mouse button again, soon thereafter and at the same
Dave Love <fx@gnu.org>
parents:
diff changeset
4097 location, produces another pair of events of the form:
Dave Love <fx@gnu.org>
parents:
diff changeset
4098 (down-mouse-N POSITION)
Dave Love <fx@gnu.org>
parents:
diff changeset
4099 (double-mouse-N POSITION 2)
Dave Love <fx@gnu.org>
parents:
diff changeset
4100 Another click will produce an event pair of the form:
Dave Love <fx@gnu.org>
parents:
diff changeset
4101 (down-mouse-N POSITION)
Dave Love <fx@gnu.org>
parents:
diff changeset
4102 (triple-mouse-N POSITION 3)
Dave Love <fx@gnu.org>
parents:
diff changeset
4103 All the POSITIONs in such a sequence would be identical, except for
Dave Love <fx@gnu.org>
parents:
diff changeset
4104 their timestamps.
Dave Love <fx@gnu.org>
parents:
diff changeset
4105
Dave Love <fx@gnu.org>
parents:
diff changeset
4106 To count as double- and triple-clicks, mouse clicks must be at the
Dave Love <fx@gnu.org>
parents:
diff changeset
4107 same location as the first click, and the number of milliseconds
Dave Love <fx@gnu.org>
parents:
diff changeset
4108 between the first release and the second must be less than the value
Dave Love <fx@gnu.org>
parents:
diff changeset
4109 of the lisp variable `double-click-time'. Setting `double-click-time'
Dave Love <fx@gnu.org>
parents:
diff changeset
4110 to nil disables multi-click detection. Setting it to t removes the
Dave Love <fx@gnu.org>
parents:
diff changeset
4111 time limit; Emacs then detects multi-clicks by position only.
Dave Love <fx@gnu.org>
parents:
diff changeset
4112
Dave Love <fx@gnu.org>
parents:
diff changeset
4113 If `read-key-sequence' finds no binding for a double-click event, but
Dave Love <fx@gnu.org>
parents:
diff changeset
4114 the corresponding single-click event would be bound,
Dave Love <fx@gnu.org>
parents:
diff changeset
4115 `read-key-sequence' demotes it to a single-click. Similarly, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4116 demotes unbound triple-clicks to double- or single-clicks. This means
Dave Love <fx@gnu.org>
parents:
diff changeset
4117 you don't have to distinguish between single- and multi-clicks if you
Dave Love <fx@gnu.org>
parents:
diff changeset
4118 don't want to.
Dave Love <fx@gnu.org>
parents:
diff changeset
4119
Dave Love <fx@gnu.org>
parents:
diff changeset
4120 Emacs reports all clicks after the third as `triple-mouse-N' clicks,
Dave Love <fx@gnu.org>
parents:
diff changeset
4121 but increments the click count after POSITION. For example, a fourth
Dave Love <fx@gnu.org>
parents:
diff changeset
4122 click, soon after the third and at the same location, produces a pair
Dave Love <fx@gnu.org>
parents:
diff changeset
4123 of events of the form:
Dave Love <fx@gnu.org>
parents:
diff changeset
4124 (down-mouse-N POSITION)
Dave Love <fx@gnu.org>
parents:
diff changeset
4125 (triple-mouse-N POSITION 4)
Dave Love <fx@gnu.org>
parents:
diff changeset
4126
Dave Love <fx@gnu.org>
parents:
diff changeset
4127 ** The way Emacs reports positions of mouse events has changed
Dave Love <fx@gnu.org>
parents:
diff changeset
4128 slightly. If a mouse event includes a position list of the form:
Dave Love <fx@gnu.org>
parents:
diff changeset
4129 (WINDOW (PLACE-SYMBOL) (COLUMN . ROW) TIMESTAMP)
Dave Love <fx@gnu.org>
parents:
diff changeset
4130 this denotes exactly the same position as the list:
Dave Love <fx@gnu.org>
parents:
diff changeset
4131 (WINDOW PLACE-SYMBOL (COLUMN . ROW) TIMESTAMP)
Dave Love <fx@gnu.org>
parents:
diff changeset
4132 That is, the event occurred over a non-textual area of the frame,
Dave Love <fx@gnu.org>
parents:
diff changeset
4133 specified by PLACE-SYMBOL, a symbol like `mode-line' or
Dave Love <fx@gnu.org>
parents:
diff changeset
4134 `vertical-scroll-bar'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4135
Dave Love <fx@gnu.org>
parents:
diff changeset
4136 Enclosing PLACE-SYMBOL in a singleton list does not change the
Dave Love <fx@gnu.org>
parents:
diff changeset
4137 position denoted, but the `read-key-sequence' function uses the
Dave Love <fx@gnu.org>
parents:
diff changeset
4138 presence or absence of the singleton list to tell whether or not it
Dave Love <fx@gnu.org>
parents:
diff changeset
4139 should prefix the event with its place symbol.
Dave Love <fx@gnu.org>
parents:
diff changeset
4140
Dave Love <fx@gnu.org>
parents:
diff changeset
4141 Normally, `read-key-sequence' prefixes mouse events occurring over
Dave Love <fx@gnu.org>
parents:
diff changeset
4142 non-textual areas with their PLACE-SYMBOLs, to select the sub-keymap
Dave Love <fx@gnu.org>
parents:
diff changeset
4143 appropriate for the event; for example, clicking on the mode line
Dave Love <fx@gnu.org>
parents:
diff changeset
4144 produces a sequence like
Dave Love <fx@gnu.org>
parents:
diff changeset
4145 [mode-line (mouse-1 POSN)]
Dave Love <fx@gnu.org>
parents:
diff changeset
4146 However, if lisp code elects to unread the resulting key sequence by
Dave Love <fx@gnu.org>
parents:
diff changeset
4147 placing it in the `unread-command-events' variable, it is important
Dave Love <fx@gnu.org>
parents:
diff changeset
4148 that `read-key-sequence' not insert the prefix symbol again; that
Dave Love <fx@gnu.org>
parents:
diff changeset
4149 would produce a malformed key sequence like
Dave Love <fx@gnu.org>
parents:
diff changeset
4150 [mode-line mode-line (mouse-1 POSN)]
Dave Love <fx@gnu.org>
parents:
diff changeset
4151 For this reason, `read-key-sequence' encloses the event's PLACE-SYMBOL
Dave Love <fx@gnu.org>
parents:
diff changeset
4152 in a singleton list when it first inserts the prefix, but doesn't
Dave Love <fx@gnu.org>
parents:
diff changeset
4153 insert the prefix when processing events whose PLACE-SYMBOLs are
Dave Love <fx@gnu.org>
parents:
diff changeset
4154 already thus enclosed.
Dave Love <fx@gnu.org>
parents:
diff changeset
4155
Dave Love <fx@gnu.org>
parents:
diff changeset
4156
Dave Love <fx@gnu.org>
parents:
diff changeset
4157 * Changes in version 19.15.
Dave Love <fx@gnu.org>
parents:
diff changeset
4158
Dave Love <fx@gnu.org>
parents:
diff changeset
4159 ** `make-frame-visible', which uniconified frames, is now a command,
Dave Love <fx@gnu.org>
parents:
diff changeset
4160 and thus may be bound to a key. This makes sense because frames
Dave Love <fx@gnu.org>
parents:
diff changeset
4161 respond to user input while iconified.
Dave Love <fx@gnu.org>
parents:
diff changeset
4162
Dave Love <fx@gnu.org>
parents:
diff changeset
4163 ** You can now use Meta mouse clicks to set and use the "secondary
Dave Love <fx@gnu.org>
parents:
diff changeset
4164 selection". You can drag M-Mouse-1 across the region you want to
Dave Love <fx@gnu.org>
parents:
diff changeset
4165 select. Or you can press M-Mouse-1 at one end and M-Mouse-3 at the
Dave Love <fx@gnu.org>
parents:
diff changeset
4166 other (this also copies the text to the kill ring). Repeating M-Mouse-3
Dave Love <fx@gnu.org>
parents:
diff changeset
4167 again at the same place kills that text.
Dave Love <fx@gnu.org>
parents:
diff changeset
4168
Dave Love <fx@gnu.org>
parents:
diff changeset
4169 M-Mouse-2 kills the secondary selection.
Dave Love <fx@gnu.org>
parents:
diff changeset
4170
Dave Love <fx@gnu.org>
parents:
diff changeset
4171 Setting the secondary selection does not move point or the mark. It
Dave Love <fx@gnu.org>
parents:
diff changeset
4172 is possible to make a secondary selection that does not all fit on the
Dave Love <fx@gnu.org>
parents:
diff changeset
4173 screen, by using M-Mouse-1 at one end, scrolling, then using M-Mouse-3
Dave Love <fx@gnu.org>
parents:
diff changeset
4174 at the other end.
Dave Love <fx@gnu.org>
parents:
diff changeset
4175
Dave Love <fx@gnu.org>
parents:
diff changeset
4176 Emacs has only one secondary selection at any time. Starting to set
Dave Love <fx@gnu.org>
parents:
diff changeset
4177 a new one cancels any previous one. The secondary selection displays
Dave Love <fx@gnu.org>
parents:
diff changeset
4178 using a face named `secondary-selection'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4179
Dave Love <fx@gnu.org>
parents:
diff changeset
4180 ** There's a new way to request use of Supercite (sc.el). Do this:
Dave Love <fx@gnu.org>
parents:
diff changeset
4181
Dave Love <fx@gnu.org>
parents:
diff changeset
4182 (add-hook 'mail-citation-hook 'sc-cite-original)
Dave Love <fx@gnu.org>
parents:
diff changeset
4183
Dave Love <fx@gnu.org>
parents:
diff changeset
4184 Currently this works with Rmail. In the future, other Emacs based
Dave Love <fx@gnu.org>
parents:
diff changeset
4185 mail-readers should be modified to understand this hook also.
Dave Love <fx@gnu.org>
parents:
diff changeset
4186 In the mean time, you should keep doing what you have done in the past
Dave Love <fx@gnu.org>
parents:
diff changeset
4187 for those other mail readers.
Dave Love <fx@gnu.org>
parents:
diff changeset
4188
Dave Love <fx@gnu.org>
parents:
diff changeset
4189 ** When a regular expression contains `\(...\)' inside a repetition
Dave Love <fx@gnu.org>
parents:
diff changeset
4190 operator such as `*' or `+', and you ask about the range that was matched
Dave Love <fx@gnu.org>
parents:
diff changeset
4191 using `match-beginning' and `match-end', the range you get corresponds
Dave Love <fx@gnu.org>
parents:
diff changeset
4192 to the *last* repetition *only*. In Emacs 18, you would get a range
Dave Love <fx@gnu.org>
parents:
diff changeset
4193 corresponding to all the repetitions.
Dave Love <fx@gnu.org>
parents:
diff changeset
4194
Dave Love <fx@gnu.org>
parents:
diff changeset
4195 If you want to get a range corresponding to all the repetitions,
Dave Love <fx@gnu.org>
parents:
diff changeset
4196 put a `\(...\)' grouping *outside* the repetition operator. This
Dave Love <fx@gnu.org>
parents:
diff changeset
4197 is the syntax that corresponds logically to the desired result, and
Dave Love <fx@gnu.org>
parents:
diff changeset
4198 it works the same in Emacs 18 and Emacs 19.
Dave Love <fx@gnu.org>
parents:
diff changeset
4199
Dave Love <fx@gnu.org>
parents:
diff changeset
4200 (This change actually took place earlier, but we didn't know about it
Dave Love <fx@gnu.org>
parents:
diff changeset
4201 and thus didn't document it.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4202
Dave Love <fx@gnu.org>
parents:
diff changeset
4203 * Changes in version 19.14.
Dave Love <fx@gnu.org>
parents:
diff changeset
4204
Dave Love <fx@gnu.org>
parents:
diff changeset
4205 ** To modify read-only text, bind the variable `inhibit-read-only'
Dave Love <fx@gnu.org>
parents:
diff changeset
4206 to a non-nil value. If the value is t, then all reasons that might
Dave Love <fx@gnu.org>
parents:
diff changeset
4207 make text read-only are inhibited (including `read-only' text properties).
Dave Love <fx@gnu.org>
parents:
diff changeset
4208 If the value is a list, then a `read-only' property is inhibited
Dave Love <fx@gnu.org>
parents:
diff changeset
4209 if it is `memq' in the list.
Dave Love <fx@gnu.org>
parents:
diff changeset
4210
Dave Love <fx@gnu.org>
parents:
diff changeset
4211 ** If you call `get-buffer-window' passing t as its second argument, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4212 will only search for windows on visible frames. Previously, passing t
Dave Love <fx@gnu.org>
parents:
diff changeset
4213 as the secord argument caused `get-buffer-window' to search all
Dave Love <fx@gnu.org>
parents:
diff changeset
4214 frames, visible or not.
Dave Love <fx@gnu.org>
parents:
diff changeset
4215
Dave Love <fx@gnu.org>
parents:
diff changeset
4216 ** If you call `other-buffer' with a nil or omitted second argument, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4217 will ignore buffers displayed windows on any visible frame, not just
Dave Love <fx@gnu.org>
parents:
diff changeset
4218 the selected frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
4219
Dave Love <fx@gnu.org>
parents:
diff changeset
4220 ** You can specify a window or a frame for C-x # to use when
Dave Love <fx@gnu.org>
parents:
diff changeset
4221 selects a server buffer. Set the variable server-window
Dave Love <fx@gnu.org>
parents:
diff changeset
4222 to the window or frame that you want.
Dave Love <fx@gnu.org>
parents:
diff changeset
4223
Dave Love <fx@gnu.org>
parents:
diff changeset
4224 ** The command M-( now inserts spaces outside the open-parentheses in
Dave Love <fx@gnu.org>
parents:
diff changeset
4225 some cases--depending on the syntax classes of the surrounding
Dave Love <fx@gnu.org>
parents:
diff changeset
4226 characters. If the variable `parens-dont-require-spaces' is non-nil,
Dave Love <fx@gnu.org>
parents:
diff changeset
4227 it inhibits insertion of these spaces.
Dave Love <fx@gnu.org>
parents:
diff changeset
4228
Dave Love <fx@gnu.org>
parents:
diff changeset
4229 ** The GUD package now supports the debugger known as xdb on HP/UX
Dave Love <fx@gnu.org>
parents:
diff changeset
4230 systems. Use M-x xdb. The variable `gud-xdb-directories' lets you
Dave Love <fx@gnu.org>
parents:
diff changeset
4231 specify a list of directories to search for source code.
Dave Love <fx@gnu.org>
parents:
diff changeset
4232
Dave Love <fx@gnu.org>
parents:
diff changeset
4233 ** If you are using the mailabbrev package, you should note that its
Dave Love <fx@gnu.org>
parents:
diff changeset
4234 function for defining an alias is now called `define-mail-abbrev'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4235 This package no longer contains a definition for `define-mail-alias';
Dave Love <fx@gnu.org>
parents:
diff changeset
4236 that name is used only in mailaliases.
Dave Love <fx@gnu.org>
parents:
diff changeset
4237
Dave Love <fx@gnu.org>
parents:
diff changeset
4238 ** Inserted characters now inherit the properties of the text before
Dave Love <fx@gnu.org>
parents:
diff changeset
4239 them, by default, rather than those of the following text.
Dave Love <fx@gnu.org>
parents:
diff changeset
4240
Dave Love <fx@gnu.org>
parents:
diff changeset
4241 ** The function `insert-file-contents' now takes optional arguments BEG
Dave Love <fx@gnu.org>
parents:
diff changeset
4242 and END that specify which part of the file to insert. BEG defaults to
Dave Love <fx@gnu.org>
parents:
diff changeset
4243 0 (the beginning of the file), and END defaults to the end of the file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4244
Dave Love <fx@gnu.org>
parents:
diff changeset
4245 If you specify BEG or END, then the argument VISIT must be nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
4246
Dave Love <fx@gnu.org>
parents:
diff changeset
4247 * Changes in version 19.13.
Dave Love <fx@gnu.org>
parents:
diff changeset
4248
Dave Love <fx@gnu.org>
parents:
diff changeset
4249 ** Magic file names can now handle the `load' operation.
Dave Love <fx@gnu.org>
parents:
diff changeset
4250
Dave Love <fx@gnu.org>
parents:
diff changeset
4251 ** Bibtex mode now sets up special entries in the menu bar.
Dave Love <fx@gnu.org>
parents:
diff changeset
4252
Dave Love <fx@gnu.org>
parents:
diff changeset
4253 ** The incremental search commands C-w and C-y, which copy text from
Dave Love <fx@gnu.org>
parents:
diff changeset
4254 the buffer into the search string, now convert it to lower case
Dave Love <fx@gnu.org>
parents:
diff changeset
4255 if you are in a case-insensitive search. This is to avoid making
Dave Love <fx@gnu.org>
parents:
diff changeset
4256 the search a case-sensitive one.
Dave Love <fx@gnu.org>
parents:
diff changeset
4257
Dave Love <fx@gnu.org>
parents:
diff changeset
4258 ** GNUS now knows your time zone automatically if Emacs does.
Dave Love <fx@gnu.org>
parents:
diff changeset
4259
Dave Love <fx@gnu.org>
parents:
diff changeset
4260 ** Hide-ifdef mode no longer defines keys of the form
Dave Love <fx@gnu.org>
parents:
diff changeset
4261 C-c LETTER, since those keys are reserved for users.
Dave Love <fx@gnu.org>
parents:
diff changeset
4262 Those commands have been moved to C-c M-LETTER.
Dave Love <fx@gnu.org>
parents:
diff changeset
4263 We may move them again for greater consistency with other modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
4264
Dave Love <fx@gnu.org>
parents:
diff changeset
4265 * Changes in version 19.12.
Dave Love <fx@gnu.org>
parents:
diff changeset
4266
Dave Love <fx@gnu.org>
parents:
diff changeset
4267 ** You can now make many of the sort commands ignore case by setting
Dave Love <fx@gnu.org>
parents:
diff changeset
4268 `sort-fold-case' to a non-nil value.
Dave Love <fx@gnu.org>
parents:
diff changeset
4269
Dave Love <fx@gnu.org>
parents:
diff changeset
4270 * Changes in version 19.11.
Dave Love <fx@gnu.org>
parents:
diff changeset
4271
Dave Love <fx@gnu.org>
parents:
diff changeset
4272 ** Supercite is installed.
Dave Love <fx@gnu.org>
parents:
diff changeset
4273
Dave Love <fx@gnu.org>
parents:
diff changeset
4274 ** `write-file-hooks' functions that return non-nil are responsible
Dave Love <fx@gnu.org>
parents:
diff changeset
4275 for making a backup file if you want that to be done.
Dave Love <fx@gnu.org>
parents:
diff changeset
4276 To do so, execute the following code:
Dave Love <fx@gnu.org>
parents:
diff changeset
4277
Dave Love <fx@gnu.org>
parents:
diff changeset
4278 (or buffer-backed-up (backup-buffer))
Dave Love <fx@gnu.org>
parents:
diff changeset
4279
Dave Love <fx@gnu.org>
parents:
diff changeset
4280 You might wish to save the file modes value returned by
Dave Love <fx@gnu.org>
parents:
diff changeset
4281 `backup-buffer' and use that to set the mode bits of the file
Dave Love <fx@gnu.org>
parents:
diff changeset
4282 that you write. This is what `basic-save-buffer' does when
Dave Love <fx@gnu.org>
parents:
diff changeset
4283 it writes a file in the usual way.
Dave Love <fx@gnu.org>
parents:
diff changeset
4284
Dave Love <fx@gnu.org>
parents:
diff changeset
4285 (This is not actually new, but wasn't documented before.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4286
Dave Love <fx@gnu.org>
parents:
diff changeset
4287 * Changes in version 19.10.
Dave Love <fx@gnu.org>
parents:
diff changeset
4288
Dave Love <fx@gnu.org>
parents:
diff changeset
4289 ** The command `repeat-complex-command' is now on C-x ESC ESC.
Dave Love <fx@gnu.org>
parents:
diff changeset
4290 It used to be bound to C-x ESC.
Dave Love <fx@gnu.org>
parents:
diff changeset
4291
Dave Love <fx@gnu.org>
parents:
diff changeset
4292 The reason for this change is to make function keys work after C-x.
Dave Love <fx@gnu.org>
parents:
diff changeset
4293
Dave Love <fx@gnu.org>
parents:
diff changeset
4294 ** The variable `highlight-nonselected-windows' now controls whether
Dave Love <fx@gnu.org>
parents:
diff changeset
4295 the region is highlighted in windows other than the selected window
Dave Love <fx@gnu.org>
parents:
diff changeset
4296 (in Transient Mark mode only, of course, and currently only when
Dave Love <fx@gnu.org>
parents:
diff changeset
4297 using X).
Dave Love <fx@gnu.org>
parents:
diff changeset
4298
Dave Love <fx@gnu.org>
parents:
diff changeset
4299 * Changes in version 19.8.
Dave Love <fx@gnu.org>
parents:
diff changeset
4300
Dave Love <fx@gnu.org>
parents:
diff changeset
4301 ** It is now simpler to tell Emacs to display accented characters under
Dave Love <fx@gnu.org>
parents:
diff changeset
4302 X windows. M-x standard-display-european toggles the display of
Dave Love <fx@gnu.org>
parents:
diff changeset
4303 buffer text according to the ISO Latin-1 standard. With a prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
4304 argument, this command enables European character display iff the
Dave Love <fx@gnu.org>
parents:
diff changeset
4305 argument is positive.
Dave Love <fx@gnu.org>
parents:
diff changeset
4306
Dave Love <fx@gnu.org>
parents:
diff changeset
4307 ** The `-i' command-line argument tells Emacs to use a picture of the
Dave Love <fx@gnu.org>
parents:
diff changeset
4308 GNU gnu as its icon, instead of letting the window manager choose an
Dave Love <fx@gnu.org>
parents:
diff changeset
4309 icon for it. This option used to insert a file into the current
Dave Love <fx@gnu.org>
parents:
diff changeset
4310 buffer; use `-insert' to do that now.
Dave Love <fx@gnu.org>
parents:
diff changeset
4311
Dave Love <fx@gnu.org>
parents:
diff changeset
4312 ** The `configure' script now supports `--prefix' and `--exec-prefix'
Dave Love <fx@gnu.org>
parents:
diff changeset
4313 options.
Dave Love <fx@gnu.org>
parents:
diff changeset
4314
Dave Love <fx@gnu.org>
parents:
diff changeset
4315 The `--prefix=PREFIXDIR' option specifies where the installation process
Dave Love <fx@gnu.org>
parents:
diff changeset
4316 should put emacs and its data files. This defaults to `/usr/local'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4317 - Emacs (and the other utilities users run) go in PREFIXDIR/bin
Dave Love <fx@gnu.org>
parents:
diff changeset
4318 (unless the `--exec-prefix' option says otherwise).
Dave Love <fx@gnu.org>
parents:
diff changeset
4319 - The architecture-independent files go in PREFIXDIR/lib/emacs/VERSION
Dave Love <fx@gnu.org>
parents:
diff changeset
4320 (where VERSION is the version number of Emacs, like `19.7').
Dave Love <fx@gnu.org>
parents:
diff changeset
4321 - The architecture-dependent files go in
Dave Love <fx@gnu.org>
parents:
diff changeset
4322 PREFIXDIR/lib/emacs/VERSION/CONFIGURATION
Dave Love <fx@gnu.org>
parents:
diff changeset
4323 (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2),
Dave Love <fx@gnu.org>
parents:
diff changeset
4324 unless the `--exec-prefix' option says otherwise.
Dave Love <fx@gnu.org>
parents:
diff changeset
4325
Dave Love <fx@gnu.org>
parents:
diff changeset
4326 The `--exec-prefix=EXECDIR' option allows you to specify a separate
Dave Love <fx@gnu.org>
parents:
diff changeset
4327 portion of the directory tree for installing architecture-specific
Dave Love <fx@gnu.org>
parents:
diff changeset
4328 files, like executables and utility programs. If specified,
Dave Love <fx@gnu.org>
parents:
diff changeset
4329 - Emacs (and the other utilities users run) go in EXECDIR/bin, and
Dave Love <fx@gnu.org>
parents:
diff changeset
4330 - The architecture-dependent files go in
Dave Love <fx@gnu.org>
parents:
diff changeset
4331 EXECDIR/lib/emacs/VERSION/CONFIGURATION.
Dave Love <fx@gnu.org>
parents:
diff changeset
4332 EXECDIR/bin should be a directory that is normally in users' PATHs.
Dave Love <fx@gnu.org>
parents:
diff changeset
4333
Dave Love <fx@gnu.org>
parents:
diff changeset
4334 ** When running under X, the new lisp function `x-list-fonts'
Dave Love <fx@gnu.org>
parents:
diff changeset
4335 allows code to find out which fonts are available from the X server.
Dave Love <fx@gnu.org>
parents:
diff changeset
4336 The first argument PATTERN is a string, perhaps with wildcard characters;
Dave Love <fx@gnu.org>
parents:
diff changeset
4337 the * character matches any substring, and
Dave Love <fx@gnu.org>
parents:
diff changeset
4338 the ? character matches any single character.
Dave Love <fx@gnu.org>
parents:
diff changeset
4339 PATTERN is case-insensitive.
Dave Love <fx@gnu.org>
parents:
diff changeset
4340 If the optional arguments FACE and FRAME are specified, then
Dave Love <fx@gnu.org>
parents:
diff changeset
4341 `x-list-fonts' returns only fonts the same size as FACE on FRAME.
Dave Love <fx@gnu.org>
parents:
diff changeset
4342
Dave Love <fx@gnu.org>
parents:
diff changeset
4343
Dave Love <fx@gnu.org>
parents:
diff changeset
4344
Dave Love <fx@gnu.org>
parents:
diff changeset
4345 * Changes in version 19.
Dave Love <fx@gnu.org>
parents:
diff changeset
4346
Dave Love <fx@gnu.org>
parents:
diff changeset
4347 ** When you kill buffers, Emacs now returns memory to the operating system,
Dave Love <fx@gnu.org>
parents:
diff changeset
4348 thus reducing the size of the Emacs process. All the space that you free
Dave Love <fx@gnu.org>
parents:
diff changeset
4349 up by killing buffers can now be reused for other buffers no matter what
Dave Love <fx@gnu.org>
parents:
diff changeset
4350 their sizes, or reused by other processes if Emacs doesn't need it.
Dave Love <fx@gnu.org>
parents:
diff changeset
4351
Dave Love <fx@gnu.org>
parents:
diff changeset
4352 ** Emacs now does garbage collection and auto saving while it is waiting
Dave Love <fx@gnu.org>
parents:
diff changeset
4353 for input, which often avoids the need to do these things while you
Dave Love <fx@gnu.org>
parents:
diff changeset
4354 are typing.
Dave Love <fx@gnu.org>
parents:
diff changeset
4355
Dave Love <fx@gnu.org>
parents:
diff changeset
4356 The variable `auto-save-timeout' says how many seconds Emacs should
Dave Love <fx@gnu.org>
parents:
diff changeset
4357 wait, after you stop typing, before it does an auto save and a garbage
Dave Love <fx@gnu.org>
parents:
diff changeset
4358 collection.
Dave Love <fx@gnu.org>
parents:
diff changeset
4359
Dave Love <fx@gnu.org>
parents:
diff changeset
4360 ** If auto saving detects that a buffer has shrunk greatly, it refrains
Dave Love <fx@gnu.org>
parents:
diff changeset
4361 from auto saving that buffer and displays a warning. Now it also turns
Dave Love <fx@gnu.org>
parents:
diff changeset
4362 off Auto Save mode in that buffer, so that you won't get the same
Dave Love <fx@gnu.org>
parents:
diff changeset
4363 warning again.
Dave Love <fx@gnu.org>
parents:
diff changeset
4364
Dave Love <fx@gnu.org>
parents:
diff changeset
4365 If you reenable Auto Save mode in that buffer, Emacs will start saving
Dave Love <fx@gnu.org>
parents:
diff changeset
4366 it again with no further warnings.
Dave Love <fx@gnu.org>
parents:
diff changeset
4367
Dave Love <fx@gnu.org>
parents:
diff changeset
4368 ** A new minor mode called Line Number mode displays the current line
Dave Love <fx@gnu.org>
parents:
diff changeset
4369 number in the mode line, updating it as necessary when you move
Dave Love <fx@gnu.org>
parents:
diff changeset
4370 point.
Dave Love <fx@gnu.org>
parents:
diff changeset
4371
Dave Love <fx@gnu.org>
parents:
diff changeset
4372 However, if the buffer is very large (larger than the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
4373 `line-number-display-limit'), then the line number doesn't appear.
Dave Love <fx@gnu.org>
parents:
diff changeset
4374 This is because computing the line number can be painfully slow if the
Dave Love <fx@gnu.org>
parents:
diff changeset
4375 buffer is very large.
Dave Love <fx@gnu.org>
parents:
diff changeset
4376
Dave Love <fx@gnu.org>
parents:
diff changeset
4377 ** You can quit while Emacs is waiting to read or write files.
Dave Love <fx@gnu.org>
parents:
diff changeset
4378
Dave Love <fx@gnu.org>
parents:
diff changeset
4379 ** The arrow keys now have default bindings to move in the appropriate
Dave Love <fx@gnu.org>
parents:
diff changeset
4380 directions.
Dave Love <fx@gnu.org>
parents:
diff changeset
4381
Dave Love <fx@gnu.org>
parents:
diff changeset
4382 ** You can suppress next-line's habit of inserting a newline when
Dave Love <fx@gnu.org>
parents:
diff changeset
4383 called at the end of a buffer by setting next-line-add-newlines to nil
Dave Love <fx@gnu.org>
parents:
diff changeset
4384 (it defaults to t).
Dave Love <fx@gnu.org>
parents:
diff changeset
4385
Dave Love <fx@gnu.org>
parents:
diff changeset
4386 ** You can now get back recent minibuffer inputs conveniently. While
Dave Love <fx@gnu.org>
parents:
diff changeset
4387 in the minibuffer, type M-p to fetch the next earlier minibuffer
Dave Love <fx@gnu.org>
parents:
diff changeset
4388 input, and use M-n to fetch the next later input.
Dave Love <fx@gnu.org>
parents:
diff changeset
4389
Dave Love <fx@gnu.org>
parents:
diff changeset
4390 There are also commands to search forward or backward through the
Dave Love <fx@gnu.org>
parents:
diff changeset
4391 history for history elements that match a regular expression. M-r
Dave Love <fx@gnu.org>
parents:
diff changeset
4392 searches older elements in the history, while M-s searches newer
Dave Love <fx@gnu.org>
parents:
diff changeset
4393 elements. By special dispensation, these commands can always use the
Dave Love <fx@gnu.org>
parents:
diff changeset
4394 minibuffer to read their arguments even though you are already in the
Dave Love <fx@gnu.org>
parents:
diff changeset
4395 minibuffer when you issue them.
Dave Love <fx@gnu.org>
parents:
diff changeset
4396
Dave Love <fx@gnu.org>
parents:
diff changeset
4397 The history feature is available for all uses of the minibuffer, but
Dave Love <fx@gnu.org>
parents:
diff changeset
4398 there are separate history lists for different kinds of input. For
Dave Love <fx@gnu.org>
parents:
diff changeset
4399 example, there is a list for file names, used by all the commands that
Dave Love <fx@gnu.org>
parents:
diff changeset
4400 read file names. There is a list for arguments of commands like
Dave Love <fx@gnu.org>
parents:
diff changeset
4401 `query-replace'. There are also very specific history lists, such
Dave Love <fx@gnu.org>
parents:
diff changeset
4402 as the one that `compile' uses for compilation commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
4403
Dave Love <fx@gnu.org>
parents:
diff changeset
4404 ** You can now display text in a mixture of fonts and colors, using the
Dave Love <fx@gnu.org>
parents:
diff changeset
4405 "face" feature, together with the overlay and text property features.
Dave Love <fx@gnu.org>
parents:
diff changeset
4406 See the Emacs Lisp manual for details. The Emacs Users Manual describes
Dave Love <fx@gnu.org>
parents:
diff changeset
4407 how to change the colors and font of standard predefined faces.
Dave Love <fx@gnu.org>
parents:
diff changeset
4408
Dave Love <fx@gnu.org>
parents:
diff changeset
4409 ** You can refer to files on other machines using special file name syntax:
Dave Love <fx@gnu.org>
parents:
diff changeset
4410
Dave Love <fx@gnu.org>
parents:
diff changeset
4411 /HOST:FILENAME
Dave Love <fx@gnu.org>
parents:
diff changeset
4412 /USER@HOST:FILENAME
Dave Love <fx@gnu.org>
parents:
diff changeset
4413
Dave Love <fx@gnu.org>
parents:
diff changeset
4414 When you do this, Emacs uses the FTP program to read and write files on
Dave Love <fx@gnu.org>
parents:
diff changeset
4415 the specified host. It logs in through FTP using your user name or the
Dave Love <fx@gnu.org>
parents:
diff changeset
4416 name USER. It may ask you for a password from time to time; this
Dave Love <fx@gnu.org>
parents:
diff changeset
4417 is used for logging in on HOST.
Dave Love <fx@gnu.org>
parents:
diff changeset
4418
Dave Love <fx@gnu.org>
parents:
diff changeset
4419 ** Some C-x key bindings have been moved onto new prefix keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
4420
Dave Love <fx@gnu.org>
parents:
diff changeset
4421 C-x r is a prefix for registers and rectangles.
Dave Love <fx@gnu.org>
parents:
diff changeset
4422 C-x n is a prefix for narrowing.
Dave Love <fx@gnu.org>
parents:
diff changeset
4423 C-x a is a prefix for abbrev commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
4424
Dave Love <fx@gnu.org>
parents:
diff changeset
4425 C-x r C-SPC
Dave Love <fx@gnu.org>
parents:
diff changeset
4426 C-x r SPC point-to-register (Was C-x /)
Dave Love <fx@gnu.org>
parents:
diff changeset
4427 C-x r j jump-to-register (Was C-x j)
Dave Love <fx@gnu.org>
parents:
diff changeset
4428 C-x r s copy-to-register (Was C-x x)
Dave Love <fx@gnu.org>
parents:
diff changeset
4429 C-x r i insert-register (Was C-x g)
Dave Love <fx@gnu.org>
parents:
diff changeset
4430 C-x r r copy-rectangle-to-register (Was C-x r)
Dave Love <fx@gnu.org>
parents:
diff changeset
4431 C-x r k kill-rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
4432 C-x r y yank-rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
4433 C-x r o open-rectangle
Dave Love <fx@gnu.org>
parents:
diff changeset
4434 C-x r f frame-configuration-to-register
Dave Love <fx@gnu.org>
parents:
diff changeset
4435 (This saves the state of all windows in all frames.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4436 C-x r w window-configuration-to-register
Dave Love <fx@gnu.org>
parents:
diff changeset
4437 (This saves the state of all windows in the selected frame.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4438
Dave Love <fx@gnu.org>
parents:
diff changeset
4439 (Use C-x r j to restore a configuration saved with C-x r f or C-x r w.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4440
Dave Love <fx@gnu.org>
parents:
diff changeset
4441 C-x n n narrow-to-region (Was C-x n)
Dave Love <fx@gnu.org>
parents:
diff changeset
4442 C-x n p narrow-to-page (Was C-x p)
Dave Love <fx@gnu.org>
parents:
diff changeset
4443 C-x n w widen (Was C-x w)
Dave Love <fx@gnu.org>
parents:
diff changeset
4444
Dave Love <fx@gnu.org>
parents:
diff changeset
4445 C-x a l add-mode-abbrev (Was C-x C-a)
Dave Love <fx@gnu.org>
parents:
diff changeset
4446 C-x a g add-global-abbrev (Was C-x +)
Dave Love <fx@gnu.org>
parents:
diff changeset
4447 C-x a i l inverse-add-mode-abbrev (Was C-x C-h)
Dave Love <fx@gnu.org>
parents:
diff changeset
4448 C-x a i g inverse-add-global-abbrev (Was C-x -)
Dave Love <fx@gnu.org>
parents:
diff changeset
4449 C-x a e expand-abbrev (Was C-x ')
Dave Love <fx@gnu.org>
parents:
diff changeset
4450
Dave Love <fx@gnu.org>
parents:
diff changeset
4451 (The old key bindings C-x /, C-x j, C-x x and C-x g
Dave Love <fx@gnu.org>
parents:
diff changeset
4452 have not yet been removed.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4453
Dave Love <fx@gnu.org>
parents:
diff changeset
4454 ** You can put a file name in a register to be able to visit the file
Dave Love <fx@gnu.org>
parents:
diff changeset
4455 quickly. Do this:
Dave Love <fx@gnu.org>
parents:
diff changeset
4456
Dave Love <fx@gnu.org>
parents:
diff changeset
4457 (set-register ?CHAR '(file . NAME))
Dave Love <fx@gnu.org>
parents:
diff changeset
4458
Dave Love <fx@gnu.org>
parents:
diff changeset
4459 where NAME is the file name as a string. Then C-x r j CHAR finds that
Dave Love <fx@gnu.org>
parents:
diff changeset
4460 file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4461
Dave Love <fx@gnu.org>
parents:
diff changeset
4462 This is useful for files that you need to visit frequently,
Dave Love <fx@gnu.org>
parents:
diff changeset
4463 but that you don't want to keep in buffers all the time.
Dave Love <fx@gnu.org>
parents:
diff changeset
4464
Dave Love <fx@gnu.org>
parents:
diff changeset
4465 ** The keys M-g (fill-region) and C-x a (append-to-buffer)
Dave Love <fx@gnu.org>
parents:
diff changeset
4466 have been eliminated.
Dave Love <fx@gnu.org>
parents:
diff changeset
4467
Dave Love <fx@gnu.org>
parents:
diff changeset
4468 ** The new command `string-rectangle' inserts a specified string on
Dave Love <fx@gnu.org>
parents:
diff changeset
4469 each line of the region-rectangle.
Dave Love <fx@gnu.org>
parents:
diff changeset
4470
Dave Love <fx@gnu.org>
parents:
diff changeset
4471 ** C-x 4 r is now `find-file-read-only-other-window'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4472
Dave Love <fx@gnu.org>
parents:
diff changeset
4473 ** C-x 4 C-o is now `display-buffer', which displays a specified buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
4474 in another window without selecting it.
Dave Love <fx@gnu.org>
parents:
diff changeset
4475
Dave Love <fx@gnu.org>
parents:
diff changeset
4476 ** Picture mode has been substantially improved. The picture editing commands
Dave Love <fx@gnu.org>
parents:
diff changeset
4477 now arrange for automatic horizontal scrolling to keep point visible
Dave Love <fx@gnu.org>
parents:
diff changeset
4478 when editing a wide buffer with truncate-lines on. Picture-mode
Dave Love <fx@gnu.org>
parents:
diff changeset
4479 initialization now does a better job of rebinding standard commands;
Dave Love <fx@gnu.org>
parents:
diff changeset
4480 it finds not just their normal keybindings, but any function keys
Dave Love <fx@gnu.org>
parents:
diff changeset
4481 attached to them.
Dave Love <fx@gnu.org>
parents:
diff changeset
4482
Dave Love <fx@gnu.org>
parents:
diff changeset
4483 ** If you enable Transient Mark mode, then the mark becomes "inactive"
Dave Love <fx@gnu.org>
parents:
diff changeset
4484 after every command that modifies the buffer. While the mark is
Dave Love <fx@gnu.org>
parents:
diff changeset
4485 active, the region is highlighted (under X, at least). Most commands
Dave Love <fx@gnu.org>
parents:
diff changeset
4486 that use the mark give an error if the mark is inactive, but you can
Dave Love <fx@gnu.org>
parents:
diff changeset
4487 use C-x C-x to make it active again. This feature is also sometimes
Dave Love <fx@gnu.org>
parents:
diff changeset
4488 known as "Zmacs mode".
Dave Love <fx@gnu.org>
parents:
diff changeset
4489
Dave Love <fx@gnu.org>
parents:
diff changeset
4490 ** Outline mode is now available as a minor mode. This minor mode can
Dave Love <fx@gnu.org>
parents:
diff changeset
4491 combine with any major mode; it substitutes the C-c commands of
Dave Love <fx@gnu.org>
parents:
diff changeset
4492 Outline mode for those of the major mode. Use M-x outline-minor-mode
Dave Love <fx@gnu.org>
parents:
diff changeset
4493 to enable and disable the new mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4494
Dave Love <fx@gnu.org>
parents:
diff changeset
4495 M-x outline-mode is unchanged; it still switches to Outline mode as a
Dave Love <fx@gnu.org>
parents:
diff changeset
4496 major mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4497
Dave Love <fx@gnu.org>
parents:
diff changeset
4498 ** The default setting of `version-control' comes from the environment
Dave Love <fx@gnu.org>
parents:
diff changeset
4499 variable VERSION_CONTROL.
Dave Love <fx@gnu.org>
parents:
diff changeset
4500
Dave Love <fx@gnu.org>
parents:
diff changeset
4501 ** The user option for controlling whether files can set local
Dave Love <fx@gnu.org>
parents:
diff changeset
4502 variables is now called `enable-local-variables'. A value of t means
Dave Love <fx@gnu.org>
parents:
diff changeset
4503 local-variables lists are obeyed; nil means they are ignored; anything
Dave Love <fx@gnu.org>
parents:
diff changeset
4504 else means query the user.
Dave Love <fx@gnu.org>
parents:
diff changeset
4505
Dave Love <fx@gnu.org>
parents:
diff changeset
4506 The user option for controlling use of the `eval' local variable is
Dave Love <fx@gnu.org>
parents:
diff changeset
4507 now called is `enable-local-eval'; its values are interpreted like
Dave Love <fx@gnu.org>
parents:
diff changeset
4508 those of `enable-local-variables'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4509
Dave Love <fx@gnu.org>
parents:
diff changeset
4510 ** X Window System changes:
Dave Love <fx@gnu.org>
parents:
diff changeset
4511
Dave Love <fx@gnu.org>
parents:
diff changeset
4512 C-x 5 C-f and C-x 5 b switch to a specified file or buffer in a new
Dave Love <fx@gnu.org>
parents:
diff changeset
4513 frame. Likewise, C-x 5 m starts outgoing mail in another frame, and
Dave Love <fx@gnu.org>
parents:
diff changeset
4514 C-x 5 . finds a tag in another frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
4515
Dave Love <fx@gnu.org>
parents:
diff changeset
4516 When you are using X, C-z now iconifies the selected frame.
Dave Love <fx@gnu.org>
parents:
diff changeset
4517
Dave Love <fx@gnu.org>
parents:
diff changeset
4518 Emacs can now exchange text with other X applications. Killing or
Dave Love <fx@gnu.org>
parents:
diff changeset
4519 copying text in Emacs now makes that text available for pasting into
Dave Love <fx@gnu.org>
parents:
diff changeset
4520 other X applications. The Emacs yanking commands now insert the
Dave Love <fx@gnu.org>
parents:
diff changeset
4521 latest selection set by other applications, and add the text to the
Dave Love <fx@gnu.org>
parents:
diff changeset
4522 kill ring. The Emacs commands for selecting and inserting text with
Dave Love <fx@gnu.org>
parents:
diff changeset
4523 the mouse now use the kill ring in the same way the keyboard killing
Dave Love <fx@gnu.org>
parents:
diff changeset
4524 and yanking commands do.
Dave Love <fx@gnu.org>
parents:
diff changeset
4525
Dave Love <fx@gnu.org>
parents:
diff changeset
4526 The option to specify the title for the initial frame is now `-name NAME'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4527 There is currently no way to specify an icon title; perhaps we will add
Dave Love <fx@gnu.org>
parents:
diff changeset
4528 one in the future.
Dave Love <fx@gnu.org>
parents:
diff changeset
4529
Dave Love <fx@gnu.org>
parents:
diff changeset
4530 ** Undoing a deletion now puts point back where it was before the
Dave Love <fx@gnu.org>
parents:
diff changeset
4531 deletion.
Dave Love <fx@gnu.org>
parents:
diff changeset
4532
Dave Love <fx@gnu.org>
parents:
diff changeset
4533 ** The variables that control how much undo information to save have
Dave Love <fx@gnu.org>
parents:
diff changeset
4534 been renamed to `undo-limit' and `undo-strong-limit'. They used to be
Dave Love <fx@gnu.org>
parents:
diff changeset
4535 called `undo-threshold' and `undo-high-threshold'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4536
Dave Love <fx@gnu.org>
parents:
diff changeset
4537 ** You can now use kill commands in read-only buffers. They don't
Dave Love <fx@gnu.org>
parents:
diff changeset
4538 actually change the buffer, and Emacs will beep and warn you that the
Dave Love <fx@gnu.org>
parents:
diff changeset
4539 buffer is read-only, but they do copy the text you tried to kill into
Dave Love <fx@gnu.org>
parents:
diff changeset
4540 the kill ring, so you can yank it into other buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
4541
Dave Love <fx@gnu.org>
parents:
diff changeset
4542 ** C-o inserts the fill-prefix on the newly created line. The command
Dave Love <fx@gnu.org>
parents:
diff changeset
4543 M-^ deletes the prefix (if it occurs) after the newline that it
Dave Love <fx@gnu.org>
parents:
diff changeset
4544 deletes.
Dave Love <fx@gnu.org>
parents:
diff changeset
4545
Dave Love <fx@gnu.org>
parents:
diff changeset
4546 ** C-M-l now runs the command `reposition-window'. It scrolls the
Dave Love <fx@gnu.org>
parents:
diff changeset
4547 window heuristically in a way designed to get useful information onto
Dave Love <fx@gnu.org>
parents:
diff changeset
4548 the screen.
Dave Love <fx@gnu.org>
parents:
diff changeset
4549
Dave Love <fx@gnu.org>
parents:
diff changeset
4550 ** C-M-r is now reverse incremental regexp search.
Dave Love <fx@gnu.org>
parents:
diff changeset
4551
Dave Love <fx@gnu.org>
parents:
diff changeset
4552 ** M-z now kills through the target character. In version 18, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4553 killed up to but not including the target character.
Dave Love <fx@gnu.org>
parents:
diff changeset
4554
Dave Love <fx@gnu.org>
parents:
diff changeset
4555 ** M-! now runs the specified shell command asynchronously if it
Dave Love <fx@gnu.org>
parents:
diff changeset
4556 ends in `&' (just as the shell does).
Dave Love <fx@gnu.org>
parents:
diff changeset
4557
Dave Love <fx@gnu.org>
parents:
diff changeset
4558 ** C-h C-f and C-h C-k are new help commands that display the Info
Dave Love <fx@gnu.org>
parents:
diff changeset
4559 node for a given Emacs function name or key sequence, respectively.
Dave Love <fx@gnu.org>
parents:
diff changeset
4560
Dave Love <fx@gnu.org>
parents:
diff changeset
4561 ** The C-h p command system lets you find Emacs Lisp packages by
Dave Love <fx@gnu.org>
parents:
diff changeset
4562 topic keywords. Here is a partial list of package categories:
Dave Love <fx@gnu.org>
parents:
diff changeset
4563
Dave Love <fx@gnu.org>
parents:
diff changeset
4564 abbrev abbreviation handling, typing shortcuts, macros
Dave Love <fx@gnu.org>
parents:
diff changeset
4565 bib code related to the bib bibliography processor
Dave Love <fx@gnu.org>
parents:
diff changeset
4566 c C and C++ language support
Dave Love <fx@gnu.org>
parents:
diff changeset
4567 calendar calendar and time management support
Dave Love <fx@gnu.org>
parents:
diff changeset
4568 comm communications, networking, remote access to files
Dave Love <fx@gnu.org>
parents:
diff changeset
4569 docs support for Emacs documentation
Dave Love <fx@gnu.org>
parents:
diff changeset
4570 emulations emulations of other editors
Dave Love <fx@gnu.org>
parents:
diff changeset
4571 extensions Emacs Lisp language extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
4572 games games, jokes and amusements
Dave Love <fx@gnu.org>
parents:
diff changeset
4573 hardware support for interfacing with exotic hardware
Dave Love <fx@gnu.org>
parents:
diff changeset
4574 help support for on-line help systems
Dave Love <fx@gnu.org>
parents:
diff changeset
4575 i14n internationalization and alternate character-set support
Dave Love <fx@gnu.org>
parents:
diff changeset
4576 internal code for Emacs internals, build process, defaults
Dave Love <fx@gnu.org>
parents:
diff changeset
4577 languages specialized modes for editing programming languages
Dave Love <fx@gnu.org>
parents:
diff changeset
4578 lisp Lisp support, including Emacs Lisp
Dave Love <fx@gnu.org>
parents:
diff changeset
4579 local code local to your site
Dave Love <fx@gnu.org>
parents:
diff changeset
4580 maint maintenance aids for the Emacs development group
Dave Love <fx@gnu.org>
parents:
diff changeset
4581 mail modes for electronic-mail handling
Dave Love <fx@gnu.org>
parents:
diff changeset
4582 news support for netnews reading and posting
Dave Love <fx@gnu.org>
parents:
diff changeset
4583 processes process, subshell, compilation, and job control support
Dave Love <fx@gnu.org>
parents:
diff changeset
4584 terminals support for terminal types
Dave Love <fx@gnu.org>
parents:
diff changeset
4585 tex code related to the TeX formatter
Dave Love <fx@gnu.org>
parents:
diff changeset
4586 tools programming tools
Dave Love <fx@gnu.org>
parents:
diff changeset
4587 unix front-ends/assistants for, or emulators of, UNIX features
Dave Love <fx@gnu.org>
parents:
diff changeset
4588 vms support code for vms
Dave Love <fx@gnu.org>
parents:
diff changeset
4589 wp word processing
Dave Love <fx@gnu.org>
parents:
diff changeset
4590
Dave Love <fx@gnu.org>
parents:
diff changeset
4591 More will be added soon.
Dave Love <fx@gnu.org>
parents:
diff changeset
4592
Dave Love <fx@gnu.org>
parents:
diff changeset
4593 ** The command to split a window into two side-by-side windows is now
Dave Love <fx@gnu.org>
parents:
diff changeset
4594 C-x 3. It was C-x 5.
Dave Love <fx@gnu.org>
parents:
diff changeset
4595
Dave Love <fx@gnu.org>
parents:
diff changeset
4596 ** M-. (find-tag) no longer has any effect on what M-, will do
Dave Love <fx@gnu.org>
parents:
diff changeset
4597 subsequently. You can no longer use M-, to find the next similar tag;
Dave Love <fx@gnu.org>
parents:
diff changeset
4598 you must use M-. with a prefix argument, instead.
Dave Love <fx@gnu.org>
parents:
diff changeset
4599
Dave Love <fx@gnu.org>
parents:
diff changeset
4600 The motive for this change is so that you can more reliably use
Dave Love <fx@gnu.org>
parents:
diff changeset
4601 M-, to resume a suspended `tags-search' or `tags-query-replace'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4602
Dave Love <fx@gnu.org>
parents:
diff changeset
4603 ** C-x s (`save-some-buffers') now gives you more options when it asks
Dave Love <fx@gnu.org>
parents:
diff changeset
4604 whether to save a particular buffer. In addition to `y' or `n', you
Dave Love <fx@gnu.org>
parents:
diff changeset
4605 can answer `!' to save all the remaining buffers, `.' to save this
Dave Love <fx@gnu.org>
parents:
diff changeset
4606 buffer but not save any others, ESC to stop saving and exit the
Dave Love <fx@gnu.org>
parents:
diff changeset
4607 command, and C-h to get help. These options are analogous to those
Dave Love <fx@gnu.org>
parents:
diff changeset
4608 of `query-replace'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4609
Dave Love <fx@gnu.org>
parents:
diff changeset
4610 ** M-x make-symbolic-link does not expand its first argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
4611 This lets you make a link with a target that is a relative file name.
Dave Love <fx@gnu.org>
parents:
diff changeset
4612
Dave Love <fx@gnu.org>
parents:
diff changeset
4613 ** M-x add-change-log-entry and C-x 4 a now automatically insert the
Dave Love <fx@gnu.org>
parents:
diff changeset
4614 name of the file and often the name of the function that you changed.
Dave Love <fx@gnu.org>
parents:
diff changeset
4615 They also handle grouping of entries.
Dave Love <fx@gnu.org>
parents:
diff changeset
4616
Dave Love <fx@gnu.org>
parents:
diff changeset
4617 There is now a special major mode for editing ChangeLog files. It
Dave Love <fx@gnu.org>
parents:
diff changeset
4618 makes filling work conveniently. Each bunch of grouped entries is one
Dave Love <fx@gnu.org>
parents:
diff changeset
4619 paragraph, and each collection of entries from one person on one day
Dave Love <fx@gnu.org>
parents:
diff changeset
4620 is considered a page.
Dave Love <fx@gnu.org>
parents:
diff changeset
4621
Dave Love <fx@gnu.org>
parents:
diff changeset
4622 ** The `comment-region' command adds comment delimiters to the lines that
Dave Love <fx@gnu.org>
parents:
diff changeset
4623 start in the region, thus commenting them out. With a negative argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
4624 it deletes comment delimiters from the lines in the region--this cancels
Dave Love <fx@gnu.org>
parents:
diff changeset
4625 the effect of `comment-region' without an argument.
Dave Love <fx@gnu.org>
parents:
diff changeset
4626
Dave Love <fx@gnu.org>
parents:
diff changeset
4627 With a positive argument, `comment-region' adds comment delimiters
Dave Love <fx@gnu.org>
parents:
diff changeset
4628 but duplicates the last character of the comment start sequence as many
Dave Love <fx@gnu.org>
parents:
diff changeset
4629 times as the argument specifies. This is a way of calling attention to
Dave Love <fx@gnu.org>
parents:
diff changeset
4630 the comment. In Lisp, you should use an argument at least two, because
Dave Love <fx@gnu.org>
parents:
diff changeset
4631 the indentation convention for single semicolon comments does not leave
Dave Love <fx@gnu.org>
parents:
diff changeset
4632 them at the beginning of a line.
Dave Love <fx@gnu.org>
parents:
diff changeset
4633
Dave Love <fx@gnu.org>
parents:
diff changeset
4634 ** If `split-window-keep-point' is non-nil, C-x 2 tries to avoid
Dave Love <fx@gnu.org>
parents:
diff changeset
4635 shifting any text on the screen by putting point in whichever window
Dave Love <fx@gnu.org>
parents:
diff changeset
4636 happens to contain the screen line the cursor is already on.
Dave Love <fx@gnu.org>
parents:
diff changeset
4637 The default is that `split-window-keep-point' is non-nil on slow
Dave Love <fx@gnu.org>
parents:
diff changeset
4638 terminals.
Dave Love <fx@gnu.org>
parents:
diff changeset
4639
Dave Love <fx@gnu.org>
parents:
diff changeset
4640 ** M-x super-apropos is like M-x apropos except that it searches both
Dave Love <fx@gnu.org>
parents:
diff changeset
4641 Lisp symbol names and documentation strings for matches. It describes
Dave Love <fx@gnu.org>
parents:
diff changeset
4642 every symbol that has a match in either the symbol's name or its
Dave Love <fx@gnu.org>
parents:
diff changeset
4643 documentation.
Dave Love <fx@gnu.org>
parents:
diff changeset
4644
Dave Love <fx@gnu.org>
parents:
diff changeset
4645 Both M-x apropos and M-x super-apropos take an optional second
Dave Love <fx@gnu.org>
parents:
diff changeset
4646 argument DO-ALL which controls the more expensive part of the job.
Dave Love <fx@gnu.org>
parents:
diff changeset
4647 This includes looking up and printing the key bindings of all
Dave Love <fx@gnu.org>
parents:
diff changeset
4648 commands. It also includes checking documentation strings in
Dave Love <fx@gnu.org>
parents:
diff changeset
4649 super-apropos. DO-ALL is nil by default; use a prefix arg to make it
Dave Love <fx@gnu.org>
parents:
diff changeset
4650 non-nil.
Dave Love <fx@gnu.org>
parents:
diff changeset
4651
Dave Love <fx@gnu.org>
parents:
diff changeset
4652 ** M-x revert-buffer no longer offers to revert from a recent auto-save
Dave Love <fx@gnu.org>
parents:
diff changeset
4653 file unless you give it a prefix argument. Otherwise it always
Dave Love <fx@gnu.org>
parents:
diff changeset
4654 reverts from the real file regardless of whether there has been an
Dave Love <fx@gnu.org>
parents:
diff changeset
4655 auto-save since thenm. (Reverting from the auto-save file is no longer
Dave Love <fx@gnu.org>
parents:
diff changeset
4656 very useful now that the undo capacity is larger.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4657
Dave Love <fx@gnu.org>
parents:
diff changeset
4658 ** M-x recover-file no longer turns off Auto Save mode when it reads
Dave Love <fx@gnu.org>
parents:
diff changeset
4659 the last Auto Save file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4660
Dave Love <fx@gnu.org>
parents:
diff changeset
4661 ** M-x rename-buffer, if you give it a prefix argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
4662 avoids errors by modifying the new name to make it unique.
Dave Love <fx@gnu.org>
parents:
diff changeset
4663
Dave Love <fx@gnu.org>
parents:
diff changeset
4664 ** M-x rename-uniquely renames the current buffer to a similar name
Dave Love <fx@gnu.org>
parents:
diff changeset
4665 with a numeric suffix added to make it both different and unique.
Dave Love <fx@gnu.org>
parents:
diff changeset
4666
Dave Love <fx@gnu.org>
parents:
diff changeset
4667 One use of this command is for creating multiple shell buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
4668 If you rename your shell buffer, and then do M-x shell again, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4669 makes a new shell buffer. This method is also good for mail buffers,
Dave Love <fx@gnu.org>
parents:
diff changeset
4670 compilation buffers, and any Emacs feature which creates a special
Dave Love <fx@gnu.org>
parents:
diff changeset
4671 buffer with a particular name.
Dave Love <fx@gnu.org>
parents:
diff changeset
4672
Dave Love <fx@gnu.org>
parents:
diff changeset
4673 ** M-x compare-windows with a prefix argument ignores changes in whitespace.
Dave Love <fx@gnu.org>
parents:
diff changeset
4674 If `compare-ignore-case' is non-nil, then differences in case are also
Dave Love <fx@gnu.org>
parents:
diff changeset
4675 ignored.
Dave Love <fx@gnu.org>
parents:
diff changeset
4676
Dave Love <fx@gnu.org>
parents:
diff changeset
4677 ** `backward-paragraph' is now bound to M-{ by default, and `forward-paragraph'
Dave Love <fx@gnu.org>
parents:
diff changeset
4678 to M-}. Originally, these commands were bound to M-[ and M-], but they were
Dave Love <fx@gnu.org>
parents:
diff changeset
4679 running into conflicts with the use of function keys. On many terminals,
Dave Love <fx@gnu.org>
parents:
diff changeset
4680 function keys send a sequence beginning ESC-[, so many users have defined this
Dave Love <fx@gnu.org>
parents:
diff changeset
4681 as a prefix key.
Dave Love <fx@gnu.org>
parents:
diff changeset
4682
Dave Love <fx@gnu.org>
parents:
diff changeset
4683 ** C-x C-u (upcase-region) and C-x C-l (downcase-region) are now disabled by
Dave Love <fx@gnu.org>
parents:
diff changeset
4684 default; these commands seem to be often hit by accident, and can be
Dave Love <fx@gnu.org>
parents:
diff changeset
4685 quite destructive if their effects are not noticed immediately.
Dave Love <fx@gnu.org>
parents:
diff changeset
4686
Dave Love <fx@gnu.org>
parents:
diff changeset
4687 ** The function `erase-buffer' is now interactive, but disabled by default.
Dave Love <fx@gnu.org>
parents:
diff changeset
4688
Dave Love <fx@gnu.org>
parents:
diff changeset
4689 ** When visiting a new file, Emacs attempts to abbreviate the file's
Dave Love <fx@gnu.org>
parents:
diff changeset
4690 path using the symlinks listed in `directory-abbrev-alist'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4691
Dave Love <fx@gnu.org>
parents:
diff changeset
4692 ** When you visit the same file in under two names that translate into
Dave Love <fx@gnu.org>
parents:
diff changeset
4693 the same name once symbolic links are handled, Emacs warns you that
Dave Love <fx@gnu.org>
parents:
diff changeset
4694 you have two buffers for the same file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4695
Dave Love <fx@gnu.org>
parents:
diff changeset
4696 ** If you wish to avoid visiting the same file in two buffers under
Dave Love <fx@gnu.org>
parents:
diff changeset
4697 different names, set the variable `find-file-existing-other-name'
Dave Love <fx@gnu.org>
parents:
diff changeset
4698 non-nil. Then `find-file' uses the existing buffer visiting the file,
Dave Love <fx@gnu.org>
parents:
diff changeset
4699 no matter which of the file's names you specify.
Dave Love <fx@gnu.org>
parents:
diff changeset
4700
Dave Love <fx@gnu.org>
parents:
diff changeset
4701 ** If you set `find-file-visit-truename' non-nil, then the file name
Dave Love <fx@gnu.org>
parents:
diff changeset
4702 recorded for a buffer is the file's truename (in which all symbolic
Dave Love <fx@gnu.org>
parents:
diff changeset
4703 links have been removed), rather than the name you specify. Setting
Dave Love <fx@gnu.org>
parents:
diff changeset
4704 `find-file-visit-truename' also implies the effect of
Dave Love <fx@gnu.org>
parents:
diff changeset
4705 `find-file-existing-other-name'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4706
Dave Love <fx@gnu.org>
parents:
diff changeset
4707 ** C-x C-v now inserts the entire current file name in the minibuffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
4708 This is convenient if you made a small mistake in typing it. Point
Dave Love <fx@gnu.org>
parents:
diff changeset
4709 goes after the last slash, before the last file name component, so if
Dave Love <fx@gnu.org>
parents:
diff changeset
4710 you want to replace it entirely, you can use C-k right away to delete
Dave Love <fx@gnu.org>
parents:
diff changeset
4711 it.
Dave Love <fx@gnu.org>
parents:
diff changeset
4712
Dave Love <fx@gnu.org>
parents:
diff changeset
4713 ** Commands such as C-M-f in Lisp mode now ignore parentheses within comments.
Dave Love <fx@gnu.org>
parents:
diff changeset
4714
Dave Love <fx@gnu.org>
parents:
diff changeset
4715 ** C-x q now uses ESC to terminate all iterations of the keyboard
Dave Love <fx@gnu.org>
parents:
diff changeset
4716 macro, rather than C-d as before.
Dave Love <fx@gnu.org>
parents:
diff changeset
4717
Dave Love <fx@gnu.org>
parents:
diff changeset
4718 ** Use the command `setenv' to set an individual environment variable
Dave Love <fx@gnu.org>
parents:
diff changeset
4719 for Emacs subprocesses. Specify a variable name and a value, both as
Dave Love <fx@gnu.org>
parents:
diff changeset
4720 strings. This command applies only to subprocesses yet to be
Dave Love <fx@gnu.org>
parents:
diff changeset
4721 started.
Dave Love <fx@gnu.org>
parents:
diff changeset
4722
Dave Love <fx@gnu.org>
parents:
diff changeset
4723 ** Use `rot13-other-window' to examine a buffer with rot13.
Dave Love <fx@gnu.org>
parents:
diff changeset
4724
Dave Love <fx@gnu.org>
parents:
diff changeset
4725 This command does not change the text in the buffer. Instead, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4726 creates a window with a funny display table that applies the code when
Dave Love <fx@gnu.org>
parents:
diff changeset
4727 displaying the text.
Dave Love <fx@gnu.org>
parents:
diff changeset
4728
Dave Love <fx@gnu.org>
parents:
diff changeset
4729 ** The command `M-x version' now prints the current Emacs version; The
Dave Love <fx@gnu.org>
parents:
diff changeset
4730 `version' command is an alias for the `emacs-version' command.
Dave Love <fx@gnu.org>
parents:
diff changeset
4731
Dave Love <fx@gnu.org>
parents:
diff changeset
4732 ** More complex changes in existing packages.
Dave Love <fx@gnu.org>
parents:
diff changeset
4733
Dave Love <fx@gnu.org>
parents:
diff changeset
4734 *** `fill-nonuniform-paragraphs' is a new command, much like
Dave Love <fx@gnu.org>
parents:
diff changeset
4735 `fill-individual-paragraphs' except that only separator lines separate
Dave Love <fx@gnu.org>
parents:
diff changeset
4736 paragraphs. Since this means that the lines of one paragraph may have
Dave Love <fx@gnu.org>
parents:
diff changeset
4737 different amounts of indentation, the fill prefix used is the smallest
Dave Love <fx@gnu.org>
parents:
diff changeset
4738 amount of indentation of any of the lines of the paragraph.
Dave Love <fx@gnu.org>
parents:
diff changeset
4739
Dave Love <fx@gnu.org>
parents:
diff changeset
4740 *** Filling is now partially controlled by a new minor mode, Adaptive
Dave Love <fx@gnu.org>
parents:
diff changeset
4741 Fill mode. When this mode is enabled (and it is enabled by default),
Dave Love <fx@gnu.org>
parents:
diff changeset
4742 if you use M-x fill-region-as-paragraph on an indented paragraph and
Dave Love <fx@gnu.org>
parents:
diff changeset
4743 you don't have a fill prefix, it uses the indentation of the second
Dave Love <fx@gnu.org>
parents:
diff changeset
4744 line of the paragraph as the fill prefix.
Dave Love <fx@gnu.org>
parents:
diff changeset
4745
Dave Love <fx@gnu.org>
parents:
diff changeset
4746 Adaptive Fill mode doesn't have much effect on M-q in most major
Dave Love <fx@gnu.org>
parents:
diff changeset
4747 modes, because an indented line will probably count as a paragraph
Dave Love <fx@gnu.org>
parents:
diff changeset
4748 starter and thus each line of an indented paragraph will be considered
Dave Love <fx@gnu.org>
parents:
diff changeset
4749 a paragraph of its own.
Dave Love <fx@gnu.org>
parents:
diff changeset
4750
Dave Love <fx@gnu.org>
parents:
diff changeset
4751 *** M-q in C mode now runs `c-fill-paragraph', which is designed
Dave Love <fx@gnu.org>
parents:
diff changeset
4752 for filling C comments. (We assume you don't want to fill
Dave Love <fx@gnu.org>
parents:
diff changeset
4753 the code in a C program.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4754
Dave Love <fx@gnu.org>
parents:
diff changeset
4755 *** M-$ now runs the Ispell program instead of the Unix spell program.
Dave Love <fx@gnu.org>
parents:
diff changeset
4756
Dave Love <fx@gnu.org>
parents:
diff changeset
4757 M-$ starts an Ispell process the first time you use it. But the process
Dave Love <fx@gnu.org>
parents:
diff changeset
4758 stays alive, so that subsequent uses of M-$ run very fast.
Dave Love <fx@gnu.org>
parents:
diff changeset
4759 If you want to get rid of the process, use M-x kill-ispell.
Dave Love <fx@gnu.org>
parents:
diff changeset
4760
Dave Love <fx@gnu.org>
parents:
diff changeset
4761 To check the entire current buffer, use M-x ispell-buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
4762 Use M-x ispell-region to check just the current region.
Dave Love <fx@gnu.org>
parents:
diff changeset
4763
Dave Love <fx@gnu.org>
parents:
diff changeset
4764 Ispell commands often involve interactive replacement of words.
Dave Love <fx@gnu.org>
parents:
diff changeset
4765 You can interrupt the interactive replacement with C-g.
Dave Love <fx@gnu.org>
parents:
diff changeset
4766 You can restart it again afterward with C-u M-$.
Dave Love <fx@gnu.org>
parents:
diff changeset
4767
Dave Love <fx@gnu.org>
parents:
diff changeset
4768 During interactive replacement, you can type the following characters:
Dave Love <fx@gnu.org>
parents:
diff changeset
4769
Dave Love <fx@gnu.org>
parents:
diff changeset
4770 a Accept this word this time.
Dave Love <fx@gnu.org>
parents:
diff changeset
4771 DIGIT Replace the word (this time) with one of the displayed near-misses.
Dave Love <fx@gnu.org>
parents:
diff changeset
4772 The digit you use says which near-miss to use.
Dave Love <fx@gnu.org>
parents:
diff changeset
4773 i Insert this word in your private dictionary
Dave Love <fx@gnu.org>
parents:
diff changeset
4774 so that Ispell will consider it correct it from now on.
Dave Love <fx@gnu.org>
parents:
diff changeset
4775 r Replace the word this time with a string typed by you.
Dave Love <fx@gnu.org>
parents:
diff changeset
4776
Dave Love <fx@gnu.org>
parents:
diff changeset
4777 When the Ispell process starts, it reads your private dictionary which
Dave Love <fx@gnu.org>
parents:
diff changeset
4778 is the file `~/ispell.words'. If you "insert" words with the `i' command,
Dave Love <fx@gnu.org>
parents:
diff changeset
4779 these words are added to that file, but not right away--only at the end
Dave Love <fx@gnu.org>
parents:
diff changeset
4780 of the interactive replacement process.
Dave Love <fx@gnu.org>
parents:
diff changeset
4781
Dave Love <fx@gnu.org>
parents:
diff changeset
4782 Use M-x reload-ispell to reload your private dictionary from
Dave Love <fx@gnu.org>
parents:
diff changeset
4783 `~/ispell.words' if you edit it outside of Ispell.
Dave Love <fx@gnu.org>
parents:
diff changeset
4784
Dave Love <fx@gnu.org>
parents:
diff changeset
4785 ** Changes in existing modes.
Dave Love <fx@gnu.org>
parents:
diff changeset
4786
Dave Love <fx@gnu.org>
parents:
diff changeset
4787 *** gdb-mode has been replaced by gud-mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4788
Dave Love <fx@gnu.org>
parents:
diff changeset
4789 The package gud.el (Grand Unified Debugger) replaces gdb.el in Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
4790 19. It provides a gdb.el-like interface to any of three debuggers;
Dave Love <fx@gnu.org>
parents:
diff changeset
4791 gdb itself, the sdb debugger supported on some Unix systems, or the
Dave Love <fx@gnu.org>
parents:
diff changeset
4792 dbx debugger on Berkeley systems.
Dave Love <fx@gnu.org>
parents:
diff changeset
4793
Dave Love <fx@gnu.org>
parents:
diff changeset
4794 You start it up with one of the commands M-x gdb, M-x sdb, or
Dave Love <fx@gnu.org>
parents:
diff changeset
4795 M-x dbx. Each entry point finishes by executing a hook; gdb-mode-hook,
Dave Love <fx@gnu.org>
parents:
diff changeset
4796 sdb-mode-hook or dbx-mode-hook respectively.
Dave Love <fx@gnu.org>
parents:
diff changeset
4797
Dave Love <fx@gnu.org>
parents:
diff changeset
4798 These bindings have changed:
Dave Love <fx@gnu.org>
parents:
diff changeset
4799 C-x C-a > gud-down (was M-d)
Dave Love <fx@gnu.org>
parents:
diff changeset
4800 C-x C-a < gud-up (was M-u)
Dave Love <fx@gnu.org>
parents:
diff changeset
4801 C-x C-a C-r gud-cont (was M-c)
Dave Love <fx@gnu.org>
parents:
diff changeset
4802 C-x C-a C-n gud-next (was M-n)
Dave Love <fx@gnu.org>
parents:
diff changeset
4803 C-x C-a C-s gud-step (was M-s)
Dave Love <fx@gnu.org>
parents:
diff changeset
4804 C-x C-a C-i gud-stepi (was M-i)
Dave Love <fx@gnu.org>
parents:
diff changeset
4805 C-x C-a C-l gud-recenter (was C-l)
Dave Love <fx@gnu.org>
parents:
diff changeset
4806 C-d comint-delchar-or-maybe-eof (was C-c C-d)
Dave Love <fx@gnu.org>
parents:
diff changeset
4807
Dave Love <fx@gnu.org>
parents:
diff changeset
4808 These bindings have been removed:
Dave Love <fx@gnu.org>
parents:
diff changeset
4809 C-c C-r (was comint-show-output; now gud-cont)
Dave Love <fx@gnu.org>
parents:
diff changeset
4810
Dave Love <fx@gnu.org>
parents:
diff changeset
4811 Since GUD mode uses comint, it uses comint's input history commands,
Dave Love <fx@gnu.org>
parents:
diff changeset
4812 superseding C-c C-y (copy-last-shell-input):
Dave Love <fx@gnu.org>
parents:
diff changeset
4813 M-p comint-next-input
Dave Love <fx@gnu.org>
parents:
diff changeset
4814 M-n comint-previous-input
Dave Love <fx@gnu.org>
parents:
diff changeset
4815 M-r comint-previous-similar-input
Dave Love <fx@gnu.org>
parents:
diff changeset
4816 M-s comint-next-similar-input
Dave Love <fx@gnu.org>
parents:
diff changeset
4817 M-C-r comint-previous-input-matching
Dave Love <fx@gnu.org>
parents:
diff changeset
4818
Dave Love <fx@gnu.org>
parents:
diff changeset
4819 The C-x C-a bindings are also active in source files.
Dave Love <fx@gnu.org>
parents:
diff changeset
4820
Dave Love <fx@gnu.org>
parents:
diff changeset
4821 *** The old TeX mode bindings of M-{ and M-} have been moved to C-c {
Dave Love <fx@gnu.org>
parents:
diff changeset
4822 and C-c }. (These commands are `up-list' and `tex-insert-braces';
Dave Love <fx@gnu.org>
parents:
diff changeset
4823 they are the TeX equivalents of M-( and M-).) This is because M-{
Dave Love <fx@gnu.org>
parents:
diff changeset
4824 and M-} are now globally defined commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
4825
Dave Love <fx@gnu.org>
parents:
diff changeset
4826 *** Changes in Mail mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4827
Dave Love <fx@gnu.org>
parents:
diff changeset
4828 `%' is now a word-separator character in Mail mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4829
Dave Love <fx@gnu.org>
parents:
diff changeset
4830 `mail-signature', if non-nil, tells M-x mail to insert your
Dave Love <fx@gnu.org>
parents:
diff changeset
4831 `.signature' file automatically. If you don't want your signature in
Dave Love <fx@gnu.org>
parents:
diff changeset
4832 a particular message, just delete it before you send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
4833
Dave Love <fx@gnu.org>
parents:
diff changeset
4834 You can specify the text to insert at the beginning of each line when
Dave Love <fx@gnu.org>
parents:
diff changeset
4835 you use C-c C-y to yank the message you are replying to. Set
Dave Love <fx@gnu.org>
parents:
diff changeset
4836 `mail-yank-prefix' to the desired string. A value of `nil' (the
Dave Love <fx@gnu.org>
parents:
diff changeset
4837 default) means to use indentation, as in Emacs 18. If you use just
Dave Love <fx@gnu.org>
parents:
diff changeset
4838 C-u as the prefix argument to C-c C-y, then it does not insert
Dave Love <fx@gnu.org>
parents:
diff changeset
4839 anything at the beginning of the lines, regardless of the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
4840 `mail-yank-prefix'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4841
Dave Love <fx@gnu.org>
parents:
diff changeset
4842 If you like, you can expand mail aliases as abbrevs, as soon as you
Dave Love <fx@gnu.org>
parents:
diff changeset
4843 type them in. To enable this feature, execute the following:
Dave Love <fx@gnu.org>
parents:
diff changeset
4844
Dave Love <fx@gnu.org>
parents:
diff changeset
4845 (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
Dave Love <fx@gnu.org>
parents:
diff changeset
4846
Dave Love <fx@gnu.org>
parents:
diff changeset
4847 This can go in your .emacs file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4848
Dave Love <fx@gnu.org>
parents:
diff changeset
4849 Word abbrevs don't expand unless you insert a word-separator character
Dave Love <fx@gnu.org>
parents:
diff changeset
4850 afterward. Any mail aliases that you didn't expand at insertion time
Dave Love <fx@gnu.org>
parents:
diff changeset
4851 are expanded subsequently when you send the message.
Dave Love <fx@gnu.org>
parents:
diff changeset
4852
Dave Love <fx@gnu.org>
parents:
diff changeset
4853 *** Changes in Rmail.
Dave Love <fx@gnu.org>
parents:
diff changeset
4854
Dave Love <fx@gnu.org>
parents:
diff changeset
4855 Rmail by default gets new mail only from the system inbox file,
Dave Love <fx@gnu.org>
parents:
diff changeset
4856 not from `~/mbox'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4857
Dave Love <fx@gnu.org>
parents:
diff changeset
4858 In Rmail, you can retry sending a message that failed
Dave Love <fx@gnu.org>
parents:
diff changeset
4859 by typing `M-m' on the failure message.
Dave Love <fx@gnu.org>
parents:
diff changeset
4860
Dave Love <fx@gnu.org>
parents:
diff changeset
4861 By contrast, another new command M-x rmail-resend is used for
Dave Love <fx@gnu.org>
parents:
diff changeset
4862 forwarding a message and marking it as "resent from" you
Dave Love <fx@gnu.org>
parents:
diff changeset
4863 with header fields "Resent-From:" and "Resent-To:".
Dave Love <fx@gnu.org>
parents:
diff changeset
4864
Dave Love <fx@gnu.org>
parents:
diff changeset
4865 `e' is now the command to edit a message.
Dave Love <fx@gnu.org>
parents:
diff changeset
4866 To expunge, type `x'. We know this will surprise people
Dave Love <fx@gnu.org>
parents:
diff changeset
4867 some of the time, but the surprise will not be disastrous--if
Dave Love <fx@gnu.org>
parents:
diff changeset
4868 you type `e' meaning to expunge, just turn off editing with C-c C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
4869 and then type `x'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4870
Dave Love <fx@gnu.org>
parents:
diff changeset
4871 Another new Rmail command is `<', which moves to the first message.
Dave Love <fx@gnu.org>
parents:
diff changeset
4872 This is for symmetry with `>'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4873
Dave Love <fx@gnu.org>
parents:
diff changeset
4874 Use the `b' command to bury the Rmail buffer and its summary buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
4875 if any, removing both of them from display on the screen.
Dave Love <fx@gnu.org>
parents:
diff changeset
4876
Dave Love <fx@gnu.org>
parents:
diff changeset
4877 The variable `rmail-output-file-alist' now controls the default
Dave Love <fx@gnu.org>
parents:
diff changeset
4878 for the file to output a message to.
Dave Love <fx@gnu.org>
parents:
diff changeset
4879
Dave Love <fx@gnu.org>
parents:
diff changeset
4880 In the Rmail summary buffer, all cursor motion commands select
Dave Love <fx@gnu.org>
parents:
diff changeset
4881 the message you move to. It's really neat when you use
Dave Love <fx@gnu.org>
parents:
diff changeset
4882 incremental search.
Dave Love <fx@gnu.org>
parents:
diff changeset
4883
Dave Love <fx@gnu.org>
parents:
diff changeset
4884 You can now issue most Rmail commands from an Rmail summary buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
4885 The commands do the same thing in that buffer that they do in the
Dave Love <fx@gnu.org>
parents:
diff changeset
4886 Rmail buffer. They apply to the message that is selected in the Rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
4887 buffer, which is always the one described by the current summary
Dave Love <fx@gnu.org>
parents:
diff changeset
4888 line.
Dave Love <fx@gnu.org>
parents:
diff changeset
4889
Dave Love <fx@gnu.org>
parents:
diff changeset
4890 Conversely, motion and deletion commands in the Rmail buffer also
Dave Love <fx@gnu.org>
parents:
diff changeset
4891 update the summary buffer. If you set the variable
Dave Love <fx@gnu.org>
parents:
diff changeset
4892 `rmail-redisplay-summary' to a non-nil value, then they bring the
Dave Love <fx@gnu.org>
parents:
diff changeset
4893 summary buffer (if one exists) back onto the screen.
Dave Love <fx@gnu.org>
parents:
diff changeset
4894
Dave Love <fx@gnu.org>
parents:
diff changeset
4895 C-M-t is a new command to make a summary by topic. It uses regexp
Dave Love <fx@gnu.org>
parents:
diff changeset
4896 matching against just the subjects of the messages to decide which
Dave Love <fx@gnu.org>
parents:
diff changeset
4897 messages to show in the summary.
Dave Love <fx@gnu.org>
parents:
diff changeset
4898
Dave Love <fx@gnu.org>
parents:
diff changeset
4899 You can easily convert an Rmail file to system mailbox format with the
Dave Love <fx@gnu.org>
parents:
diff changeset
4900 command `unrmail'. This command reads two arguments, the name of
Dave Love <fx@gnu.org>
parents:
diff changeset
4901 the Rmail file to convert, and the name of the new mailbox file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4902 (This command does not change the Rmail file itself.)
Dave Love <fx@gnu.org>
parents:
diff changeset
4903
Dave Love <fx@gnu.org>
parents:
diff changeset
4904 Rmail now handles Content Length fields in messages.
Dave Love <fx@gnu.org>
parents:
diff changeset
4905
Dave Love <fx@gnu.org>
parents:
diff changeset
4906 *** `mail-extract-address-components' unpacks mail addresses.
Dave Love <fx@gnu.org>
parents:
diff changeset
4907 It takes an address as a string (the contents of the From field, for
Dave Love <fx@gnu.org>
parents:
diff changeset
4908 example) and returns a list of the form (FULL-NAME
Dave Love <fx@gnu.org>
parents:
diff changeset
4909 CANONICAL-ADDRESS).
Dave Love <fx@gnu.org>
parents:
diff changeset
4910
Dave Love <fx@gnu.org>
parents:
diff changeset
4911 *** Changes in C mode and C-related commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
4912
Dave Love <fx@gnu.org>
parents:
diff changeset
4913 **** M-x c-up-conditional
Dave Love <fx@gnu.org>
parents:
diff changeset
4914
Dave Love <fx@gnu.org>
parents:
diff changeset
4915 In C mode, `c-up-conditional' moves back to the containing
Dave Love <fx@gnu.org>
parents:
diff changeset
4916 preprocessor conditional, setting the mark where point was
Dave Love <fx@gnu.org>
parents:
diff changeset
4917 previously.
Dave Love <fx@gnu.org>
parents:
diff changeset
4918
Dave Love <fx@gnu.org>
parents:
diff changeset
4919 A prefix argument acts as a repeat count. With a negative argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
4920 this command moves forward to the end of the containing preprocessor
Dave Love <fx@gnu.org>
parents:
diff changeset
4921 conditional. When going backwards, `#elif' acts like `#else' followed
Dave Love <fx@gnu.org>
parents:
diff changeset
4922 by `#if'. When going forwards, `#elif' is ignored.
Dave Love <fx@gnu.org>
parents:
diff changeset
4923
Dave Love <fx@gnu.org>
parents:
diff changeset
4924 **** In C mode, M-a and M-e are now defined as
Dave Love <fx@gnu.org>
parents:
diff changeset
4925 `c-beginning-of-statement' and `c-end-of-statement'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4926
Dave Love <fx@gnu.org>
parents:
diff changeset
4927 **** In C mode, M-x c-backslash-region is a new command to insert or
Dave Love <fx@gnu.org>
parents:
diff changeset
4928 align `\' characters at the ends of the lines of the region, except
Dave Love <fx@gnu.org>
parents:
diff changeset
4929 for the last such line. This is useful after writing or editing a C
Dave Love <fx@gnu.org>
parents:
diff changeset
4930 macro definition.
Dave Love <fx@gnu.org>
parents:
diff changeset
4931
Dave Love <fx@gnu.org>
parents:
diff changeset
4932 If a line already ends in `\', this command adjusts the amount of
Dave Love <fx@gnu.org>
parents:
diff changeset
4933 whitespace before it. Otherwise, it inserts a new `\'.
Dave Love <fx@gnu.org>
parents:
diff changeset
4934
Dave Love <fx@gnu.org>
parents:
diff changeset
4935 *** New features in info.
Dave Love <fx@gnu.org>
parents:
diff changeset
4936
Dave Love <fx@gnu.org>
parents:
diff changeset
4937 When Info looks for an Info file, it searches the directories
Dave Love <fx@gnu.org>
parents:
diff changeset
4938 in `Info-directory-list'. This makes it easy to install the Info files
Dave Love <fx@gnu.org>
parents:
diff changeset
4939 that come with various packages. You can specify the path with
Dave Love <fx@gnu.org>
parents:
diff changeset
4940 the environment variable INFOPATH.
Dave Love <fx@gnu.org>
parents:
diff changeset
4941
Dave Love <fx@gnu.org>
parents:
diff changeset
4942 There are new commands in Info mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
4943
Dave Love <fx@gnu.org>
parents:
diff changeset
4944 `]' now moves forward a node, going up and down levels as needed.
Dave Love <fx@gnu.org>
parents:
diff changeset
4945 `[' is similar but moves backward. These two commands try to traverse
Dave Love <fx@gnu.org>
parents:
diff changeset
4946 the entire Info tree, node by node. They are the equivalent of reading
Dave Love <fx@gnu.org>
parents:
diff changeset
4947 a printed manual sequentially.
Dave Love <fx@gnu.org>
parents:
diff changeset
4948
Dave Love <fx@gnu.org>
parents:
diff changeset
4949 `<' moves to the top node of the current Info file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4950 `>' moves to the last node of the file.
Dave Love <fx@gnu.org>
parents:
diff changeset
4951
Dave Love <fx@gnu.org>
parents:
diff changeset
4952 SPC scrolls through the current node; at the end, it advances to the
Dave Love <fx@gnu.org>
parents:
diff changeset
4953 next node in depth-first order (like `]').
Dave Love <fx@gnu.org>
parents:
diff changeset
4954
Dave Love <fx@gnu.org>
parents:
diff changeset
4955 DEL scrolls backwards in the current node; at the end, it moves to the
Dave Love <fx@gnu.org>
parents:
diff changeset
4956 previous node in depth-first order (like `[').
Dave Love <fx@gnu.org>
parents:
diff changeset
4957
Dave Love <fx@gnu.org>
parents:
diff changeset
4958 After a menu select, the info `up' command now restores point in the
Dave Love <fx@gnu.org>
parents:
diff changeset
4959 menu. The combination of this and the previous two changes means that
Dave Love <fx@gnu.org>
parents:
diff changeset
4960 repeated SPC keystrokes do the right (depth-first traverse forward) thing.
Dave Love <fx@gnu.org>
parents:
diff changeset
4961
Dave Love <fx@gnu.org>
parents:
diff changeset
4962 `i STRING RET' moves to the node associated with STRING in the index
Dave Love <fx@gnu.org>
parents:
diff changeset
4963 or indices of this manual. If there is more than one match for
Dave Love <fx@gnu.org>
parents:
diff changeset
4964 STRING, the `i' command finds the first match.
Dave Love <fx@gnu.org>
parents:
diff changeset
4965
Dave Love <fx@gnu.org>
parents:
diff changeset
4966 `,' finds the next match for the string in the previous `i' command
Dave Love <fx@gnu.org>
parents:
diff changeset
4967
Dave Love <fx@gnu.org>
parents:
diff changeset
4968 If you click the middle mouse button near a cross-reference,
Dave Love <fx@gnu.org>
parents:
diff changeset
4969 menu item or node pointer while in Info, you will go to the node
Dave Love <fx@gnu.org>
parents:
diff changeset
4970 which is referenced.
Dave Love <fx@gnu.org>
parents:
diff changeset
4971
Dave Love <fx@gnu.org>
parents:
diff changeset
4972 *** Changes in M-x compile.
Dave Love <fx@gnu.org>
parents:
diff changeset
4973
Dave Love <fx@gnu.org>
parents:
diff changeset
4974 You can repeat any previous compilation command conveniently using the
Dave Love <fx@gnu.org>
parents:
diff changeset
4975 minibuffer history commands, while in the minibuffer entering the
Dave Love <fx@gnu.org>
parents:
diff changeset
4976 compilation command.
Dave Love <fx@gnu.org>
parents:
diff changeset
4977
Dave Love <fx@gnu.org>
parents:
diff changeset
4978 While a compilation is going on, the string `Compiling' appears in
Dave Love <fx@gnu.org>
parents:
diff changeset
4979 the mode line. When this string disappears, that tells you the
Dave Love <fx@gnu.org>
parents:
diff changeset
4980 compilation is finished.
Dave Love <fx@gnu.org>
parents:
diff changeset
4981
Dave Love <fx@gnu.org>
parents:
diff changeset
4982 The buffer of compiler messages is in Compilation mode. This mode
Dave Love <fx@gnu.org>
parents:
diff changeset
4983 provides the keys SPC and DEL to scroll by screenfuls, and M-n and M-p
Dave Love <fx@gnu.org>
parents:
diff changeset
4984 to move to the next or previous error message. You can also use C-c
Dave Love <fx@gnu.org>
parents:
diff changeset
4985 C-c on any error message to find the corresponding source code.
Dave Love <fx@gnu.org>
parents:
diff changeset
4986
Dave Love <fx@gnu.org>
parents:
diff changeset
4987 Emacs 19 has a more general parser for compiler messages. For example, it
Dave Love <fx@gnu.org>
parents:
diff changeset
4988 can understand messages from lint, and from certain C compilers whose error
Dave Love <fx@gnu.org>
parents:
diff changeset
4989 message format is unusual. Also, it only parses until it sees the error
Dave Love <fx@gnu.org>
parents:
diff changeset
4990 message you want; you never have to wait a long time to see the first
Dave Love <fx@gnu.org>
parents:
diff changeset
4991 error, no matter how big the buffer is.
Dave Love <fx@gnu.org>
parents:
diff changeset
4992
Dave Love <fx@gnu.org>
parents:
diff changeset
4993 *** M-x diff and M-x diff-backup.
Dave Love <fx@gnu.org>
parents:
diff changeset
4994
Dave Love <fx@gnu.org>
parents:
diff changeset
4995 This new command compares two files, displaying the differences in an
Dave Love <fx@gnu.org>
parents:
diff changeset
4996 Emacs buffer. The options for the `diff' program come from the
Dave Love <fx@gnu.org>
parents:
diff changeset
4997 variable `diff-switches', whose value should be a string.
Dave Love <fx@gnu.org>
parents:
diff changeset
4998
Dave Love <fx@gnu.org>
parents:
diff changeset
4999 The buffer of differences has Compilation mode as its major mode, so you
Dave Love <fx@gnu.org>
parents:
diff changeset
5000 can use C-x ` to visit successive changed locations in the two
Dave Love <fx@gnu.org>
parents:
diff changeset
5001 source files, or you can move to a particular hunk of changes and type
Dave Love <fx@gnu.org>
parents:
diff changeset
5002 C-c C-c to move to the corresponding source. You can also use the
Dave Love <fx@gnu.org>
parents:
diff changeset
5003 other special commands of Compilation mode: SPC and DEL for
Dave Love <fx@gnu.org>
parents:
diff changeset
5004 scrolling, and M-n and M-p for cursor motion.
Dave Love <fx@gnu.org>
parents:
diff changeset
5005
Dave Love <fx@gnu.org>
parents:
diff changeset
5006 M-x diff-backup compares a file with its most recent backup.
Dave Love <fx@gnu.org>
parents:
diff changeset
5007 If you specify the name of a backup file, `diff-backup' compares it
Dave Love <fx@gnu.org>
parents:
diff changeset
5008 with the source file that it is a backup of.
Dave Love <fx@gnu.org>
parents:
diff changeset
5009
Dave Love <fx@gnu.org>
parents:
diff changeset
5010 *** The View commands (such as M-x view-buffer and M-x view-file) no
Dave Love <fx@gnu.org>
parents:
diff changeset
5011 longer use recursive edits; instead, they switch temporarily to a
Dave Love <fx@gnu.org>
parents:
diff changeset
5012 different major mode (View mode) specifically designed for moving
Dave Love <fx@gnu.org>
parents:
diff changeset
5013 around through a buffer without editing it.
Dave Love <fx@gnu.org>
parents:
diff changeset
5014
Dave Love <fx@gnu.org>
parents:
diff changeset
5015 *** Changes in incremental search.
Dave Love <fx@gnu.org>
parents:
diff changeset
5016
Dave Love <fx@gnu.org>
parents:
diff changeset
5017 **** The character to terminate an incremental search is now RET.
Dave Love <fx@gnu.org>
parents:
diff changeset
5018 This is for compatibility with the way most other arguments are read.
Dave Love <fx@gnu.org>
parents:
diff changeset
5019
Dave Love <fx@gnu.org>
parents:
diff changeset
5020 To search for a newline in an incremental search, type LFD (also known
Dave Love <fx@gnu.org>
parents:
diff changeset
5021 as C-j).
Dave Love <fx@gnu.org>
parents:
diff changeset
5022
Dave Love <fx@gnu.org>
parents:
diff changeset
5023 **** Incremental search now maintains a ring of previous search
Dave Love <fx@gnu.org>
parents:
diff changeset
5024 strings. Use M-p and M-n to move through the ring to pick a search
Dave Love <fx@gnu.org>
parents:
diff changeset
5025 string to reuse. These commands leave the selected search ring
Dave Love <fx@gnu.org>
parents:
diff changeset
5026 element in the minibuffer, where you can edit it. Type C-s or C-r to
Dave Love <fx@gnu.org>
parents:
diff changeset
5027 finish editing and search for the chosen string.
Dave Love <fx@gnu.org>
parents:
diff changeset
5028
Dave Love <fx@gnu.org>
parents:
diff changeset
5029 **** If you type an upper case letter in incremental search, that turns
Dave Love <fx@gnu.org>
parents:
diff changeset
5030 off case-folding, so that you get a case-sensitive search.
Dave Love <fx@gnu.org>
parents:
diff changeset
5031
Dave Love <fx@gnu.org>
parents:
diff changeset
5032 **** If you type a space during regexp incremental search, it matches
Dave Love <fx@gnu.org>
parents:
diff changeset
5033 any sequence of whitespace characters. If you want to match just a space,
Dave Love <fx@gnu.org>
parents:
diff changeset
5034 type C-q SPC.
Dave Love <fx@gnu.org>
parents:
diff changeset
5035
Dave Love <fx@gnu.org>
parents:
diff changeset
5036 **** Incremental search is now implemented as a major mode. When you
Dave Love <fx@gnu.org>
parents:
diff changeset
5037 type C-s, it switches temporarily to a different keymap which defines
Dave Love <fx@gnu.org>
parents:
diff changeset
5038 each key to do what it ought to do for incremental search. This has
Dave Love <fx@gnu.org>
parents:
diff changeset
5039 next to no effect on the user-visible behavior of searching, but makes
Dave Love <fx@gnu.org>
parents:
diff changeset
5040 it easier to customize that behavior.
Dave Love <fx@gnu.org>
parents:
diff changeset
5041
Dave Love <fx@gnu.org>
parents:
diff changeset
5042 Emacs 19 eliminates the old variables `search-...-char' that used to
Dave Love <fx@gnu.org>
parents:
diff changeset
5043 be the way to specify the characters to use for various special
Dave Love <fx@gnu.org>
parents:
diff changeset
5044 purposes in incremental search. Instead, you can define the meaning
Dave Love <fx@gnu.org>
parents:
diff changeset
5045 of a character in incremental search by modifying `isearch-mode-map'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5046
Dave Love <fx@gnu.org>
parents:
diff changeset
5047 *** New commands in Buffer Menu mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5048
Dave Love <fx@gnu.org>
parents:
diff changeset
5049 The command C-o now displays the current line's buffer in another
Dave Love <fx@gnu.org>
parents:
diff changeset
5050 window but does not select it. This is like the existing command `o'
Dave Love <fx@gnu.org>
parents:
diff changeset
5051 which selects the current line's buffer in another window.
Dave Love <fx@gnu.org>
parents:
diff changeset
5052
Dave Love <fx@gnu.org>
parents:
diff changeset
5053 The command % toggles the read-only flag of the current line's buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5054
Dave Love <fx@gnu.org>
parents:
diff changeset
5055 The way to switch to a set of several buffers, including those marked
Dave Love <fx@gnu.org>
parents:
diff changeset
5056 with m, is now v. The q command simply quits, replacing the buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
5057 menu buffer with the buffer that was displayed previously.
Dave Love <fx@gnu.org>
parents:
diff changeset
5058
Dave Love <fx@gnu.org>
parents:
diff changeset
5059 ** New major modes and packages.
Dave Love <fx@gnu.org>
parents:
diff changeset
5060
Dave Love <fx@gnu.org>
parents:
diff changeset
5061 *** The news reader GNUS is now installed.
Dave Love <fx@gnu.org>
parents:
diff changeset
5062
Dave Love <fx@gnu.org>
parents:
diff changeset
5063 *** There is a new interface for version control systems, called VC.
Dave Love <fx@gnu.org>
parents:
diff changeset
5064 It works with both RCS and SCCS; in fact, you don't really have to
Dave Love <fx@gnu.org>
parents:
diff changeset
5065 know which one of them is being used, because it automatically deals
Dave Love <fx@gnu.org>
parents:
diff changeset
5066 with either one.
Dave Love <fx@gnu.org>
parents:
diff changeset
5067
Dave Love <fx@gnu.org>
parents:
diff changeset
5068 Most of the time, the only command you have to know about is C-x C-q.
Dave Love <fx@gnu.org>
parents:
diff changeset
5069 This command normally toggles the read-only flag of the current
Dave Love <fx@gnu.org>
parents:
diff changeset
5070 buffer. If the buffer is visiting a file that is maintained with a
Dave Love <fx@gnu.org>
parents:
diff changeset
5071 version control system, the command still toggles read-only, but does
Dave Love <fx@gnu.org>
parents:
diff changeset
5072 so by checking the file in or checking it out.
Dave Love <fx@gnu.org>
parents:
diff changeset
5073
Dave Love <fx@gnu.org>
parents:
diff changeset
5074 When you check a file in, VC asks you for a log entry by popping up a
Dave Love <fx@gnu.org>
parents:
diff changeset
5075 buffer. Edit the entry there, then type C-c C-c when it is ready.
Dave Love <fx@gnu.org>
parents:
diff changeset
5076 That's when the actual checkin happens. If you change your mind about
Dave Love <fx@gnu.org>
parents:
diff changeset
5077 the checkin, simply switch buffers and don't ever go back to the log
Dave Love <fx@gnu.org>
parents:
diff changeset
5078 buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5079
Dave Love <fx@gnu.org>
parents:
diff changeset
5080 To start using version control for a file, use the command C-x v v.
Dave Love <fx@gnu.org>
parents:
diff changeset
5081 This works like C-x C-q (performing the next logical version-control
Dave Love <fx@gnu.org>
parents:
diff changeset
5082 operation needed to change the file's writability) but it will also
Dave Love <fx@gnu.org>
parents:
diff changeset
5083 perform initial checkin on an unregistered file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5084
Dave Love <fx@gnu.org>
parents:
diff changeset
5085 By default, VC uses RCS if RCS is installed on your machine;
Dave Love <fx@gnu.org>
parents:
diff changeset
5086 otherwise, SCCS. If you want to make the choice explicitly, you can do
Dave Love <fx@gnu.org>
parents:
diff changeset
5087 it by setting `vc-default-back-end' to the symbol `RCS' or the symbol
Dave Love <fx@gnu.org>
parents:
diff changeset
5088 `SCCS'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5089
Dave Love <fx@gnu.org>
parents:
diff changeset
5090 You can tell when a file you visit is maintained with version control
Dave Love <fx@gnu.org>
parents:
diff changeset
5091 because either `RCS' or `SCCS' appears in the mode line.
Dave Love <fx@gnu.org>
parents:
diff changeset
5092
Dave Love <fx@gnu.org>
parents:
diff changeset
5093 *** A new Calendar mode has been added, the work of Edward M. Reingold.
Dave Love <fx@gnu.org>
parents:
diff changeset
5094 The mode can display the Gregorian calendar and a variety of other
Dave Love <fx@gnu.org>
parents:
diff changeset
5095 calendars at any date, and interacts with a diary facility similar to
Dave Love <fx@gnu.org>
parents:
diff changeset
5096 the UNIX `calendar' utility.
Dave Love <fx@gnu.org>
parents:
diff changeset
5097
Dave Love <fx@gnu.org>
parents:
diff changeset
5098 *** There is a new major mode for editing binary files: Hexl mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5099 To use it, use M-x hexl-find-file instead of C-x C-f to visit the file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5100 This command converts the file's contents to hexadecimal and lets you
Dave Love <fx@gnu.org>
parents:
diff changeset
5101 edit the translation. When you save the file, it is converted
Dave Love <fx@gnu.org>
parents:
diff changeset
5102 automatically back to binary.
Dave Love <fx@gnu.org>
parents:
diff changeset
5103
Dave Love <fx@gnu.org>
parents:
diff changeset
5104 You can also use M-x hexl-mode to translate an existing buffer into hex.
Dave Love <fx@gnu.org>
parents:
diff changeset
5105 Do this if you have already visited a binary file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5106
Dave Love <fx@gnu.org>
parents:
diff changeset
5107 Hexl mode has a few other commands:
Dave Love <fx@gnu.org>
parents:
diff changeset
5108
Dave Love <fx@gnu.org>
parents:
diff changeset
5109 C-M-d insert a byte with a code typed in decimal.
Dave Love <fx@gnu.org>
parents:
diff changeset
5110 C-M-o insert a byte with a code typed in octal.
Dave Love <fx@gnu.org>
parents:
diff changeset
5111 C-M-x insert a byte with a code typed in hex.
Dave Love <fx@gnu.org>
parents:
diff changeset
5112
Dave Love <fx@gnu.org>
parents:
diff changeset
5113 C-x [ move to the beginning of a 1k-byte "page".
Dave Love <fx@gnu.org>
parents:
diff changeset
5114 C-x ] move to the end of a 1k-byte "page".
Dave Love <fx@gnu.org>
parents:
diff changeset
5115
Dave Love <fx@gnu.org>
parents:
diff changeset
5116 M-g go to an address specified in hex.
Dave Love <fx@gnu.org>
parents:
diff changeset
5117 M-j go to an address specified in decimal.
Dave Love <fx@gnu.org>
parents:
diff changeset
5118
Dave Love <fx@gnu.org>
parents:
diff changeset
5119 C-c C-c leave hexl mode and go back to the previous major mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5120
Dave Love <fx@gnu.org>
parents:
diff changeset
5121 *** Miscellaneous new major modes include Awk mode, Icon mode, Makefile
Dave Love <fx@gnu.org>
parents:
diff changeset
5122 mode, Perl mode and SGML mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5123
Dave Love <fx@gnu.org>
parents:
diff changeset
5124 *** Edebug, a new source-level debugger for Emacs Lisp functions.
Dave Love <fx@gnu.org>
parents:
diff changeset
5125
Dave Love <fx@gnu.org>
parents:
diff changeset
5126 To use Edebug, use the command M-x edebug-defun to "evaluate" a
Dave Love <fx@gnu.org>
parents:
diff changeset
5127 function definition in an Emacs Lisp file. We put "evaluate" in
Dave Love <fx@gnu.org>
parents:
diff changeset
5128 quotation marks because it doesn't just evaluate the function, it also
Dave Love <fx@gnu.org>
parents:
diff changeset
5129 inserts additional information to support source-level debugging.
Dave Love <fx@gnu.org>
parents:
diff changeset
5130
Dave Love <fx@gnu.org>
parents:
diff changeset
5131 You must also do
Dave Love <fx@gnu.org>
parents:
diff changeset
5132
Dave Love <fx@gnu.org>
parents:
diff changeset
5133 (setq debugger 'edebug-debug)
Dave Love <fx@gnu.org>
parents:
diff changeset
5134
Dave Love <fx@gnu.org>
parents:
diff changeset
5135 to cause errors and single-stepping to use Edebug instead of the usual
Dave Love <fx@gnu.org>
parents:
diff changeset
5136 Emacs Lisp debugger.
Dave Love <fx@gnu.org>
parents:
diff changeset
5137
Dave Love <fx@gnu.org>
parents:
diff changeset
5138 For more information, see the Edebug manual, which should be included
Dave Love <fx@gnu.org>
parents:
diff changeset
5139 in the Emacs distribution.
Dave Love <fx@gnu.org>
parents:
diff changeset
5140
Dave Love <fx@gnu.org>
parents:
diff changeset
5141 *** C++ mode is like C mode, except that it understands C++ comment syntax
Dave Love <fx@gnu.org>
parents:
diff changeset
5142 and certain other differences between C and C++. It also has a command
Dave Love <fx@gnu.org>
parents:
diff changeset
5143 `fill-c++-comment' which fills a paragraph made of comment lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
5144
Dave Love <fx@gnu.org>
parents:
diff changeset
5145 The command `comment-region' is useful in C++ mode for commenting out
Dave Love <fx@gnu.org>
parents:
diff changeset
5146 several consecutive lines, or removing the commenting out of such lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
5147
Dave Love <fx@gnu.org>
parents:
diff changeset
5148 *** A new package for merging two variants of the same text.
Dave Love <fx@gnu.org>
parents:
diff changeset
5149
Dave Love <fx@gnu.org>
parents:
diff changeset
5150 It's not unusual for programmers to get their signals crossed and
Dave Love <fx@gnu.org>
parents:
diff changeset
5151 modify the same program in two different directions. Then somebody
Dave Love <fx@gnu.org>
parents:
diff changeset
5152 has to merge the two versions. The command `emerge-files' makes this
Dave Love <fx@gnu.org>
parents:
diff changeset
5153 easier.
Dave Love <fx@gnu.org>
parents:
diff changeset
5154
Dave Love <fx@gnu.org>
parents:
diff changeset
5155 `emerge-files' reads two file names and compares them. Then it
Dave Love <fx@gnu.org>
parents:
diff changeset
5156 displays three buffers: one for each file, and one for the
Dave Love <fx@gnu.org>
parents:
diff changeset
5157 differences.
Dave Love <fx@gnu.org>
parents:
diff changeset
5158
Dave Love <fx@gnu.org>
parents:
diff changeset
5159 If the original version of the file is available, you can make things
Dave Love <fx@gnu.org>
parents:
diff changeset
5160 even easier using `emerge-files-with-ancestor'. It reads three file
Dave Love <fx@gnu.org>
parents:
diff changeset
5161 names--variant 1, variant 2, and the common ancestor--and uses diff3
Dave Love <fx@gnu.org>
parents:
diff changeset
5162 to compare them.
Dave Love <fx@gnu.org>
parents:
diff changeset
5163
Dave Love <fx@gnu.org>
parents:
diff changeset
5164 You control the merging interactively. The main loop of Emerge
Dave Love <fx@gnu.org>
parents:
diff changeset
5165 consists of showing you one set of differences, asking you what to do
Dave Love <fx@gnu.org>
parents:
diff changeset
5166 about them, and doing it. You have a choice of two modes for giving
Dave Love <fx@gnu.org>
parents:
diff changeset
5167 directions to Emerge: "fast" mode and "edit" mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5168
Dave Love <fx@gnu.org>
parents:
diff changeset
5169 In Fast mode, Emerge commands are single characters, and ordinary
Dave Love <fx@gnu.org>
parents:
diff changeset
5170 Emacs commands are disabled. This makes Emerge operations fast, but
Dave Love <fx@gnu.org>
parents:
diff changeset
5171 prevents you from doing more than selecting the A or the B version of
Dave Love <fx@gnu.org>
parents:
diff changeset
5172 differences. In Edit mode, all emerge commands use the C-c prefix,
Dave Love <fx@gnu.org>
parents:
diff changeset
5173 and the usual Emacs commands are available. This allows editing the
Dave Love <fx@gnu.org>
parents:
diff changeset
5174 merge buffer, but slows down Emerge operations. Edit and fast modes
Dave Love <fx@gnu.org>
parents:
diff changeset
5175 are indicated by `F' and `E' in the minor modes in the mode line.
Dave Love <fx@gnu.org>
parents:
diff changeset
5176
Dave Love <fx@gnu.org>
parents:
diff changeset
5177 The Emerge commands are:
Dave Love <fx@gnu.org>
parents:
diff changeset
5178
Dave Love <fx@gnu.org>
parents:
diff changeset
5179 p go to the previous difference
Dave Love <fx@gnu.org>
parents:
diff changeset
5180 n go to the next difference
Dave Love <fx@gnu.org>
parents:
diff changeset
5181 a select the A version of this difference
Dave Love <fx@gnu.org>
parents:
diff changeset
5182 b select the B version of this difference
Dave Love <fx@gnu.org>
parents:
diff changeset
5183 j go to a particular difference (prefix argument
Dave Love <fx@gnu.org>
parents:
diff changeset
5184 specifies which difference) (0j suppresses display of
Dave Love <fx@gnu.org>
parents:
diff changeset
5185 the flags)
Dave Love <fx@gnu.org>
parents:
diff changeset
5186 q quit - finish the merge*
Dave Love <fx@gnu.org>
parents:
diff changeset
5187 f go into fast mode
Dave Love <fx@gnu.org>
parents:
diff changeset
5188 e go into edit mode
Dave Love <fx@gnu.org>
parents:
diff changeset
5189 l recenter (C-l) all three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5190 - and 0 through 9
Dave Love <fx@gnu.org>
parents:
diff changeset
5191 prefix numeric arguments
Dave Love <fx@gnu.org>
parents:
diff changeset
5192 d a select the A version as the default from here down in
Dave Love <fx@gnu.org>
parents:
diff changeset
5193 the merge buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5194 d b select the B version as the default from here down in
Dave Love <fx@gnu.org>
parents:
diff changeset
5195 the merge buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5196 c a copy the A version of the difference into the kill
Dave Love <fx@gnu.org>
parents:
diff changeset
5197 ring
Dave Love <fx@gnu.org>
parents:
diff changeset
5198 c b copy the B version of the difference into the kill
Dave Love <fx@gnu.org>
parents:
diff changeset
5199 ring
Dave Love <fx@gnu.org>
parents:
diff changeset
5200 i a insert the A version of the difference at the point
Dave Love <fx@gnu.org>
parents:
diff changeset
5201 i b insert the B version of the difference at the point
Dave Love <fx@gnu.org>
parents:
diff changeset
5202 m put the point and mark around the difference region
Dave Love <fx@gnu.org>
parents:
diff changeset
5203 ^ scroll-down (like M-v) the three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5204 v scroll-up (like C-v) the three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5205 < scroll-left (like C-x <) the three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5206 > scroll-right (like C-x >) the three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5207 | reset horizontal scroll on the three windows*
Dave Love <fx@gnu.org>
parents:
diff changeset
5208 x 1 shrink the merge window to one line (use C-u l to restore it
Dave Love <fx@gnu.org>
parents:
diff changeset
5209 to full size)
Dave Love <fx@gnu.org>
parents:
diff changeset
5210 x a find the difference containing a location in the A buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5211 x b find the difference containing a location in the B buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5212 x c combine the two versions of this difference*
Dave Love <fx@gnu.org>
parents:
diff changeset
5213 x C combine the two versions of this difference, using a
Dave Love <fx@gnu.org>
parents:
diff changeset
5214 register's value as the template*
Dave Love <fx@gnu.org>
parents:
diff changeset
5215 x d find the difference containing a location in the merge buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5216 x f show the files/buffers Emerge is operating on in Help window
Dave Love <fx@gnu.org>
parents:
diff changeset
5217 (use C-u l to restore windows)
Dave Love <fx@gnu.org>
parents:
diff changeset
5218 x j join this difference with the following one
Dave Love <fx@gnu.org>
parents:
diff changeset
5219 (C-u x j joins this difference with the previous one)
Dave Love <fx@gnu.org>
parents:
diff changeset
5220 x l show line numbers of points in A, B, and merge buffers
Dave Love <fx@gnu.org>
parents:
diff changeset
5221 x m change major mode of merge buffer*
Dave Love <fx@gnu.org>
parents:
diff changeset
5222 x s split this difference into two differences
Dave Love <fx@gnu.org>
parents:
diff changeset
5223 (first position the point in all three buffers to the places
Dave Love <fx@gnu.org>
parents:
diff changeset
5224 to split the difference)
Dave Love <fx@gnu.org>
parents:
diff changeset
5225 x t trim identical lines off top and bottom of difference
Dave Love <fx@gnu.org>
parents:
diff changeset
5226 (such lines occur when the A and B versions are
Dave Love <fx@gnu.org>
parents:
diff changeset
5227 identical but differ from the ancestor version)
Dave Love <fx@gnu.org>
parents:
diff changeset
5228 x x set the template for the x c command*
Dave Love <fx@gnu.org>
parents:
diff changeset
5229
Dave Love <fx@gnu.org>
parents:
diff changeset
5230 Normally, the merged output goes back in the first file specified.
Dave Love <fx@gnu.org>
parents:
diff changeset
5231 If you use a prefix argument, Emerge reads another file name to use
Dave Love <fx@gnu.org>
parents:
diff changeset
5232 for the output file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5233
Dave Love <fx@gnu.org>
parents:
diff changeset
5234 Once Emerge has prepared the buffer of differences, it runs the hooks
Dave Love <fx@gnu.org>
parents:
diff changeset
5235 in `emerge-startup-hooks'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5236
Dave Love <fx@gnu.org>
parents:
diff changeset
5237 *** Asm mode is a new major mode for editing files of assembler code.
Dave Love <fx@gnu.org>
parents:
diff changeset
5238 It defines these commands:
Dave Love <fx@gnu.org>
parents:
diff changeset
5239
Dave Love <fx@gnu.org>
parents:
diff changeset
5240 TAB tab-to-tab-stop.
Dave Love <fx@gnu.org>
parents:
diff changeset
5241 LFD Insert a newline and then indent using tab-to-tab-stop.
Dave Love <fx@gnu.org>
parents:
diff changeset
5242 : Insert a colon and then remove the indentation
Dave Love <fx@gnu.org>
parents:
diff changeset
5243 from before the label preceding colon. Then tab-to-tab-stop.
Dave Love <fx@gnu.org>
parents:
diff changeset
5244 ; Insert or align a comment.
Dave Love <fx@gnu.org>
parents:
diff changeset
5245
Dave Love <fx@gnu.org>
parents:
diff changeset
5246 *** Two-column mode lets you conveniently edit two side-by-side columns
Dave Love <fx@gnu.org>
parents:
diff changeset
5247 of text. It works using two side-by-side windows, each showing its
Dave Love <fx@gnu.org>
parents:
diff changeset
5248 own buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5249
Dave Love <fx@gnu.org>
parents:
diff changeset
5250 Here are three ways to enter two-column mode:
Dave Love <fx@gnu.org>
parents:
diff changeset
5251
Dave Love <fx@gnu.org>
parents:
diff changeset
5252 C-x 6 2 makes the current buffer into the left-hand buffer. In the
Dave Love <fx@gnu.org>
parents:
diff changeset
5253 right-hand window it puts a buffer whose name is based on the current
Dave Love <fx@gnu.org>
parents:
diff changeset
5254 buffer's name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5255
Dave Love <fx@gnu.org>
parents:
diff changeset
5256 C-x 6 b BUFFER RET makes the current buffer into the left-hand buffer,
Dave Love <fx@gnu.org>
parents:
diff changeset
5257 and uses buffer BUFFER as the right-hand buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5258
Dave Love <fx@gnu.org>
parents:
diff changeset
5259 C-x 6 s splits the current buffer, which contains two-column text,
Dave Love <fx@gnu.org>
parents:
diff changeset
5260 into two side-by-side buffers. The old current buffer becomes the
Dave Love <fx@gnu.org>
parents:
diff changeset
5261 left-hand buffer, but the text in the right column is moved into the
Dave Love <fx@gnu.org>
parents:
diff changeset
5262 right-hand buffer. The current column specifies the split point.
Dave Love <fx@gnu.org>
parents:
diff changeset
5263 Splitting starts with the current line and continues to the end of the
Dave Love <fx@gnu.org>
parents:
diff changeset
5264 buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5265
Dave Love <fx@gnu.org>
parents:
diff changeset
5266 C-x 6 s takes a prefix argument which specifies how many characters
Dave Love <fx@gnu.org>
parents:
diff changeset
5267 before point constitute the column separator. (The default argument
Dave Love <fx@gnu.org>
parents:
diff changeset
5268 is 1, as usual, so by default the column separator is the character
Dave Love <fx@gnu.org>
parents:
diff changeset
5269 before point.) Lines that don't have the column separator at the
Dave Love <fx@gnu.org>
parents:
diff changeset
5270 proper place remain unsplit; they stay in the left-hand buffer, and
Dave Love <fx@gnu.org>
parents:
diff changeset
5271 the right-hand buffer gets an empty line to correspond.
Dave Love <fx@gnu.org>
parents:
diff changeset
5272
Dave Love <fx@gnu.org>
parents:
diff changeset
5273 You can scroll both buffers together using C-x 6 SPC (scroll up), C-x
Dave Love <fx@gnu.org>
parents:
diff changeset
5274 6 DEL (scroll down), and C-x 6 RET (scroll up one line). C-x 6 C-l
Dave Love <fx@gnu.org>
parents:
diff changeset
5275 recenters both buffers together.
Dave Love <fx@gnu.org>
parents:
diff changeset
5276
Dave Love <fx@gnu.org>
parents:
diff changeset
5277 If you want to make a line which will span both columns, put it in
Dave Love <fx@gnu.org>
parents:
diff changeset
5278 the left-hand buffer, with an empty line in the corresponding place in
Dave Love <fx@gnu.org>
parents:
diff changeset
5279 the right-hand buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5280
Dave Love <fx@gnu.org>
parents:
diff changeset
5281 When you have edited both buffers as you wish, merge them with C-x 6
Dave Love <fx@gnu.org>
parents:
diff changeset
5282 1. This copies the text from the right-hand buffer as a second column
Dave Love <fx@gnu.org>
parents:
diff changeset
5283 in the other buffer. To go back to two-column editing, use C-x 6 s.
Dave Love <fx@gnu.org>
parents:
diff changeset
5284
Dave Love <fx@gnu.org>
parents:
diff changeset
5285 Use C-x 6 d to disassociate the two buffers, leaving each as it
Dave Love <fx@gnu.org>
parents:
diff changeset
5286 stands. (If the other buffer, the one that was not current when you
Dave Love <fx@gnu.org>
parents:
diff changeset
5287 type C-x 6 d, is empty, C-x 6 d kills it.)
Dave Love <fx@gnu.org>
parents:
diff changeset
5288
Dave Love <fx@gnu.org>
parents:
diff changeset
5289 *** You can supply command arguments such as files to visit to an Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
5290 that is already running. To do this, you must do this in your .emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
5291 file:
Dave Love <fx@gnu.org>
parents:
diff changeset
5292 (add-hook 'suspend-hook 'resume-suspend-hook)
Dave Love <fx@gnu.org>
parents:
diff changeset
5293 Also you must use the shellscript emacs.csh or emacs.sh, found in the
Dave Love <fx@gnu.org>
parents:
diff changeset
5294 etc subdirectory.
Dave Love <fx@gnu.org>
parents:
diff changeset
5295
Dave Love <fx@gnu.org>
parents:
diff changeset
5296 *** Shell mode has been completely replaced.
Dave Love <fx@gnu.org>
parents:
diff changeset
5297 The basic idea is the same, but there are new commands available in
Dave Love <fx@gnu.org>
parents:
diff changeset
5298 this mode.
Dave Love <fx@gnu.org>
parents:
diff changeset
5299
Dave Love <fx@gnu.org>
parents:
diff changeset
5300 TAB now completes the file name before point in the shell buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5301 To get a list of all possible completions, type M-?.
Dave Love <fx@gnu.org>
parents:
diff changeset
5302
Dave Love <fx@gnu.org>
parents:
diff changeset
5303 There is a new convenient history mechanism for repeating previous
Dave Love <fx@gnu.org>
parents:
diff changeset
5304 commands. Use the command M-p to recall the last command; it copies
Dave Love <fx@gnu.org>
parents:
diff changeset
5305 the text of that command to the place where you are editing. If you
Dave Love <fx@gnu.org>
parents:
diff changeset
5306 repeat M-p, it replaces the copied command with the previous command.
Dave Love <fx@gnu.org>
parents:
diff changeset
5307 M-n is similar but goes in the opposite direction towards the present.
Dave Love <fx@gnu.org>
parents:
diff changeset
5308 When you find the command you wanted, you can edit it, or just
Dave Love <fx@gnu.org>
parents:
diff changeset
5309 resubmit it by typing RET.
Dave Love <fx@gnu.org>
parents:
diff changeset
5310
Dave Love <fx@gnu.org>
parents:
diff changeset
5311 You can also use M-r and M-s to search for (respectively) earlier or
Dave Love <fx@gnu.org>
parents:
diff changeset
5312 later inputs starting with a given string. First type the string,
Dave Love <fx@gnu.org>
parents:
diff changeset
5313 then type M-r to yank a previous input from the history which starts
Dave Love <fx@gnu.org>
parents:
diff changeset
5314 with that string. You can repeat M-r to find successively earlier
Dave Love <fx@gnu.org>
parents:
diff changeset
5315 inputs starting with the same string. You can start moving in the
Dave Love <fx@gnu.org>
parents:
diff changeset
5316 opposite direction (toward more recent inputs) by typing M-s instead
Dave Love <fx@gnu.org>
parents:
diff changeset
5317 of M-r. As long as you don't use any commands except M-r and M-s,
Dave Love <fx@gnu.org>
parents:
diff changeset
5318 they keep using the same string that you had entered initially.
Dave Love <fx@gnu.org>
parents:
diff changeset
5319
Dave Love <fx@gnu.org>
parents:
diff changeset
5320 C-c C-o kills the last batch of output from a shell command. This is
Dave Love <fx@gnu.org>
parents:
diff changeset
5321 useful if a shell command spews out lots of output that just gets in
Dave Love <fx@gnu.org>
parents:
diff changeset
5322 the way.
Dave Love <fx@gnu.org>
parents:
diff changeset
5323
Dave Love <fx@gnu.org>
parents:
diff changeset
5324 C-c C-r scrolls to display the beginning of the last batch of output
Dave Love <fx@gnu.org>
parents:
diff changeset
5325 at the top of the window; it also moves the cursor there.
Dave Love <fx@gnu.org>
parents:
diff changeset
5326
Dave Love <fx@gnu.org>
parents:
diff changeset
5327 C-a on a line that starts with a shell prompt moves to the end of the
Dave Love <fx@gnu.org>
parents:
diff changeset
5328 prompt, not to the very beginning of the line.
Dave Love <fx@gnu.org>
parents:
diff changeset
5329
Dave Love <fx@gnu.org>
parents:
diff changeset
5330 C-d typed at the end of the shell buffer sends EOF to the subshell.
Dave Love <fx@gnu.org>
parents:
diff changeset
5331 At any other position in the buffer, it deletes a character as usual.
Dave Love <fx@gnu.org>
parents:
diff changeset
5332
Dave Love <fx@gnu.org>
parents:
diff changeset
5333 If Emacs gets confused while trying to track changes in the shell's
Dave Love <fx@gnu.org>
parents:
diff changeset
5334 current directory, type M-x dirs to re-synchronize.
Dave Love <fx@gnu.org>
parents:
diff changeset
5335
Dave Love <fx@gnu.org>
parents:
diff changeset
5336 M-x send-invisible reads a line of text without echoing it, and
Dave Love <fx@gnu.org>
parents:
diff changeset
5337 sends it to the shell.
Dave Love <fx@gnu.org>
parents:
diff changeset
5338
Dave Love <fx@gnu.org>
parents:
diff changeset
5339 If you accidentally suspend your process, use M-x comint-continue-subjob
Dave Love <fx@gnu.org>
parents:
diff changeset
5340 to continue it.
Dave Love <fx@gnu.org>
parents:
diff changeset
5341
Dave Love <fx@gnu.org>
parents:
diff changeset
5342 *** There is now a convenient way to enable flow control on terminals
Dave Love <fx@gnu.org>
parents:
diff changeset
5343 where you can't win without it. Suppose you want to do this on
Dave Love <fx@gnu.org>
parents:
diff changeset
5344 VT-100 and H19 terminals; put the following in your `.emacs' file:
Dave Love <fx@gnu.org>
parents:
diff changeset
5345
Dave Love <fx@gnu.org>
parents:
diff changeset
5346 (enable-flow-control-on "vt100" "h19")
Dave Love <fx@gnu.org>
parents:
diff changeset
5347
Dave Love <fx@gnu.org>
parents:
diff changeset
5348 When flow control is enabled, you must type C-\ to get the effect of a
Dave Love <fx@gnu.org>
parents:
diff changeset
5349 C-s, and type C-^ to get the effect of a C-q.
Dave Love <fx@gnu.org>
parents:
diff changeset
5350
Dave Love <fx@gnu.org>
parents:
diff changeset
5351 The function `enable-flow-control' enables flow control unconditionally.
Dave Love <fx@gnu.org>
parents:
diff changeset
5352
Dave Love <fx@gnu.org>
parents:
diff changeset
5353 ** Changes in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
5354
Dave Love <fx@gnu.org>
parents:
diff changeset
5355 Dired has many new features which allow you to do these things:
Dave Love <fx@gnu.org>
parents:
diff changeset
5356
Dave Love <fx@gnu.org>
parents:
diff changeset
5357 - Rename, copy, or make links to many files at once.
Dave Love <fx@gnu.org>
parents:
diff changeset
5358
Dave Love <fx@gnu.org>
parents:
diff changeset
5359 - Make distinguishable types of marks for different operations.
Dave Love <fx@gnu.org>
parents:
diff changeset
5360
Dave Love <fx@gnu.org>
parents:
diff changeset
5361 - Display contents of subdirectories in the same Dired buffer as the
Dave Love <fx@gnu.org>
parents:
diff changeset
5362 parent directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
5363
Dave Love <fx@gnu.org>
parents:
diff changeset
5364 *** Setting and Clearing Marks
Dave Love <fx@gnu.org>
parents:
diff changeset
5365
Dave Love <fx@gnu.org>
parents:
diff changeset
5366 There are now two kinds of marker that you can put on a file in Dired:
Dave Love <fx@gnu.org>
parents:
diff changeset
5367 `D' for deletion, and `*' for any other kind of operation.
Dave Love <fx@gnu.org>
parents:
diff changeset
5368 The `x' command deletes only files marked with `D', and most
Dave Love <fx@gnu.org>
parents:
diff changeset
5369 other Dired commands operate only on the files marked with `*'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5370
Dave Love <fx@gnu.org>
parents:
diff changeset
5371 To mark files with `D' (also called "flagging" the files), you
Dave Love <fx@gnu.org>
parents:
diff changeset
5372 can use `d' as usual. Here are some commands for marking with
Dave Love <fx@gnu.org>
parents:
diff changeset
5373 `*' (and also for unmarking):
Dave Love <fx@gnu.org>
parents:
diff changeset
5374
Dave Love <fx@gnu.org>
parents:
diff changeset
5375 **** `m' marks the current file with `*', for an operation other than
Dave Love <fx@gnu.org>
parents:
diff changeset
5376 deletion.
Dave Love <fx@gnu.org>
parents:
diff changeset
5377
Dave Love <fx@gnu.org>
parents:
diff changeset
5378 **** `*' marks all executable files. With a prefix argument, it
Dave Love <fx@gnu.org>
parents:
diff changeset
5379 unmarks all those files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5380
Dave Love <fx@gnu.org>
parents:
diff changeset
5381 **** `@' marks all symbolic links. With a prefix argument, it unmarks
Dave Love <fx@gnu.org>
parents:
diff changeset
5382 all those files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5383
Dave Love <fx@gnu.org>
parents:
diff changeset
5384 **** `/' marks all directory files except `.' and `..'. With a prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
5385 argument, it unmarks all those files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5386
Dave Love <fx@gnu.org>
parents:
diff changeset
5387 **** M-DEL removes a specific or all marks from every file. With an
Dave Love <fx@gnu.org>
parents:
diff changeset
5388 argument, queries for each marked file. Type your help character,
Dave Love <fx@gnu.org>
parents:
diff changeset
5389 usually C-h, at that time for help.
Dave Love <fx@gnu.org>
parents:
diff changeset
5390
Dave Love <fx@gnu.org>
parents:
diff changeset
5391 **** `c' replaces all marks that use the character OLD with marks that
Dave Love <fx@gnu.org>
parents:
diff changeset
5392 use the character NEW. You can use almost any character as a mark
Dave Love <fx@gnu.org>
parents:
diff changeset
5393 character by means of this command, to distinguish various classes of
Dave Love <fx@gnu.org>
parents:
diff changeset
5394 files. If OLD is ` ', then the command operates on all unmarked
Dave Love <fx@gnu.org>
parents:
diff changeset
5395 files; if NEW is ` ', then the command unmarks the files it acts on.
Dave Love <fx@gnu.org>
parents:
diff changeset
5396
Dave Love <fx@gnu.org>
parents:
diff changeset
5397 *** Operating on Multiple Files
Dave Love <fx@gnu.org>
parents:
diff changeset
5398
Dave Love <fx@gnu.org>
parents:
diff changeset
5399 The Dired commands to operate directly on files (rename them, copy
Dave Love <fx@gnu.org>
parents:
diff changeset
5400 them, and so on) have been generalized to work on multiple files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5401 There are also some additional commands in this series.
Dave Love <fx@gnu.org>
parents:
diff changeset
5402
Dave Love <fx@gnu.org>
parents:
diff changeset
5403 All of these commands use the same convention to decide which files to
Dave Love <fx@gnu.org>
parents:
diff changeset
5404 manipulate:
Dave Love <fx@gnu.org>
parents:
diff changeset
5405
Dave Love <fx@gnu.org>
parents:
diff changeset
5406 - If you give the command a numeric prefix argument @var{n}, it operates
Dave Love <fx@gnu.org>
parents:
diff changeset
5407 on the next @var{n} files, starting with the current file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5408
Dave Love <fx@gnu.org>
parents:
diff changeset
5409 - Otherwise, if there are marked files, the commands operate on all the
Dave Love <fx@gnu.org>
parents:
diff changeset
5410 marked files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5411
Dave Love <fx@gnu.org>
parents:
diff changeset
5412 - Otherwise, the command operates on the current file only.
Dave Love <fx@gnu.org>
parents:
diff changeset
5413
Dave Love <fx@gnu.org>
parents:
diff changeset
5414 These are the commands:
Dave Love <fx@gnu.org>
parents:
diff changeset
5415
Dave Love <fx@gnu.org>
parents:
diff changeset
5416 **** `C' copies the specified files. You must specify a directory to
Dave Love <fx@gnu.org>
parents:
diff changeset
5417 copy into, or (if copying a single file) a new name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5418
Dave Love <fx@gnu.org>
parents:
diff changeset
5419 If `dired-copy-preserve-time' is non-`nil', then copying sets
Dave Love <fx@gnu.org>
parents:
diff changeset
5420 the modification time of the new file to be the same as that of the old
Dave Love <fx@gnu.org>
parents:
diff changeset
5421 file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5422
Dave Love <fx@gnu.org>
parents:
diff changeset
5423 **** `R' renames the specified files. You must specify a directory to
Dave Love <fx@gnu.org>
parents:
diff changeset
5424 rename into, or (if renaming a single file) a new name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5425
Dave Love <fx@gnu.org>
parents:
diff changeset
5426 Dired automatically changes the visited file name of buffers associated
Dave Love <fx@gnu.org>
parents:
diff changeset
5427 with renamed files so that they refer to the new names.
Dave Love <fx@gnu.org>
parents:
diff changeset
5428
Dave Love <fx@gnu.org>
parents:
diff changeset
5429 **** `H' makes hard links to the specified files. You must specify a
Dave Love <fx@gnu.org>
parents:
diff changeset
5430 directory to make the links in, or (if making just one link) the name
Dave Love <fx@gnu.org>
parents:
diff changeset
5431 to give the link.
Dave Love <fx@gnu.org>
parents:
diff changeset
5432
Dave Love <fx@gnu.org>
parents:
diff changeset
5433 **** `S' makes symbolic links to the specified files. You must specify
Dave Love <fx@gnu.org>
parents:
diff changeset
5434 a directory to make the links in, or (if making just one link) the
Dave Love <fx@gnu.org>
parents:
diff changeset
5435 name to give the link.
Dave Love <fx@gnu.org>
parents:
diff changeset
5436
Dave Love <fx@gnu.org>
parents:
diff changeset
5437 **** `M' changes the mode of the specified files. This calls the
Dave Love <fx@gnu.org>
parents:
diff changeset
5438 `chmod' program, so you can describe the desired mode change with any
Dave Love <fx@gnu.org>
parents:
diff changeset
5439 argument that `chmod' would handle.
Dave Love <fx@gnu.org>
parents:
diff changeset
5440
Dave Love <fx@gnu.org>
parents:
diff changeset
5441 **** `G' changes the group of the specified files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5442
Dave Love <fx@gnu.org>
parents:
diff changeset
5443 **** `O' changes the owner of the specified files. (On normal systems,
Dave Love <fx@gnu.org>
parents:
diff changeset
5444 only the superuser can do this.)
Dave Love <fx@gnu.org>
parents:
diff changeset
5445
Dave Love <fx@gnu.org>
parents:
diff changeset
5446 The variable `dired-chown-program' specifies the name of the
Dave Love <fx@gnu.org>
parents:
diff changeset
5447 program to use to do the work (different systems put `chown' in
Dave Love <fx@gnu.org>
parents:
diff changeset
5448 different places.
Dave Love <fx@gnu.org>
parents:
diff changeset
5449
Dave Love <fx@gnu.org>
parents:
diff changeset
5450 **** `Z' compresses or uncompresses the specified files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5451
Dave Love <fx@gnu.org>
parents:
diff changeset
5452 **** `L' loads the specified Emacs Lisp files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5453
Dave Love <fx@gnu.org>
parents:
diff changeset
5454 **** `B' byte compiles the specified Emacs Lisp files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5455
Dave Love <fx@gnu.org>
parents:
diff changeset
5456 **** `P' prints the specified files. It uses the variables
Dave Love <fx@gnu.org>
parents:
diff changeset
5457 `lpr-command' and `lpr-switches' just as `lpr-file' does.
Dave Love <fx@gnu.org>
parents:
diff changeset
5458
Dave Love <fx@gnu.org>
parents:
diff changeset
5459 *** Shell Commands in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
5460
Dave Love <fx@gnu.org>
parents:
diff changeset
5461 `!' reads a shell command string in the minibuffer and runs the shell
Dave Love <fx@gnu.org>
parents:
diff changeset
5462 command on all the specified files. There are two ways of applying a
Dave Love <fx@gnu.org>
parents:
diff changeset
5463 shell command to multiple files:
Dave Love <fx@gnu.org>
parents:
diff changeset
5464
Dave Love <fx@gnu.org>
parents:
diff changeset
5465 - If you use `*' in the command, then the shell command runs just
Dave Love <fx@gnu.org>
parents:
diff changeset
5466 once, with the list of file names substituted for the `*'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5467
Dave Love <fx@gnu.org>
parents:
diff changeset
5468 Thus, `! tar cf foo.tar * RET' runs `tar' on the entire list of file
Dave Love <fx@gnu.org>
parents:
diff changeset
5469 names, putting them into one tar file `foo.tar'. The file names are
Dave Love <fx@gnu.org>
parents:
diff changeset
5470 inserted in the order that they appear in the Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5471
Dave Love <fx@gnu.org>
parents:
diff changeset
5472 - If the command string doesn't contain `*', then it runs once for
Dave Love <fx@gnu.org>
parents:
diff changeset
5473 each file, with the file name attached at the end. For example, `!
Dave Love <fx@gnu.org>
parents:
diff changeset
5474 uudecode RET' runs `uudecode' on each file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5475
Dave Love <fx@gnu.org>
parents:
diff changeset
5476 To run the shell command once for each file but without being limited
Dave Love <fx@gnu.org>
parents:
diff changeset
5477 to putting the file name inserted in the middle, use a shell loop.
Dave Love <fx@gnu.org>
parents:
diff changeset
5478 For example, this shell command would run `uuencode' on each of the
Dave Love <fx@gnu.org>
parents:
diff changeset
5479 specified files, writing the output into a corresponding `.uu' file:
Dave Love <fx@gnu.org>
parents:
diff changeset
5480
Dave Love <fx@gnu.org>
parents:
diff changeset
5481 for file in *; uuencode $file $file >$file.uu; done
Dave Love <fx@gnu.org>
parents:
diff changeset
5482
Dave Love <fx@gnu.org>
parents:
diff changeset
5483 The working directory for the shell command is the top level directory
Dave Love <fx@gnu.org>
parents:
diff changeset
5484 of the Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5485
Dave Love <fx@gnu.org>
parents:
diff changeset
5486 *** Regular Expression File Name Substitution
Dave Love <fx@gnu.org>
parents:
diff changeset
5487
Dave Love <fx@gnu.org>
parents:
diff changeset
5488 **** `% m REGEXP RET' marks all files whose names match the regular
Dave Love <fx@gnu.org>
parents:
diff changeset
5489 expression REGEXP.
Dave Love <fx@gnu.org>
parents:
diff changeset
5490
Dave Love <fx@gnu.org>
parents:
diff changeset
5491 Only the non-directory part of the file name is used in matching. Use
Dave Love <fx@gnu.org>
parents:
diff changeset
5492 `^' and `$' to anchor matches. Exclude subdirs by hiding them.
Dave Love <fx@gnu.org>
parents:
diff changeset
5493
Dave Love <fx@gnu.org>
parents:
diff changeset
5494 **** `% d REGEXP RET' flags for deletion all files whose names match
Dave Love <fx@gnu.org>
parents:
diff changeset
5495 the regular expression REGEXP.
Dave Love <fx@gnu.org>
parents:
diff changeset
5496
Dave Love <fx@gnu.org>
parents:
diff changeset
5497 **** `% R', `% C', `% H', `% S'
Dave Love <fx@gnu.org>
parents:
diff changeset
5498
Dave Love <fx@gnu.org>
parents:
diff changeset
5499 These four commands rename, copy, make hard links and make soft links,
Dave Love <fx@gnu.org>
parents:
diff changeset
5500 in each case computing the new name by regular expression substitution
Dave Love <fx@gnu.org>
parents:
diff changeset
5501 from the name of the old file. They effectively perform
Dave Love <fx@gnu.org>
parents:
diff changeset
5502 `query-replace-regexp' on the selected file names in the Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5503
Dave Love <fx@gnu.org>
parents:
diff changeset
5504 The commands read two arguments: a regular expression, and a
Dave Love <fx@gnu.org>
parents:
diff changeset
5505 substitution pattern. Each selected file name is matched against the
Dave Love <fx@gnu.org>
parents:
diff changeset
5506 regular expression, and then the part which matched is replaced with
Dave Love <fx@gnu.org>
parents:
diff changeset
5507 the substitution pattern. You can use `\&' and `\DIGIT' in the
Dave Love <fx@gnu.org>
parents:
diff changeset
5508 substitution pattern to refer to all or part of the old file name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5509
Dave Love <fx@gnu.org>
parents:
diff changeset
5510 If the regular expression matches more than once in a file name,
Dave Love <fx@gnu.org>
parents:
diff changeset
5511 only the first match is replaced.
Dave Love <fx@gnu.org>
parents:
diff changeset
5512
Dave Love <fx@gnu.org>
parents:
diff changeset
5513 Normally, the replacement process does not consider the directory names;
Dave Love <fx@gnu.org>
parents:
diff changeset
5514 it operates on the file name within the directory. If you specify a
Dave Love <fx@gnu.org>
parents:
diff changeset
5515 prefix argument of zero, then replacement affects entire file name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5516
Dave Love <fx@gnu.org>
parents:
diff changeset
5517 To apply the command to all files matching the same regexp that you
Dave Love <fx@gnu.org>
parents:
diff changeset
5518 use in the command, mark those files with `% m REGEXP RET', then use
Dave Love <fx@gnu.org>
parents:
diff changeset
5519 the same regular expression in `% R'. To make this easier, `% R' uses
Dave Love <fx@gnu.org>
parents:
diff changeset
5520 as a default the last regular expression specified in a `%' command.
Dave Love <fx@gnu.org>
parents:
diff changeset
5521
Dave Love <fx@gnu.org>
parents:
diff changeset
5522 *** Dired Case Conversion
Dave Love <fx@gnu.org>
parents:
diff changeset
5523
Dave Love <fx@gnu.org>
parents:
diff changeset
5524 **** `% u' renames each of the selected files to an upper case name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5525
Dave Love <fx@gnu.org>
parents:
diff changeset
5526 **** `% l' renames each of the selected files to a lower case name.
Dave Love <fx@gnu.org>
parents:
diff changeset
5527
Dave Love <fx@gnu.org>
parents:
diff changeset
5528 *** File Comparison with Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
5529
Dave Love <fx@gnu.org>
parents:
diff changeset
5530 **** `=' compares the current file with another file (the file at the
Dave Love <fx@gnu.org>
parents:
diff changeset
5531 mark), by running the `diff' program. The file at the mark is given
Dave Love <fx@gnu.org>
parents:
diff changeset
5532 to `diff' first.
Dave Love <fx@gnu.org>
parents:
diff changeset
5533
Dave Love <fx@gnu.org>
parents:
diff changeset
5534 **** `M-=' compares the current file with its backup file. If there
Dave Love <fx@gnu.org>
parents:
diff changeset
5535 are several numerical backups, it uses the most recent one. If this
Dave Love <fx@gnu.org>
parents:
diff changeset
5536 file is a backup, it is compared with its original.
Dave Love <fx@gnu.org>
parents:
diff changeset
5537
Dave Love <fx@gnu.org>
parents:
diff changeset
5538 The backup file is the first file given to `diff'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5539
Dave Love <fx@gnu.org>
parents:
diff changeset
5540 *** Subdirectories in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
5541
Dave Love <fx@gnu.org>
parents:
diff changeset
5542 You can display more than one directory in one Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5543 The simplest way to do this is to specify the options `-lR' for
Dave Love <fx@gnu.org>
parents:
diff changeset
5544 running `ls'. That produces a recursive directory listing showing
Dave Love <fx@gnu.org>
parents:
diff changeset
5545 all subdirectories, all within the same Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5546
Dave Love <fx@gnu.org>
parents:
diff changeset
5547 You can also insert the contents of a particular subdirectory with the
Dave Love <fx@gnu.org>
parents:
diff changeset
5548 `i' command. Use this command on the line that describes a file which
Dave Love <fx@gnu.org>
parents:
diff changeset
5549 is a directory. Inserted subdirectory contents follow the top-level
Dave Love <fx@gnu.org>
parents:
diff changeset
5550 directory of the Dired buffer, just as they do in `ls -lR' output.
Dave Love <fx@gnu.org>
parents:
diff changeset
5551
Dave Love <fx@gnu.org>
parents:
diff changeset
5552 If the subdirectory's contents are already present in the buffer, the
Dave Love <fx@gnu.org>
parents:
diff changeset
5553 `i' command just moves to it (type `l' to refresh it). It sets the
Dave Love <fx@gnu.org>
parents:
diff changeset
5554 Emacs mark before moving, so C-x C-x takes you back to the old
Dave Love <fx@gnu.org>
parents:
diff changeset
5555 position in the buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5556
Dave Love <fx@gnu.org>
parents:
diff changeset
5557 When you have subdirectories in the Dired buffer, you can use the page
Dave Love <fx@gnu.org>
parents:
diff changeset
5558 motion commands C-x [ and C-x ] to move by entire directories.
Dave Love <fx@gnu.org>
parents:
diff changeset
5559
Dave Love <fx@gnu.org>
parents:
diff changeset
5560 The following commands move up and down in the tree of directories
Dave Love <fx@gnu.org>
parents:
diff changeset
5561 in one Dired buffer:
Dave Love <fx@gnu.org>
parents:
diff changeset
5562
Dave Love <fx@gnu.org>
parents:
diff changeset
5563 **** C-M-u Go up to the parent directory's headerline.
Dave Love <fx@gnu.org>
parents:
diff changeset
5564
Dave Love <fx@gnu.org>
parents:
diff changeset
5565 **** C-M-d Go down in the tree, to the first subdirectory's
Dave Love <fx@gnu.org>
parents:
diff changeset
5566 headerline.
Dave Love <fx@gnu.org>
parents:
diff changeset
5567
Dave Love <fx@gnu.org>
parents:
diff changeset
5568 **** C-M-n Go to next subdirectory headerline, regardless of level.
Dave Love <fx@gnu.org>
parents:
diff changeset
5569
Dave Love <fx@gnu.org>
parents:
diff changeset
5570 **** C-M-p Go to previous subdirectory headerline, regardless of
Dave Love <fx@gnu.org>
parents:
diff changeset
5571 level.
Dave Love <fx@gnu.org>
parents:
diff changeset
5572
Dave Love <fx@gnu.org>
parents:
diff changeset
5573 *** Hiding Subdirectories
Dave Love <fx@gnu.org>
parents:
diff changeset
5574
Dave Love <fx@gnu.org>
parents:
diff changeset
5575 "Hiding" a subdirectory means to make it invisible, except for its
Dave Love <fx@gnu.org>
parents:
diff changeset
5576 headerline. Files inside a hidden subdirectory are never considered
Dave Love <fx@gnu.org>
parents:
diff changeset
5577 by Dired. For example, the commands to operate on marked files ignore
Dave Love <fx@gnu.org>
parents:
diff changeset
5578 files in hidden directories even if they are marked.
Dave Love <fx@gnu.org>
parents:
diff changeset
5579
Dave Love <fx@gnu.org>
parents:
diff changeset
5580 **** `$' hides or unhides the current subdirectory and move to next
Dave Love <fx@gnu.org>
parents:
diff changeset
5581 subdirectory. A prefix argument serves as a repeat count.
Dave Love <fx@gnu.org>
parents:
diff changeset
5582
Dave Love <fx@gnu.org>
parents:
diff changeset
5583 **** `M-$' hides all subdirectories, leaving only their header lines.
Dave Love <fx@gnu.org>
parents:
diff changeset
5584 Or, if at least one subdirectory is currently hidden, it makes
Dave Love <fx@gnu.org>
parents:
diff changeset
5585 everything visible again. You can use this command to get an overview
Dave Love <fx@gnu.org>
parents:
diff changeset
5586 in very deep directory trees or to move quickly to subdirectories far
Dave Love <fx@gnu.org>
parents:
diff changeset
5587 away.
Dave Love <fx@gnu.org>
parents:
diff changeset
5588
Dave Love <fx@gnu.org>
parents:
diff changeset
5589 *** Editing the Dired Buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
5590
Dave Love <fx@gnu.org>
parents:
diff changeset
5591 **** `l' updates the specified files in a Dired buffer. This means
Dave Love <fx@gnu.org>
parents:
diff changeset
5592 reading their current status from the file system and changing the
Dave Love <fx@gnu.org>
parents:
diff changeset
5593 buffer to reflect it properly.
Dave Love <fx@gnu.org>
parents:
diff changeset
5594
Dave Love <fx@gnu.org>
parents:
diff changeset
5595 If you use this command on a subdirectory header line, it updates the
Dave Love <fx@gnu.org>
parents:
diff changeset
5596 contents of the subdirectory.
Dave Love <fx@gnu.org>
parents:
diff changeset
5597
Dave Love <fx@gnu.org>
parents:
diff changeset
5598 **** `g' updates the entire contents of the Dired buffer. It preserves
Dave Love <fx@gnu.org>
parents:
diff changeset
5599 all marks except for those on files that have vanished. Hidden
Dave Love <fx@gnu.org>
parents:
diff changeset
5600 subdirectories are updated but remain hidden.
Dave Love <fx@gnu.org>
parents:
diff changeset
5601
Dave Love <fx@gnu.org>
parents:
diff changeset
5602 **** `k' kills all marked lines (not the files). With a prefix
Dave Love <fx@gnu.org>
parents:
diff changeset
5603 argument, it kills that many lines starting with the current line.
Dave Love <fx@gnu.org>
parents:
diff changeset
5604
Dave Love <fx@gnu.org>
parents:
diff changeset
5605 This command does not delete files; it just deletes text from the Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
5606 buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5607
Dave Love <fx@gnu.org>
parents:
diff changeset
5608 If you kill the line for a file that is a directory, then its contents
Dave Love <fx@gnu.org>
parents:
diff changeset
5609 are also deleted from the buffer. Typing `C-u k' on the header line
Dave Love <fx@gnu.org>
parents:
diff changeset
5610 for a subdirectory is another way to delete a subdirectory from the
Dave Love <fx@gnu.org>
parents:
diff changeset
5611 Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
5612
Dave Love <fx@gnu.org>
parents:
diff changeset
5613 *** `find' and Dired.
Dave Love <fx@gnu.org>
parents:
diff changeset
5614
Dave Love <fx@gnu.org>
parents:
diff changeset
5615 To search for files with names matching a wildcard pattern use
Dave Love <fx@gnu.org>
parents:
diff changeset
5616 `find-name-dired'. Its arguments are DIRECTORY and
Dave Love <fx@gnu.org>
parents:
diff changeset
5617 PATTERN. It selects all the files in DIRECTORY or its
Dave Love <fx@gnu.org>
parents:
diff changeset
5618 subdirectories whose own names match PATTERN.
Dave Love <fx@gnu.org>
parents:
diff changeset
5619
Dave Love <fx@gnu.org>
parents:
diff changeset
5620 The files thus selected are displayed in a Dired buffer in which the
Dave Love <fx@gnu.org>
parents:
diff changeset
5621 ordinary Dired commands are available.
Dave Love <fx@gnu.org>
parents:
diff changeset
5622
Dave Love <fx@gnu.org>
parents:
diff changeset
5623 If you want to test the contents of files, rather than their names, use
Dave Love <fx@gnu.org>
parents:
diff changeset
5624 `find-grep-dired'. This command takes two minibuffer arguments,
Dave Love <fx@gnu.org>
parents:
diff changeset
5625 DIRECTORY and REGEXP; it selects all the files in
Dave Love <fx@gnu.org>
parents:
diff changeset
5626 DIRECTORY or its subdirectories that contain a match for
Dave Love <fx@gnu.org>
parents:
diff changeset
5627 REGEXP. It works by running `find' and `grep'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5628
Dave Love <fx@gnu.org>
parents:
diff changeset
5629 The most general command in this series is `find-dired', which lets
Dave Love <fx@gnu.org>
parents:
diff changeset
5630 you specify any condition that `find' can test. It takes two
Dave Love <fx@gnu.org>
parents:
diff changeset
5631 minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
Dave Love <fx@gnu.org>
parents:
diff changeset
5632 DIRECTORY with using FIND-ARGS as the arguments to `find' specifying
Dave Love <fx@gnu.org>
parents:
diff changeset
5633 which files to accept. To use this command, you need to know how to
Dave Love <fx@gnu.org>
parents:
diff changeset
5634 use `find'.
Dave Love <fx@gnu.org>
parents:
diff changeset
5635
Dave Love <fx@gnu.org>
parents:
diff changeset
5636 ** New amusements and novelties.
Dave Love <fx@gnu.org>
parents:
diff changeset
5637
Dave Love <fx@gnu.org>
parents:
diff changeset
5638 *** `M-x mpuz' displays a multiplication puzzle, in which each letter
Dave Love <fx@gnu.org>
parents:
diff changeset
5639 stands for a digit, and you must determine which digit. The puzzles
Dave Love <fx@gnu.org>
parents:
diff changeset
5640 are determined randomly, so they are always different.
Dave Love <fx@gnu.org>
parents:
diff changeset
5641
Dave Love <fx@gnu.org>
parents:
diff changeset
5642 *** `M-x gomoku' plays the game Gomoku with you. It needs more work.
Dave Love <fx@gnu.org>
parents:
diff changeset
5643
Dave Love <fx@gnu.org>
parents:
diff changeset
5644 *** `M-x spook' adds a line of randomly chosen keywords to an outgoing
Dave Love <fx@gnu.org>
parents:
diff changeset
5645 mail message. The keywords are chosen from a list of words that
Dave Love <fx@gnu.org>
parents:
diff changeset
5646 suggest you are discussing something subversive.
Dave Love <fx@gnu.org>
parents:
diff changeset
5647
Dave Love <fx@gnu.org>
parents:
diff changeset
5648 The idea is that the NSA reads all messages that contain keywords
Dave Love <fx@gnu.org>
parents:
diff changeset
5649 suggesting they might be interested, and that adding these lines could
Dave Love <fx@gnu.org>
parents:
diff changeset
5650 help to overload them. I would guess that they have modified their
Dave Love <fx@gnu.org>
parents:
diff changeset
5651 program by now to ignore these lines of keywords; perhaps the program
Dave Love <fx@gnu.org>
parents:
diff changeset
5652 can be updated if some clever hacker can determine what criterion they
Dave Love <fx@gnu.org>
parents:
diff changeset
5653 actually use now.
Dave Love <fx@gnu.org>
parents:
diff changeset
5654
Dave Love <fx@gnu.org>
parents:
diff changeset
5655 ** Installation changes
Dave Love <fx@gnu.org>
parents:
diff changeset
5656
Dave Love <fx@gnu.org>
parents:
diff changeset
5657 *** The configure script has been provided to help with the
Dave Love <fx@gnu.org>
parents:
diff changeset
5658 installation process. It takes the place of editing the Makefiles and
Dave Love <fx@gnu.org>
parents:
diff changeset
5659 src/config.h, and can often guess the appropriate operating system to
Dave Love <fx@gnu.org>
parents:
diff changeset
5660 use for a particular machine type. See INSTALL for a more detailed
Dave Love <fx@gnu.org>
parents:
diff changeset
5661 description of the steps required for installation.
Dave Love <fx@gnu.org>
parents:
diff changeset
5662
Dave Love <fx@gnu.org>
parents:
diff changeset
5663 *** If you create a Lisp file named `site-start.el', Emacs loads the file
Dave Love <fx@gnu.org>
parents:
diff changeset
5664 whenever it starts up.
Dave Love <fx@gnu.org>
parents:
diff changeset
5665
Dave Love <fx@gnu.org>
parents:
diff changeset
5666 *** A new Lisp variable, `data-directory', indicates the directory
Dave Love <fx@gnu.org>
parents:
diff changeset
5667 containing the DOC file, tutorial, copying agreement, and other
Dave Love <fx@gnu.org>
parents:
diff changeset
5668 familiar `etc' files. The value of `data-directory' is a simple string.
Dave Love <fx@gnu.org>
parents:
diff changeset
5669 The default should be set at build time, and the person installing
Dave Love <fx@gnu.org>
parents:
diff changeset
5670 Emacs should place all the data files in this directory. The `help.el'
Dave Love <fx@gnu.org>
parents:
diff changeset
5671 functions that look for docstrings and information files check this
Dave Love <fx@gnu.org>
parents:
diff changeset
5672 variable. All Emacs Lisp packages should also be coded so that they
Dave Love <fx@gnu.org>
parents:
diff changeset
5673 refer to `data-directory' to find data files.
Dave Love <fx@gnu.org>
parents:
diff changeset
5674
Dave Love <fx@gnu.org>
parents:
diff changeset
5675 *** The PURESIZE definition has been moved from config.h to its own
Dave Love <fx@gnu.org>
parents:
diff changeset
5676 file, puresize.h. Since almost every file of C source in the
Dave Love <fx@gnu.org>
parents:
diff changeset
5677 distribution depends on config.h, but only alloc.c and data.c depend
Dave Love <fx@gnu.org>
parents:
diff changeset
5678 on puresize.h, this means that changing the value of PURESIZE causes
Dave Love <fx@gnu.org>
parents:
diff changeset
5679 only those two files to be recompiled.
Dave Love <fx@gnu.org>
parents:
diff changeset
5680
Dave Love <fx@gnu.org>
parents:
diff changeset
5681 *** The makefile at the top of the Emacs source tree now supports a
Dave Love <fx@gnu.org>
parents:
diff changeset
5682 `dist' target, which creates a compressed tar file suitable for
Dave Love <fx@gnu.org>
parents:
diff changeset
5683 distribution, using the contents of the source tree. Object files,
Dave Love <fx@gnu.org>
parents:
diff changeset
5684 old file versions, executables, DOC files, and other
Dave Love <fx@gnu.org>
parents:
diff changeset
5685 architecture-specific or easy-to-recreate files are not included in
Dave Love <fx@gnu.org>
parents:
diff changeset
5686 the tar file.
Dave Love <fx@gnu.org>
parents:
diff changeset
5687
Dave Love <fx@gnu.org>
parents:
diff changeset
5688 * For older news, see the file OONEWS. For Lisp changes in (the first
Dave Love <fx@gnu.org>
parents:
diff changeset
5689 * release of) Emacs 19, see the file LNEWS.
Dave Love <fx@gnu.org>
parents:
diff changeset
5690
Dave Love <fx@gnu.org>
parents:
diff changeset
5691 ----------------------------------------------------------------------
Dave Love <fx@gnu.org>
parents:
diff changeset
5692 Copyright information:
Dave Love <fx@gnu.org>
parents:
diff changeset
5693
Dave Love <fx@gnu.org>
parents:
diff changeset
5694 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
Dave Love <fx@gnu.org>
parents:
diff changeset
5695
Dave Love <fx@gnu.org>
parents:
diff changeset
5696 Permission is granted to anyone to make or distribute verbatim copies
Dave Love <fx@gnu.org>
parents:
diff changeset
5697 of this document as received, in any medium, provided that the
Dave Love <fx@gnu.org>
parents:
diff changeset
5698 copyright notice and this permission notice are preserved,
Dave Love <fx@gnu.org>
parents:
diff changeset
5699 thus giving the recipient permission to redistribute in turn.
Dave Love <fx@gnu.org>
parents:
diff changeset
5700
Dave Love <fx@gnu.org>
parents:
diff changeset
5701 Permission is granted to distribute modified versions
Dave Love <fx@gnu.org>
parents:
diff changeset
5702 of this document, or of portions of it,
Dave Love <fx@gnu.org>
parents:
diff changeset
5703 under the above conditions, provided also that they
Dave Love <fx@gnu.org>
parents:
diff changeset
5704 carry prominent notices stating who last changed them.
Dave Love <fx@gnu.org>
parents:
diff changeset
5705
Dave Love <fx@gnu.org>
parents:
diff changeset
5706 Local variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
5707 mode: outline
Dave Love <fx@gnu.org>
parents:
diff changeset
5708 paragraph-separate: "[ ]*$"
Dave Love <fx@gnu.org>
parents:
diff changeset
5709 end:
Dave Love <fx@gnu.org>
parents:
diff changeset
5710