126
|
1 -*- mode:outline -*-
|
|
2
|
0
|
3 * Introduction
|
|
4 ==============
|
|
5
|
223
|
6 This file presents some general information about XEmacs. It is
|
276
|
7 primarily about the changes in recent XEmacs versions and its release
|
|
8 history.
|
223
|
9
|
|
10 Use `C-c C-f' to move to the next equal level of outline, and
|
|
11 `C-c C-b' to move to previous equal level. `C-h m' will give more
|
|
12 info about the Outline mode. Many commands are also available through
|
|
13 the menubar.
|
126
|
14
|
|
15 Users who would like to know which capabilities have been introduced
|
223
|
16 in each release should look at the appropriate section of this file.
|
|
17 Starting with version 20.0, XEmacs includes ChangeLogs, which can be
|
|
18 consulted for a more detailed list of changes.
|
|
19
|
|
20 Users interested in some of the details of how XEmacs differs from GNU
|
|
21 Emacs should read the section "What's Different?" near the end of this
|
|
22 file.
|
|
23
|
225
|
24 N.B. The term "GNU Emacs" refers to any release of Emacs Version
|
|
25 19 from the Free Software Foundation's GNU Project. (We do not
|
|
26 say just "Emacs" as Richard M. Stallman ["RMS"] prefers, because
|
|
27 it is clearly a more generic term.) The term "XEmacs" refers to
|
223
|
28 this program or to its predecessors "Era" and "Lucid Emacs". The
|
|
29 predecessor of all these program is called "Emacs 18". When no
|
|
30 particular version is implied, "Emacs" will be used.
|
126
|
31
|
|
32
|
274
|
33 * Changes in XEmacs 21.0
|
209
|
34 ========================
|
|
35
|
219
|
36 ** XEmacs has been unbundled into constituent installable packages.
|
274
|
37 See the file `etc/PACKAGES' in the distribution for a full
|
|
38 description.
|
219
|
39
|
223
|
40 ** Using the new `-private' option, you can make XEmacs use a private
|
|
41 colormap.
|
|
42
|
219
|
43 ** The `imenu' package has been ported to XEmacs.
|
|
44
|
|
45 ** `echo-keystrokes' can now be a floating-point number, so that you
|
276
|
46 can set it to intervals shorter than one second.
|
219
|
47
|
|
48 (setq echo-keystrokes 0.1)
|
|
49
|
|
50 ** The `M-.' command will now first search through exact tags matches,
|
|
51 and then through inexact matches, as one would expect.
|
|
52
|
223
|
53 ** The new variable `user-full-name' can be used to customize one's
|
|
54 name when using the Emacs mail and news reading facilities.
|
|
55
|
|
56 Normally, `user-full-name' is a function that returns the full name of
|
|
57 a user or UID, as specified by the system -- for instance,
|
|
58 (user-full-name "root") returns something like "Super-User". However,
|
|
59 when the function is called without arguments, it will return the
|
|
60 value of the `user-full-name' variable. The `user-full-name' variable
|
|
61 is initialized using the environment variable NAME and (failing that)
|
|
62 the user's system name.
|
|
63
|
225
|
64 The behaviour of the `user-full-name' function with an argument
|
|
65 specified is unchanged.
|
223
|
66
|
|
67 ** The new command `M-x customize-changed-options' lets you customize
|
|
68 all the options whose default values have changed in recent Emacs
|
|
69 versions. You specify a previous Emacs version number as argument,
|
|
70 and the command creates a customization buffer showing all the
|
|
71 customizable options whose default values were changed since that
|
|
72 version.
|
|
73
|
|
74 If you don't specify a particular version number argument, then the
|
|
75 customization buffer shows all the customizable options for which
|
|
76 Emacs versions of changes are recorded.
|
|
77
|
249
|
78 ** The new command `add-log-convert' can be used to convert the
|
|
79 old-style (pre-20.3) ChangeLog buffers to new style, for
|
|
80 consistency. A reminder: if you wish to revert to old-style
|
|
81 ChangeLogs instead, customize the value of `add-log-time-format'
|
|
82 variable.
|
|
83
|
223
|
84 ** XEmacs/Mule (internationalization) changes.
|
|
85
|
274
|
86 *** Mule support now works on TTY's. #### What, where, how?
|
|
87
|
225
|
88 *** Egg/SJ3 input method is now officially supported. Quail and
|
|
89 Egg/Skk have been available through the generalized Leim since 20.3.
|
223
|
90
|
|
91 *** Localized Japanese menubars are available if XEmacs is built with
|
|
92 XFONTSET and either the X11 libraries are built with X_LOCALE defined
|
|
93 or the native C libraries support Japanese localization. This has
|
|
94 been available since 20.3, only it hasn't been announced before.
|
219
|
95
|
251
|
96 ** In Text mode, now only blank lines separate paragraphs.
|
|
97 This makes it possible to get the full benefit of Adaptive Fill mode
|
|
98 in Text mode, and other modes derived from it (such as Mail mode).
|
|
99 TAB in Text mode now runs the command indent-relative; this
|
|
100 makes a practical difference only when you use indented paragraphs.
|
|
101
|
|
102 As a result, the old Indented Text mode is now identical to Text mode,
|
|
103 and is an alias for it.
|
|
104
|
|
105 If you want spaces at the beginning of a line to start a paragraph,
|
|
106 use the new mode, Paragraph Indent Text mode.
|
|
107
|
219
|
108
|
274
|
109 * Lisp and internal changes in XEmacs 21.0
|
219
|
110 ==========================================
|
|
111
|
274
|
112 ** It is now possible to build XEmacs with support for 31-bit Lisp
|
|
113 integers (normally, Lisp integers are only 28 bits wide on 32-bit
|
|
114 machines.) Configure with --use-minimal-tagbits to test. With this
|
|
115 change, the maximum buffer size on 32-bit machines is bumped from 128M
|
|
116 to 1G. This setting will be the default in a future XEmacs version.
|
225
|
117
|
223
|
118 ** The XEmacs hashtables now have a consistent read/print syntax.
|
|
119 This means that a hashtable will be readably printed in a
|
|
120 structure-like form:
|
|
121
|
|
122 #s(hashtable size 2 data (key1 value1 key2 value2))
|
|
123
|
|
124 When XEmacs reads this form, it will create a new hashtable according
|
|
125 to description. This allows you to easily dump hashtables to files
|
|
126 using `prin1', and read them back in using `read'.
|
|
127
|
|
128 If `print-readably' is non-nil, a more relaxed syntax is used; for
|
|
129 instance:
|
|
130
|
|
131 #<hashtable size 2/13 data (key1 value1 key2 value2) 0x874d>
|
|
132
|
241
|
133 ** When profiling is in effect, a call-count of all recorded functions
|
|
134 is now calculated. This information is stored in
|
|
135 `call-count-profile-table', and is utilized by `profile-results' as
|
|
136 well as the new function `profile-call-count-results'.
|
|
137
|
223
|
138 ** The `make-event' function now supports the TYPE and PLIST
|
276
|
139 arguments, which can be used to create various events from Lisp. See
|
|
140 the documentation for details.
|
223
|
141
|
219
|
142 ** `function-interactive' is a new function that returns the
|
|
143 interactive specification of a funcallable object.
|
|
144
|
|
145 ** The new `lmessage' function allows printing of a formatted message
|
|
146 with a particular label.
|
|
147
|
223
|
148 (lmessage 'progress "Processing... %d" counter)
|
219
|
149
|
|
150 This function is more convenient than `display-message' because it
|
|
151 automatically applies `format' to its arguments.
|
|
152
|
|
153 ** The new `lwarn' function, analogous to `lmessage', allows printing
|
|
154 a formatted warning, with a non-default CLASS or LABEL.
|
|
155
|
274
|
156 ** Specifiers and symbols whose value is a specifier are now allowed
|
276
|
157 as modeline specifications.
|
274
|
158
|
|
159 ** defcustom now accepts the keyword `:version'. Use this to specify
|
|
160 in which version of Emacs a certain variable's default value changed.
|
|
161 For example,
|
|
162
|
|
163 (defcustom foo-max 34 "*Maximum number of foo's allowed."
|
|
164 :type 'integer
|
|
165 :group 'foo
|
276
|
166 :version "21.0")
|
274
|
167
|
|
168 This information is used to control the customize-changed-options
|
|
169 command.
|
|
170
|
225
|
171 ** The line number tracking in modeline is now efficient, even for
|
|
172 very large buffers. This is achieved by caching the line numbers of
|
|
173 recent buffer positions, and reusing them. This cache is used only in
|
|
174 the buffers where `line-number-mode' is in effect.
|
259
|
175
|
274
|
176 ** When the new GNU Malloc aka Doug Lea Malloc is available, it will
|
|
177 be used. This should result in better performance on Linux systems
|
|
178 with libc6.
|
|
179
|
276
|
180 ** The code XEmacs uses to assemble its various paths into the
|
|
181 directory hierarchy has been rewritten to support the package system.
|
|
182
|
|
183 *** site-lisp is now longer part of the load-path by default.
|
|
184 Its use is deprecated, but you can specify --with-site-lisp=yes at the
|
|
185 configure command line to get it back.
|
|
186
|
|
187 *** `Info-default-directory-list' is now obsolete. If you want to
|
|
188 change the path which XEmacs uses to search for info files, set
|
|
189 `Info-directory-list' instead.
|
259
|
190
|
241
|
191
|
|
192 * Changes in XEmacs 20.4
|
|
193 ========================
|
|
194
|
|
195 ** XEmacs 20.4 is a bugfix release with no user-visible changes.
|
225
|
196
|
219
|
197
|
153
|
198 * Changes in XEmacs 20.3
|
|
199 ========================
|
|
200
|
163
|
201 ** Quail input method is now available.
|
|
202
|
193
|
203 Quail is a simple key-translation system that allows users to input
|
165
|
204 any multilingual text from normal ASCII keyboard. This means that
|
|
205 XEmacs with Mule now supports a number of European languages.
|
163
|
206
|
215
|
207 ** More Windows NT support.
|
|
208
|
|
209 Thanks to efforts of many people, coordinated by David Hobley
|
|
210 <davidh@wr.com.au> and Marc Paquette <marcpa@cam.org>, beta versions
|
|
211 of XEmacs now run on 32-bit Windows platforms (Windows NT and Windows
|
|
212 95). The current betas require having an X server to run XEmacs;
|
|
213 however, a native NT/95 port is in alpha, thanks to Jonathan Harris
|
|
214 <jhar@tardis.ed.ac.uk>.
|
|
215
|
|
216 The NT development is now coordinated by a mailing list at
|
|
217 <xemacs-nt@xemacs.org>. Mail to <xemacs-nt-request@xemacs.org> to
|
|
218 subscribe.
|
153
|
219
|
|
220 ** Multiple TTY frames are now available.
|
|
221
|
|
222 On consoles that display only one frame at a time (e.g. TTY consoles),
|
|
223 creating a new frame with `C-x 5 2' also raises and selects that
|
|
224 frame. The behavior of window system frames is unchanged.
|
|
225
|
207
|
226 ** Package starting changes.
|
|
227
|
|
228 State of Emacs should never be changed with loading a package. The
|
|
229 following XEmacs packages that used to break this have been changed.
|
|
230
|
|
231 *** Loading `paren' no longer enables paren-blinking. Use
|
|
232 `paren-set-mode' explicitly, or customize `paren-mode'.
|
|
233
|
|
234 *** Loading `uniquify' no longer enables uniquify. Set
|
|
235 `uniquify-buffer-name-style' to a legal value.
|
|
236
|
|
237 *** Loading `time' no longer enables display time. Invoke
|
|
238 `display-time' explicitly.
|
|
239
|
|
240 *** Loading `jka-compr' no longer enables on-the-fly compression. Use
|
|
241 `toggle-auto-compression' instead.
|
|
242
|
|
243 *** Loading `id-select' no longer enables its behaviour. Use
|
|
244 `id-select-install' instead.
|
|
245
|
173
|
246 ** Zmacs region is not deactivated when an error is signaled.
|
|
247
|
|
248 The behavior of the zmacs region can now be controlled in the event of
|
|
249 a signaled error. The new variable `errors-deactivate-region' may be
|
|
250 set to nil to revert to the old behaviour. As before, typing C-g
|
193
|
251 deactivates the region.
|
173
|
252
|
207
|
253 ** Multiple Info `dir' functionality has been merged with GNU Emacs
|
|
254 19.34.
|
|
255
|
|
256 XEmacs will now correctly merge all the `dir' files in
|
243
|
257 `Info-directory-list' (initialized from either the `INFOPATH'
|
207
|
258 env. variable or `Info-default-directory-list'.) These files may be
|
|
259 full-fledged info files containing subnodes or menus. Previously
|
|
260 supported `localdir' files are looked for also, secondary to `dir's.
|
|
261 See the manual for details.
|
169
|
262
|
167
|
263 ** Abbreviations can now contain non-word characters.
|
|
264
|
|
265 This means that it is finally possible to do such simple things as
|
193
|
266 define `#in' to expand to `#include' in C mode, `s-c-b' to
|
167
|
267 `save-current-buffer' in Lisp mode, `call/cc' to
|
|
268 `call-with-current-continuation' in Scheme mode, etc.
|
|
269
|
159
|
270 ** `C-x n d' now runs the new command `narrow-to-defun',
|
157
|
271 which narrows the accessible parts of the buffer to just
|
|
272 the current defun.
|
|
273
|
159
|
274 ** The new command `C-x 4 0' (kill-buffer-and-window) kills the
|
157
|
275 current buffer and deletes the selected window. It asks for
|
|
276 confirmation first.
|
|
277
|
207
|
278 ** `ESC ESC ESC' (keyboard-escape-quit) will now correctly abort
|
|
279 recursive edits (as documented.)
|
|
280
|
165
|
281 ** arc-mode has a new function called `archive-quit' bound to q, which
|
|
282 quits archive mode in the same fashion dired-quit works.
|
207
|
283
|
|
284 ** A `tetris' clone is now available within XEmacs, written by Glynn
|
|
285 Clements. Try it out with `M-x tetris'.
|
165
|
286
|
167
|
287 ** The feature to teach the key bindings of extended commands now
|
|
288 prints the message after the command finishes. After some time, the
|
193
|
289 previous echo area contents are restored (in case the command prints
|
|
290 something useful).
|
165
|
291
|
195
|
292 ** If you set scroll-conservatively to a small number, then when you
|
|
293 move point a short distance off the screen, XEmacs will scroll the
|
|
294 screen just far enough to bring point back on screen, provided that
|
|
295 does not exceed `scroll-conservatively' lines.
|
|
296
|
197
|
297 ** Face background colors now take precedence over the default face
|
|
298 background pixmap, which means that background pixmaps no longer clash
|
|
299 with zmacs-regions, or clickable buttons.
|
|
300
|
207
|
301 ** Regexps can now contain additional Perl-like constructs.
|
|
302
|
|
303 ** Modifiers can be added to a keystroke by preceding it with a `C-x @
|
|
304 <x>' sequence where <x> is one of letters `S', `c', `m', `a', `h', `s'
|
|
305 corresponding to shift, control, meta, alt, hyper, and super modifiers,
|
|
306 respectively. It is possible to add several modifiers by repeating this
|
|
307 sequence. This feature is especially useful on text terminals where it
|
|
308 allows one to enter keystrokes like, e.g., `M-home'.
|
|
309
|
209
|
310 ** An arbitrary keystroke can be generated by entering `C-x @ k
|
|
311 <keysym-name> RET'. For example a sequence:
|
|
312
|
|
313 C-x @ c C-x @ k b a c k s p a c e RET
|
|
314
|
|
315 will result in a `C-backspace' keystroke even on text terminals.
|
|
316
|
195
|
317 ** Customize changes.
|
|
318
|
|
319 *** Customize has undergone a massive speedup, and should now operate
|
|
320 acceptably fast. Slowness of the interface used to be the biggest
|
|
321 gripe.
|
|
322
|
|
323 *** Many more packages have been modified to use the facility, so
|
207
|
324 almost all of XEmacs options can now be examined through the Customize
|
195
|
325 groups.
|
|
326
|
|
327 *** There is a new `browser' mode of traversing customizations, in
|
|
328 many ways easier to follow than the standard one. Try it out with
|
|
329 `M-x customize-browse'.
|
|
330
|
189
|
331 ** Pending-delete changes.
|
|
332
|
|
333 *** Pending-delete is now a minor mode, with the normal minor-mode
|
|
334 semantics and toggle functions. Old functions are left for
|
|
335 compatibility.
|
|
336
|
|
337 *** Loading pending-del no longer turns on pending-delete mode. In
|
|
338 fact, it is no longer necessary to explicitly load pending-del. All
|
|
339 you need to do to turn on pending-delete is run the pending-delete
|
|
340 function:
|
|
341
|
|
342 Within XEmacs: Type M-x pending-delete <ret>
|
|
343 not M-x load-library <ret> pending-delete <ret>
|
|
344
|
|
345 In .emacs: Use (turn-on-pending-delete)
|
|
346 not (load "pending-del")
|
|
347
|
157
|
348 ** XEmacs can now save the minibuffer histories from various
|
|
349 minibuffers. To use this feature, add the line:
|
|
350
|
|
351 (savehist-load)
|
|
352
|
|
353 to your .emacs. This will load the minibuffer histories (if any) at
|
|
354 startup, as well as instruct XEmacs to save them before exiting. You
|
|
355 can use Customize to add or remove the histories being saved.
|
|
356
|
163
|
357 ** The default format for ChangeLog entries (as created by `C-x 4 a')
|
|
358 is now the international ISO 8601 format.
|
|
359
|
|
360 To revert to the old behaviour, use:
|
|
361
|
|
362 (setq add-log-time-format 'current-time-string)
|
|
363
|
197
|
364 Or `M-x customize RET add-log RET'.
|
|
365
|
207
|
366 ** In ChangeLog mode, you can now press `C-c C-c' to save the file
|
|
367 and restore old window configuration, or `C-c C-k' to abandon the
|
|
368 changes.
|
|
369
|
197
|
370 ** The key `C-x m' no longer runs the `mail' command directly.
|
195
|
371 Instead, it runs the command `compose-mail', which invokes the mail
|
|
372 composition mechanism you have selected with the variable
|
|
373 `mail-user-agent'. The default choice of user agent is
|
|
374 `sendmail-user-agent', which gives behavior compatible with the old
|
|
375 behavior.
|
|
376
|
|
377 C-x 4 m now runs compose-mail-other-window, and C-x 5 m runs
|
|
378 compose-mail-other-frame.
|
|
379
|
|
380 ** When you kill a buffer that visits a file, if there are any
|
|
381 registers that save positions in the file, these register values no
|
|
382 longer become completely useless. If you try to go to such a register
|
|
383 with `C-x j', then you are asked whether to visit the file again. If
|
|
384 you say yes, it visits the file and then goes to the same position.
|
|
385
|
|
386 ** When you visit a file that changes frequently outside Emacs--for
|
|
387 example, a log of output from a process that continues to run--it may
|
|
388 be useful for Emacs to revert the file without querying you whenever
|
|
389 you visit the file afresh with `C-x C-f'.
|
|
390
|
|
391 You can request this behavior for certain files by setting the
|
|
392 variable revert-without-query to a list of regular expressions. If a
|
|
393 file's name matches any of these regular expressions, find-file and
|
|
394 revert-buffer revert the buffer without asking for permission--but
|
|
395 only if you have not edited the buffer text yourself.
|
163
|
396
|
157
|
397 ** Gnuserv changes
|
|
398
|
|
399 *** The Lisp part of gnuserv has been rewritten to allow for more
|
|
400 flexibility and features.
|
|
401
|
|
402 *** Many new options and variables are now customizable. Try
|
207
|
403 `M-x customize RET gnuserv RET'.
|
|
404
|
|
405 *** The functionality of `gnuattach' and `gnudoit' programs is
|
|
406 provided by `gnuclient', which now accepts the standard `-nw',
|
163
|
407 `-display', `-eval' and `-f' options.
|
157
|
408
|
155
|
409 ** Etags changes.
|
|
410
|
|
411 *** In C, C++, Objective C and Java, Etags tags global variables by
|
|
412 default. The resulting tags files are inflated by 30% on average.
|
|
413 Use --no-globals to turn this feature off. Etags can also tag
|
193
|
414 variables that are members of structure-like constructs, but it does
|
155
|
415 not by default. Use --members to turn this feature on.
|
|
416
|
|
417 *** C++ member functions are now recognized as tags.
|
|
418
|
|
419 *** Java is tagged like C++. In addition, "extends" and "implements"
|
|
420 constructs are tagged. Files are recognised by the extension .java.
|
|
421
|
|
422 *** Etags can now handle programs written in Postscript. Files are
|
|
423 recognised by the extensions .ps and .pdb (Postscript with C syntax).
|
|
424 In Postscript, tags are lines that start with a slash.
|
|
425
|
|
426 *** Etags now handles Objective C and Objective C++ code. The usual C and
|
|
427 C++ tags are recognized in these languages; in addition, etags
|
|
428 recognizes special Objective C syntax for classes, class categories,
|
|
429 methods and protocols.
|
|
430
|
|
431 *** Etags also handles Cobol. Files are recognised by the extension
|
|
432 .cobol. The tagged lines are those containing a word that begins in
|
|
433 column 8 and ends in a full stop, i.e. anything that could be a
|
|
434 paragraph name.
|
|
435
|
|
436 *** Regexps in Etags now support intervals, as in ed or grep. The syntax of
|
|
437 an interval is \{M,N\}, and it means to match the preceding expression
|
|
438 at least M times and as many as N times.
|
|
439
|
189
|
440 ** Ada mode changes.
|
|
441
|
|
442 *** There is now better support for using find-file.el with Ada mode.
|
|
443 If you switch between spec and body, the cursor stays in the same
|
|
444 procedure (modulo overloading). If a spec has no body file yet, but
|
|
445 you try to switch to its body file, Ada mode now generates procedure
|
|
446 stubs.
|
|
447
|
|
448 *** There are two new commands:
|
|
449 - `ada-make-local' : invokes gnatmake on the current buffer
|
|
450 - `ada-check-syntax' : check syntax of current buffer.
|
|
451
|
|
452 The user options `ada-compiler-make', `ada-make-options',
|
|
453 `ada-language-version', `ada-compiler-syntax-check', and
|
|
454 `ada-compile-options' are used within these commands.
|
|
455
|
|
456 *** Ada mode can now work with Outline minor mode. The outline level
|
193
|
457 is calculated from the indenting, not from syntactic constructs.
|
189
|
458 Outlining does not work if your code is not correctly indented.
|
|
459
|
|
460 *** The new function `ada-gnat-style' converts the buffer to the style of
|
|
461 formatting used in GNAT. It places two blanks after a comment start,
|
|
462 places one blank between a word end and an opening '(', and puts one
|
|
463 space between a comma and the beginning of a word.
|
|
464
|
207
|
465 ** New demand based locking implementation
|
|
466
|
|
467 A faster, but experimental replacement for lazy-lock (called lazy-shot) is
|
|
468 provided. Like lazy-lock it provides demand based and idle time
|
|
469 font-lock-ing. However the lazy-lock versions that came with previous
|
|
470 versions slowed down XEmacs (possibly quite a lot). Lazy-shot solves
|
|
471 this problem by relying on new support from the C code part of XEmacs.
|
|
472 The support however is experimental and will cause some flashing as
|
|
473 parts of the buffer are colored. This likely to change in the future
|
|
474 as the C support is completed.
|
|
475
|
|
476 The current lazy-shot implementation is mostly interface compatible
|
|
477 with lazy-lock v2.06 (the version shipped with XEmacs is v1.x).
|
|
478
|
|
479 *** To enable:
|
|
480 1. Despite the flashing, lazy-shot was deemed such an improvement by
|
|
481 the majority of beta testers that it is now the standard method
|
|
482 provided by the options menu. Alternatively add
|
|
483
|
|
484 (add-hook 'font-lock-mode-hook 'turn-on-lazy-shot)
|
|
485
|
|
486 to '.emacs'.
|
|
487 2. If you were using lazy-lock before, just replace all occurrences of
|
|
488 "lazy-lock" by "lazy-shot" in your '.emacs' file.
|
|
489
|
|
490 *** To disable:
|
|
491
|
|
492 If prefer to use lazy-lock in stead of lazy-shot, put
|
|
493
|
|
494 (remove-hook 'font-lock-mode-hook 'turn-on-lazy-shot)
|
|
495 (add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
|
|
496
|
|
497 at the END of `.emacs'.
|
|
498
|
|
499 ** RefTeX mode
|
|
500
|
|
501 RefTeX mode is a new minor mode with special support for \label{}, \ref{}
|
|
502 and \cite{} macros in LaTeX documents. RefTeX distinguishes labels of
|
|
503 different environments (equation, figure, ...) and has full support for
|
|
504 multifile documents. To use it, select a buffer with a LaTeX document and
|
|
505 turn the mode on with M-x reftex-mode. Here are the main user commands:
|
|
506
|
|
507 C-c ( reftex-label
|
|
508 Creates a label semi-automatically. RefTeX is context sensitive and
|
|
509 knows which kind of label is needed.
|
|
510
|
|
511 C-c ) reftex-reference
|
|
512 Offers in a menu all labels in the document, along with context of the
|
|
513 label definition. The selected label is referenced as \ref{LABEL}.
|
|
514
|
|
515 C-c [ reftex-citation
|
|
516 Prompts for a regular expression and displays a list of matching BibTeX
|
|
517 database entries. The selected entry is cited with a \cite{KEY} macro.
|
|
518
|
|
519 C-c & reftex-view-crossref
|
|
520 Views the cross reference of a \ref{} or \cite{} command near point.
|
|
521
|
|
522 C-c = reftex-toc
|
|
523 Shows a table of contents of the (multifile) document. From there you
|
|
524 can quickly jump to every section.
|
|
525
|
|
526 Under X, RefTeX installs a "Ref" menu in the menu bar, with additional
|
|
527 commands. Full documentation and customization examples are in the file
|
|
528 reftex.el. You can use the finder to view this information:
|
|
529 C-h p --> tex --> reftex.el
|
155
|
530
|
153
|
531
|
|
532 * Lisp and internal changes in XEmacs 20.3
|
|
533 ==========================================
|
|
534
|
157
|
535 ** Autoconf 2 is supported, making XEmacs more conforming to
|
|
536 conventions used by other free software.
|
|
537
|
159
|
538 ** `tty-erase-char' is a new variable that reports which character
|
193
|
539 was set up as the terminal's erase character at the time Emacs was
|
159
|
540 started.
|
|
541
|
207
|
542 ** It is now possible to attach the menubar accelerator keys to menu
|
|
543 entries. Look at the Lispref under Menus->Menu Accelerators for
|
|
544 details.
|
|
545
|
173
|
546 ** `insert-file-contents' can now read from a special file,
|
|
547 as long as the arguments VISIT and REPLACE are nil.
|
|
548
|
193
|
549 ** `string-to-number' now accepts an optional BASE argument that
|
169
|
550 specifies which base to use. The default base is 10.
|
|
551
|
159
|
552 ** The TIME argument to `format-time-string' is now optional and
|
|
553 defaults to the current time.
|
|
554
|
|
555 ** The PATTERN argument to `split-string' is now optional and defaults
|
|
556 to whitespace ("[ \f\t\n\r\v]+").
|
157
|
557
|
195
|
558 ** `set-extent-properties' is a new function that can be used to
|
|
559 change properties of an extent at once, and is analogous to
|
|
560 `set-frame-properties'.
|
|
561
|
207
|
562 ** If a format field width is specified as `*', the field width is
|
|
563 now assumed to have been specified as an argument (as in C.)
|
|
564
|
|
565 (format "%*s" 10 "abc")
|
|
566 => " abc"
|
|
567
|
161
|
568 ** The new macro `with-current-buffer' lets you evaluate an expression
|
|
569 conveniently with a different current buffer. It looks like this:
|
|
570
|
|
571 (with-current-buffer BUFFER BODY-FORMS...)
|
|
572
|
|
573 BUFFER is the expression that says which buffer to use.
|
|
574 BODY-FORMS say what to do in that buffer.
|
197
|
575 The old `eval-in-buffer' macro is obsoleted by `with-current-buffer'.
|
161
|
576
|
|
577 ** The new primitive `save-current-buffer' saves and restores the
|
|
578 choice of current buffer, like `save-excursion', but without saving or
|
|
579 restoring the value of point or the mark. `with-current-buffer'
|
|
580 works using `save-current-buffer'.
|
|
581
|
|
582 ** The new macro `with-temp-file' lets you do some work in a new buffer and
|
|
583 write the output to a specified file. Like `progn', it returns the value
|
|
584 of the last form.
|
|
585
|
165
|
586 ** The variable `debug-ignored-errors' now works in XEmacs. It allows
|
|
587 one to ignore the debugger for some common errors, even when
|
|
588 `debug-on-error' is t. It has no effect when `debug-on-signal' is
|
|
589 non-nil.
|
|
590
|
197
|
591 ** The new function `current-message' returns the message currently
|
|
592 displayed in the echo area, or nil if there is none.
|
189
|
593
|
|
594 ** File-access primitive functions no longer discard an extra redundant
|
|
595 directory name from the beginning of the file name. In other words,
|
|
596 they no longer do anything special with // or /~. The same goes for
|
|
597 `expand-file-name'. That conversion is now done only in
|
|
598 `substitute-in-file-name'.
|
|
599
|
|
600 This makes it possible for a Lisp program to open a file whose name
|
|
601 begins with ~.
|
|
602
|
207
|
603 ** The regexp matcher has been extended to recognize the following
|
|
604 constructs, borrowed from Perl:
|
|
605
|
|
606 *** Additional quantifiers.
|
|
607
|
|
608 In addition to `*', `+' and `?', XEmacs now recognizes the following
|
|
609 quantifiers:
|
|
610
|
|
611 \{n\} Match exactly n times
|
|
612 \{n,\} Match at least n times
|
|
613 \{n,m\} Match at least n but not more than m times
|
|
614
|
|
615 *** Non-greedy quantifiers.
|
|
616
|
|
617 Any of the standard quantifiers (`*', `+' and others) can now be
|
|
618 followed by an optional `?', which will make them become "non-greedy",
|
|
619 i.e. they will match as little text as possible. Note that the
|
|
620 meanings don't change, just the "gravity."
|
|
621
|
|
622 *** Shy groups.
|
|
623
|
|
624 The \(?: ... \) groups things like \( ... \), but doesn't record the
|
|
625 context for backreferences or future use. This is useful when you
|
|
626 need a lot of groups for the sake of priorities, but actually want to
|
|
627 record only one or two.
|
|
628
|
197
|
629 ** The new function `regexp-opt' returns an efficient regexp to match
|
|
630 a string. The arguments are STRINGS and (optionally) PAREN. This
|
189
|
631 function can be used where regexp matching or searching is intensively
|
|
632 used and speed is important, e.g., in Font Lock mode.
|
|
633
|
207
|
634 ** The featurep syntax has been extended to resemble the Common Lisp
|
|
635 one, as suggested by Erik Naggum.
|
|
636
|
|
637 *** The `xemacs' feature is defined in XEmacs by default.
|
|
638
|
|
639 *** The expression `#+fexp form' is equivalent to
|
|
640 (when (featurep fexp) form), only it is evaluated at read-time. Also,
|
|
641 `#-fexp form' is equivalent to (unless (featurep fexp) form).
|
|
642
|
|
643 *** In addition to symbols, a FEXP can also be a number, or a logical
|
|
644 operator. Here are some examples:
|
|
645 ;; evaluates to non-nil on XEmacs:
|
|
646 (featurep 'xemacs)
|
|
647 ;; evaluates to non-nil on XEmacs 20.3 or later:
|
|
648 (featurep '(and xemacs 20.03))
|
|
649 ;; evaluates to non-nil either on Emacs, or on XEmacs built without
|
|
650 ;; X support:
|
|
651 (featurep '(or emacs (and xemacs (not x))))
|
|
652
|
157
|
653
|
153
|
654
|
136
|
655 * Changes in XEmacs 20.2
|
126
|
656 ========================
|
|
657
|
140
|
658 ** Why XEmacs 20.1 is called 20.2
|
|
659
|
138
|
660 Testing of XEmacs 20.1 revealed a number of showstopping bugs at the
|
|
661 very final moment. Instead of confusing the version numbers further,
|
|
662 the `20.1' designation was abandoned, and the release was renamed to
|
|
663 `20.2'.
|
|
664
|
140
|
665 ** Delete/backspace keysyms have been separated
|
|
666
|
|
667 The Delete and Backspace keysyms are now no longer identical. A better
|
|
668 version of delbackspace.el has been added called delbs.el.
|
138
|
669
|
153
|
670 ** XEmacs 20.0 MULE API supported for backwards compatibility
|
138
|
671
|
|
672 XEmacs 20.2 primarily supports the MULE 3 API. It now also supports
|
|
673 the XEmacs 20.0 MULE API.
|
|
674
|
126
|
675 ** The logo has been changed, and the default background color is
|
|
676 now a shade of gray instead of the eye-burning white.
|
|
677
|
|
678 The sample .Xdefaults and .emacs files contain examples of how to
|
|
679 revert to the old background color.
|
|
680
|
|
681 ** Default modeline colors are now less of a color-salad.
|
|
682
|
146
|
683 ** The `C-z' key now iconifies only the current X frame. You can use
|
|
684 `C-x C-z' to get the old behavior.
|
|
685
|
|
686 On the tty frames `C-z' behaves as before.
|
|
687
|
126
|
688 ** The command `display-time' now draws a pretty image in the modeline
|
|
689 when new mail arrives. It also supports balloon-help messages.
|
|
690
|
|
691 ** Various commands that were previously disabled are now enabled, like
|
|
692 eval-expression (`M-:') and upcase-region (`C-x C-u')/downcase-region
|
|
693 (`C-x C-l').
|
|
694
|
|
695 ** It is now possible to customize the functions called by XEmacs toolbar.
|
|
696
|
|
697 Type `M-x customize RET toolbar RET' to customize it. Customizations
|
|
698 include the choice of functions for the buttons to invoke, as well as
|
|
699 a wide choice of mailers and newsreaders to invoked by the respective
|
|
700 functions.
|
|
701
|
|
702 ** `temp-buffer-shrink-to-fit' now defaults to nil.
|
|
703
|
|
704 There are unresolved issues regarding this feature, which is why the
|
|
705 XEmacs developers decided to disable it by default.
|
|
706
|
|
707 ** `ps-print-color-p' now defaults to nil.
|
|
708
|
|
709 This is because the new default background color is non-white. The
|
|
710 `Printing Options' in the `Options' menu now include an item that
|
|
711 enables color printing, and sets the white background.
|
|
712
|
|
713 ** `line-number-mode' should be used to get line numbers in the
|
|
714 modeline, and `column-number-mode' to get column numbers. Line
|
|
715 numbers now number from 1 by default.
|
|
716
|
|
717 ** font-lock-mode will now correctly fontify `int a, b, c;'
|
|
718 expressions in C mode.
|
|
719
|
|
720 ** The blinking cursor is always "on" during movement.
|
|
721
|
146
|
722 ** The XEmacs build process has been changed to make site
|
|
723 administration easier. See lisp/site-load.el for details.
|
|
724
|
|
725 ** Numerous causes of crashes have been fixed. XEmacs should now be
|
|
726 even more stable than before.
|
|
727
|
|
728 ** configure no longer defaults to using --with-xim=motif if Motif libraries
|
|
729 are linked.
|
|
730
|
|
731 There are many bugs in the Xlib XIM support in X11R6.3.
|
|
732
|
126
|
733 ** A number of new packages are added, and many packages were
|
|
734 updated.
|
|
735
|
144
|
736 ** Gnus-5.4.52, courtesy of Lars Magne Ingebrigtsen
|
126
|
737
|
|
738 *** nntp.el has been totally rewritten in an asynchronous fashion.
|
|
739
|
|
740 *** Article prefetching functionality has been moved up into
|
124
|
741 Gnus.
|
|
742
|
126
|
743 *** Scoring can now be performed with logical operators like
|
124
|
744 `and', `or', `not', and parent redirection.
|
|
745
|
|
746 *** Article washing status can be displayed in the
|
|
747 article mode line.
|
|
748
|
126
|
749 *** gnus.el has been split into many smaller files.
|
|
750
|
|
751 *** Suppression of duplicate articles based on Message-ID.
|
124
|
752
|
|
753 (setq gnus-suppress-duplicates t)
|
|
754
|
126
|
755 *** New variables for specifying what score and adapt files
|
124
|
756 are to be considered home score and adapt files. See
|
|
757 `gnus-home-score-file' and `gnus-home-adapt-files'.
|
|
758
|
126
|
759 *** Groups can inherit group parameters from parent topics.
|
|
760
|
|
761 *** Article editing has been revamped and is now usable.
|
|
762
|
|
763 *** Signatures can be recognized in more intelligent fashions.
|
124
|
764 See `gnus-signature-separator' and `gnus-signature-limit'.
|
|
765
|
126
|
766 *** Summary pick mode has been made to look more nn-like.
|
124
|
767 Line numbers are displayed and the `.' command can be
|
|
768 used to pick articles.
|
|
769
|
126
|
770 *** Commands for moving the .newsrc.eld from one server to
|
124
|
771 another have been added.
|
|
772
|
|
773 `M-x gnus-change-server'
|
|
774
|
126
|
775 *** A way to specify that "uninteresting" fields be suppressed when
|
124
|
776 generating lines in buffers.
|
|
777
|
126
|
778 *** Several commands in the group buffer can be undone with
|
124
|
779 `M-C-_'.
|
|
780
|
126
|
781 *** Scoring can be done on words using the new score type `w'.
|
|
782
|
|
783 *** Adaptive scoring can be done on a Subject word-by-word basis:
|
124
|
784
|
|
785 (setq gnus-use-adaptive-scoring '(word))
|
|
786
|
126
|
787 *** Scores can be decayed.
|
124
|
788
|
|
789 (setq gnus-decay-scores t)
|
|
790
|
126
|
791 *** Scoring can be performed using a regexp on the Date header. The
|
124
|
792 Date is normalized to compact ISO 8601 format first.
|
|
793
|
126
|
794 *** A new command has been added to remove all data on articles from
|
124
|
795 the native server.
|
|
796
|
|
797 `M-x gnus-group-clear-data-on-native-groups'
|
|
798
|
126
|
799 *** A new command for reading collections of documents
|
124
|
800 (nndoc with nnvirtual on top) has been added -- `M-C-d'.
|
|
801
|
126
|
802 *** Process mark sets can be pushed and popped.
|
|
803
|
|
804 *** A new mail-to-news backend makes it possible to post
|
124
|
805 even when the NNTP server doesn't allow posting.
|
|
806
|
126
|
807 *** A new backend for reading searches from Web search engines
|
124
|
808 (DejaNews, Alta Vista, InReference) has been added.
|
|
809
|
|
810 Use the `G w' command in the group buffer to create such
|
|
811 a group.
|
|
812
|
126
|
813 *** Groups inside topics can now be sorted using the standard
|
124
|
814 sorting functions, and each topic can be sorted independently.
|
|
815
|
|
816 See the commands under the `T S' submap.
|
|
817
|
126
|
818 *** Subsets of the groups can be sorted independently.
|
124
|
819
|
|
820 See the commands under the `G P' submap.
|
|
821
|
126
|
822 *** Cached articles can be pulled into the groups.
|
124
|
823
|
|
824 Use the `Y c' command.
|
|
825
|
126
|
826 *** Score files are now applied in a more reliable order.
|
|
827
|
|
828 *** Reports on where mail messages end up can be generated.
|
124
|
829
|
|
830 `M-x nnmail-split-history'
|
|
831
|
126
|
832 *** More hooks and functions have been added to remove junk
|
124
|
833 from incoming mail before saving the mail.
|
|
834
|
|
835 See `nnmail-prepare-incoming-header-hook'.
|
|
836
|
126
|
837 *** The nnml mail backend now understands compressed article files.
|
|
838
|
136
|
839 ** Custom 1.86, courtesy of Per Abrahamsen
|
124
|
840
|
|
841 The Customize library enables Emacs Lisp programmers to specify types
|
126
|
842 of their variables, so that the users can customize them.
|
|
843
|
|
844 Invoke the customizations buffer using the menus (Customize is at the
|
|
845 top of the Options menu), or using commands `M-x customize',
|
|
846 `M-x customize-variable' and `M-x customize-face'. Customize can save
|
|
847 the changed settings to your `.emacs' file.
|
|
848
|
|
849 Customize is now the preferred way to change XEmacs settings. Tens of
|
|
850 packages have been converted to take advantage of the Customize
|
|
851 features, including Gnus, Message, Supercite, Psgml, Comint, W3,
|
|
852 cc-mode (and many other programming language modes), ispell.el,
|
|
853 ps-print.el, id-select.el, most of the programming language modes, and
|
|
854 many many more.
|
|
855
|
|
856 See the "Lisp Changes" section later for a short description of why
|
|
857 and how to add custom support to your Lisp packages. Custom is also
|
|
858 documented in the XEmacs info manuals.
|
|
859
|
144
|
860 ** W3-3.0.86, courtesy of William Perry
|
126
|
861
|
|
862 Version 3 of Emacs/W3, the Emacs World Wide Web browser, has been
|
|
863 included. It is significantly faster than any of the previous
|
|
864 versions, and contains numerous new features.
|
|
865
|
|
866 ** AUCTeX-9.7k, courtesy of Per Abrahamsen
|
|
867
|
|
868 AUC TeX is a comprehensive customizable integrated environment for
|
146
|
869 writing input files for LaTeX using Emacs.
|
126
|
870
|
|
871 AUC TeX lets you run TeX/LaTeX and other LaTeX-related tools, such as
|
|
872 a output filters or post processor from inside Emacs. Especially
|
|
873 `running LaTeX' is interesting, as AUC TeX lets you browse through the
|
|
874 errors TeX reported, while it moves the cursor directly to the
|
|
875 reported error, and displays some documentation for that particular
|
|
876 error. This will even work when the document is spread over several
|
|
877 files.
|
|
878
|
|
879 AUC TeX automatically indents your `LaTeX-source', not only as you
|
|
880 write it -- you can also let it indent and format an entire document.
|
|
881 It has a special outline feature, which can greatly help you `getting
|
|
882 an overview' of a document.
|
|
883
|
|
884 Apart from these special features, AUC TeX provides an large range of
|
|
885 handy Emacs macros, which in several different ways can help you write
|
|
886 your LaTeX documents fast and painless.
|
|
887
|
|
888 ** redo.el-1.01, courtesy of Kyle Jones
|
|
889
|
|
890 redo.el is a package that implements true redo mechanism in XEmacs
|
|
891 buffers. Once you load it from your `.emacs', you can bind the `redo'
|
|
892 command to a convenient key to use it.
|
|
893
|
|
894 Emacs' normal undo system allows you to undo an arbitrary number of
|
|
895 buffer changes. These undos are recorded as ordinary buffer changes
|
|
896 themselves. So when you break the chain of undos by issuing some
|
|
897 other command, you can then undo all the undos. The chain of recorded
|
|
898 buffer modifications therefore grows without bound, truncated only at
|
|
899 garbage collection time.
|
|
900
|
|
901 The redo/undo system is different in two ways:
|
|
902
|
|
903 *** The undo/redo command chain is only broken by a buffer modification.
|
|
904
|
|
905 You can move around the buffer or switch buffers and still come back
|
|
906 and do more undos or redos.
|
|
907
|
|
908 *** The `redo' command rescinds the most recent undo without
|
|
909 recording the change as a _new_ buffer change.
|
|
910
|
|
911 It completely reverses the effect of the undo, which includes making
|
|
912 the chain of buffer modification records shorter by one, to counteract
|
|
913 the effect of the undo command making the record list longer by one.
|
|
914
|
136
|
915 ** edmacro.el-3.10, courtesy of Dave Gillespie, ported to XEmacs by
|
126
|
916 Hrvoje Niksic.
|
|
917
|
|
918 Edmacro is a utility that provides easy editing of keyboard macros.
|
|
919 Originally written by Dave Gillespie, it has been mostly rewritten by
|
|
920 Hrvoje Niksic, in order to make it distinguish characters and integer,
|
|
921 as well as to adapt it to XEmacs keysyms.
|
|
922
|
|
923 Press `C-x C-k' to invoke the `edit-kbd-macro' command that lets you
|
|
924 edit old as well as define new keyboard macros. You can also edit the
|
|
925 last 100 keystrokes and insert them into a macro to be bound to a key
|
|
926 or named as a command. The recorded/edited macros can be dumped to
|
|
927 `.emacs' file.
|
|
928
|
140
|
929 ** xmine.el-1.8, courtesy of Jens Lautenbacher
|
126
|
930
|
|
931 XEmacs now includes a minesweeper game with a full-featured graphics
|
|
932 and mouse interface. Invoke with `M-x xmine'.
|
|
933
|
140
|
934 ** efs-1.15-x5 courtesy of Andy Norman and Michael Sperber
|
126
|
935
|
|
936 EFS is now integrated with XEmacs, and replaces the old ange-ftp. It
|
|
937 has many more features, including info documentation, support for many
|
|
938 different FTP servers, and integration with dired.
|
|
939
|
|
940 ** mic-paren.el-1.3.1, courtesy of Mikael Sjödin
|
|
941 ** hyperbole-4.022, courtesy of Bob Weiner
|
|
942 ** hm--html-menus-5.3, courtesy of Heiko Muenkel
|
|
943 ** python-mode.el-2.90, courtesy of Barry Warsaw
|
140
|
944 ** balloon-help-1.06, courtesy of Kyle Jones
|
126
|
945 ** xrdb-mode.el-1.21, courtesy of Barry Warsaw
|
|
946 ** igrep.el-2.56, courtesy of Kevin Rodgers
|
|
947 ** frame-icon.el, courtesy of Michael Lamoureux and Bob Weiner
|
|
948 ** itimer.el-1.05, courtesy of Kyle Jones
|
140
|
949 ** VM-6.30, courtesy of Kyle Jones
|
126
|
950 ** OO-Browser-2.10, courtesy of Bob Weiner
|
|
951 ** viper-2.93, courtesy of Michael Kifer
|
144
|
952 ** ediff-2.65, courtesy of Michael Kifer
|
126
|
953 ** detached-minibuf-1.1, courtesy of Alvin Shelton
|
|
954 ** whitespace-mode.el, courtesy of Heiko Muenkel
|
|
955 ** winmgr-mode.el, courtesy of David Konerding, Stefan Strobel & Barry Warsaw
|
|
956 ** fast-lock.el-3.11.01, courtesy of Simon Marshall
|
|
957 ** lazy-lock.el-1.16, courtesy of Simon Marshall
|
|
958 ** browse-cltl2.el-1.1, courtesy of Holger Schauer
|
|
959 ** eldoc.el-1.10, courtesy of Noah Friedman
|
|
960 ** tm-7.105, courtesy of MORIOKA Tomohiko
|
140
|
961 ** verilog-mode.el-2.25, courtesy of Michael McNamara & Adrian Aichner
|
126
|
962 ** overlay.el, courtesy of Joseph Nuspl
|
140
|
963 ** live-icon.el-1.3, fixes courtesy of Karl Hegbloom
|
|
964 ** tpu-edt.el, fixes courtesy of R. Kevin Oberman
|
144
|
965 ** etags.c-11.86 Courtesy of F. Potortì
|
140
|
966
|
126
|
967
|
136
|
968 * Lisp and internal changes in XEmacs 20.2
|
126
|
969 ==========================================
|
|
970
|
|
971 ** `defcustom' and `defgroup' can now be used to specify types and
|
|
972 placement of the user-settable variables.
|
|
973
|
|
974 You can now specify the types of user-settable variables in your Lisp
|
|
975 packages to be customized by users. To do so, use `defcustom' as a
|
|
976 replacement for `defvar'.
|
|
977
|
|
978 For example, the old declaration:
|
124
|
979
|
|
980 (defvar foo-blurgoze nil
|
|
981 "*non-nil means that foo will act very blurgozely.")
|
|
982
|
126
|
983 can be rewritten as:
|
124
|
984
|
|
985 (defcustom foo-blurgoze nil
|
|
986 "*non-nil means that foo will act very blurgozely."
|
126
|
987 :type 'boolean
|
|
988 :group 'foo)
|
|
989
|
|
990 From a package writer's point of view, nothing has been changed
|
|
991 However, the user can now type `M-x customize RET foo-blurgoze RET' to
|
|
992 customize the variable.
|
|
993
|
|
994 Other, more complex data structures can be described with `defcustom'
|
|
995 too, for instance:
|
124
|
996
|
|
997 (defcustom foo-hairy-alist '((somekey . "somestring")
|
|
998 (otherkey . (foo-doit))
|
|
999 (thirdkey . [1 2 3]))
|
126
|
1000 "*Alist describing the hairy options of the foo package.
|
124
|
1001 The CAR of each element is a symbol, whereas the CDR can be either a
|
126
|
1002 string, a form to evaluate, or a vector of integers.
|
|
1003 New Emacs users simply adore alists like this one."
|
124
|
1004 :type '(repeat (cons (symbol :tag "Key")
|
|
1005 (choice string
|
|
1006 (vector (repeat :inline t integer))
|
126
|
1007 sexp)))
|
|
1008 :group 'foo)
|
|
1009
|
|
1010 The user will be able to add and remove the entries to the list in a
|
|
1011 visually appealing way, as well as save the settings to his/her
|
|
1012 `.emacs'.
|
|
1013
|
|
1014 Note that `defcustom' will also be included in GNU Emacs 19.35, and
|
|
1015 that both XEmacs and GNU Emacs will be using it in the future.
|
|
1016 Although the user-interface of customize may change, the Lisp
|
|
1017 interface will remain the same. This is why we recommend that you use
|
|
1018 `defcustom' for user-settable variables in your new Lisp packages.
|
|
1019
|
|
1020 ** The `read-kbd-macro' function is now available.
|
|
1021
|
136
|
1022 The `read-kbd-macro' function (as well as the read-time evaluated
|
|
1023 `kbd' macro) from the edmacro package is now available in XEmacs. For
|
|
1024 example:
|
126
|
1025
|
|
1026 (define-key foo-mode-map (kbd "C-c <up>") 'foo-up)
|
|
1027
|
136
|
1028 is completely equivalent to
|
126
|
1029
|
|
1030 (define-key foo-mode-map [(control ?c) up] 'foo-up)
|
|
1031
|
136
|
1032 The `kbd' macro is preferred over `read-kbd-macro' function , as it
|
|
1033 evaluates before compiling, thus having no loading overhead.
|
|
1034
|
|
1035 Using `kbd' is not necessary for GNU Emacs compatibility (GNU Emacs
|
|
1036 supports the XEmacs-style keysyms), but adds to clarity. For example,
|
|
1037 (kbd "C-?") is usually easier to read than [(control ??)]. The full
|
|
1038 description of the syntax of keybindings accepted by `read-kbd-macro'
|
|
1039 is documented in the docstring of `edmacro-mode'.
|
126
|
1040
|
|
1041 ** Overlay compatibility is implemented.
|
|
1042
|
|
1043 The overlay support in XEmacs is now functional. Written by Joe
|
|
1044 Nuspl, the overlay compatibility library overlay.el is implemented on
|
|
1045 top of the native XEmacs extents, and can be used as a GNU
|
124
|
1046 Emacs-compatible way of changing display properties.
|
|
1047
|
126
|
1048 ** You should use keysyms kp-* (kp-1, kp-2, ..., kp-enter etc.)
|
136
|
1049 rather than the old form kp_*. The new form is also compatible with
|
|
1050 GNU Emacs.
|
126
|
1051
|
|
1052 ** The keysyms mouse-1, mouse-2, mouse-3 and down-mouse-1,
|
|
1053 down-mouse-2, and down-mouse-3 have been added for GNU Emacs
|
|
1054 compatibility.
|
|
1055
|
|
1056 ** A new user variable `signal-error-on-buffer-boundary' has been
|
|
1057 added.
|
|
1058
|
|
1059 Set this to variable to nil to avoid XEmacs usual lossage of zmacs
|
|
1060 region when moving up against a buffer boundary.
|
|
1061
|
146
|
1062 ** lib-complete.el was MULE-ized.
|
|
1063
|
|
1064 The commands `find-library', `find-library-other-window' and
|
|
1065 `find-library-other-frame' now take an optional coding system
|
|
1066 argument.
|
|
1067
|
|
1068 ** Experimental support for Lisp reader macros #-, #+.
|
|
1069
|
|
1070 The Common Lisp reader macros for feature test are now supported. This
|
|
1071 feature is present for evaluation purposes and is subject to change.
|
|
1072
|
|
1073 ** `values' now has a setf method
|
|
1074
|
126
|
1075 ** The `eval-after-load' and `eval-next-after-load' functions are
|
|
1076 now available.
|
|
1077
|
|
1078 ** A bug that prevented `current-display-table' to be correctly set
|
|
1079 with `set-specifier' has been fixed.
|
|
1080
|
|
1081 ** The bug in easymenu which prevented multiple menus from being
|
|
1082 accessible through button3 has been fixed.
|
|
1083
|
|
1084 You can now safely use easymenu to define multiple menu entries in a
|
|
1085 compatible way, with the added menus accessible via button3 as local
|
|
1086 submenus.
|
|
1087
|
|
1088 ** Many bugs in the scrollbar code have been fixed.
|
|
1089
|
|
1090 ** First alpha level support of MS Windows NT is available, courtesy
|
140
|
1091 of David Hobley and Marc Paquette.
|
126
|
1092
|
|
1093 ** Wnn/egg now has initial support Courtesy of Jareth Hein.
|
|
1094
|
|
1095 ** Some old non-working code has been removed until someone chooses
|
|
1096 to work on it.
|
|
1097
|
|
1098 This includes much of the NeXTStep stuff. The VMS support is also
|
|
1099 likely to be removed in the future.
|
|
1100
|
|
1101 ** Many files have been purged out of the etc/ directory.
|
|
1102
|
|
1103 If you still need the purged files, look for them in the GNU Emacs
|
|
1104 distribution.
|
|
1105
|
|
1106
|
|
1107 * Major Differences Between 19.14 and 20.0
|
|
1108 ===========================================
|
88
|
1109
|
|
1110 XEmacs 20.0 is the first public release to have support for MULE
|
|
1111 (Multi-Lingual Emacs). The --with-mule configuration flag must be
|
|
1112 used to enable Mule support.
|
|
1113
|
|
1114 Many bugs have been fixed. An effort has been made to eradicate all
|
|
1115 XEmacs crashes, although we are not quite done yet. The overall
|
|
1116 quality of XEmacs should be higher than any previous release. XEmacs
|
|
1117 now compiles with nary a warning with some compilers.
|
|
1118
|
|
1119 -- Multiple character sets can be displayed in a buffer. The file
|
|
1120 mule-doc/demo in the distribution contains a greeting in many
|
|
1121 different languages.
|
|
1122
|
|
1123 -- Although the Mule work is for all languages, particular effort has
|
|
1124 been invested in Japanese, with particular focus on Japanese users
|
|
1125 of Sun WorkShop. Many menubar labels have been translated into
|
90
|
1126 Japanese. Martin Buchholz, the maintainer of MULE features within
|
153
|
1127 XEmacs normally runs XEmacs in a Japanese language environment.
|
90
|
1128 Some of the other contributors are Japanese, most importantly
|
|
1129 Morioka Tomohiko, author of the TM package, providing MIME support
|
|
1130 for Mail and News.
|
88
|
1131
|
|
1132 -- Input for complex Asian languages is supported via XIM, a mechanism
|
|
1133 introduced in X11R5 to allow applications to get localized input
|
|
1134 without knowledge of the language. The way XIM works is that when
|
|
1135 the locale has a complex character set, such as Japanese, and extra
|
|
1136 minibuffer-like status window appears attached to various
|
|
1137 application windows, and indicates the status of the input method.
|
|
1138 Composed input in XEmacs should work the same as with other
|
|
1139 applications. If Motif and Mule support is configured into XEmacs,
|
|
1140 then XIM support is automatically configured in as well.
|
|
1141
|
|
1142 -- TM (Tools for Mime) now comes with XEmacs. This provides MIME
|
243
|
1143 (Multipurpose Internet Mail Extensions) support for Mail and News.
|
|
1144 The primary author is Morioka Tomohiko.
|
88
|
1145
|
|
1146 -- Japanese input can also be input using the `canna' input method.
|
|
1147 This support was contributed by Morioka Tomohiko. Setting up canna
|
|
1148 usually requires more user effort (and better knowledge of Japanese!)
|
|
1149 than XIM, but provides a better-integrated input method.
|
|
1150
|
|
1151 -- A mini-tutorial on using Mule:
|
|
1152
|
|
1153 -- Every time data passes between XEmacs and the rest of the
|
|
1154 environment, via file or process input or output, XEmacs must
|
|
1155 convert between its internal multi-character representation and
|
|
1156 the external representation (`coding system'). Many
|
|
1157 difficulties with Mule are related to controlling these coding
|
|
1158 system conversions.
|
|
1159
|
|
1160 -- file-coding-system, file-coding-system-for-read,
|
|
1161 overriding-file-coding-system, and file-coding-system-alist
|
|
1162 are used to determine the coding systems used on file input
|
|
1163 and output.
|
|
1164
|
|
1165 -- For each process, (set-process-input-coding-system) and
|
|
1166 (set-process-output-coding-system) determine the coding
|
|
1167 system used for I/O from the process.
|
|
1168
|
|
1169 -- Many other things are encoded using pathname-coding-system:
|
|
1170 -- file and directory names
|
|
1171 -- window manager properties: window title, icon name
|
|
1172 -- process names and process arguments
|
|
1173 -- XIM input.
|
|
1174
|
|
1175 -- In many cases, you will want to have the same values for all
|
|
1176 the above variables in many cases. For example, in a
|
|
1177 Japanese environment, you will want to use the 'euc-japan
|
|
1178 coding system consistently, except when running certain
|
|
1179 processes that do byte-oriented, rather than
|
|
1180 character-oriented I/O, such as gzip, or when processing Mail
|
|
1181 or News, where ISO2022-based coding systems are the norm,
|
|
1182 since they support multiple character sets.
|
|
1183
|
|
1184 -- To add support for a new language or character set, start by
|
|
1185 trying to copy code in japanese-hooks.el.
|
|
1186
|
|
1187 -- The traditional pre-Mule data conversion is equivalent to the
|
|
1188 'binary coding system under Mule. In this case all characters
|
|
1189 are treated as iso8859-1 (i.e. characters for English + Western
|
|
1190 European languages).
|
|
1191
|
|
1192 -- many fileio-related commands such as find-file and write-file
|
|
1193 take an extra argument, coding-system, which specifies the
|
|
1194 encoding to be used with the file on disk. For example, here is
|
|
1195 a command that converts from the Japanese EUC to ISO2022 format:
|
|
1196
|
|
1197 xemacs -batch -eval '(progn (find-file
|
|
1198 "locale-start.el.euc" (quote euc-japan)) (write-file
|
|
1199 "locale-start.el" nil (quote iso-2022-8-unix)))'
|
|
1200
|
|
1201 Interactively, you can be prompted for a coding system by
|
|
1202 providing a prefix argument to the fileio command. In
|
|
1203 particular, C-u C-x C-f is a useful sequence to edit a file
|
|
1204 using a particular coding system.
|
|
1205
|
|
1206 -- In an Asian locale (i.e. if $LANG is set to ja, ko, or zh),
|
|
1207 XEmacs automatically sets up a language environment assuming
|
|
1208 that the operating system encodes information in the national
|
|
1209 version of EUC, which supports English and the national
|
|
1210 language, but typically no other character sets.
|
|
1211
|
|
1212 -- Command line processing should work much better now - no more order
|
|
1213 dependencies.
|
|
1214
|
|
1215 -- Many many package upgraded (thanks go to countless maintainers):
|
|
1216
|
|
1217 -- ediff 2.64 (Michael Kifer)
|
90
|
1218 -- Gnus 5.2.40 (Lars Magne Ingebrigtsen)
|
88
|
1219 -- w3 3.0.51 (Bill Perry)
|
90
|
1220 -- ilisp 5.8 (Chris McConnell, Ivan Vasquez, Marco Antoniotti, Rick
|
|
1221 Campbell)
|
88
|
1222 -- VM 5.97 (Kyle Jones)
|
|
1223 -- etags 11.78 (Francesco Potorti`)
|
|
1224 -- ksh-mode.el 2.9
|
|
1225 -- vhdl-mode.el 2.73 (Rod Whitby)
|
|
1226 -- id-select.el (Bob Weiner)
|
|
1227 -- EDT/TPU emulation modes should work now for the first time.
|
|
1228 -- viper 2.92 (Michael Kifer) is now the `official' vi emulator for XEmacs.
|
|
1229 -- big-menubar should work much better now.
|
|
1230 -- mode-motion+.el 3.16
|
|
1231 -- backup-dir 2.0 (Greg Klanderman)
|
|
1232 -- ps-print.el-3.05 (Jacques Duthen Prestataire)
|
90
|
1233 -- lazy-lock-1.15 (Simon Marshall)
|
|
1234 -- reporter 3.3 (Barry Warsaw)
|
88
|
1235 -- hm--html-menus 5.0 (Heiko Muenkel)
|
|
1236 -- cc-mode 4.322 (Barry Warsaw)
|
|
1237 -- elp 2.37 (Barry Warsaw)
|
|
1238
|
|
1239
|
|
1240 -- Many new packages have been added:
|
|
1241 -- m4-mode 1.8 (Andrew Csillag)
|
|
1242 -- crisp.el - crisp/brief emulation (Gary D. Foster)
|
|
1243 -- Johan Vroman's iso-acc.el has been ported to XEmacs by Alexandre Oliva
|
90
|
1244 -- psgml-1.01 (Lennart Staflin, James Clark)
|
88
|
1245 -- python-mode.el 2.83 (Barry Warsaw)
|
|
1246 -- vrml-mode.el (Ben Wing)
|
90
|
1247 -- enriched.el, face-menu.el (Boris Goldowsky, Michael Sperber)
|
|
1248 -- sh-script.el (Daniel Pfeiffer)
|
|
1249 -- decipher.el (Christopher J. Madsen)
|
88
|
1250
|
|
1251 -- New function x-keysym-on-keyboard-p helps determine keyboard
|
|
1252 characteristics for key rebinding:
|
|
1253
|
|
1254 x-keysym-on-keyboard-p: (KEYSYM &optional DEVICE)
|
|
1255 -- a built-in function.
|
|
1256 Return true if KEYSYM names a key on the keyboard of DEVICE.
|
|
1257 More precisely, return true if pressing a physical key
|
|
1258 on the keyboard of DEVICE without any modifier keys generates KEYSYM.
|
|
1259 Valid keysyms are listed in the files /usr/include/X11/keysymdef.h and in
|
|
1260 /usr/lib/X11/XKeysymDB, or whatever the equivalents are on your system.
|
|
1261
|
|
1262 -- Installed info files are now compressed (support courtesy of Joseph J Nuspl)
|
|
1263
|
|
1264 -- (load-average) works on Solaris, even if you're not root. Thanks to
|
|
1265 Hrvoje Niksic.
|
|
1266
|
|
1267 -- OffiX drag-and-drop support added
|
|
1268
|
|
1269 -- lots of syncing with 19.34 elisp files, most by Steven Baur
|
70
|
1270
|
|
1271
|
0
|
1272 ** Major Differences Between 19.13 and 19.14
|
|
1273 ============================================
|
|
1274
|
|
1275 XEmacs has a new address! The canonical ftp site is now
|
|
1276 ftp.xemacs.org:/pub/xemacs and the Web page is now at
|
|
1277 http://www.xemacs.org/. All mailing lists now have @xemacs.org
|
|
1278 addresses. For the time being the @cs.uiuc.edu addresses will
|
|
1279 continue to function.
|
|
1280
|
|
1281 This is a major new release. Many features have been added, as well
|
|
1282 as many bugs fixed. The Motif menubar has still _NOT_ been fixed for
|
|
1283 19.14. You should use the Lucid menubar instead.
|
|
1284
|
|
1285
|
|
1286
|
|
1287 Major user-visible changes:
|
|
1288 ---------------------------
|
|
1289
|
|
1290 -- Color support in TTY mode is provided. You have to have a TTY capable
|
|
1291 of displaying them, such as color xterm or the console under Linux.
|
|
1292 If your terminal type supports colors (e.g. `xterm-color'), XEmacs
|
|
1293 will automatically notice this and start using color.
|
|
1294
|
|
1295 -- blink-cursor-mode enables a blinking text cursor. There is a
|
|
1296 menubar option for this also.
|
|
1297
|
|
1298 -- auto-show-mode is turned on by default; this means that XEmacs
|
|
1299 will automatically scroll a window horizontally as necessary to
|
|
1300 keep point in view.
|
|
1301
|
|
1302 -- a file dialog box is provided and will be used whenever you
|
|
1303 are prompted for a filename as a result of a menubar selection.
|
|
1304
|
|
1305 -- XEmacs can be compiled with built-in GIF, JPEG, and PNG support.
|
|
1306 The GIF libraries are supplied with XEmacs; for JPEG and PNG,
|
|
1307 you have to obtain the appropriate libraries (this is well-
|
|
1308 documented). This makes image display much easier and faster under
|
|
1309 W3 (the web browser) and TM (adds MIME support to VM and GNUS;
|
|
1310 not yet included with XEmacs but will be in 19.15).
|
|
1311
|
|
1312 -- XEmacs provides a really nice mode (PSGML with "Wing improvements")
|
|
1313 for editing HTML and other SGML documents. It parses the document,
|
|
1314 and as a result it does proper indentation, can show you the context
|
|
1315 you're in, the allowed tags at a particular position, etc.
|
|
1316
|
|
1317 -- XEmacs comes standard with modes for editing Java and VRML code,
|
|
1318 including font-lock support.
|
|
1319
|
|
1320 -- GNUS 5.2 comes standard with XEmacs.
|
|
1321
|
|
1322 -- You can now embed colors in the modeline, with different sections
|
|
1323 of the modeline responding appropriately to various mouse gestures:
|
|
1324 For example, clicking on the "read-only" indicator toggles the
|
|
1325 read-only status of a buffer, and clicking on the buffer name
|
|
1326 cycles to the next buffer. Pressing button3 on these areas brings
|
|
1327 up a popup menu of appropriate commands.
|
|
1328
|
|
1329 -- There is a much nicer mode for completion lists and such.
|
|
1330 At the minibuffer prompt, if you hit page-up or Meta-V, the completion
|
|
1331 buffer will be displayed (if it wasn't already), you're moved into
|
|
1332 it, and can move around and select filenames using the arrow keys
|
|
1333 and the return key. Rather than a cursor, a filename is highlighted,
|
|
1334 and the arrow keys change which filename is highlighted.
|
|
1335
|
|
1336 -- The edit-faces subsystem has also been much improved, in somewhat
|
|
1337 similar ways to the completion list improvements.
|
|
1338
|
|
1339 -- Many improvements were made to the multi-device support.
|
|
1340 We now provide an auxiliary utility called "gnuattach" that
|
|
1341 lets you connect to an existing XEmacs process and display
|
|
1342 a TTY frame on the current TTY connection, and commands
|
|
1343 `make-frame-on-display' (with a corresponding menubar entry)
|
|
1344 and `make-frame-on-tty' for more easily creating frames on
|
|
1345 new TTY or X connections.
|
|
1346
|
|
1347 -- We have incorporated nearly all of the functionality of GNU Emacs
|
|
1348 19.30 into XEmacs. This includes support for lazy-loaded
|
|
1349 byte code and documentation strings, improved paragraph filling,
|
|
1350 better support for margins within documents, v19 regular expression
|
|
1351 routines (including caching of compiled regexps), etc.
|
|
1352
|
|
1353 -- In accordance with GNU Emacs 19.30, the following key binding
|
|
1354 changes have been made:
|
|
1355
|
|
1356 C-x ESC -> C-x ESC ESC
|
|
1357 ESC ESC -> ESC :
|
|
1358 ESC ESC ESC is "abort anything" (keyboard-escape-quit).
|
|
1359
|
|
1360 -- All major packages have been updated to their latest-released
|
|
1361 versions.
|
|
1362
|
|
1363 -- XEmacs now gracefully handles a full colormap (such as typically
|
|
1364 results when running Netscape). The nearest available color
|
|
1365 is automatically substituted.
|
|
1366
|
|
1367 -- Many bug fixes to the subprocess/PTY code, ps-print, menubar
|
|
1368 functions, `set-text-properties', DEC Alpha support, toolbar
|
|
1369 resizing (the "phantom VM toolbar" bug), and lots and lots
|
|
1370 of other things were made.
|
|
1371
|
|
1372 -- The ncurses library (a replacement for curses, found especially
|
|
1373 under Linux) is supported, and will be automatically used
|
|
1374 if it can be found.
|
|
1375
|
|
1376 -- You can now undo in the minibuffer.
|
|
1377
|
|
1378 -- Surrogate minibuffers now work. These are also sometimes referred
|
|
1379 to as "global" minibuffers.
|
|
1380
|
|
1381 -- font-lock has been merged with GNU Emacs 19.30, improved defaults
|
|
1382 have been added, and changes have been made to the way it is
|
|
1383 configured.
|
|
1384
|
|
1385 -- Many, many modes have menubar entries for them.
|
|
1386
|
|
1387 -- `recover-session' lets you recover whatever files can be recovered
|
|
1388 after your XEmacs process has died unexpectedly.
|
|
1389
|
|
1390 -- C-h k followed by a toolbar button press correctly reports
|
|
1391 the binding of the toolbar button.
|
|
1392
|
|
1393 -- `function-key-map', `key-translation-map', and `keyboard-translate-table'
|
|
1394 are now correctly implemented.
|
|
1395
|
|
1396 -- `show-message-log' (and its menubar entry under Edit) have been
|
|
1397 removed; instead use `view-lossage' (and its menubar entry under
|
|
1398 Help).
|
|
1399
|
|
1400 -- There is a standard menubar entry for specifying which browser
|
|
1401 (Netscape, W3, Mosaic, etc.) to use when dispatching URL's
|
|
1402 in mail, Usenet news, etc.
|
|
1403
|
|
1404 -- Improved native sound support under Linux.
|
|
1405
|
|
1406 -- Lots of other things we forgot to mention.
|
|
1407
|
|
1408
|
|
1409
|
|
1410 Significant Lisp-level changes:
|
|
1411 -------------------------------
|
|
1412
|
|
1413 -- Many improvements to the E-Lisp documentation have been made;
|
|
1414 it should now be up-to-date and complete in nearly all cases.
|
|
1415
|
|
1416 -- XEmacs has extensive documentation on its internals, for
|
|
1417 would-be C hackers.
|
|
1418
|
|
1419 -- Common-Lisp support (the CL package) is now dumped standard
|
|
1420 into XEmacs. No more need for (require 'cl) or anything
|
|
1421 like that.
|
|
1422
|
|
1423 -- Full support for extents and text properties over strings is
|
|
1424 provided.
|
|
1425
|
|
1426 -- The extent properties `start-open', `end-open', `start-closed',
|
|
1427 and `end-closed' now work correctly w.r.t. text properties.
|
|
1428
|
|
1429 -- The `face' property of extents and text properties can now
|
|
1430 be a list.
|
|
1431
|
116
|
1432 -- The `mouse-face' property from GNU Emacs is now supported.
|
0
|
1433 It supersedes the `highlight' property.
|
|
1434
|
116
|
1435 -- `enriched' and `facemenu' packages from GNU Emacs have been ported.
|
0
|
1436
|
|
1437 -- New functions for easier creation of dialog boxes:
|
|
1438 `get-dialog-box-response', `message-box', and `message-or-box'.
|
|
1439
|
|
1440 -- `function-min-args' and `function-max-args' allow you to determine
|
|
1441 the minimum and maximum allowed arguments for any type of
|
|
1442 function (i.e. subr, lambda expression, byte-compiled function, etc.).
|
|
1443
|
|
1444 -- Some C-level support for doing E-Lisp profiling is provided.
|
|
1445 See `start-profiling', `stop-profiling', and
|
|
1446 `pretty-print-profiling-info'.
|
|
1447
|
|
1448 -- `current-process-time' reports the user, system, and real times
|
|
1449 for the currently running XEmacs process.
|
|
1450
|
|
1451 -- `next-window', `previous-window', `next-frame', `previous-frame',
|
|
1452 `other-window', `get-lru-window', etc. have an extra device
|
|
1453 argument that allows you to restrict which devices it includes
|
|
1454 (normally all devices). Some functions that incorrectly ignored
|
|
1455 frames on different devices (e.g. C-x 0) are fixed.
|
|
1456
|
|
1457 -- new functions `run-hook-with-args-until-success',
|
|
1458 `run-hook-with-args-until-failure'.
|
|
1459
|
|
1460 -- generalized facility for local vs. global hooks. See `make-local-hook',
|
|
1461 `add-hook'.
|
|
1462
|
|
1463 -- New functions for querying the window tree: `frame-leftmost-window',
|
|
1464 `frame-rightmost-window', `window-first-hchild', `window-first-vchild',
|
|
1465 `window-next-child', `window-previous-child', and `window-parent'.
|
|
1466
|
|
1467 -- Epoch support works. This gets you direct access to some X events
|
|
1468 and objects (e.g. properties and property-notify events).
|
|
1469
|
|
1470 -- The multi-device support has been majorly revamped. There is now
|
|
1471 a new concept of "consoles" (devices grouped together under a
|
|
1472 common keyboard/mouse), console-local variables, and a generalized
|
|
1473 concept of device/console connection.
|
|
1474
|
|
1475 -- `display-buffer' synched with GNU Emacs 19.30, giving you lots of
|
|
1476 wondrous cruft such as
|
|
1477 -- unsplittable frames
|
|
1478 -- pop-up-frames, pop-up-frame-function
|
|
1479 -- special-display-buffer-names, special-display-regexps,
|
|
1480 special-display-function
|
|
1481 -- same-window-buffer-names, same-window-regexps
|
|
1482
|
|
1483 -- XEmacs has support for accessing DBM- and/or DB-format databases,
|
|
1484 provided that you have the appropriate libraries on your system.
|
|
1485
|
|
1486 -- There is a new font style: "strikethru" fonts.
|
|
1487
|
|
1488 -- New data type "weak list", which is a list with special
|
|
1489 garbage-collection properties, similar to weak hash tables.
|
|
1490
|
|
1491 -- `set-face-parent' makes one face inherit all properties from another.
|
|
1492
|
|
1493 -- The junky frame parameters mechanism has been revamped as
|
|
1494 frame properties, which a standard property-list interface.
|
|
1495
|
|
1496 -- Lots and lots of functions for working with property lists have
|
|
1497 been added.
|
|
1498
|
|
1499 -- New functions `push-window-configuration', `pop-window-configuration',
|
|
1500 `unpop-window-configuration' for maintain a stack of window
|
|
1501 configurations.
|
|
1502
|
|
1503 -- Many fixups to the glyph code; icons and mouse pointers are now
|
|
1504 properly merged into the glyph mechanism.
|
|
1505
|
|
1506 -- `set-specifier' works more sensibly, like `set-face-property'.
|
|
1507
|
|
1508 -- Many new specifiers for individually controlling toolbar height/width
|
|
1509 and visibility and text cursor visibility.
|
|
1510
|
|
1511 -- New face `text-cursor' controls the colors of the text cursor.
|
|
1512
|
|
1513 -- Many new variables for turning on debug information about the
|
|
1514 inner workings of XEmacs.
|
|
1515
|
|
1516 -- Hash tables can now compare their keys using `equal' or `eql'
|
|
1517 as well as `eq'.
|
|
1518
|
|
1519 -- Other things too numerous to mention.
|
|
1520
|
|
1521
|
|
1522
|
|
1523 Significant configuration/build changes:
|
|
1524 ----------------------------------------
|
|
1525
|
|
1526 -- You can disable TTY support, toolbar support, scrollbar support,
|
|
1527 menubar support, and/or dialog box support at configure time
|
|
1528 to save memory.
|
|
1529
|
|
1530 -- New configure option `--extra-verbose' shows the diagnostic
|
|
1531 output from feature testing; this should help track down
|
|
1532 problems with incorrect feature detection.
|
|
1533
|
|
1534 -- `dont-have-xmu' is now `with-xmu', with the reversed sense.
|
|
1535 (It defaults to `yes'.)
|
|
1536
|
|
1537 -- `with-mocklisp' lets you add Mocklisp support if you really
|
|
1538 need this.
|
|
1539
|
|
1540 -- `with-term' for adding TERM support for Linux users.
|
|
1541
|
|
1542
|
|
1543
|
|
1544 ** Major Differences Between 19.12 and 19.13
|
|
1545 ============================================
|
|
1546
|
|
1547 This is primarily a bug-fix release. Lots of bugs have been fixed.
|
|
1548 Hopefully only a few have been introduced. The most noteworthy bug
|
|
1549 fixes are:
|
|
1550
|
|
1551 -- There should be no more problems connecting XEmacs to an X
|
|
1552 server over SLIP or other slow connections.
|
|
1553 -- Periodic crashes when using the Buffers menu should be gone.
|
|
1554 -- etags would sometimes erase the current buffer; it doesn't
|
|
1555 any more.
|
|
1556 -- XEmacs will correctly exit if the X server dies.
|
|
1557 -- uniconified frames are displayed properly under TVTWM.
|
|
1558 -- Breakage in `add-menu-item' / `add-menu-button' is fixed.
|
|
1559
|
|
1560 The Motif menubar has _NOT_ been fixed for 19.13. You should use the
|
|
1561 Lucid menubar instead.
|
|
1562
|
|
1563 Multi-device support should now be working properly. You can now open
|
|
1564 an X device after having started out on a TTY device.
|
|
1565
|
|
1566 Background pixmaps now work. See `set-face-background-pixmap'.
|
|
1567
|
|
1568 Echo area messages are now saved to a buffer, " *Message Log*". To
|
|
1569 see this buffer, use the command `show-message-log'. It is possible
|
|
1570 to filter the message which are actually included by modifying the
|
|
1571 variables `log-message-ignore-regexps' and `log-message-ignore-labels'.
|
|
1572
|
|
1573 You can now control which warnings you want to see. See
|
|
1574 `display-warning-suppressed-classes' and friends.
|
|
1575
|
|
1576 You can now set the default location of an "other window" from the
|
|
1577 Options menu.
|
|
1578
|
|
1579 "Save Options" now saves the state of all faces.
|
|
1580
|
|
1581 You can choose which file "Save Options" writes into; see
|
|
1582 `save-options-file'.
|
|
1583
|
|
1584 XPM support is no longer required for the toolbar.
|
|
1585
|
|
1586 The relocating allocator is now enabled by default whenever possible.
|
|
1587 This allows buffer memory to be returned to the system when no longer
|
|
1588 in use which helps keep XEmacs process size down.
|
|
1589
|
|
1590 The ability to have captioned toolbars has been added. Currently only
|
|
1591 the default toolbar actually has a captioned version provided. A new
|
|
1592 specifier variable, `toolbar-buttons-captioned-p' controls whether the
|
|
1593 toolbar is captioned.
|
|
1594
|
|
1595 A copy of the XEmacs FAQ is now included and is available through info.
|
|
1596
|
|
1597 The on-line E-Lisp reference manual has been significantly updated.
|
|
1598
|
|
1599 There is now audio support under Linux.
|
|
1600
|
|
1601 Modifier keys can now be sticky. This is controlled by the variable
|
|
1602 `modifier-keys-are-sticky'.
|
|
1603
|
|
1604 manual-entry should now work correctly under Irix with the penalty of
|
|
1605 a longer startup time the first time it is invoked. If you are having
|
|
1606 problems with this on another system try setting
|
|
1607 `Manual-use-subdirectory-list' to t.
|
|
1608
|
|
1609 make-tty-device no longer automatically creates the first frame.
|
|
1610
|
|
1611 Rectangular regions now work correctly.
|
|
1612
|
|
1613 ediff no longer sets synchronize-minibuffers to t unless you first set
|
|
1614 ediff-synchronize-minibuffers
|
|
1615
|
|
1616 keyboard-translate-table has been implemented. This means that the
|
|
1617 `enable-flow-control' command for dealing with TTY connections that
|
|
1618 filter out ^S and ^Q now works.
|
|
1619
|
|
1620 You can now create frames that are initially unmapped and frames that
|
|
1621 are "transient for another frame", meaning that they behave more like
|
|
1622 dialog-box frames.
|
|
1623
|
|
1624 Other E-Lisp changes:
|
|
1625
|
|
1626 -- Specifier `menubar-visible-p' for controlling menubar visibility
|
|
1627 -- Local command hooks should be set using `local-pre-command-hook'
|
|
1628 and `local-post-command-hook' instead of making the global
|
|
1629 equivalents be buffer-local.
|
|
1630 -- `quit-char', `help-char', `meta-prefix-char' can be any key specifier
|
|
1631 instead of just an integer.
|
|
1632 -- new functions `add-async-timeout' and `disable-async-timeout'.
|
|
1633 These let you create asynchronous timeouts, which are like
|
|
1634 normal timeouts except that they're executed even during
|
|
1635 running Lisp code. Use this with care!
|
|
1636 -- `debug-on-error' and `stack-trace-on-error' now enter the debugger
|
|
1637 only when an *unhandled* error occurs. If you want the old
|
|
1638 behavior, use `debug-on-signal' and `stack-trace-on-signal'.
|
|
1639 -- \U, \L, \u, \l, \E recognized specially in `replace-match'.
|
|
1640 These are standard ex/perl commands for changing the case of
|
|
1641 replaced text.
|
|
1642 -- New function event-matches-key-specifier-p. This provides
|
|
1643 a clean way of comparing keypress events with key specifiers
|
|
1644 such as 65, (shift home), etc. without having to resort
|
|
1645 to ugly `character-to-event' / `event-to-character' hacks.
|
|
1646 -- New function `add-to-list'
|
|
1647 -- New Common-Lisp functions `some', `every', `notevery', `notany',
|
|
1648 `adjoin', `union', `intersection', `set-difference',
|
|
1649 `set-exclusive-or', `subsetp'
|
|
1650 -- `remove-face-property' provides a clean way of removing a
|
|
1651 face property.
|
|
1652
|
|
1653 Many of the Emacs Lisp packages have been updated. Some of the new
|
|
1654 Emacs Lisp packages ---
|
|
1655
|
|
1656 ada-mode: major mode for editing Ada source
|
|
1657
|
|
1658 arc-mode: simple editing of archives
|
|
1659
|
70
|
1660 auto-show-mode: automatically scrolls horizontally to keep point on-screen
|
0
|
1661
|
|
1662 completion: dynamic word completion mode
|
|
1663
|
|
1664 dabbrev: the dynamic abbrev package has been rewritten and is much
|
|
1665 more powerful -- e.g. it searches in other buffers as well
|
|
1666 as the current one
|
|
1667
|
|
1668 easymenu: menu support package
|
|
1669
|
|
1670 live-icon: makes frame icons represent the current frame contents
|
|
1671
|
|
1672 mailcrypt 3.2: mail encryption with PGP; included but v2.4 is still
|
70
|
1673 the default
|
|
1674
|
|
1675 two-column: for editing two-column text
|
0
|
1676
|
|
1677
|
|
1678 ** Major Differences Between 19.11 and 19.12
|
|
1679 ============================================
|
|
1680
|
|
1681 This is a huge new release. Almost every aspect of XEmacs has been changed
|
|
1682 at least somewhat. The highlights are:
|
|
1683
|
|
1684 -- TTY support (includes face support)
|
|
1685 -- new redisplay engine; should be faster, less buggy, and more powerful
|
|
1686 -- terminology change from "screen" to "frame"
|
|
1687 -- built-in toolbar
|
|
1688 -- toolbar support added to many packages
|
|
1689 -- multiple device support (still in beta; improvements to come in
|
|
1690 19.13)
|
|
1691 -- Purify used to ensure that there are no memory leaks or memory corruption
|
|
1692 problems
|
|
1693 -- horizontal and vertical scrollbars in all windows
|
|
1694 -- new Lucid (i.e. look-alike Motif) scrollbar widget
|
|
1695 -- stay-up menus in the Lucid (look-alike Motif) menubar widget
|
|
1696 -- 3-d modeline
|
|
1697 -- new extents engine; should be faster, less buggy, and more powerful
|
|
1698 -- much more powerful control over faces
|
|
1699 -- expanded menubar
|
|
1700 -- more work on synching with GNU Emacs 19.28
|
|
1701 -- new packages: Hyperbole, OOBR (object browser), hm--html-menus, viper,
|
|
1702 lazy-lock.el, ksh-mode.el, rsz-minibuf.el
|
|
1703 -- package updates for all major packages
|
|
1704 -- dynodump package for Solaris: provides proper undumping and portable
|
|
1705 binaries across different OS versions and machine types
|
|
1706 -- Greatly expanded concept of "glyphs" (pixmaps etc. in a buffer)
|
|
1707 -- built-in support for displaying X-Faces, if the X-Face library is
|
|
1708 available
|
|
1709 -- built-in support for SOCKS if the SOCKS library is available
|
|
1710 -- graceful behavior when the colormap is full (e.g. Netscape ate
|
|
1711 all the colors)
|
|
1712 -- built-in MD5 (secure hashing function) support
|
|
1713
|
|
1714
|
|
1715 More specific information:
|
|
1716
|
|
1717 *** TTY Support
|
|
1718 ---------------
|
|
1719
|
|
1720 The long-awaited TTY support is now available. XEmacs will start up
|
|
1721 in TTY mode (using the tty you started XEmacs from) if the DISPLAY
|
|
1722 environment variable is not set or if you use the `-nw' option.
|
|
1723
|
|
1724 Faces are available on TTY's. For a demonstration, try editing a C
|
|
1725 file and turning on font-lock-mode.
|
|
1726
|
|
1727 You can also connect to additional TTY's using `make-tty-device',
|
|
1728 whether your first frame was a TTY or an X window. This ability is
|
|
1729 not yet completely finished.
|
|
1730
|
|
1731 The full event-loop capabilities (processes, timeouts, etc.) are
|
|
1732 available on TTY's.
|
|
1733
|
|
1734
|
|
1735
|
|
1736 *** New Redisplay Engine
|
|
1737 ------------------------
|
|
1738
|
|
1739 The redisplay engine has been rewritten to improve its efficiency and
|
|
1740 to increase its functionality. It should also be significantly more
|
|
1741 bug-free than the previous redisplay engine.
|
|
1742
|
|
1743 A line that is not big enough to display at the bottom of the window
|
|
1744 will normally be clipped (so that it is partially visible) rather than
|
|
1745 not displayed at all. The variable `pixel-vertical-clip-threshold'
|
|
1746 can be used to control the minimum space that must be available for a
|
|
1747 line to be clipped rather than not displayed at all.
|
|
1748
|
|
1749 Tabs are displayed in such a way that things line up fairly well even
|
|
1750 in the presence of variable-width fonts and/or lines with
|
|
1751 multiply-sized fonts.
|
|
1752
|
|
1753 Display tables are implemented, through the specifier variable
|
|
1754 `current-display-table'. They can be buffer-local, window-local,
|
|
1755 frame-local, or device-local. See below for info about specifiers.
|
|
1756
|
|
1757
|
|
1758
|
|
1759 *** Toolbar
|
|
1760 -----------
|
|
1761
|
|
1762 There is now built-in support for a toolbar. A sample toolbar is
|
|
1763 visible by default at the top of the frame. Four separate toolbars
|
|
1764 can be configured (at the top, bottom, left, and right of the frame).
|
|
1765 The toolbar specification is similar to the menubar specification.
|
|
1766 The up, down, and disabled glyphs of a toolbar button can be
|
|
1767 separately controlled. Explanatory text can be echoed in the echo
|
|
1768 area when the mouse passes over a toolbar button. The size, contents,
|
|
1769 and visibility of the various toolbars can be controlled on a
|
|
1770 per-buffer, per-window, per-frame, and per-device basis through the
|
|
1771 use of specifiers. See the chapter on toolbars in the Lisp Reference
|
|
1772 Manual (included with XEmacs) for more information.
|
|
1773
|
|
1774 The toolbar color and shadow thicknesses are currently controlled only
|
|
1775 through `modify-frame-parameters' and through X resources. We are
|
|
1776 planning on making these controllable through specifiers as well. (Our
|
|
1777 hope is to make `modify-frame-parameters' obsolete, as it is a clunky
|
|
1778 and not very powerful mechanism.)
|
|
1779
|
|
1780 Info, GNUS, VM, W3, and various other packages include custom toolbars
|
|
1781 with them.
|
|
1782
|
|
1783
|
|
1784
|
|
1785 *** Menubar
|
|
1786 -----------
|
|
1787
|
|
1788 Stay-up menus are implemented in the look-alike Motif menubar.
|
|
1789
|
|
1790 The default menubar has been expanded to include most commonly-used
|
|
1791 functions in XEmacs.
|
|
1792
|
|
1793 The options menu has been greatly expanded to include many more
|
|
1794 options.
|
|
1795
|
|
1796 The menubar specification format has been greatly expanded. Per-menu
|
|
1797 activation hooks can be specified through the :filter keyword (thus
|
|
1798 obsoleting `activate-menubar-hook'); this allows for fast response
|
|
1799 time when you have a large and complex menu. You can dynamically
|
|
1800 control whether menu items are present through the :included and
|
|
1801 :config keywords. (The latter keyword implements a simple menubar
|
|
1802 configuration scheme, in conjunction with the variable
|
|
1803 `menubar-configuration'.) Many different menu-item separators (single
|
|
1804 or double line; solid or dashed; flat, etched-in, or etched-out) are
|
|
1805 available. See the chapter on menus in the Lisp Reference Manual for
|
|
1806 more information about all of this.
|
|
1807
|
|
1808 New functions `add-submenu' and `add-menu-button' are available.
|
|
1809 These supersede the older `add-menu' and `add-menu-item' functions,
|
|
1810 and provide a more powerful and consistent interface.
|
|
1811
|
|
1812 New convenience functions for popping up the part or all of the
|
|
1813 menubar in a pop-up menu are available: `popup-menubar-menu' and
|
|
1814 `popup-buffer-menu'.
|
|
1815
|
|
1816 Menus are now incrementally constructed greatly improving menubar
|
|
1817 response time.
|
|
1818
|
|
1819
|
|
1820
|
|
1821 *** Scrollbars
|
|
1822 --------------
|
|
1823
|
|
1824 A look-alike Motif scrollbar is now included with XEmacs. No longer
|
|
1825 will you have to suffer with ugly Athena scrollbars.
|
|
1826
|
|
1827 Windows can now have horizontal scrollbars. Normally they are visible
|
|
1828 when the window's buffer is set to truncate lines rather than wrap
|
|
1829 them (e.g. `(setq truncate-lines t)').
|
|
1830
|
|
1831 All windows, not only the right-most ones, can have vertical
|
|
1832 scrollbars.
|
|
1833
|
|
1834 The functions to change a scrollbar's width have been superseded by
|
|
1835 the specifier variables `scrollbar-width' and `scrollbar-height'.
|
|
1836 This allows their values to be controlled on a buffer-local,
|
|
1837 window-local, frame-local, and device-local basis. See below.
|
|
1838
|
|
1839 The scrollbars interact better with the event loop (for example, you
|
|
1840 can type `C-h k', do a scrollbar action, and see a description of this
|
|
1841 scrollbar action printed as if you had pressed a key sequence or
|
|
1842 selected a menu item).
|
|
1843
|
|
1844 The scrollbar behavior can be reprogrammed, by advising the
|
|
1845 `scrollbar-*' functions.
|
|
1846
|
|
1847
|
|
1848
|
|
1849 *** Key Bindings
|
|
1850 ----------------
|
|
1851
|
|
1852 The oft-used function `goto-line' now has its own binding: M-g.
|
|
1853
|
|
1854 New bindings are available for scrolling the "other" window: M-next,
|
|
1855 M-prior, M-home, M-end. (On many keyboards, `next' and `prior'
|
|
1856 labelled `PgUp' and `PgDn'.)
|
|
1857
|
|
1858 You can reactivate a deactivated Zmacs region, without having any
|
|
1859 other effects, with the binding M-C-z.
|
|
1860
|
|
1861 The bindings `M-u', `M-l', and `M-c' now work on the region (if a
|
|
1862 region is active) or work on a word, as before.
|
|
1863
|
|
1864 Shift-Control-G forces a "critical quit", which drops immediately into
|
|
1865 the debugger; see below.
|
|
1866
|
|
1867
|
|
1868
|
|
1869 *** Modeline
|
|
1870 ------------
|
|
1871
|
|
1872 The modeline can now have a 3-d look; this is enabled by default. The
|
|
1873 specifier variable `modeline-shadow-thickness' controls the size.
|
|
1874
|
|
1875 The modeline can now be turned off on a per-buffer, per-window,
|
|
1876 per-frame, or per-device basis. The specifier variable
|
|
1877 `has-modeline-p' controls whether the modeline is visible. See below
|
|
1878 for details about the vastly powerful specifier mechanism.
|
|
1879
|
|
1880 The modeline functions and variables have been renamed to be
|
|
1881 `*-modeline-*' rather than `*-mode-line-*'. Aliases are provided for
|
|
1882 all the old names.
|
|
1883
|
|
1884 Variable width fonts now work correctly when used in the modeline.
|
|
1885
|
|
1886
|
|
1887
|
|
1888 *** Minibuffer, Echo Area
|
|
1889 -------------------------
|
|
1890
|
|
1891 The minibuffer is no longer constrained to be one line high. The
|
|
1892 package rsz-minibuf.el is included to automatically resize the
|
|
1893 minibuffer when its contents are too big; enable this with
|
|
1894 `resize-minibuffer-mode'.
|
|
1895
|
|
1896 The echo area is now a true buffer, called " *Echo Area*". This
|
|
1897 allows you to customize the echo area behavior through
|
|
1898 before-change-functions and after-change-functions.
|
|
1899
|
|
1900
|
|
1901
|
|
1902 *** Specifiers
|
|
1903 --------------
|
|
1904
|
|
1905 XEmacs has a new concept called "specifiers", used to configure most
|
|
1906 display options (toolbar size and contents, scrollbar size, face
|
|
1907 properties, modeline visibility and shadow-thickness, glyphs, display
|
|
1908 tables, etc.). We are planning on converting all display
|
|
1909 characteristics to use specifiers, and obsoleting the clunky functions
|
|
1910 `frame-parameters' and `modify-frame-parameters'. Specifically:
|
|
1911
|
|
1912 -- You can specify values (called "instantiators") for particular
|
|
1913 "locales" (i.e. buffers, windows, frames, devices, or a global value).
|
|
1914 When determining what the actual value (or "instance") of a specifier
|
|
1915 is, the specifications that are provided are searched from most
|
|
1916 specific (i.e. buffer-local) to most general (i.e. global), looking
|
|
1917 for a matching one.
|
|
1918
|
|
1919 -- You can specify multiple instantiators for a particular locale.
|
|
1920 For example, when specifying what the foreground color of a face
|
|
1921 is in a particular buffer, you could specify two instantiators:
|
|
1922 "dark sea green" and "green". The color would then be dark sea
|
|
1923 green on devices that recognize that color, and green on other
|
|
1924 devices. You have effectively provided a fallback value to make
|
|
1925 sure you get reasonable behavior on all devices.
|
|
1926
|
|
1927 -- You can add one or more tags to an instantiator, where a tag
|
|
1928 is a symbol that has been previously registered with XEmacs.
|
|
1929 This allows you to identify your instantiators for later
|
|
1930 removal in a way that won't interfere with other applications
|
|
1931 using the same specifier. Furthermore, particular tags can
|
|
1932 be restricted to match only particular sorts of devices.
|
|
1933 Any tagged instantiator will be ignored if the device over which
|
|
1934 it is being instanced does not match any of its tags. This
|
|
1935 allows you, for example, to restrict an instantiator to a
|
|
1936 particular device type (X or TTY) and/or class (color, grayscale,
|
|
1937 or mono). (You might want to specify, for example, that a
|
|
1938 particular face is displayed in green on color devices and is
|
|
1939 underlined on mono devices.)
|
|
1940
|
|
1941 -- A full API is provided for manipulating specifiers, and full
|
|
1942 documentation is provided in the Lisp Reference Manual.
|
|
1943
|
|
1944
|
|
1945
|
|
1946 *** Basic Lisp Stuff
|
|
1947 --------------------
|
|
1948
|
|
1949 Common-Lisp backquote syntax is recognized. For example, the old
|
|
1950 expression
|
|
1951
|
|
1952 (` (a b (, c)))
|
|
1953
|
|
1954 can now be written
|
|
1955
|
|
1956 `(a b ,c)
|
|
1957
|
|
1958 The old backquote syntax is still accepted.
|
|
1959
|
|
1960 The new function `type-of' returns a symbol describing the type of a
|
|
1961 Lisp object (`integer', `string', `symbol', etc.)
|
|
1962
|
|
1963 Symbols beginning with a colon (called "keywords") are treated
|
|
1964 specially in that they are automatically made self-evaluating when
|
|
1965 they are interned into `obarray'. The new function `keywordp' returns
|
|
1966 whether a symbol begins with a colon.
|
|
1967
|
|
1968 `get', `put', and `remprop' have been generalized to allow you to set
|
|
1969 and retrieve properties on many different kinds of objects: symbols,
|
|
1970 strings, faces, glyphs, and extents (for extents, however, this is not
|
|
1971 yet implemented). They are joined by a new function `object-props'
|
|
1972 that returns all of the properties that have been set on an object.
|
|
1973
|
|
1974 New functions `plists-eq' and `plists-equal' are provided for
|
|
1975 comparing property lists (a property list is an alternating list
|
|
1976 of keys and values).
|
|
1977
|
|
1978 The Common-Lisp functions `caar', `cadr', `cdar', `cddr', `caaar', etc.
|
|
1979 (up to four a's and/or d's), `first', `second', `third', etc. (up to
|
|
1980 `tenth'), `last', `rest', and `endp' have been added, for more
|
|
1981 convenient manipulation of lists.
|
|
1982
|
|
1983 New function `mapvector' maps over a sequence and returns a vector
|
|
1984 of the results, analogous to `mapcar'.
|
|
1985
|
|
1986 New functions `rassoc', `remassoc', `remassq', `remrassoc', and
|
|
1987 `remrassq' are provided for working with alists.
|
|
1988
|
|
1989 New functions `defvaralias', `variable-alias' and `indirect-variable'
|
|
1990 are provided for creating variable aliases.
|
|
1991
|
|
1992 Strings have a modified-tick that is bumped every time a string
|
|
1993 is modified in-place with `aset' or `fillarray'. This is retrieved
|
|
1994 with the new function `string-modified-tick'.
|
|
1995
|
|
1996 New macro `push' destructively adds an element to the beginning of a
|
|
1997 list. New macro `pop' destructively removes and returns the first
|
|
1998 element of a list.
|
|
1999
|
|
2000
|
|
2001
|
|
2002 *** Buffers
|
|
2003 -----------
|
|
2004
|
|
2005 Most functions that operate on buffer text now take an optional BUFFER
|
|
2006 argument, specifying which buffer they operate on. (Previously, they
|
|
2007 always operated on the current buffer.)
|
|
2008
|
|
2009 The new function `transpose-regions' is provided, ported from GNU
|
|
2010 Emacs.
|
|
2011
|
|
2012 The new function `save-current-buffer' works like `save-excursion'
|
|
2013 but only saves the current buffer, not the location of point in
|
|
2014 that buffer.
|
|
2015
|
|
2016
|
|
2017
|
|
2018 *** Devices
|
|
2019 -----------
|
|
2020
|
|
2021 XEmacs has a new concept of "device", which is represents a particular
|
|
2022 X display or TTY connection. `make-frame' has a new, optional device
|
|
2023 parameter that allows you to specify which device the frame is to be
|
|
2024 created on.
|
|
2025
|
|
2026 Multiple simultaneous TTY and/or X connections may be made. The
|
|
2027 specifier mechanism provides reasonable behavior of glyphs, faces,
|
|
2028 etc. over heterogeneous device types and over devices whose individual
|
|
2029 capabilities may vary.
|
|
2030
|
|
2031 There is also a device type called "stream" that represents a STDIO
|
|
2032 device that has no redisplay or cursor-motion capabilities, such as
|
|
2033 the "glass terminal" that XEmacs uses when it is run noninteractively.
|
|
2034 There is not all that much you can do with stream devices currently;
|
|
2035 please let us know if there are good uses you can think of for this
|
|
2036 capability. (For example, log files?)
|
|
2037
|
|
2038 A new device API is provided. Functions are provided such as
|
|
2039 `device-name' (the name of the device, which generally is based on the
|
|
2040 X display or TTY file name), `device-type' (X, TTY, or stream),
|
|
2041 `device-class' (color, grayscale, or mono), etc. See the Lisp
|
|
2042 Reference Manual.
|
|
2043
|
|
2044 Many functions have been extended to contain an additional, optional
|
|
2045 device argument, where such an extension makes sense. In general, if
|
|
2046 the argument is omitted, it is equivalent to specifying
|
|
2047 `(selected-device)'.
|
|
2048
|
|
2049 Many previous functions and variables are obsoleted in favor of the
|
|
2050 device API. For example, `window-system' is obsoleted by
|
|
2051 `device-type', and `x-color-display-p' and friends are obsoleted by
|
|
2052 `device-class'.
|
|
2053
|
70
|
2054 ** NOTE **: The obsolete variable `window-system' is going
|
0
|
2055 to be deleted soon, probably in 19.14. Please correct all
|
|
2056 your code to use `device-type'.
|
|
2057
|
70
|
2058 ** INCOMPATIBLE CHANGE **: The function `x-display-visual-class'
|
0
|
2059 returns different values from previous versions of XEmacs.
|
|
2060
|
|
2061
|
|
2062
|
|
2063 *** Errors, Warnings, C-g
|
|
2064 -------------------------
|
|
2065
|
|
2066 There is a new warnings system implemented. Many warnings that were
|
|
2067 formerly displayed in various ad-hoc ways (e.g. warnings about screwy
|
|
2068 modifier mappings, messages about failures handling the mouse cursor
|
|
2069 and errors in a gc-hook) have been regularized through this system.
|
|
2070 The new function `warn' displays a warning before the next redisplay
|
|
2071 (the actually display of the warning messages is accomplished through
|
|
2072 `display-warning-buffer'). Both `warn' and `display-warning-buffer'
|
|
2073 are Lisp functions (the C code calls out to them as necessary), and
|
|
2074 thus you can customize the warning system.
|
|
2075
|
|
2076 Under an X display, you can press Shift-Control-G to force a "critical
|
|
2077 quit". This will immediately display a backtrace and pop you into the
|
|
2078 debugger, regardless of the settings of `inhibit-quit' and
|
|
2079 `debug-on-quit'.
|
|
2080
|
|
2081 C-g now works properly even on systems that don't implement SIGIO or
|
|
2082 for which SIGIO is broken (e.g. IRIX 5.3 and older versions of Linux).
|
|
2083 In addition, the SIGIO support has been fixed for many systems on
|
|
2084 which it didn't always work properly before (e.g. HPUX and Solaris).
|
|
2085
|
70
|
2086
|
0
|
2087
|
|
2088 *** Events
|
|
2089 ----------
|
|
2090
|
70
|
2091 ** INCOMPATIBLE CHANGE **: Many event functions have been changed to
|
0
|
2092 accept and return windows instead of frames.
|
|
2093
|
|
2094 New function: `event-live-p', specifying whether `deallocate-event'
|
|
2095 has been called on an event.
|
|
2096
|
|
2097 The "menu event" type has been renamed to "misc-user event", and
|
|
2098 encompasses scrollbar events as well as menu events. We are planning
|
|
2099 on making it also encompass toolbar events in a future release.
|
|
2100
|
|
2101 New functions are provided for determining whether an particular
|
|
2102 sections of a frame: `event-over-border-p', `event-over-glyph-p',
|
|
2103 `event-over-modeline-p', `event-over-text-area-p', and
|
|
2104 `event-over-toolbar-p'. The old, kludgey methods of checking the
|
|
2105 window-height, the internal-border-width, etc. are unreliable and
|
|
2106 should not be used.
|
|
2107
|
|
2108 New functions `event-window-x-pixel' and `event-window-y-pixel' are
|
|
2109 provided for determining where in a particular window an event
|
|
2110 happened.
|
|
2111
|
|
2112 New functions `event-glyph-x-pixel' and `event-glyph-y-pixel' are
|
|
2113 provided for determining where in a particular glyph an event
|
|
2114 happened.
|
|
2115
|
|
2116 New function `event-closest-point', which returns the closest buffer
|
|
2117 position to the event even if the event did not occur over any text.
|
|
2118
|
|
2119 New variable `unread-command-events', superseding the older
|
|
2120 `unread-command-event'.
|
|
2121
|
|
2122 Many event-loop bugs have been fixed.
|
|
2123
|
|
2124
|
|
2125
|
|
2126 *** Extents
|
|
2127 -----------
|
|
2128
|
|
2129 The extent code has been largely rewritten. It should be faster and
|
|
2130 more reliable.
|
|
2131
|
|
2132 The text-property implementation has been greatly improved.
|
|
2133
|
|
2134 Some new extent primitives are provided to return the position of the
|
|
2135 next or previous property change in a buffer.
|
|
2136
|
|
2137 Extents can now have a parent specified; then all of its properties
|
|
2138 (except for the buffer it's in and its position in that buffer) come
|
|
2139 from that extent. Hierarchies of such extents can be created.
|
|
2140
|
|
2141 Extents now have a `detachable' property that controls what happens
|
|
2142 (they either get detached or shrink down to zero-length) when their
|
|
2143 text is deleted. Previously, such extents would always be detached.
|
|
2144
|
|
2145 The `invisible' property on extents now works.
|
|
2146
|
|
2147 `map-extents' has three additional parameters that provide more
|
|
2148 control over which extents are mapped.
|
|
2149
|
|
2150 `map-extents' deals better with changes made to extents in the
|
|
2151 buffer being mapped over.
|
|
2152
|
|
2153 A new function `mapcar-extents' (an alternative to `map-extents') has
|
|
2154 been provided and should be easier to use than `map-extents'.
|
|
2155
|
|
2156
|
|
2157
|
|
2158 *** Faces
|
|
2159 ---------
|
|
2160
|
|
2161 Faces can now be buffer-local, window-local, and device-local as well
|
|
2162 as frame-local, and can be further restricted to a particular device
|
|
2163 type or class. The way in which faces can be controlled is now based
|
|
2164 on the general and powerful specifier mechanism; see above.
|
|
2165
|
|
2166 The new function `set-face-property' generalizes `set-face-font',
|
|
2167 `set-face-foreground', etc. and takes many new optional arguments, in
|
|
2168 accordance with the new specifier mechanism.
|
|
2169
|
|
2170 The new functions `face-property' and `face-property-instance'
|
|
2171 generalize `face-font', `face-foreground', etc. and take many new
|
|
2172 optional arguments, in accordance with the new specifier mechanism.
|
|
2173 (`face-property' returns the value, if any, that was specified for a
|
|
2174 particular locale, and `face-property-instance' returns the actual
|
|
2175 value that will be used for display. See the section on specifiers.)
|
|
2176
|
|
2177 The functions `face-font', `face-foreground', `face-background',
|
|
2178 `set-face-font', `set-face-foreground', `set-face-background',
|
|
2179 etc. are now convenience functions, trivially implemented using
|
153
|
2180 `face-property' and `set-face-property' and take new optional
|
0
|
2181 arguments in accordance with those functions. New convenience
|
|
2182 functions `face-font-instance', `face-foreground-instance',
|
|
2183 `face-background-instance', etc. are provided and are trivially
|
|
2184 implemented using `face-property-instance'.
|
|
2185
|
|
2186 Inheritance of face properties can now be specified. Each individual
|
|
2187 face property can inherit differently from other properties, or not
|
|
2188 inherit at all.
|
|
2189
|
|
2190 You can set user-defined properties on faces using
|
|
2191 `set-face-property'.
|
|
2192
|
|
2193 You can create "temporary" faces, which are faces that disappear
|
|
2194 when they are no longer in use. This is as opposed to normal
|
|
2195 faces, which stay around forever.
|
|
2196
|
|
2197 The function `make-face' takes a new optional argument specifying
|
|
2198 whether a face should be permanent or temporary, and returns the
|
|
2199 actual face object rather than the face symbol, as in previous
|
|
2200 versions of XEmacs.
|
|
2201
|
|
2202 The function `face-list' takes a new optional argument specifying
|
|
2203 whether permanent, temporary, or both kinds of faces should be
|
|
2204 returned.
|
|
2205
|
|
2206 Faces have new TTY-specific properties: `highlight', `reverse',
|
|
2207 `alternate', `blinking', and `dim'.
|
|
2208
|
|
2209 Redisplay is smarter about dealing with face changes: changes to a
|
|
2210 particular face no longer cause all frames to be cleared and
|
|
2211 redisplayed.
|
|
2212
|
|
2213 The Edit-Faces package is provided for interactively changing faces.
|
|
2214 A menu item on the options menu is provided for this.
|
|
2215
|
|
2216 New functions are provided for retrieving the ascent, descent, height,
|
|
2217 and width of a character in a particular face.
|
|
2218
|
|
2219
|
|
2220
|
|
2221 *** Fonts, Colors
|
|
2222 -----------------
|
|
2223
|
70
|
2224 ** INCOMPATIBLE CHANGE **: The old "font" and "pixel" objects are gone.
|
0
|
2225 In place are new objects "font specifier", "font instance", "color
|
|
2226 specifier", and "color instance". Functions `font-name', `pixel-name'
|
|
2227 (an obsolete alias for `color-name'), etc. are now convenience
|
|
2228 functions for working with font and color specifiers. Old code that
|
|
2229 is not too sophisticated about working with font and pixel objects may
|
|
2230 still work, though. (For example, the idiom `(font-name (face-font
|
|
2231 'default))' still works.)
|
|
2232
|
|
2233 You can now extract the RGB components of a color-instance object
|
|
2234 (similar to the old pixel object) with the function
|
|
2235 `color-instance-rgb-components'. There is also a convenience function
|
|
2236 `color-rgb-components' for working with color specifiers.
|
|
2237
|
|
2238 If there are no more colors available in the colormap, the nearest
|
|
2239 existing color will be used when allocating a new color.
|
|
2240
|
|
2241
|
|
2242
|
|
2243 *** Frames
|
|
2244 ----------
|
|
2245
|
|
2246 What used to be called "screens" are now called "frames", for clarity
|
|
2247 and consistency with GNU Emacs. Aliases are provided for all the old
|
|
2248 screen functions and variables, to avoid introducing a huge E-Lisp
|
|
2249 incompatibility.
|
|
2250
|
|
2251 The frame code has been merged with GNU Emacs 19.28, providing
|
|
2252 improved functionality for many functions.
|
|
2253
|
|
2254
|
|
2255
|
|
2256 *** Glyphs, Images, and Pixmaps
|
|
2257 -------------------------------
|
|
2258
|
|
2259 Glyphs (used in various places, i.e. as begin-glyphs and end-glyphs
|
|
2260 attached to extents and appearing in a buffer or in marginal
|
|
2261 annotations; as the truncator and continuor glyphs marking line wrap
|
|
2262 or truncation; as an overlay at the beginning of a line; as the
|
|
2263 displayable element in a toolbar button; etc.) can now be
|
|
2264 buffer-local, window-local, frame-local, and device-local, and can be
|
|
2265 further restricted to a particular device type or class. The way in
|
|
2266 which faces can be controlled is now based on the general and powerful
|
|
2267 specifier mechanism; see above.
|
|
2268
|
70
|
2269 ** INCOMPATIBLE CHANGE **: The glyph and pixmap API has been completely
|
0
|
2270 overhauled. A new Lisp object "glyph" is provided and should be used
|
|
2271 where the old "pixmap" object would have been used. The pixmap object
|
|
2272 exists no longer. There are also new Lisp objects "image specifier"
|
|
2273 and "image instance" (an image-instance is the closest equivalent to
|
|
2274 what a pixmap object was). More work on glyphs and images is slated
|
|
2275 for 19.13. The glyph and image docs in the Lisp Reference Manual are
|
|
2276 incomplete and will be finished in 19.13.
|
|
2277
|
|
2278 The new function `set-glyph-property' allows setting of all the
|
|
2279 glyph properties (`baseline', `contrib-p', etc.). Convenience
|
|
2280 functions for particular properties are also provided, just like
|
|
2281 for faces.
|
|
2282
|
|
2283 You can set user-defined properties on glyphs using the new function
|
|
2284 `set-glyph-property'.
|
|
2285
|
|
2286 When displaying pixmaps, existing, closest-matching colors will be
|
|
2287 used if the colormap is full.
|
|
2288
|
|
2289 If the compface library is compiled into XEmacs, there is built-in
|
|
2290 support for displaying X-Face bitmaps. (These are typically small
|
|
2291 pictures of people's faces, included in a mail message through the
|
|
2292 X-Face: header.) VM and highlight-headers will automatically use the
|
|
2293 built-in X-Face support if it is available.
|
|
2294
|
|
2295 Annotations in the right margin (as well as the left margin) are now
|
|
2296 implemented. The left and right margin width functions have been
|
|
2297 superseded by the specifier variables `left-margin-width' and
|
|
2298 `right-margin-width', allowing much more flexible control through the
|
|
2299 specifier mechanism.
|
|
2300
|
70
|
2301 ** INCOMPATIBLE CHANGE **: The variable `use-left-overflow',
|
0
|
2302 for controlling annotations in the left margin, is now a specifier
|
|
2303 variable instead of a buffer-local variable. (There is also a new
|
|
2304 variable `use-right-overflow', that is complementary.)
|
|
2305
|
|
2306
|
|
2307
|
|
2308 *** Hashing
|
|
2309 -----------
|
|
2310
|
|
2311 Two new types of weak hashtables can be created: key-weak and
|
|
2312 value-weak. In a key-weak hashtable, an entry remains around
|
|
2313 if its key is referenced elsewhere, regardless of whether this
|
|
2314 is also the case for the value. Value-weak hashtables are
|
|
2315 complementary. (This is as opposed to the traditional weak
|
|
2316 hashtables, where an entry remains around only if both the
|
|
2317 key and value are referenced elsewhere.) New functions
|
|
2318 `make-key-weak-hashtable' and `make-value-weak-hashtable'
|
|
2319 are provided for creating these hashtables.
|
|
2320
|
|
2321 The new function `md5' is provided for performing an MD5
|
|
2322 hash of an object. MD5 is a secure message digest algorithm
|
|
2323 developed by RSA, inc.
|
|
2324
|
|
2325
|
|
2326
|
|
2327 *** Keymaps
|
|
2328 -----------
|
|
2329
|
116
|
2330 The GNU Emacs concept of `function-key-map' is now partially
|
0
|
2331 implemented. This allows conversion of function-key escape sequences
|
|
2332 such as `ESC [ 1 1 ~' into an equivalent human-readable keysym such as
|
|
2333 `F1'. This work will be completed in 19.14. The function-key map is
|
|
2334 device-local and controllable through the functions
|
|
2335 `device-function-key-map' and `set-device-function-key-map'.
|
|
2336
|
|
2337 `where-is-internal' now correctly searches minor-mode keymaps,
|
|
2338 extent-local keymaps, etc. As a side effect of this, menu items will
|
|
2339 now correctly show the keyboard equivalent for commands that are
|
|
2340 available through a minor-mode keymap, extent-local keymap, etc.
|
|
2341
|
70
|
2342 ** INCOMPATIBLE CHANGE **: The modifier key "Symbol" has
|
0
|
2343 been renamed to "Alt", for compatibility with the rest of the world.
|
|
2344 Keep in mind that on many keyboards, the key labelled "Alt" actually
|
|
2345 generates the "Meta" modifier. (On Sun keyboards, however, the key
|
|
2346 labelled "Alt" does indeed generate the "Alt" modifier, and the key
|
|
2347 labelled with a diamond generates the "Meta" modifier.)
|
|
2348
|
|
2349
|
|
2350
|
|
2351 *** Mouse, Active Region
|
|
2352 ------------------------
|
|
2353
|
|
2354 The mouse internals in mouse.el have been rewritten. Hooks have been
|
|
2355 provided for easier customization of mouse behavior. For example, you
|
|
2356 can now easily specify an action to be invoked on single-click
|
|
2357 (i.e. down-up without appreciable motion), double-click, drag-up, etc.
|
|
2358
|
116
|
2359 Some code from GNU Emacs has been ported over, generalizing some of
|
0
|
2360 the X-specific mouse stuff.
|
|
2361
|
70
|
2362 ** INCOMPATIBLE CHANGE **: The function `set-mouse-position' accepts
|
0
|
2363 a window instead of a frame.
|
|
2364
|
|
2365 New function `mouse-position' that obsoletes and is more powerful than
|
|
2366 `read-mouse-position'.
|
|
2367
|
153
|
2368 New functions `mouse-pixel-position' and `set-mouse-pixel-position' for
|
0
|
2369 working with pixels instead of characters.
|
|
2370
|
|
2371 The active (Zmacs) region is now highlighted using the `zmacs-region-face'
|
|
2372 instead of the `primary-selection-face'; this generalizes what used
|
|
2373 to be X-specific.
|
|
2374
|
|
2375 New functions `region-active-p', `region-exists-p', and `activate-region'
|
|
2376 provide a uniform API for dealing with the region irrespective of
|
|
2377 whether the variable `zmacs-regions' is set.
|
|
2378
|
|
2379 XEmacs is now a better X citizen with respect to the primary selection:
|
|
2380 it does not stomp on the primary selection quite so much. This makes
|
|
2381 things more manageable if you set `zmacs-regions' to nil.
|
|
2382
|
|
2383
|
|
2384
|
|
2385 *** Processes
|
|
2386 -------------
|
|
2387
|
|
2388 Various process race conditions and bugs have been fixed. Problems
|
|
2389 with process termination not getting noticed until much later (if at
|
|
2390 all) should be gone now, as well as problems with zombie processes
|
|
2391 under some systems.
|
|
2392
|
|
2393 SOCKS support is now included. SOCKS is a package that allows hosts
|
|
2394 behind a firewall to gain full access to the Internet without
|
|
2395 requiring direct IP reachability.
|
|
2396
|
|
2397
|
|
2398
|
|
2399 *** Windows
|
|
2400 -----------
|
|
2401
|
|
2402 Windows 95 is still not out yet.
|
|
2403
|
70
|
2404 ** INCOMPATIBLE CHANGE **: The functions `locate-window-from-coordinates'
|
0
|
2405 and `window-edges' have been eliminated. It no longer makes sense to
|
|
2406 work with windows in terms of character positions, because windows can
|
|
2407 (and often do) have many differently-sized fonts in them, because the
|
|
2408 3-D modeline is not exactly one line high, etc.
|
|
2409
|
|
2410 The new functions `window-pixel-edges', `window-highest-p',
|
|
2411 `window-lowest-p', `frame-highest-window', and `frame-lowest-window'
|
|
2412 are provided as substitutes for the above-mentioned, deleted
|
|
2413 functions.
|
|
2414
|
|
2415 The function `window-end' now takes an optional GUARANTEE argument
|
|
2416 that will ensure that the value is actually correct as of the next
|
|
2417 redisplay.
|
|
2418
|
|
2419 The window code has been merged with GNU Emacs 19.28, providing
|
|
2420 improved functionality for many functions.
|
|
2421
|
|
2422
|
|
2423
|
|
2424 *** System-Specific Information
|
|
2425 -------------------------------
|
|
2426
|
|
2427 Georg Nikodym's dynodump package is provided, for proper unexec()ing
|
|
2428 on Solaris systems. Executables built on Solaris 2.3 can now run on
|
|
2429 Solaris 2.4 without crashing; similarly with executables built on one
|
|
2430 type of Sun machine and run on another.
|
|
2431
|
|
2432 AIX 4.x is supported.
|
|
2433
|
|
2434 The NeXTstep operating system is supported in TTY mode (this is still
|
|
2435 in beta). There are plans to port XEmacs to the NeXTstep window
|
|
2436 system, but it may be awhile before this is complete.
|
|
2437
|
|
2438 Problems with the `round' function causing arithmetic errors on HPUX 9
|
|
2439 have been fixed.
|
|
2440
|
|
2441 You can now build XEmacs as an ELF executable on Linux systems that
|
|
2442 support ELF.
|
|
2443
|
|
2444 Various other new system configurations are supported.
|
|
2445
|
|
2446
|
|
2447
|
70
|
2448 *** Packages
|
|
2449 ------------
|
|
2450
|
|
2451 Most packages have been updated to the latest available versions.
|
|
2452
|
|
2453
|
|
2454 Some of the new Emacs Lisp packages ---
|
|
2455
|
|
2456 Hyperbole: the everyday information manager. Provides a Rolodex,
|
|
2457 allows links to be embedded in text, etc.
|
|
2458
|
|
2459 OOBR: a sophisticated class browser for object-oriented languages.
|
|
2460
|
|
2461 viper: a better VI emulator that allows Emacs and VI features
|
|
2462 to coexist happily.
|
|
2463
|
|
2464 hm--html-menus: a sophisticated package for editing HTML code,
|
|
2465 from Heiko Muenkel.
|
|
2466
|
|
2467 ksh-mode.el: for editing shell scripts.
|
|
2468
|
|
2469 lazy-lock.el: a lazy, on-the-fly fontifier.
|
|
2470
|
|
2471 paren.el: an improved matching paren highlighter
|
|
2472
|
|
2473
|
|
2474
|
|
2475 Major changes to existing packages --
|
|
2476
|
|
2477 VM: has a toolbar, many other nice features.
|
|
2478
|
|
2479 w3: has a toolbar, many other nice features.
|
|
2480
|
|
2481 ediff: provides three-way merging, has a better user interface.
|
|
2482
|
|
2483 info: has a toolbar.
|
|
2484
|
|
2485 highlight-headers.el: now highlights URL's and makes them active so
|
|
2486 that when clicked either Netscape 1.1 is called
|
|
2487 or Emacs W3 is run.
|
|
2488
|
0
|
2489
|
|
2490 ** Major Differences Between 19.10 and 19.11
|
|
2491 ============================================
|
70
|
2492
|
0
|
2493 The name has changed from "Lucid Emacs" to "XEmacs". Along with this is a
|
|
2494 new canonical ftp site: cs.uiuc.edu:/pub/xemacs.
|
|
2495
|
|
2496 XEmacs now has its very own World Wide Web page! It contains a
|
|
2497 complete list of the FTP distribution sites, the most recent FAQ,
|
|
2498 pointers to Emacs Lisp packages not included with the distribution, and
|
|
2499 other useful stuff. Check it out at http://xemacs.cs.uiuc.edu/.
|
|
2500
|
|
2501 A preliminary New Users Guide.
|
|
2502
|
|
2503 cc-mode.el now provides the default C, C++ and Objective-C modes.
|
|
2504
|
|
2505 The primary goal of this release is stability. Very few new features have
|
|
2506 been introduced but lots of bugs have been fixed. Many of the Emacs Lisp
|
|
2507 packages have been updated.
|
|
2508
|
|
2509 Some of the new Emacs Lisp packages ---
|
|
2510
|
|
2511 tcl-mode.el: major mode for editing TCL code
|
|
2512
|
|
2513 fast-lock.el: saves and restores font-lock highlighting, greatly
|
|
2514 reducing the time necessary for loading a font-lock'ed
|
|
2515 file
|
|
2516
|
|
2517 ps-print.el: prints buffers to Postscript printers preserving the
|
|
2518 buffer's bold and italic text attributes
|
|
2519
|
|
2520 toolbar.el: provides a "fake" toolbar for use with XEmacs (an
|
|
2521 integrated one will be included with 19.12)
|
|
2522
|
|
2523
|
|
2524 ** Major Differences Between 19.9 and 19.10
|
|
2525 ===========================================
|
|
2526
|
|
2527 The GNU `configure' system is now used to build lemacs.
|
|
2528
|
|
2529 The Emacs Manual and Emacs Lisp Reference Manual now document version 19.10.
|
|
2530 If you notice any errors, please let us know.
|
|
2531
|
|
2532 When pixmaps are displayed in a buffer, they contribute to the line height -
|
|
2533 that is, if the glyph is taller than the rest of the text on the line, the
|
|
2534 line will be as tall as necessary to display the glyph.
|
|
2535
|
|
2536 In addition to using arbitrary sound files as emacs beeps, one can control
|
|
2537 the pitch and duration of the standard X beep, on X servers which allow that
|
|
2538 (Note: most don't.)
|
|
2539
|
|
2540 There is support for playing sounds on systems with NetAudio servers.
|
|
2541
|
|
2542 Minor modes may have mode-specific key bindings; keymaps may have an arbitrary
|
|
2543 number of parent maps.
|
|
2544
|
|
2545 Menus can have toggle and radio buttons in them.
|
|
2546
|
|
2547 There is a font selection menu.
|
|
2548
|
|
2549 Some default key bindings have changed to match FSF19; the new bindings are
|
|
2550
|
|
2551 Screen-related commands:
|
|
2552 C-x 5 2 make-screen
|
|
2553 C-x 5 0 delete-screen
|
|
2554 C-x 5 b switch-to-buffer-other-screen
|
|
2555 C-x 5 f find-file-other-screen
|
|
2556 C-x 5 C-f find-file-other-screen
|
|
2557 C-x 5 m mail-other-screen
|
|
2558 C-x 5 o other-screen
|
|
2559 C-x 5 r find-file-read-only-other-screen
|
|
2560 Abbrev-related commands:
|
|
2561 C-x a l add-mode-abbrev
|
|
2562 C-x a C-a add-mode-abbrev
|
|
2563 C-x a g add-global-abbrev
|
|
2564 C-x a + add-mode-abbrev
|
|
2565 C-x a i g inverse-add-global-abbrev
|
|
2566 C-x a i l inverse-add-mode-abbrev
|
|
2567 C-x a - inverse-add-global-abbrev
|
|
2568 C-x a e expand-abbrev
|
|
2569 C-x a ' expand-abbrev
|
|
2570 Register-related commands:
|
|
2571 C-x r C-SPC point-to-register
|
|
2572 C-x r SPC point-to-register
|
|
2573 C-x r j jump-to-register
|
|
2574 C-x r s copy-to-register
|
|
2575 C-x r x copy-to-register
|
|
2576 C-x r i insert-register
|
|
2577 C-x r g insert-register
|
|
2578 C-x r r copy-rectangle-to-register
|
|
2579 C-x r c clear-rectangle
|
|
2580 C-x r k kill-rectangle
|
|
2581 C-x r y yank-rectangle
|
|
2582 C-x r o open-rectangle
|
|
2583 C-x r t string-rectangle
|
|
2584 C-x r w window-configuration-to-register
|
|
2585 Narrowing-related commands:
|
|
2586 C-x n n narrow-to-region
|
|
2587 C-x n w widen
|
|
2588 Other changes:
|
|
2589 C-x 3 split-window-horizontally (was undefined)
|
|
2590 C-x - shrink-window-if-larger-than-buffer
|
|
2591 C-x + balance-windows
|
|
2592
|
70
|
2593 The variable allow-deletion-of-last-visible-screen has been removed, since
|
0
|
2594 it was widely hated. You can now always delete the last visible screen if
|
|
2595 there are other iconified screens in existence.
|
|
2596
|
|
2597 ToolTalk support is provided.
|
|
2598
|
|
2599 An Emacs screen can be placed within an "external client widget" managed
|
|
2600 by another application. This allows an application to use an Emacs screen
|
|
2601 as its text pane rather than the standard Text widget that is provided
|
|
2602 with Motif or Athena.
|
|
2603
|
|
2604 Additional compatibility with Epoch is provided (though this is not yet
|
|
2605 complete.)
|
|
2606
|
|
2607
|
|
2608 ** Major Differences Between 19.8 and 19.9
|
|
2609 ==========================================
|
|
2610
|
|
2611 Scrollbars! If you have Motif, these are real Motif scrollbars; otherwise,
|
|
2612 Athena scrollbars are used. They obey all the usual resources of their
|
|
2613 respective toolkits.
|
|
2614
|
2
|
2615 There is now an implementation of dialog boxes based on the Athena
|
0
|
2616 widgets, as well as the existing Motif implementation.
|
|
2617
|
70
|
2618 This release works with Motif 1.2 as well as 1.1. If you link with Motif,
|
0
|
2619 you do not also need to link with Athena.
|
|
2620
|
|
2621 If you compile lwlib with both USE_MOTIF and USE_LUCID defined (which is the
|
|
2622 recommended configuration) then the Lucid menus will draw text using the Motif
|
|
2623 string-drawing library, instead of the Xlib one. The reason for this is that
|
|
2624 one can take advantage of the XmString facilities for including non-Latin1
|
|
2625 characters in resource specifications. However, this is a user-visible change
|
70
|
2626 in that, in this configuration, the menubar will use the "*fontList" resource
|
0
|
2627 in preference to the "*font" resource, if it is set.
|
|
2628
|
|
2629 It's possible to make extents which are copied/pasted by kill and undo.
|
|
2630 There is an implementation of FSF19-style text properties based on this.
|
|
2631
|
|
2632 There is a new variable, minibuffer-max-depth, which is intended to circumvent
|
|
2633 a common source of confusion among new Emacs users. Since, under a window
|
|
2634 system, it's easy to jump out of the minibuffer (by doing M-x, then getting
|
|
2635 distracted, and clicking elsewhere) many, many novice users have had the
|
|
2636 problem of having multiple minibuffers build up, even to the point of
|
|
2637 exhausting the lisp stack. So the default behavior is to disallow the
|
|
2638 minibuffer to ever be reinvoked while active; if you attempt to do so, you
|
|
2639 will be prompted about it.
|
|
2640
|
|
2641 There is a new variable, teach-extended-commands-p, which if set, will cause
|
|
2642 `M-x' to remind you of any key bindings of the command you just invoked the
|
|
2643 "long way."
|
|
2644
|
|
2645 There are menus in Dired, Tar, Comint, Compile, and Grep modes.
|
|
2646
|
|
2647 There is a menu of window management commands on the right mouse button over
|
|
2648 the modelines.
|
|
2649
|
70
|
2650 Popup menus now have titles at the top; this is controlled by the new
|
0
|
2651 variable `popup-menu-titles'.
|
|
2652
|
|
2653 The `Find' key on Sun keyboards will search for the next (or previous)
|
|
2654 occurrence of the selected text, as in OpenWindows programs.
|
|
2655
|
|
2656 The `timer' package has been renamed to `itimer' to avoid a conflict with
|
|
2657 a different package called `timer'.
|
|
2658
|
|
2659 VM 5.40 is included.
|
|
2660
|
|
2661 W3, the emacs interface to the World Wide Web, is included.
|
|
2662
|
|
2663 Felix Lee's GNUS speedups have been installed, including his new version of
|
|
2664 nntp.el which makes GNUS efficiently utilize the NNTP XOVER command if
|
70
|
2665 available (which is much faster.)
|
0
|
2666
|
|
2667 GNUS should also be much friendlier to new users: it starts up much faster,
|
|
2668 and doesn't (necessarily) subscribe you to every single newsgroup.
|
|
2669
|
|
2670 The byte-compiler issues a new class of warnings: variables which are
|
|
2671 bound but not used. This is merely an advisory, and does not mean the
|
|
2672 code is incorrect; you can disable these warnings in the usual way with
|
|
2673 the `byte-compiler-options' macro.
|
|
2674
|
|
2675 the `start-open' and `end-open' extent properties, for specifying whether
|
|
2676 characters inserted exactly at a boundary of an extent should go into the
|
|
2677 extent or out of it, now work correctly.
|
|
2678
|
|
2679 The `extent-data' slot has been generalized/replaced with a property list,
|
|
2680 so it's easier to attach arbitrary data to extent objects.
|
|
2681
|
|
2682 The `event-modifiers' and `event-modifier-bits' functions work on motion
|
|
2683 events as well as other mouse and keyboard events.
|
|
2684
|
|
2685 Forms-mode uses fonts and read-only regions.
|
|
2686
|
|
2687 The behavior of the -geometry command line option should be correct now.
|
|
2688
|
|
2689 The `iconic' screen parameter works when passed to x-create-screen.
|
|
2690
|
|
2691 The user's manual now documents Lucid Emacs 19.9.
|
|
2692
|
|
2693 The relocating buffer allocator is turned on by default; this means that when
|
70
|
2694 buffers are killed, their storage will be returned to the operating system,
|
0
|
2695 and the size of the emacs process will shrink.
|
|
2696
|
|
2697 CAVEAT: code which contains calls to certain `face' accessor functions will
|
|
2698 need to be recompiled by version 19.9 before it will work. The functions
|
|
2699 whose callers must be recompiled are: face-font, face-foreground,
|
|
2700 face-background, face-background-pixmap, and face-underline-p. The symptom
|
|
2701 of this problem is the error "Wrong type argument, arrayp, #<face ... >".
|
|
2702 The .elc files generated by version 19.9 will work in 19.6 and 19.8, but
|
|
2703 older .elc files which contain calls to these functions will not work in 19.9.
|
|
2704
|
|
2705 Work In Progress:
|
|
2706
|
|
2707 - We have been in the process of internationalizing Lucid Emacs. This code is
|
|
2708 ***not*** ready for general use yet. However, the code is included (and
|
|
2709 turned off by default) in this release.
|
|
2710
|
|
2711 - If you define I18N2 at compile-time, then sorting/collation will be done
|
|
2712 according to the locale returned by setlocale().
|
|
2713
|
|
2714 - If you define I18N3 at compile-time, then all messages printed by lemacs
|
|
2715 will be filtered through the gettext() library routine, to enable the use
|
|
2716 of locale-specific translation catalogues. The current implementation of
|
70
|
2717 this is quite dependent on Solaris 2, and has a very large impact on
|
0
|
2718 existing code, therefore we are going to be making major changes soon.
|
|
2719 (You'll notice calls to `gettext' and `GETTEXT' scattered around much of
|
|
2720 the lisp and C code; ignore it, this will be going away.)
|
|
2721
|
|
2722 - If you define I18N4 at compile-time, then lemacs will internally use a
|
|
2723 wide representation of characters, enabling the use of large character
|
70
|
2724 sets such as Kanji. This code is very OS dependent: it requires X11R5,
|
0
|
2725 and several OS-supplied library routines for reading and writing wide
|
|
2726 characters (getwc(), putwc(), and a few others.) Performance is also a
|
|
2727 problem. This code is also scheduled for a major overhaul, with the
|
70
|
2728 intent of improving performance and portability.
|
0
|
2729
|
|
2730 Our eventual goal is to merge with MULE, or at least provide the same base
|
70
|
2731 level of functionality. If you would like to help out with this, let us
|
0
|
2732 know.
|
|
2733
|
70
|
2734 - Other work-in-progress includes Motif drag-and-drop support, ToolTalk
|
|
2735 support, and support for embedding an Emacs widget inside another
|
0
|
2736 application (where it can function as that other application's text-entry
|
|
2737 area). This code has not been extensively tested, and may (or may not)
|
70
|
2738 have portability problems, but it's there for the adventurous. Comments,
|
0
|
2739 suggestions, bug reports, and especially fixes are welcome. But have no
|
|
2740 expectations that this experimental code will work at all.
|
|
2741
|
|
2742
|
|
2743 ** Major Differences Between 19.6 and 19.8
|
|
2744 ==========================================
|
|
2745
|
|
2746 There were almost no differences between versions 19.6 and 19.7; version 19.7
|
|
2747 was a bug-fix release that was distributed with Energize 2.1.
|
|
2748
|
|
2749 Lucid Emacs 19.8 represents the first stage of the Lucid Emacs/Epoch merger.
|
|
2750 The redisplay engine now in lemacs is an improved descendant of the Epoch
|
|
2751 redisplay. As a result, many bugs have been eliminated, and several disabled
|
|
2752 features have been re-enabled. Notably:
|
|
2753
|
|
2754 Selective display (and outline-mode) work.
|
|
2755
|
|
2756 Horizontally split windows work.
|
|
2757
|
|
2758 The height of a line is the height of the tallest font displayed on that line;
|
|
2759 it is possible for a screen to display lines of differing heights. (Previously,
|
|
2760 the height of all lines was the height of the tallest font loaded.)
|
|
2761
|
|
2762 There is lisp code to scale fonts up and down, for example, to load the next-
|
|
2763 taller version of a font.
|
|
2764
|
|
2765 There is a new internal representation for lisp objects, giving emacs-lisp 28
|
|
2766 bit integers and a 28 bit address space, up from the previous maximum of 26.
|
|
2767 We expect eventually to increase this to 30 bit integers and a 32 bit address
|
|
2768 space, eliminating the need for DATA_SEG_BITS on some architectures. (On 64
|
|
2769 bit machines, add 32 to all of these numbers.)
|
|
2770
|
|
2771 GC performance is improved.
|
|
2772
|
|
2773 Various X objects (fonts, colors, cursors, pixmaps) are accessible as first-
|
|
2774 class lisp objects, with finalization.
|
|
2775
|
|
2776 An alternate interface to embedding images in the text is provided, called
|
|
2777 "annotations." You may create an "annotation margin" which is whitespace at
|
|
2778 the left side of the screen that contains only annotations, not buffer text.
|
|
2779
|
|
2780 When using XPM files, one can specify the values of logical color names to be
|
|
2781 used when loading the files.
|
|
2782
|
|
2783 It is possible to resize windows by dragging their modelines up and down. More
|
|
2784 generally, it is possible to add bindings for mouse gestures on the modelines.
|
|
2785
|
|
2786 There is support for playing sound files on HP machines.
|
|
2787
|
|
2788 ILISP version 5.5 is included.
|
|
2789
|
|
2790 The Common Lisp #' read syntax is supported (#' is to "function" as ' is to
|
|
2791 "quote".)
|
|
2792
|
|
2793 The `active-p' slot of menu items is now evaluated, so one can put arbitrary
|
|
2794 lisp code in a menu to decide whether that item should be selectable, rather
|
|
2795 than doing this with an `activate-menubar-hook'.
|
|
2796
|
|
2797 The X resource hierarchy has changed slightly, to be more consistent. It used
|
|
2798 to be
|
|
2799 argv[0] SCREEN-NAME pane screen
|
|
2800 ApplicationShell EmacsShell Paned EmacsFrame
|
|
2801
|
|
2802 now it is
|
|
2803
|
|
2804 argv[0] shell pane SCREEN-NAME
|
|
2805 ApplicationShell EmacsShell Paned EmacsFrame
|
|
2806
|
|
2807 The Lucid Emacs sources have been largely merged with FSF version 19; this
|
|
2808 means that the lisp library contains the most recent releases of various
|
|
2809 packages, and many new features of FSF 19 have been incorporated.
|
|
2810
|
|
2811 Because of this, the lemacs sources should also be substantially more portable.
|
|
2812
|
|
2813
|
|
2814 ** Major Differences Between 19.4 and 19.6
|
|
2815 ==========================================
|
|
2816
|
|
2817 There were almost no differences between versions 19.4 and 19.5; we fixed
|
|
2818 a few minor bugs and repacked 19.4 as 19.5 for a CD-ROM that we gave away
|
|
2819 as a trade show promotion.
|
|
2820
|
|
2821 The primary goal of the 19.6 release is stability, rather than improved
|
|
2822 functionality, so there aren't many user-visible changes. The most notable
|
|
2823 changes are:
|
|
2824
|
|
2825 - The -geometry command-line option now correctly overrides geometry
|
|
2826 specifications in the resource database.
|
|
2827 - The `width' and `height' screen-parameters work.
|
|
2828 - Font-lock-mode considers the comment start and end characters to be
|
|
2829 a part of the comment.
|
|
2830 - The lhilit package has been removed. Use font-lock-mode instead.
|
|
2831 - vm-isearch has been fixed to work with isearch-mode.
|
|
2832 - new versions of ispell and calendar.
|
|
2833 - sccs.el has menus.
|
|
2834
|
|
2835 Lots of bugs were fixed, including the problem that lemacs occasionally
|
|
2836 grabbed the keyboard focus.
|
|
2837
|
|
2838 Also, as of Lucid Emacs 19.6 and Energize 2.0 (shipping now) it is possible
|
|
2839 to compile the public release of Lucid Emacs with support for Energize; so
|
|
2840 now Energize users will be able to build their own Energize-aware versions
|
|
2841 of lemacs, and will be able to use newer versions of lemacs as they are
|
|
2842 released to the net. (Of course, this is not behavior covered by your
|
|
2843 Energize support contract; you do it at your own risk.)
|
|
2844
|
|
2845 I have not incorporated all portability patches that I have been sent since
|
|
2846 19.4; I will try to get to them soon. However, if you need to make any
|
|
2847 changes to lemacs to get it to compile on your system, it would be quite
|
|
2848 helpful if you would send me context diffs (diff -c) against version 19.6.
|
|
2849
|
|
2850
|
|
2851 ** Major Differences Between 19.3 and 19.4
|
|
2852 ==========================================
|
|
2853
|
|
2854 Prototypes have been added for all functions. Emacs compiles in the strict
|
|
2855 ANSI modes of lcc and gcc, so portability should be vastly improved.
|
|
2856
|
70
|
2857 Many many many many core leaks have been plugged, especially in screen
|
0
|
2858 creation and deletion.
|
|
2859
|
|
2860 The float support reworked to be more portable and ANSI conformant. This
|
70
|
2861 resulted in these new configuration parameters: HAVE_INVERSE_HYPERBOLIC,
|
|
2862 HAVE_CBRT, HAVE_RINT, FLOAT_CHECK_ERRNO, FLOAT_CATCH_SIGILL,
|
0
|
2863 FLOAT_CHECK_DOMAIN. Let us know if you had to change the defaults on your
|
|
2864 architecture.
|
|
2865
|
70
|
2866 The SunOS unexec has been rewritten, and now works with either static or
|
0
|
2867 dynamic libraries, depending on whether -Bstatic or -Bdynamic were specified
|
|
2868 at link-time.
|
|
2869
|
|
2870 Small (character-sized) bitmaps can be mixed in with buffer text via the new
|
|
2871 functions set-extent-begin-glyph and set-extent-end-glyph. (This is actually
|
|
2872 a piece of functionality that Energize has been using for a while, but we've
|
|
2873 just gotten around to making it possible to use it without Energize. See how
|
|
2874 nice we are? Go buy our product.)
|
|
2875
|
|
2876 If compiled with Motif support, one can pop up dialog boxes from emacs lisp.
|
|
2877 We encourage someone to contribute Athena an version of this code; it
|
70
|
2878 shouldn't be much work.
|
0
|
2879
|
|
2880 If dialog boxes are available, then y-or-n-p and yes-or-no-p use dialog boxes
|
70
|
2881 instead of the minibuffer if invoked as a result of a command that was
|
0
|
2882 executed from a menu instead of from the keyboard.
|
|
2883
|
|
2884 Multiple screen support works better; check out doc of get-screen-for-buffer.
|
|
2885
|
|
2886 The default binding of backspace is the same as delete. (C-h is still help.)
|
|
2887
|
70
|
2888 A middle click while the minibuffer is active does completion if you click on
|
0
|
2889 a highlighted completion, otherwise it executes the global binding of button2.
|
|
2890
|
|
2891 New versions of Barry Warsaw's c++-mode and syntax.c. Font-lock-mode works
|
|
2892 with C++ mode now.
|
|
2893
|
|
2894 The semantics of activate-menubar-hook has changed; the functions are called
|
|
2895 with no arguments now.
|
|
2896
|
|
2897 `truename' no longer hacks the automounter; use directory-abbrev-alist instead.
|
|
2898
|
|
2899 Most minibuffer handling has been reimplemented in emacs-lisp.
|
|
2900
|
|
2901 There is now a builtin minibuffer history mechanism which replaces gmhist.
|
|
2902
|
|
2903
|
|
2904 ** Major Differences Between 19.2 and 19.3
|
|
2905 ==========================================
|
|
2906
|
|
2907 The ISO characters have correct case and syntax tables now, so the word-motion
|
|
2908 and case-converting commands work sensibly on them.
|
|
2909
|
|
2910 If you set ctl-arrow to an integer, you can control exactly which characters
|
|
2911 are printable. (There will be a less crufty way to do this eventually.)
|
|
2912
|
|
2913 Menubars can now be buffer local; the function set-screen-menubar no longer
|
70
|
2914 exists. Look at GNUS and VM for examples of how to do this, or read
|
0
|
2915 menubar.el.
|
|
2916
|
|
2917 When emacs is reading from the minibuffer with completions, any completions
|
|
2918 which are visible on the screen will highlight when the mouse moves over them;
|
|
2919 clicking middle on a completion is the same as typing it at the minibuffer.
|
|
2920 Some implications of this: The *Completions* buffer is always mousable. If
|
|
2921 you're using the completion feature of find-tag, your source code will be
|
70
|
2922 mousable when you type M-. Dired buffers will be mousable as soon as you
|
0
|
2923 type ^X^F. And so on.
|
|
2924
|
|
2925 The old isearch code has been replaced with a descendant of Dan LaLiberte's
|
|
2926 excellent isearch-mode; it is more customizable, and generally less bogus.
|
|
2927 You can search for "composed" characters. There are new commands, too; see
|
|
2928 the doc for ^S, or the NEWS file.
|
|
2929
|
|
2930 A patched GNUS 3.14 is included.
|
|
2931
|
|
2932 The user's manual now documents Lucid Emacs 19.3.
|
|
2933
|
|
2934 A few more modes have mouse and menu support.
|
|
2935
|
|
2936 The startup code should be a little more robust, and give you more reasonable
|
|
2937 error messages when things aren't installed quite right (instead of the
|
|
2938 ubiquitous "cannot open DISPLAY"...)
|
|
2939
|
|
2940 Subdirectories of the lisp directory whose names begin with a hyphen or dot
|
|
2941 are not automatically added to the load-path, so you can use this to avoid
|
|
2942 accidentally inflicting experimental software on your users.
|
|
2943
|
|
2944 I've tried to incorporate all of the portability patches that were sent to
|
70
|
2945 me; I tried to solve some of the problems in different ways than the
|
0
|
2946 patches did, so let me know if I missed something.
|
|
2947
|
|
2948 Some systems will need to define NEED_STRDUP, NEED_REALPATH, HAVE_DREM, or
|
|
2949 HAVE_REMAINDER in config.h. Really this should be done in the appropriate
|
|
2950 s- or m- files, but I don't know which systems need these and which don't.
|
|
2951 If yours does, let me know which file it should be in.
|
|
2952
|
|
2953 Check out these new packages:
|
|
2954
|
|
2955 blink-paren.el: causes the matching parenthesis to flash on and off whenever
|
|
2956 the cursor is sitting on a paren-syntax character.
|
|
2957
|
|
2958 pending-del.el: Certain commands implicitly delete the highlighted region:
|
|
2959 Typing a character when there is a highlighted region replaces
|
|
2960 that region with the typed character.
|
|
2961
|
|
2962 font-lock.el: A code-highlighting package, driven off of syntax tables, so
|
70
|
2963 that it understands block comments, strings, etc. The
|
0
|
2964 insertion hook is used to fontify text as you type it in.
|
|
2965
|
|
2966 shell-font.el: Displays your shell-buffer prompt in boldface.
|
124
|
2967
|
|
2968 * The History of XEmacs
|
|
2969 =======================
|
|
2970
|
|
2971 This product is an extension of GNU Emacs, previously known to some as
|
|
2972 "Lucid Emacs" or "ERA". It was initially based on an early version of Emacs
|
|
2973 Version 19 from the Free Software Foundation and has since been kept
|
|
2974 up-to-date with recent versions of that product. It stems from a
|
|
2975 collaboration of Lucid, Inc. with SunSoft DevPro (a division of Sun
|
|
2976 Microsystems, Inc.; formerly called SunPro) and the University of Illinois.
|
|
2977
|
|
2978 NOTE: Lucid, Inc. is currently out of business but development on XEmacs
|
|
2979 continues strong. Recently, Amdahl Corporation and INS Engineering have
|
|
2980 both contributed significantly to the development of XEmacs.
|
|
2981
|
|
2982
|
|
2983 * What's Different?
|
|
2984 ===================
|
|
2985
|
|
2986
|
|
2987 ** Differences between XEmacs and GNU Emacs 19
|
|
2988 ==================================================
|
|
2989 In XEmacs 20, characters are first-class objects. Characters can be
|
|
2990 converted to integers, but are not integers. FSF 19, XEmacs 19, and Mule
|
|
2991 represent them as integers.
|
|
2992
|
|
2993 In XEmacs, events are first-class objects. FSF 19 represents them as
|
|
2994 integers, which obscures the differences between a key gesture and the
|
|
2995 ancient ASCII code used to represent a particular overlapping subset of them.
|
|
2996
|
|
2997 In XEmacs, keymaps are first-class opaque objects. FSF 19 represents them as
|
|
2998 complicated combinations of association lists and vectors. If you use the
|
|
2999 advertised functional interface to manipulation of keymaps, the same code
|
|
3000 will work in XEmacs, Emacs 18, and GNU Emacs 19; if your code depends
|
|
3001 on the underlying implementation of keymaps, it will not.
|
|
3002
|
|
3003 XEmacs uses "extents" to represent all non-textual aspects of buffers;
|
|
3004 FSF 19 uses two distinct objects, "text properties" and "overlays",
|
|
3005 which divide up the functionality between them. Extents are a
|
|
3006 superset of the functionality of the two FSF data types. The full FSF
|
223
|
3007 19 interface to text properties and overlays is supported in XEmacs
|
|
3008 (with extents being the underlying representation).
|
124
|
3009
|
|
3010 Extents can be made to be copied into strings, and thus restored by kill
|
|
3011 and yank. Thus, one can specify this behavior on either "extents" or
|
|
3012 "text properties", whereas in FSF 19 text properties always have this
|
|
3013 behavior and overlays never do.
|
|
3014
|
|
3015 Many more packages are provided standard with XEmacs than with FSF 19.
|
|
3016
|
223
|
3017 Images of arbitrary size can be embedded in a buffer.
|
124
|
3018
|
|
3019 Variable width fonts work.
|
|
3020
|
|
3021 The height of a line is the height of the tallest font on that line, instead
|
|
3022 of all lines having the same height.
|
|
3023
|
|
3024 XEmacs uses the MIT "Xt" toolkit instead of raw Xlib calls, which
|
|
3025 makes it be a more well-behaved X citizen (and also improves
|
|
3026 portability). A result of this is that it is possible to include
|
|
3027 other Xt "Widgets" in the XEmacs window. Also, XEmacs understands the
|
|
3028 standard Xt command-line arguments.
|
|
3029
|
|
3030 XEmacs provides support for ToolTalk on systems that have it.
|
|
3031
|
|
3032 XEmacs can ask questions using popup dialog boxes. Any command executed from
|
|
3033 a menu will ask yes/no questions with dialog boxes, while commands executed
|
|
3034 via the keyboard will use the minibuffer.
|
|
3035
|
|
3036 XEmacs has a built-in toolbar. Four toolbars can actually be configured:
|
|
3037 top, bottom, left, and right toolbars.
|
|
3038
|
|
3039 XEmacs has vertical and horizontal scrollbars. Unlike in FSF 19 (which
|
|
3040 provides a primitive form of vertical scrollbar), these are true toolkit
|
|
3041 scrollbars. A look-alike Motif scrollbar is provided for those who
|
|
3042 don't have Motif. (Even for those who do, the look-alike may be preferable
|
|
3043 as it is faster.)
|
|
3044
|
|
3045 If you're running on a machine with audio hardware, you can specify sound
|
|
3046 files for XEmacs to play instead of the default X beep. See the documentation
|
|
3047 of the function load-sound-file and the variable sound-alist.
|
|
3048
|
|
3049 An XEmacs frame can be placed within an "external client widget" managed by
|
|
3050 another application. This allows an application to use an XEmacs frame as its
|
|
3051 text pane rather than the standard Text widget that is provided with Motif or
|
|
3052 Athena. XEmacs supports Motif applications, generic Xt (e.g. Athena)
|
|
3053 applications, and raw Xlib applications.
|
|
3054
|
|
3055 Here are some more specifics about the XEmacs implementation:
|
|
3056
|
|
3057 *** The Input Model
|
|
3058 -------------------
|
|
3059
|
|
3060 The fundamental unit of input is an "event" instead of a character. An
|
|
3061 event is a new data type that contains several pieces of information.
|
|
3062 There are several kinds of event, and corresponding accessor and utility
|
|
3063 functions. We tried to abstract them so that they would apply equally
|
|
3064 well to a number of window systems.
|
|
3065
|
|
3066 NOTE: All timestamps are measured as milliseconds since Emacs started.
|
|
3067
|
|
3068 key_press_event
|
|
3069 event_channel A token representing which keyboard generated it.
|
|
3070 For this kind of event, this is a console object.
|
|
3071 timestamp When it happened
|
|
3072 key What keysym this is; a character or a symbol.
|
|
3073 If it is a character, it will be a printing
|
|
3074 ASCII character.
|
|
3075 modifiers Bucky-bits on that key: control, meta, etc.
|
|
3076 For most keys, Shift is not a bit; that is implicit
|
|
3077 in the keyboard layout.
|
|
3078
|
|
3079 button_press_event
|
|
3080 button_release_event
|
|
3081 event_channel A token representing which mouse generated it.
|
|
3082 For this kind of event, this is a frame object.
|
|
3083 timestamp When it happened
|
|
3084 button What button went down or up.
|
|
3085 modifiers Bucky-bits on that button: shift, control, meta, etc.
|
|
3086 x, y Where it was at the button-state-change (in pixels).
|
|
3087
|
|
3088 pointer_motion_event
|
|
3089 event_channel A token representing which mouse generated it.
|
|
3090 For this kind of event, this is a frame object.
|
|
3091 timestamp When it happened
|
|
3092 x, y Where it was after it moved (in pixels).
|
|
3093 modifiers Bucky-bits down when the motion was detected.
|
|
3094 (Possibly not all window systems will provide this?)
|
|
3095
|
|
3096 process_event
|
|
3097 timestamp When it happened
|
|
3098 process the emacs "process" object in question
|
|
3099
|
|
3100 timeout_event
|
|
3101 timestamp Now (really, when the timeout was signaled)
|
|
3102 interval_id The ID returned when the associated call to
|
|
3103 add_timeout_cb() was made
|
|
3104 ------ the rest of the fields are filled in by Emacs -----
|
|
3105 id_number The Emacs timeout ID for this timeout (more
|
|
3106 than one timeout event can have the same value
|
|
3107 here, since Emacs timeouts, as opposed to
|
|
3108 add_timeout_cb() timeouts, can resignal
|
|
3109 themselves)
|
|
3110 function An elisp function to call when this timeout is
|
|
3111 processed.
|
|
3112 object The object passed to that function.
|
|
3113
|
|
3114 eval_event
|
|
3115 timestamp When it happened
|
|
3116 function An elisp function to call with this event object.
|
|
3117 object Anything.
|
|
3118 This kind of event is used internally; sometimes the
|
|
3119 window system interface would like to inform emacs of
|
|
3120 some user action (such as focusing on another frame)
|
|
3121 but needs that to happen synchronously with the other
|
|
3122 user input, like keypresses. This is useful when
|
|
3123 events are reported through callbacks rather
|
|
3124 than in the standard event stream.
|
|
3125
|
|
3126 misc_user_event
|
|
3127 timestamp When it happened
|
|
3128 function An elisp function to call with this event object.
|
|
3129 object Anything.
|
|
3130 This is similar to an eval_event, except that it is
|
|
3131 generated by user actions: selections in the
|
|
3132 menubar or scrollbar actions. It is a "command"
|
|
3133 event, like key and mouse presses (and unlike mouse
|
|
3134 motion, process output, and enter and leave window
|
|
3135 hooks). In many ways, eval_events are not the same
|
|
3136 as keypresses or misc_user_events.
|
|
3137
|
|
3138 magic_event
|
|
3139 No user-serviceable parts within. This is for things
|
|
3140 like KeymapNotify and ExposeRegion events and so on
|
|
3141 that emacs itself doesn't care about, but which it
|
|
3142 must do something with for proper interaction with
|
|
3143 the window system.
|
|
3144
|
|
3145 Magic_events are handled somewhat asynchronously, just
|
|
3146 like subprocess filters. However, occasionally a
|
|
3147 magic_event needs to be handled synchronously; in that
|
|
3148 case, the asynchronous handling of the magic_event will
|
|
3149 push an eval_event back onto the queue, which will be
|
|
3150 handled synchronously later. This is one of the
|
|
3151 reasons why eval_events exist; I'm not entirely happy
|
|
3152 with this aspect of this event model.
|
|
3153
|
|
3154
|
|
3155 The function `next-event' blocks and returns one of the above-described
|
|
3156 event objects. The function `dispatch-event' takes an event and processes
|
|
3157 it in the appropriate way.
|
|
3158
|
|
3159 For a process-event, dispatch-event calls the process's handler; for a
|
|
3160 mouse-motion event, the mouse-motion-handler hook is called, and so on.
|
|
3161 For magic-events, dispatch-event does window-system-dependent things,
|
|
3162 including calling some non-window-system-dependent hooks: map-frame-hook,
|
|
3163 unmap-frame-hook, mouse-enter-frame-hook, and mouse-leave-frame-hook.
|
|
3164
|
|
3165 The function `next-command-event' calls `next-event' until it gets a key or
|
|
3166 button from the user (that is, not a process, motion, timeout, or magic
|
|
3167 event). If it gets an event that is not a key or button, it calls
|
|
3168 `dispatch-event' on it immediately and reads another one. The
|
|
3169 next-command-event function could be implemented in Emacs Lisp, though it
|
|
3170 isn't. Generally one should call `next-command-event' instead of
|
|
3171 `next-event'.
|
|
3172
|
|
3173 read-char calls next-command-event; if it doesn't get an event that can be
|
|
3174 converted to an ASCII character, it signals an error. Otherwise it returns
|
|
3175 an integer.
|
|
3176
|
|
3177 The variable `last-command-char' always contains an integer, or nil (if the
|
|
3178 last read event has no ASCII equivalent, as when it is a mouse-click or a
|
|
3179 non-ASCII character chord.)
|
|
3180
|
|
3181 The new variable `last-command-event' holds an event object, that could be
|
|
3182 a non-ASCII character, a button click, a menu selection, etc.
|
|
3183
|
|
3184 The variable `unread-command-char' no longer exists, and has been replaced
|
|
3185 by `unread-command-events'. With the new event model, it is incorrect for
|
|
3186 code to do (setq unread-command-char (read-char)), because all user-input
|
|
3187 can't be represented as ASCII characters. *** This is an incompatible
|
|
3188 change. Code which sets `unread-command-char' must be updated to use the
|
|
3189 combination of `next-command-event' and `unread-command-events' instead.
|
|
3190
|
|
3191 The functions `this-command-keys' and `recent-keys' return a vector of
|
|
3192 event objects, instead of a string of ASCII characters. *** This also
|
|
3193 is an incompatible change.
|
|
3194
|
|
3195 Almost nothing happens at interrupt level; the SIGIO handler simply sets a
|
|
3196 flag, and later, the X event queue is scanned for KeyPress events which map
|
|
3197 to ^G. All redisplay happens in the main thread of the process.
|
|
3198
|
|
3199
|
|
3200 *** Keymaps
|
|
3201 -----------
|
|
3202
|
|
3203 Instead of keymaps being alists or obarrays, they are a new primary data
|
|
3204 type. The only user access to the contents of a keymap is through the
|
|
3205 existing keymap-manipulation functions, and a new function, map-keymap.
|
|
3206 This means that existing code that manipulates keymaps may need to
|
|
3207 be changed.
|
|
3208
|
|
3209 One of our goals with the new input and keymap code was to make more
|
|
3210 character combinations available for binding, besides just ASCII and
|
|
3211 function keys. We want to be able bind different commands to Control-a
|
|
3212 and Control-Shift-a; we also want it to be possible for the keys Control-h
|
|
3213 and Backspace (and Control-M and Return, and Control-I and Tab, etc) to
|
|
3214 be distinct.
|
|
3215
|
|
3216 One of the most common complaints that new Emacs users have is that backspace
|
|
3217 is help. The answer is to play around with the keyboard-translate-table, or
|
|
3218 be lucky enough to have a system administrator who has done this for you
|
|
3219 already; but if it were possible to bind backspace and C-h to different
|
|
3220 things, then (under a window manager at least) both backspace and delete
|
|
3221 would delete a character, and ^H would be help. There's no need to deal
|
|
3222 with xmodmap, kbd-translate-table, etc.
|
|
3223
|
|
3224 Here are some more examples: suppose you want to bind one function to Tab,
|
|
3225 and another to Control-Tab. This can't be done if Tab and Control-I are the
|
|
3226 same thing. What about control keys that have no ASCII equivalent, like
|
|
3227 Control-< ? One might want that to be bound to set-mark-at-point-min. We
|
|
3228 want M-C-Backspace to be kill-backward-sexp. But we want M-Backspace to be
|
|
3229 kill-backward-word. Again, this can't be done if Backspace and C-h are
|
|
3230 indistinguishable.
|
|
3231
|
|
3232 The user represents keys as a string of ASCII characters (when possible and
|
|
3233 convenient), or as a vector of event objects, or as a vector of "key
|
|
3234 description lists", that looks like (control a), or (control meta delete)
|
|
3235 or (shift f1). The order of the modifier-names is not significant, so
|
|
3236 (meta control x) and (control meta x) are the same.
|
|
3237
|
|
3238 `define-key' knows how to take any of the above representations and store them
|
|
3239 into a keymap. When Emacs wants to return a key sequence (this-command-keys,
|
|
3240 recent-keys, keyboard-macros, and read-key-sequence, for example) it returns
|
|
3241 a vector of event objects. Keyboard macros can also be represented as ASCII
|
|
3242 strings or as vectors of key description lists.
|
|
3243
|
|
3244 This is an incompatible change: code which calls `this-command-keys',
|
|
3245 `recent-keys', `read-key-sequence', or manipulates keyboard-macros probably
|
|
3246 needs to be changed so that it no longer assumes that the returned value is a
|
|
3247 string.
|
|
3248
|
|
3249 Control-Shift-a is specified as (control A), not (control shift a), since A
|
|
3250 is a two-case character. But for keys that don't have an upper case
|
|
3251 version, like F1, Backspace, and Escape, you use the (shift backspace) syntax.
|
|
3252
|
|
3253 See the doc string for our version of define-key, reproduced below in the
|
|
3254 `Changed Functions' section. Note that when the KEYS argument is a string,
|
|
3255 it has the same semantics as the v18 define-key.
|
|
3256
|
|
3257
|
|
3258 *** Xt Integration
|
|
3259 ------------------
|
|
3260
|
|
3261 The heart of the event loop is implemented in terms of the Xt event functions
|
|
3262 (specifically XtAppProcessEvent), and uses Xt's concept of timeouts and
|
|
3263 file-descriptor callbacks, eliminating a large amount of system-dependent code
|
|
3264 (Xt does it for you.)
|
|
3265
|
|
3266 If Emacs is compiled with support for X, it uses the Xt event loop even when
|
|
3267 Emacs is not running on an X display (the Xt event loop supports this). This
|
|
3268 makes it possible to run Emacs on a dumb TTY, and later connect it to one or
|
|
3269 more X servers. It should also be possible to later connect an existing Emacs
|
|
3270 process to additional TTY's, although this code is still experimental. (Our
|
|
3271 intent at this point is not to have an Emacs that is being used by multiple
|
|
3272 people at the same time: it is to make it possible for someone to go home, log
|
|
3273 in on a dialup line, and connect to the same Emacs process that is running
|
|
3274 under X in their office without having to recreate their buffer state and so
|
|
3275 on.)
|
|
3276
|
|
3277 If Emacs is not compiled with support for X, then it instead uses more general
|
|
3278 code, something like what v18 does; but this way of doing things is a lot more
|
|
3279 modular.
|
|
3280
|
|
3281 (Linking Emacs with Xt seems to only add about 300k to the executable size,
|
|
3282 compared with an Emacs linked with Xlib only.)
|
|
3283
|
|
3284
|
|
3285 *** Region Highlighting
|
|
3286 -----------------------
|
|
3287
|
|
3288 If the variable `zmacs-regions' is true, then the region between point and
|
|
3289 mark will be highlighted when "active". Those commands which push a mark
|
|
3290 (such as C-SPC, and C-x C-x) make the region become "active" and thus
|
|
3291 highlighted. Most commands (all non-motion commands, basically) cause it to
|
|
3292 become non-highlighted (non-"active"). Commands that operate on the region
|
|
3293 (such as C-w, C-x C-l, etc.) only work if the region is in the highlighted
|
|
3294 state.
|
|
3295
|
|
3296 zmacs-activate-region-hook and zmacs-deactivate-region-hook are run at the
|
|
3297 appropriate times; under X, zmacs-activate-region-hook makes the X selection
|
|
3298 be the region between point and mark, thus doing two things at once: making
|
|
3299 the region and the X selection be the same; and making the region highlight
|
|
3300 in the same way as the X selection.
|
|
3301
|
|
3302 If `zmacs-regions' is true, then the `mark-marker' command returns nil unless
|
|
3303 the region is currently in the active (highlighted) state. With an argument
|
|
3304 of t, this returns the mark (if there is one) regardless of the active-region
|
|
3305 state. You should *generally* not use the mark unless the region is active,
|
|
3306 if the user has expressed a preference for the active-region model. Watch
|
|
3307 out! Moving this marker changes the mark position. If you set the marker not
|
|
3308 to point anywhere, the buffer will have no mark.
|
|
3309
|
|
3310 In this way, the primary selection is a fairly transitory entity; but
|
|
3311 when something is copied to the kill ring, it is made the Clipboard
|
|
3312 selection. It is also stored into CUT_BUFFER0, for compatibility with
|
|
3313 X applications that don't understand selections (like Emacs18).
|
|
3314
|
|
3315 Compatibility note: if you have code which uses (mark) or (mark-marker),
|
|
3316 then you need to either: change those calls to (mark t) or (mark-marker t);
|
|
3317 or simply bind `zmacs-regions' to nil around the call to mark or mark-marker.
|
|
3318 This is probably the best solution, since it will work in Emacs 18 as well.
|
|
3319
|
|
3320
|
|
3321 *** Menubars and Dialog Boxes
|
|
3322 -----------------------------
|
|
3323
|
|
3324 Here is an example of a menubar definition:
|
|
3325
|
|
3326 (defvar default-menubar
|
|
3327 '(("File" ["Open File..." find-file t]
|
|
3328 ["Save Buffer" save-buffer t]
|
|
3329 ["Save Buffer As..." write-file t]
|
|
3330 ["Revert Buffer" revert-buffer t]
|
|
3331 "-----"
|
|
3332 ["Print Buffer" lpr-buffer t]
|
|
3333 "-----"
|
|
3334 ["Delete Frame" delete-frame t]
|
|
3335 ["Kill Buffer..." kill-buffer t]
|
|
3336 ["Exit Emacs" save-buffers-kill-emacs t]
|
|
3337 )
|
|
3338 ("Edit" ["Undo" advertised-undo t]
|
|
3339 ["Cut" kill-primary-selection t]
|
|
3340 ["Copy" copy-primary-selection t]
|
|
3341 ["Paste" yank-clipboard-selection t]
|
|
3342 ["Clear" delete-primary-selection t]
|
|
3343 )
|
|
3344 ...))
|
|
3345
|
|
3346 The first element of each menu item is the string to print on the menu.
|
|
3347
|
|
3348 The second element is the callback function; if it is a symbol, it is
|
|
3349 invoked with `call-interactively.' If it is a list, it is invoked with
|
|
3350 `eval'.
|
|
3351
|
|
3352 If the second element is a symbol, then the menu also displays the key that
|
|
3353 is bound to that command (if any).
|
|
3354
|
|
3355 The third element of the menu items determines whether the item is selectable.
|
|
3356 It may be t, nil, or a form to evaluate. Also, a hook is run just before a
|
|
3357 menu is exposed, which can be used to change the value of these slots.
|
|
3358 For example, there is a hook that makes the "undo" menu item be selectable
|
|
3359 only in the cases when `advertised-undo' would not signal an error.
|
|
3360
|
|
3361 Menus may have other menus nested within them; they will cascade.
|
|
3362
|
|
3363 There are utility functions for adding items to menus, deleting items,
|
|
3364 disabling them, etc.
|
|
3365
|
|
3366 The function `popup-menu' takes a menu description and pops it up.
|
|
3367
|
|
3368 The function `popup-dialog-box' takes a dialog-box description and pops
|
|
3369 it up. Dialog box descriptions look a lot like menu descriptions.
|
|
3370
|
|
3371 The menubar, menu, and dialog-box code is implemented as a library,
|
|
3372 with an interface which hides the toolkit that implements it.
|
|
3373
|
|
3374
|
|
3375 *** Isearch Changes
|
|
3376 -------------------
|
|
3377
|
|
3378 Isearch has been reimplemented in a different way, adding some new features,
|
|
3379 and causing a few incompatible changes.
|
|
3380
|
|
3381 - the old isearch-*-char variables are no longer supported. In the old
|
|
3382 system, one could make ^A mean "repeat the search" by doing something
|
|
3383 like (setq search-repeat-char ?C-a). In the new system, this is
|
|
3384 accomplished with
|
|
3385
|
|
3386 (define-key isearch-mode-map "\C-a" 'isearch-repeat-forward)
|
|
3387
|
|
3388 - The advantage of using the normal keymap mechanism for this is that you
|
|
3389 can bind more than one key to an isearch command: for example, both C-a
|
|
3390 and C-s could do the same thing inside isearch mode. You can also bind
|
|
3391 multi-key sequences inside of isearch mode, and bind non-ASCII keys.
|
|
3392 For example, to use the F1 key to terminate a search:
|
|
3393
|
|
3394 (define-key isearch-mode-map 'f1 'isearch-exit)
|
|
3395
|
|
3396 or to make ``C-c C-c'' terminate a search:
|
|
3397
|
|
3398 (define-key isearch-mode-map "\C-c\C-c" 'isearch-exit)
|
|
3399
|
|
3400 - If isearch is behaving case-insensitively (the default) and you type an
|
|
3401 upper case character, then the search will become case-sensitive. This
|
|
3402 can be disabled by setting `search-caps-disable-folding' to nil.
|
|
3403
|
|
3404 - There is a history ring of the strings previously searched for; typing
|
|
3405 M-p or M-n while searching will cycle through this ring. Typing M-TAB
|
|
3406 will do completion across the set of items in the history ring.
|
|
3407
|
|
3408 - The ESC key is no longer used to terminate an incremental search. The
|
|
3409 RET key should be used instead. This change is necessary for it to be
|
|
3410 possible to bind "meta" characters to isearch commands.
|
|
3411
|
|
3412
|
|
3413 *** Startup Code Changes
|
|
3414 ------------------------
|
|
3415
|
|
3416 The initial X frame is mapped before the user's .emacs file is executed.
|
|
3417 Without this, there is no way for the user to see any error messages
|
|
3418 generated by their .emacs file, any windows created by the .emacs file
|
|
3419 don't show up, and the copyleft notice isn't shown.
|
|
3420
|
|
3421 The default values for load-path, exec-path, lock-directory, and
|
|
3422 Info-directory-list are not (necessarily) built into Emacs, but are
|
|
3423 computed at startup time.
|
|
3424
|
|
3425 First, Emacs looks at the directory in which its executable file resides:
|
|
3426
|
|
3427 o If that directory contains subdirectories named "lisp" and "lib-src",
|
|
3428 then those directories are used as the lisp library and exec directory.
|
|
3429
|
|
3430 o If the parent of the directory in which the emacs executable is located
|
|
3431 contains "lisp" and "lib-src" subdirectories, then those are used.
|
|
3432
|
|
3433 o If ../lib/xemacs-<version> (starting from the directory in which the
|
|
3434 emacs executable is located) contains a "lisp" subdirectory and either
|
|
3435 a "lib-src" subdirectory or a <configuration-name> subdirectory, then
|
|
3436 those are used.
|
|
3437
|
|
3438 o If the emacs executable that was run is a symbolic link, then the link
|
|
3439 is chased, and the resultant directory is checked as above.
|
|
3440
|
|
3441 (Actually, it doesn't just look for "lisp/", it looks for "lisp/prim/",
|
|
3442 which reduces the chances of a false positive.)
|
|
3443
|
|
3444 If the lisp directory contains subdirectories, they are added to the default
|
|
3445 load-path as well. If the site-lisp directory exists and contains
|
|
3446 subdirectories, they are then added. Subdirectories whose names begin with
|
|
3447 a dot or a hyphen are not added to the load-path.
|
|
3448
|
|
3449 These heuristics fail if the Emacs binary was copied from the main Emacs
|
|
3450 tree to some other directory, and links for the lisp directory were not put
|
|
3451 in. This isn't much of a restriction: either make there be subdirectories
|
|
3452 (or symbolic links) of the directory of the emacs executable, or make the
|
|
3453 "installed" emacs executable be a symbolic link to an executable in a more
|
|
3454 appropriate directory structure. For example, this setup works:
|
|
3455
|
|
3456 /usr/local/xemacs/xemacs* ; The executable.
|
|
3457 /usr/local/xemacs/lisp/ ; The associated directories.
|
|
3458 /usr/local/xemacs/etc/ ; Any of the files in this list
|
|
3459 /usr/local/xemacs/lock/ ; could be symbolic links as well.
|
|
3460 /usr/local/xemacs/info/
|
|
3461
|
|
3462 As does this:
|
|
3463
|
|
3464 /usr/local/bin/xemacs -> ../xemacs/src/xemacs-19.14 ; A link...
|
|
3465 /usr/local/xemacs/src/xemacs-19.14* ; The executable,
|
|
3466 /usr/local/xemacs/lisp/ ; and the rest of
|
|
3467 /usr/local/xemacs/etc/ ; the source tree
|
|
3468 /usr/local/xemacs/lock/
|
|
3469 /usr/local/xemacs/info/
|
|
3470
|
|
3471 This configuration might be used for a multi-architecture installation; assume
|
|
3472 that $LOCAL refers to a directory which contains only files specific to a
|
|
3473 particular architecture (i.e., executables) and $SHARED refers to those files
|
|
3474 which are not machine specific (i.e., lisp code and documentation.)
|
|
3475
|
|
3476 $LOCAL/bin/xemacs@ -> $LOCAL/xemacs-19.14/xemacs*
|
|
3477 $LOCAL/xemacs-19.14/lisp@ -> $SHARED/xemacs-19.14/lisp/
|
|
3478 $LOCAL/xemacs-19.14/etc@ -> $SHARED/xemacs-19.14/etc/
|
|
3479 $LOCAL/xemacs-19.14/info@ -> $SHARED/xemacs-19.14/info/
|
|
3480
|
|
3481 The following would also work, but the above is probably more attractive:
|
|
3482
|
|
3483 $LOCAL/bin/xemacs*
|
|
3484 $LOCAL/bin/lisp@ -> $SHARED/xemacs-19.14/lisp/
|
|
3485 $LOCAL/bin/etc@ -> $SHARED/xemacs-19.14/etc/
|
|
3486 $LOCAL/bin/info@ -> $SHARED/xemacs-19.14/info/
|
|
3487
|
|
3488 If Emacs can't find the requisite directories, it writes a message like this
|
|
3489 (or some appropriate subset of it) to stderr:
|
|
3490
|
|
3491 WARNING:
|
|
3492 couldn't find an obvious default for load-path, exec-directory, and
|
|
3493 lock-directory, and there were no defaults specified in paths.h when
|
|
3494 Emacs was built. Perhaps some directories don't exist, or the Emacs
|
|
3495 executable, /cadillac-th/jwz/somewhere/xemacs is in a strange place?
|
|
3496
|
|
3497 Without both exec-directory and load-path, Emacs will be very broken.
|
|
3498 Consider making a symbolic link from /cadillac-th/jwz/somewhere/etc
|
|
3499 to wherever the appropriate Emacs etc/ directory is, and from
|
|
3500 /cadillac-th/jwz/somewhere/lisp/ to wherever the appropriate Emacs
|
|
3501 lisp library is.
|
|
3502
|
|
3503 Without lock-directory set, file locking won't work. Consider
|
|
3504 creating /cadillac-th/jwz/somewhere/lock as a directory or symbolic
|
|
3505 link for use as the lock directory.
|
|
3506
|
|
3507 The default installation tree is the following:
|
|
3508
|
|
3509 /usr/local/bin/b2m ;
|
|
3510 ctags ; executables that
|
|
3511 emacsclient ; should be in
|
|
3512 etags ; user's path
|
|
3513 xemacs -> xemacs-<version> ;
|
|
3514 xemacs ;
|
|
3515 /usr/local/lib/xemacs/site-lisp
|
|
3516 /usr/local/lib/xemacs/lock
|
|
3517 /usr/local/lib/xemacs-<version>/etc ; architecture ind. files
|
|
3518 /usr/local/lib/xemacs-<version>/info
|
|
3519 /usr/local/lib/xemacs-<version>/lisp
|
|
3520 /usr/local/lib/xemacs-<version>/<configuration> ; binaries emacs may run
|
|
3521
|
|
3522
|
|
3523 *** X Resources
|
|
3524 ---------------
|
|
3525
|
|
3526 (Note: This section is copied verbatim from the XEmacs Reference Manual.)
|
|
3527
|
|
3528 The Emacs resources are generally set per-frame. Each Emacs frame
|
|
3529 can have its own name or the same name as another, depending on the
|
|
3530 name passed to the `make-frame' function.
|
|
3531
|
|
3532 You can specify resources for all frames with the syntax:
|
|
3533
|
|
3534 Emacs*parameter: value
|
|
3535
|
|
3536 or
|
|
3537
|
|
3538 Emacs*EmacsFrame.parameter:value
|
|
3539
|
|
3540 You can specify resources for a particular frame with the syntax:
|
|
3541
|
|
3542 Emacs*FRAME-NAME.parameter: value
|
|
3543
|
|
3544
|
|
3545 **** Geometry Resources
|
|
3546 -----------------------
|
|
3547
|
|
3548 To make the default size of all Emacs frames be 80 columns by 55
|
|
3549 lines, do this:
|
|
3550
|
|
3551 Emacs*EmacsFrame.geometry: 80x55
|
|
3552
|
|
3553 To set the geometry of a particular frame named `fred', do this:
|
|
3554
|
|
3555 Emacs*fred.geometry: 80x55
|
|
3556
|
|
3557 Important! Do not use the following syntax:
|
|
3558
|
|
3559 Emacs*geometry: 80x55
|
|
3560
|
|
3561 You should never use `*geometry' with any X application. It does not
|
|
3562 say "make the geometry of Emacs be 80 columns by 55 lines." It really
|
|
3563 says, "make Emacs and all subwindows thereof be 80x55 in whatever units
|
|
3564 they care to measure in." In particular, that is both telling the
|
|
3565 Emacs text pane to be 80x55 in characters, and telling the menubar pane
|
|
3566 to be 80x55 pixels, which is surely not what you want.
|
|
3567
|
|
3568 As a special case, this geometry specification also works (and sets
|
|
3569 the default size of all Emacs frames to 80 columns by 55 lines):
|
|
3570
|
|
3571 Emacs.geometry: 80x55
|
|
3572
|
|
3573 since that is the syntax used with most other applications (since most
|
|
3574 other applications have only one top-level window, unlike Emacs). In
|
|
3575 general, however, the top-level shell (the unmapped ApplicationShell
|
|
3576 widget named `Emacs' that is the parent of the shell widgets that
|
|
3577 actually manage the individual frames) does not have any interesting
|
|
3578 resources on it, and you should set the resources on the frames instead.
|
|
3579
|
|
3580 The `-geometry' command-line argument sets only the geometry of the
|
|
3581 initial frame created by Emacs.
|
|
3582
|
|
3583 A more complete explanation of geometry-handling is
|
|
3584
|
|
3585 * The `-geometry' command-line option sets the `Emacs.geometry'
|
|
3586 resource, that is, the geometry of the ApplicationShell.
|
|
3587
|
|
3588 * For the first frame created, the size of the frame is taken from
|
|
3589 the ApplicationShell if it is specified, otherwise from the
|
|
3590 geometry of the frame.
|
|
3591
|
|
3592 * For subsequent frames, the order is reversed: First the frame, and
|
|
3593 then the ApplicationShell.
|
|
3594
|
|
3595 * For the first frame created, the position of the frame is taken
|
|
3596 from the ApplicationShell (`Emacs.geometry') if it is specified,
|
|
3597 otherwise from the geometry of the frame.
|
|
3598
|
|
3599 * For subsequent frames, the position is taken only from the frame,
|
|
3600 and never from the ApplicationShell.
|
|
3601
|
|
3602 This is rather complicated, but it does seem to provide the most
|
|
3603 intuitive behavior with respect to the default sizes and positions of
|
|
3604 frames created in various ways.
|
|
3605
|
|
3606
|
|
3607 **** Iconic Resources
|
|
3608 ---------------------
|
|
3609
|
|
3610 Analogous to `-geometry', the `-iconic' command-line option sets the
|
|
3611 iconic flag of the ApplicationShell (`Emacs.iconic') and always applies
|
|
3612 to the first frame created regardless of its name. However, it is
|
|
3613 possible to set the iconic flag on particular frames (by name) by using
|
|
3614 the `Emacs*FRAME-NAME.iconic' resource.
|
|
3615
|
|
3616
|
|
3617 **** Resource List
|
|
3618 ------------------
|
|
3619
|
|
3620 Emacs frames accept the following resources:
|
|
3621
|
|
3622 `geometry' (class `Geometry'): string
|
|
3623 Initial geometry for the frame. *Note Geometry Resources:: for a
|
|
3624 complete discussion of how this works.
|
|
3625
|
|
3626 `iconic' (class `Iconic'): boolean
|
|
3627 Whether this frame should appear in the iconified state.
|
|
3628
|
|
3629 `internalBorderWidth' (class `InternalBorderWidth'): int
|
|
3630 How many blank pixels to leave between the text and the edge of the
|
|
3631 window.
|
|
3632
|
|
3633 `interline' (class `Interline'): int
|
|
3634 How many pixels to leave between each line (may not be
|
|
3635 implemented).
|
|
3636
|
|
3637 `menubar' (class `Menubar'): boolean
|
|
3638 Whether newly-created frames should initially have a menubar. Set
|
|
3639 to true by default.
|
|
3640
|
|
3641 `initiallyUnmapped' (class `InitiallyUnmapped'): boolean
|
|
3642 Whether XEmacs should leave the initial frame unmapped when it
|
|
3643 starts up. This is useful if you are starting XEmacs as a server
|
|
3644 (e.g. in conjunction with gnuserv or the external client widget).
|
|
3645 You can also control this with the `-unmapped' command-line option.
|
|
3646
|
|
3647 `barCursor' (class `BarColor'): boolean
|
|
3648 Whether the cursor should be displayed as a bar, or the
|
|
3649 traditional box.
|
|
3650
|
|
3651 `textPointer' (class `Cursor'): cursor-name
|
|
3652 The cursor to use when the mouse is over text. This resource is
|
|
3653 used to initialize the variable `x-pointer-shape'.
|
|
3654
|
|
3655 `selectionPointer' (class `Cursor'): cursor-name
|
|
3656 The cursor to use when the mouse is over a selectable text region
|
|
3657 (an extent with the `highlight' property; for example, an Info
|
|
3658 cross-reference). This resource is used to initialize the variable
|
|
3659 `x-selection-pointer-shape'.
|
|
3660
|
|
3661 `spacePointer' (class `Cursor'): cursor-name
|
|
3662 The cursor to use when the mouse is over a blank space in a buffer
|
|
3663 (that is, after the end of a line or after the end-of-file). This
|
|
3664 resource is used to initialize the variable
|
|
3665 `x-nontext-pointer-shape'.
|
|
3666
|
|
3667 `modeLinePointer' (class `Cursor'): cursor-name
|
|
3668 The cursor to use when the mouse is over a mode line. This
|
|
3669 resource is used to initialize the variable `x-mode-pointer-shape'.
|
|
3670
|
|
3671 `gcPointer' (class `Cursor'): cursor-name
|
|
3672 The cursor to display when a garbage-collection is in progress.
|
|
3673 This resource is used to initialize the variable
|
|
3674 `x-gc-pointer-shape'.
|
|
3675
|
|
3676 `scrollbarPointer' (class `Cursor'): cursor-name
|
|
3677 The cursor to use when the mouse is over the scrollbar. This
|
|
3678 resource is used to initialize the variable
|
|
3679 `x-scrollbar-pointer-shape'.
|
|
3680
|
|
3681 `pointerColor' (class `Foreground'): color-name
|
|
3682 `pointerBackground' (class `Background'): color-name
|
|
3683 The foreground and background colors of the mouse cursor. These
|
|
3684 resources are used to initialize the variables
|
|
3685 `x-pointer-foreground-color' and `x-pointer-background-color'.
|
|
3686
|
|
3687 `scrollBarWidth' (class `ScrollBarWidth'): integer
|
|
3688 How wide the vertical scrollbars should be, in pixels; 0 means no
|
|
3689 vertical scrollbars. You can also use a resource specification of
|
|
3690 the form `*scrollbar.width', or the usual toolkit scrollbar
|
|
3691 resources: `*XmScrollBar.width' (Motif), `*XlwScrollBar.width'
|
|
3692 (Lucid), or `*Scrollbar.thickness' (Athena). We don't recommend
|
|
3693 that you use the toolkit resources, though, because they're
|
|
3694 dependent on how exactly your particular build of XEmacs was
|
|
3695 configured.
|
|
3696
|
|
3697 `scrollBarHeight' (class `ScrollBarHeight'): integer
|
|
3698 How high the horizontal scrollbars should be, in pixels; 0 means no
|
|
3699 horizontal scrollbars. You can also use a resource specification
|
|
3700 of the form `*scrollbar.height', or the usual toolkit scrollbar
|
|
3701 resources: `*XmScrollBar.height' (Motif), `*XlwScrollBar.height'
|
|
3702 (Lucid), or `*Scrollbar.thickness' (Athena). We don't recommend
|
|
3703 that you use the toolkit resources, though, because they're
|
|
3704 dependent on how exactly your particular build of XEmacs was
|
|
3705 configured.
|
|
3706
|
|
3707 `scrollBarPlacement' (class `ScrollBarPlacement'): string
|
|
3708 Where the horizontal and vertical scrollbars should be positioned.
|
|
3709 This should be one of the four strings `bottom-left',
|
|
3710 `bottom-right', `top-left', and `top-right'. Default is
|
|
3711 `bottom-right' for the Motif and Lucid scrollbars and
|
|
3712 `bottom-left' for the Athena scrollbars.
|
|
3713
|
|
3714 `topToolBarHeight' (class `TopToolBarHeight'): integer
|
|
3715 `bottomToolBarHeight' (class `BottomToolBarHeight'): integer
|
|
3716 `leftToolBarWidth' (class `LeftToolBarWidth'): integer
|
|
3717 `rightToolBarWidth' (class `RightToolBarWidth'): integer
|
|
3718 Height and width of the four possible toolbars.
|
|
3719
|
|
3720 `topToolBarShadowColor' (class `TopToolBarShadowColor'): color-name
|
|
3721 `bottomToolBarShadowColor' (class `BottomToolBarShadowColor'): color-name
|
|
3722 Color of the top and bottom shadows for the toolbars. NOTE: These
|
|
3723 resources do *not* have anything to do with the top and bottom
|
|
3724 toolbars (i.e. the toolbars at the top and bottom of the frame)!
|
|
3725 Rather, they affect the top and bottom shadows around the edges of
|
|
3726 all four kinds of toolbars.
|
|
3727
|
|
3728 `topToolBarShadowPixmap' (class `TopToolBarShadowPixmap'): pixmap-name
|
|
3729 `bottomToolBarShadowPixmap' (class `BottomToolBarShadowPixmap'): pixmap-name
|
|
3730 Pixmap of the top and bottom shadows for the toolbars. If set,
|
|
3731 these resources override the corresponding color resources. NOTE:
|
|
3732 These resources do *not* have anything to do with the top and
|
|
3733 bottom toolbars (i.e. the toolbars at the top and bottom of the
|
|
3734 frame)! Rather, they affect the top and bottom shadows around the
|
|
3735 edges of all four kinds of toolbars.
|
|
3736
|
|
3737 `toolBarShadowThickness' (class `ToolBarShadowThickness'): integer
|
|
3738 Thickness of the shadows around the toolbars, in pixels.
|
|
3739
|
|
3740 `visualBell' (class `VisualBell'): boolean
|
|
3741 Whether XEmacs should flash the screen rather than making an
|
|
3742 audible beep.
|
|
3743
|
|
3744 `bellVolume' (class `BellVolume'): integer
|
|
3745 Volume of the audible beep.
|
|
3746
|
|
3747 `useBackingStore' (class `UseBackingStore'): boolean
|
|
3748 Whether XEmacs should set the backing-store attribute of the X
|
|
3749 windows it creates. This increases the memory usage of the X
|
|
3750 server but decreases the amount of X traffic necessary to update
|
|
3751 the screen, and is useful when the connection to the X server goes
|
|
3752 over a low-bandwidth line such as a modem connection.
|
|
3753
|
|
3754
|
|
3755 **** Face Resources
|
|
3756 -------------------
|
|
3757
|
|
3758 The attributes of faces are also per-frame. They can be specified as:
|
|
3759
|
|
3760 Emacs.FACE_NAME.parameter: value
|
|
3761
|
|
3762 (*do not* use `Emacs*FACE_NAME...')
|
|
3763
|
|
3764 or
|
|
3765
|
|
3766 Emacs*FRAME_NAME.FACE_NAME.parameter: value
|
|
3767
|
|
3768 Faces accept the following resources:
|
|
3769
|
|
3770 `attributeFont' (class `AttributeFont'): font-name
|
|
3771 The font of this face.
|
|
3772
|
|
3773 `attributeForeground' (class `AttributeForeground'): color-name
|
|
3774 `attributeBackground' (class `AttributeBackground'): color-name
|
|
3775 The foreground and background colors of this face.
|
|
3776
|
|
3777 `attributeBackgroundPixmap' (class `AttributeBackgroundPixmap'): file-name
|
|
3778 The name of an XBM file (or XPM file, if your version of Emacs
|
|
3779 supports XPM), to use as a background stipple.
|
|
3780
|
|
3781 `attributeUnderline' (class `AttributeUnderline'): boolean
|
|
3782 Whether text in this face should be underlined.
|
|
3783
|
|
3784 All text is displayed in some face, defaulting to the face named
|
|
3785 `default'. To set the font of normal text, use
|
|
3786 `Emacs*default.attributeFont'. To set it in the frame named `fred', use
|
|
3787 `Emacs*fred.default.attributeFont'.
|
|
3788
|
|
3789 These are the names of the predefined faces:
|
|
3790
|
|
3791 `default'
|
|
3792 Everything inherits from this.
|
|
3793
|
|
3794 `bold'
|
|
3795 If this is not specified in the resource database, Emacs tries to
|
|
3796 find a bold version of the font of the default face.
|
|
3797
|
|
3798 `italic'
|
|
3799 If this is not specified in the resource database, Emacs tries to
|
|
3800 find an italic version of the font of the default face.
|
|
3801
|
|
3802 `bold-italic'
|
|
3803 If this is not specified in the resource database, Emacs tries to
|
|
3804 find a bold-italic version of the font of the default face.
|
|
3805
|
|
3806 `modeline'
|
|
3807 This is the face that the modeline is displayed in. If not
|
|
3808 specified in the resource database, it is determined from the
|
|
3809 default face by reversing the foreground and background colors.
|
|
3810
|
|
3811 `highlight'
|
|
3812 This is the face that highlighted extents (for example, Info
|
|
3813 cross-references and possible completions, when the mouse passes
|
|
3814 over them) are displayed in.
|
|
3815
|
|
3816 `left-margin'
|
|
3817 `right-margin'
|
|
3818 These are the faces that the left and right annotation margins are
|
|
3819 displayed in.
|
|
3820
|
|
3821 `zmacs-region'
|
|
3822 This is the face that mouse selections are displayed in.
|
|
3823
|
|
3824 `text-cursor'
|
|
3825 This is the face that the cursor is displayed in.
|
|
3826
|
|
3827 `isearch'
|
|
3828 This is the face that the matched text being searched for is
|
|
3829 displayed in.
|
|
3830
|
|
3831 `info-node'
|
|
3832 This is the face of info menu items. If unspecified, it is copied
|
|
3833 from `bold-italic'.
|
|
3834
|
|
3835 `info-xref'
|
|
3836 This is the face of info cross-references. If unspecified, it is
|
|
3837 copied from `bold'. (Note that, when the mouse passes over a
|
|
3838 cross-reference, the cross-reference's face is determined from a
|
|
3839 combination of the `info-xref' and `highlight' faces.)
|
|
3840
|
|
3841 Other packages might define their own faces; to see a list of all
|
|
3842 faces, use any of the interactive face-manipulation commands such as
|
|
3843 `set-face-font' and type `?' when you are prompted for the name of a
|
|
3844 face.
|
|
3845
|
|
3846 If the `bold', `italic', and `bold-italic' faces are not specified
|
|
3847 in the resource database, then XEmacs attempts to derive them from the
|
|
3848 font of the default face. It can only succeed at this if you have
|
|
3849 specified the default font using the XLFD (X Logical Font Description)
|
|
3850 format, which looks like
|
|
3851
|
|
3852 *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
|
|
3853
|
|
3854 If you use any of the other, less strict font name formats, some of
|
|
3855 which look like
|
|
3856
|
|
3857 lucidasanstypewriter-12
|
|
3858 fixed
|
|
3859 9x13
|
|
3860
|
|
3861 then XEmacs won't be able to guess the names of the bold and italic
|
|
3862 versions. All X fonts can be referred to via XLFD-style names, so you
|
|
3863 should use those forms. See the man pages for `X(1)', `xlsfonts(1)',
|
|
3864 and `xfontsel(1)'.
|
|
3865
|
|
3866
|
|
3867 **** Widgets
|
|
3868 ------------
|
|
3869
|
|
3870 There are several structural widgets between the terminal EmacsFrame
|
|
3871 widget and the top level ApplicationShell; the exact names and types of
|
|
3872 these widgets change from release to release (for example, they changed
|
|
3873 in 19.9, 19.10, 19.12, and 19.13) and are subject to further change in
|
|
3874 the future, so you should avoid mentioning them in your resource database.
|
|
3875 The above-mentioned syntaxes should be forward-compatible. As of 19.14,
|
|
3876 the exact widget hierarchy is as follows:
|
|
3877
|
|
3878 INVOCATION-NAME "shell" "container" FRAME-NAME
|
|
3879 x-emacs-application-class "TopLevelEmacsShell" "EmacsManager" "EmacsFrame"
|
|
3880
|
|
3881 (for normal frames)
|
|
3882
|
|
3883 or
|
|
3884
|
|
3885 INVOCATION-NAME "shell" "container" FRAME-NAME
|
|
3886 x-emacs-application-class "TransientEmacsShell" "EmacsManager" "EmacsFrame"
|
|
3887
|
|
3888 (for popup/dialog-box frames)
|
|
3889
|
|
3890 where INVOCATION-NAME is the terminal component of the name of the
|
|
3891 XEmacs executable (usually `xemacs'), and `x-emacs-application-class'
|
|
3892 is generally `Emacs'.
|
|
3893
|
|
3894
|
|
3895 **** Menubar Resources
|
|
3896 ----------------------
|
|
3897
|
|
3898 As the menubar is implemented as a widget which is not a part of
|
|
3899 XEmacs proper, it does not use the face mechanism for specifying fonts
|
|
3900 and colors: It uses whatever resources are appropriate to the type of
|
|
3901 widget which is used to implement it.
|
|
3902
|
|
3903 If Emacs was compiled to use only the Motif-lookalike menu widgets,
|
|
3904 then one way to specify the font of the menubar would be
|
|
3905
|
|
3906 Emacs*menubar*font: *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
|
|
3907
|
|
3908 If the Motif library is being used, then one would have to use
|
|
3909
|
|
3910 Emacs*menubar*fontList: *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
|
|
3911
|
|
3912 because the Motif library uses the `fontList' resource name instead
|
|
3913 of `font', which has subtly different semantics.
|
|
3914
|
|
3915 The same is true of the scrollbars: They accept whichever resources
|
|
3916 are appropriate for the toolkit in use.
|
|
3917
|
|
3918
|
|
3919 *** Source Code Highlighting
|
|
3920 ----------------------------
|
|
3921
|
|
3922 It's possible to have your buffers "decorated" with fonts or colors
|
|
3923 indicating syntactic structures (such as strings, comments, function names,
|
|
3924 "reserved words", etc.). In XEmacs, the preferred way to do this is with
|
|
3925 font-lock-mode; activate it by adding the following code to your .emacs file:
|
|
3926
|
|
3927 (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock)
|
|
3928 (add-hook 'c-mode-hook 'turn-on-font-lock)
|
|
3929 (add-hook 'c++-mode-hook 'turn-on-font-lock)
|
|
3930 (add-hook 'dired-mode-hook 'turn-on-font-lock)
|
|
3931 ...etc...
|
|
3932
|
|
3933 To customize it, see the descriptions of the function `font-lock-mode' and
|
|
3934 the variables `font-lock-keywords', `c-font-lock-keywords', etc.
|
|
3935
|
|
3936 There exist several other source code highlighting packages, but font-lock
|
|
3937 does one thing that most others don't do: highlights as you type new text;
|
|
3938 and one thing that no others do: bases part of its decoration on the
|
|
3939 syntax table of the major mode. Font-lock has C-level support to do this
|
|
3940 efficiently, so it should also be significantly faster than the others.
|
|
3941
|
|
3942 If there's something that another highlighting package does that you can't
|
|
3943 make font-lock do, let us know. We would prefer to consolidate all of the
|
|
3944 desired functionality into one package rather than ship several different
|
|
3945 packages which do essentially the same thing in different ways.
|
|
3946
|
|
3947
|
|
3948 ** Differences Between XEmacs and Emacs 18
|
|
3949 ==========================================
|
|
3950
|
|
3951 Auto-configure support has been added, so it should be fairly easy to compile
|
|
3952 XEmacs on different systems. If you have any problems or feedback about
|
|
3953 compiling on your system, please let us know.
|
|
3954
|
|
3955 We have reimplemented the basic input model in a more general way; instead of
|
|
3956 X input being a special-case of the normal ASCII input stream, XEmacs has a
|
|
3957 concept of "input events", and ASCII characters are a subset of that. The
|
|
3958 events that XEmacs knows about are not X events, but are a generalization of
|
|
3959 them, so that XEmacs can eventually be ported to different window systems.
|
|
3960
|
|
3961 We have reimplemented keymaps so that sequences of events can be stored into
|
|
3962 them instead of just ASCII codes; it is possible to, for example, bind
|
|
3963 different commands to each of the chords Control-h, Control-H, Backspace,
|
|
3964 Control-Backspace, and Super-Shift-Backspace. Key bindings, function key
|
|
3965 bindings, and mouse bindings live in the same keymaps.
|
|
3966
|
|
3967 Input and display of all ISO-8859-1 characters is supported.
|
|
3968
|
|
3969 You can have multiple X windows ("frames" in XEmacs terminology).
|
|
3970
|
|
3971 XEmacs has objects called "extents" and "faces", which are roughly
|
|
3972 analogous to Epoch's "buttons," "zones," and "styles." An extent is a
|
|
3973 region of text (a start position and an end position) and a face is a
|
|
3974 collection of textual attributes like fonts and colors. Every extent
|
|
3975 is displayed in some "face", so changing the properties of a face
|
|
3976 immediately updates the display of all associated extents. Faces can
|
|
3977 be frame-local: you can have a region of text which displays with
|
|
3978 completely different attributes when its buffer is viewed from a
|
|
3979 different X window.
|
|
3980
|
|
3981 The display attributes of faces may be specified either in lisp or through
|
|
3982 the X resource manager.
|
|
3983
|
|
3984 Pixmaps of arbitrary size can be embedded in a buffer.
|
|
3985
|
|
3986 Variable width fonts work.
|
|
3987
|
|
3988 The height of a line is the height of the tallest font on that line, instead
|
|
3989 of all lines having the same height.
|
|
3990
|
|
3991 XEmacs uses the MIT "Xt" toolkit instead of raw Xlib calls, which
|
|
3992 makes it be a more well-behaved X citizen (and also improves
|
|
3993 portability). A result of this is that it is possible to include
|
|
3994 other Xt "Widgets" in the XEmacs window. Also, XEmacs understands the
|
|
3995 standard Xt command-line arguments.
|
|
3996
|
|
3997 XEmacs understands the X11 "Selection" mechanism; it's possible to define
|
|
3998 and customize selection converter functions and new selection types from
|
|
3999 Emacs Lisp, without having to recompile XEmacs.
|
|
4000
|
|
4001 XEmacs provides support for ToolTalk on systems that have it.
|
|
4002
|
|
4003 XEmacs supports the Zmacs/Lispm style of region highlighting, where the
|
|
4004 region between the point and mark is highlighted when in its "active" state.
|
|
4005
|
|
4006 XEmacs has a menubar, whose contents are customizable from emacs-lisp.
|
|
4007 This menubar looks Motif-ish, but does not require Motif. If you already
|
|
4008 own Motif, however, you can configure XEmacs to use a *real* Motif menubar
|
|
4009 instead.
|
|
4010
|
|
4011 XEmacs can ask questions using popup dialog boxes. Any command executed from
|
|
4012 a menu will ask yes/no questions with dialog boxes, while commands executed
|
|
4013 via the keyboard will use the minibuffer.
|
|
4014
|
|
4015 XEmacs has vertical and horizontal scrollbars.
|
|
4016
|
|
4017 The initial load-path is computed at run-time, instead of at compile-time.
|
|
4018 This means that if you move the XEmacs executable and associated directories
|
|
4019 to somewhere else, you don't have to recompile anything.
|
|
4020
|
|
4021 You can specify what the title of the XEmacs windows and icons should be
|
|
4022 with the variables `frame-title-format' and `frame-icon-title-format',
|
|
4023 which have the same syntax as `mode-line-format'.
|
|
4024
|
|
4025 XEmacs now supports floating-point numbers.
|
|
4026
|
|
4027 XEmacs now knows about timers directly, instead of them being simulated by
|
|
4028 a subprocess.
|
|
4029
|
|
4030 XEmacs understands truenames, and can be configured to notice when you are
|
|
4031 visiting two names of the same file. See the variables find-file-use-truenames
|
|
4032 and find-file-compare-truenames.
|
|
4033
|
|
4034 If you're running on a machine with audio hardware, you can specify sound
|
|
4035 files for XEmacs to play instead of the default X beep. See the documentation
|
|
4036 of the function load-sound-file and the variable sound-alist.
|
|
4037
|
|
4038 An XEmacs frame can be placed within an "external client widget" managed by
|
|
4039 another application. This allows an application to use an XEmacs frame as its
|
|
4040 text pane rather than the standard Text widget that is provided with Motif or
|
|
4041 Athena. XEmacs supports Motif applications, generic Xt (e.g. Athena)
|
|
4042 applications, and raw Xlib applications.
|
|
4043
|
|
4044 Random changes to the emacs-lisp library: (some of this was not written by
|
|
4045 us, but is included because it's free software and we think it's good stuff)
|
|
4046
|
|
4047 - there is a new optimizing byte-compiler
|
|
4048 - there is a new abbrev-based mail-alias mechanism
|
|
4049 - the -*- line can contain local-variable settings
|
|
4050 - there is a new TAGS package
|
|
4051 - there is a new VI-emulation mode (viper)
|
|
4052 - there is a new implementation of Dired
|
|
4053 - there is a new implementation of Isearch
|
|
4054 - the VM package for reading mail is provided
|
|
4055 - the W3 package for browsing the World Wide Web hypertext information
|
|
4056 system is provided
|
|
4057 - the Hyperbole package, a programmable information management and
|
|
4058 hypertext system
|
|
4059 - the OO-Browser package, a multi-language object-oriented browser
|
|
4060
|
|
4061 There are many more specifics in the "Miscellaneous Changes" section, below.
|
|
4062
|
|
4063 The online Emacs Manual and Emacs-Lisp Manual are now both relatively
|
|
4064 up-to-date.
|