268e0484af4de78b1ea43f339726b22d7816c3f0
[chise/xemacs-chise.git.1] / etc / NEWS
1 -*- mode:outline -*-
2 \f
3 * Introduction
4 ==============
5
6 This file presents some general information about XEmacs.  It is
7 primarily about the changes in recent XEmacs versions and its release
8 history.
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.
14
15 Users who would like to know which capabilities have been introduced
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
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
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.
31
32 \f
33 * Changes in XEmacs 21.2
34 ========================
35
36 ** The modeline's text is now scrollable. Please refer to the variable
37 `modeline-scrolling-method' for more information.
38
39 ** The delete key now deletes forward by default.
40
41 This is regulated by the variable `delete-key-deletes-forward', which
42 now defaults to t.  `delete-key-deletes-forward' takes effect only on
43 the systems that offer both a backspace and a delete key.  If set to
44 nil, the key labeled "Delete" will always delete backward.  If set to
45 non-nil, the "Delete" key will delete forward, except on keyboards
46 where a "Backspace" key is not provided (e.g. old DEC keyboards.)
47
48 Unless our implementation has bugs, the only reason why you would want
49 to set `delete-key-deletes-forward' to nil is if you want to use the
50 Delete key to delete backwards, despite the presence (according to
51 Xlib) of a BackSpace key on the keyboard.
52
53 ** Shifted motion keys now select text by default.  You can turn this
54 off by setting `shifted-motion-keys-select-region' to nil.
55
56 ** You can now set the variable `kill-whole-line' to `always', which
57 makes `kill-line' (C-k) delete the entire line always, not just when
58 the cursor is at the beginning of the line.  This behavior, as well as
59 the existing kill-whole-line behavior, now only take effect when
60 kill-line is called interactively, although this is a departure from a
61 previous behavior in the case of setting this variable kill-whole-line
62 to t.  It is almost certainly what has always been intended, and most
63 likely the old way of doing things introduced bugs.
64
65 The new function `historical-kill-line' ignores the `kill-whole-line'
66 setting and always gives the historical behavior of only killing to
67 the end of the line.  This function is bound to Sh-C-k, so that the
68 kill to end of line behavior is available, even when `kill-whole-line'
69 has been customized.
70
71 ** XEmacs menus now have accelerators by default.  If a menu item does
72 not have an accelerator specified, one is created dynamically, using
73 numbers 1-9 and letters.
74
75 ** Interactive searching and matching case improvements.
76
77 Case sensitiveness in searching operations is normally controlled by
78 the variable `case-fold-search' (if non-nil, case is ignored while
79 searching).  This mechanism has now been slightly improved for
80 interactive searches: if the search string (or regexp) contains
81 uppercase characters, the searching is forced to be case-sensitive,
82 `case-fold-search'.
83
84 The new behavior affects all functions performing interactive
85 searches, like `zap-to-char', `list-matching-lines', `tags-search'
86 etc.  The incremental search facility has always behaved that way.
87
88 ** Incremental search will now highlight all visible matches, making
89 it easier to anticipate where consecutive C-s or C-r will place the
90 point.  If you want to disable the feature, set
91 `isearch-highlight-all-matches' to nil.
92
93 ** You can now use the buffer tabs to switch between buffers.  The
94 tabs are located between the toolbar and the uppermost window, in a
95 location called "gutter".  If you dislike the buffer tabs, you can
96 disable them by customizing `gutter-buffers-tab-visible-p', or by
97 placing this in your .emacs:
98
99    (set-gutter-element-visible-p default-gutter-visible-p 'buffers-tab nil)
100
101 You can change the location of the gutter with
102 `set-default-gutter-position', however currently only MS-Windows
103 supports tab widgets with orientations other than vertical.
104
105 ** Kill and yank now interact with the clipboard by default under
106 Windows.  This was done by changing the default value of
107 `interprogram-cut-function' and `interprogram-paste-function'.  You
108 can get the old behavior by setting these to nil, and there is an
109 option on the options menu to do this.
110
111 ** When you press RET at a minibuffer prompt that provides a default
112 value, the value is stored in history instead of an empty line.  Also,
113 you can now edit the default value by pressing the down arrow,
114 accessing the logical "future" value.  Not all minibuffer prompts have
115 yet been converted to support this feature.
116
117 ** The rectangle functions have been almost completely rewritten in
118 order to avoid inserting undesirable spaces, notably at the end of
119 lines.  Two typical examples of the old behavior were
120 `string-rectangle', which filled all lines up to the right side of the
121 rectangle, and `clear-rectangle', which filled even empty lines up to
122 the left side.  All functions have been rewritten to avoid inserting
123 unwanted spaces, and an optional prefix now allows them to behave the
124 old way.
125
126 Also, the behavior of `string-rectangle' is now compliant with
127 `pending-delete-mode': if this mode is active, then the string
128 replaces the region rectangle.  Otherwise, the command does not delete
129 or overwrite any existing text.  For those who want that feature but do
130 not use pending-delete-mode, a new function, `replace-rectangle', is
131 available.
132
133 As a side effect, the FORCE argument to `move-to-column' now
134 understands the special value `coerce', which means that the line
135 should not be filled if it is too short to reach the desired column.
136
137 ** Customize now supports adding comments about your face and variable
138 settings using a new menu entry.  Comments for variables can also be
139 assigned by calling `customize-set-(value|variable)' with a prefix
140 argument.
141
142 ** XEmacs now locates the early package hierarchies at
143 ~/.xemacs/mule-packages/ and ~/.xemacs/xemacs-packages/.  Previously,
144 the early packages were located in ~/.xemacs/.
145
146 ** You can now create "indirect buffers", like in GNU Emacs.  An
147 indirect buffer shares its text with another buffer ("base buffer"),
148 but has its own major mode, local variables, extents, and narrowing.
149 An indirect buffer has a name of its own, distinct from those of the
150 base buffer and all other buffers.  An indirect buffer cannot itself
151 be visiting a file (though its base buffer can be).  The base buffer
152 cannot itself be indirect.
153
154 Use (make-indirect-buffer BASE-BUFFER NAME) to make an indirect buffer
155 named NAME whose base is BASE-BUFFER.  If BASE-BUFFER is itself an
156 indirect buffer, its base buffer is used as the base for the new
157 buffer.
158
159 You can make an indirect buffer current, or switch to it in a window,
160 just as you would a non-indirect buffer.
161
162 The function `buffer-base-buffer' returns a buffer's base buffer or
163 nil, if given an ordinary (non-indirect) buffer.  The function
164 `buffer-indirect-children' returns a list of the indirect children of
165 a base buffer.
166
167 ** User names following the tilde character can now be completed at
168 file name prompts; e.g. `C-x C-f ~hni<TAB>' will complete to
169 `~hniksic/'.  To make this operation faster, a cache of user names is
170 maintained internally.
171
172 The new primitives available for this purpose are functions named
173 `user-name-completion' and `user-name-all-completions'.
174
175 ** XEmacs can now play sound using Enlightenment Sound Daemon (ESD).
176 It will try NAS first, then ESD, then playing native sound directly.
177
178 ** X-Face support is now available under MS-Windows.
179 If an X-Face libary built under MS-Windows is available then XEmacs
180 will use this at build time.
181
182 ** The font-menu is now available under MS-Windows.
183
184 ** MS-Windows support for selection is now much more robust.
185
186 Generally selection should now do what you would expect under
187 MS-Windows: the middle mouse button will paste your current selection
188 or the clipboard; conversions from different types of selection to the
189 clipboard can be made; the kill-ring and friends will be updated as
190 per X.
191
192 The only thing selection doesn't do is set the clipboard automatically
193 as this would break the MS-Windows model.  If you want this behavior
194 then set `selection-sets-clipboard' to t.
195
196 ** Mail spool locking now works correctly.
197 XEmacs has always come with a little auxiliary program, movemail,
198 which moves mail out of the system's spool area into user storage.  To
199 coordinate between XEmacs, the mail delivery agent, and other mail
200 user agents, movemail needs to properly lock the spool file before
201 moving it.  Movemail now correctly respects the --mail-locking option
202 to configure.  Moreover, movemail's locking behavior can be specified
203 at run-time, via a new command-line option -m to movemail, or through
204 the environment variable EMACSLOCKMETHOD.
205
206 When installing XEmacs, make sure you configure it according to your
207 environment's mail spool locking conventions.  When you're using a
208 binary kit, set the `mail-lock-method' variable at startup, or the
209 EMACSLOCKMETHOD environment variable.
210
211 ** Init file will move to ~/.xemacs/init.el.
212
213 If `~/.xemacs/init.el' exists, XEmacs will prefer it over `~/.emacs'
214 as an init file.  The file may be byte-compiled as
215 `~/.xemacs/init.elc'.
216
217 Future versions of XEmacs will stop supporting `~/.emacs' as an init
218 file.  XEmacs offers automatic migration upon startup.
219
220 ** Custom file will move to ~/.xemacs/custom.el.
221
222 Whereas customize settings were formerly stored in the regular init
223 file, XEmacs now prefers them to be in a separate file
224 `~/.xemacs/custom.el', completely under automatic control.  This
225 change goes with the migration of the init file, and XEmacs offers
226 automatic migration upon startup.
227
228 ** Init file may be called .emacs.el.
229
230 For the time being, like in GNU Emacs 20.4 and on, you can now name
231 the XEmacs init file `.emacs.el'.  Formerly the name had to be
232 `.emacs'.  If you use the name `.emacs.el', you can byte-compile the
233 file in the usual way.
234
235 If both `.emacs' and `.emacs.el' exist, the latter file is the one
236 that is used.
237
238 ** New command-line switches -user-init-file and -user-init-directory.
239 These can be used to specify alternate locations for what is normally
240 ~/.emacs and ~/.xemacs.
241
242 Moreover, -user <user> (which used to only work in unpredictable ways)
243 is now equivalent to -user-init-file ~<user>/.xemacs/init.el
244 -user-init-directory ~<user>/.xemacs.  or -user-init-file
245 ~<user>/.emacs -user-init-directory ~<user>/.xemacs, whichever init
246 file comes first.
247
248 ** New variable `mswindows-alt-by-itself-activates-menu'.
249 If you set this variable to nil then pressing and releasing the Alt
250 key under MS-Windows will no longer activate the menubar.  The default
251 is t.  This is not to be confused with `menu-accelerator-enabled',
252 which enables the use of Alt+<Letter> accelerators to invoke the
253 menus.
254
255 ** Pixel-based scrolling has been implemented.
256 By default this will attempt to scroll in increments equal to the
257 height of the default face.  Set `window-pixel-scroll-increment' to
258 modify this behavior.
259
260 ** Operation progress can be displayed using graphical widgets.
261 See `progress-feedback' for details.  This support has been switched
262 on by default for font-lock and some web browsing functions.  If you
263 do not like this behavior set `progress-feedback-use-echo-area'.
264
265 ** The PostgreSQL Relational Database Management System is now supported.
266 It is now possible to build XEmacs so that the programming interface
267 to the PostgreSQL RDBMS (libpq) is available in XEmacs Lisp.
268 Supported versions of PostgreSQL are 6.5.3 (earlier versions may work,
269 but have not been tested) and 7.0-beta1.
270
271 ** Etags changes.
272
273 *** In DOS, etags looks for file.cgz if it cannot find file.c.
274
275 *** New option --ignore-case-regex is an alternative to --regex.  It is now
276 possible to bind a regexp to a language, by prepending the regexp with
277 {lang}, where lang is one of the languages that `etags --help' prints
278 out.  This feature is useful especially for regex files, where each
279 line contains a regular expression.  The manual contains details.
280
281 *** In C and derived languages, etags creates tags for function
282 declarations when given the --declarations option.
283
284 *** In C++, tags are created for "operator".  The tags have the form
285 "operator+", without spaces between the keyword and the operator.
286
287 *** New language Ada: tags are functions, procedures, packages, tasks, and
288 types.
289
290 *** In Fortran, procedure is no more tagged.
291
292 *** In Java, tags are created for "interface".
293
294 *** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
295 are now tagged.
296
297 *** In Perl, the --globals option tags global variables.  my and local
298 variables are tagged.
299
300 *** New language Python: def and class at the beginning of a line are tags.
301
302 *** .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
303 for PSWrap.
304
305 \f
306 * Lisp and internal changes in XEmacs 21.2
307 ==========================================
308
309 ** A new portable dumper is available for beta testing.
310
311 Olivier Galibert has written a portable dumper for XEmacs, based on
312 initial work by Kyle Jones.  Normally, XEmacs C sources link into an
313 executable called `temacs', which loads the Lisp code and "unexecs"
314 into a proper `xemacs' executable.  The unexec() process is hard to
315 implement correctly and makes XEmacs very hard to port to new
316 operating systems, or even to new releases of old systems.
317
318 A portable dumper is a different approach to dumping: instead of
319 dumping full-fledged executable, it only dumps out the initialized
320 data structures (both Lisp and C) into an external file.  A normally
321 running XEmacs only needs to mmap() that file and relocate a bit to
322 get to the initialized data.  In that scheme, there is no difference
323 between `temacs' and `xemacs'.
324
325 This is all very experimental, though.  Configure with `--pdump' to
326 try testing it.
327
328 ** Much effort has been invested to make XEmacs Lisp faster:
329
330 *** Many basic lisp operations are now faster.
331 This is especially the case when running a Mule-enabled XEmacs.
332
333 A general overhaul of the lisp engine should produce a speedup of 1.4
334 in a Latin-1 XEmacs, and 2.1 in a Mule XEmacs.  These numbers were
335 obtained running `(byte-compile "simple.el")', which should be a
336 pretty typical test of "pure" Lisp.
337
338 *** Lisp hash tables have been re-implemented.  The Common Lisp style
339 hash table interface has been made standard, and moved from cl.el into
340 fast C code (See the section on hash tables in the XEmacs Lisp
341 Reference).  A speedup factor of 3 can be expected with code that
342 makes intensive use of hash tables.
343
344 *** The garbage collector has been tuned, leading to a speedup of
345 1.16.
346
347 *** The family of functions that iterate over lists, like `memq', and
348 `rassq', have been made a little faster (typically 1.3).
349
350 *** Lisp function calls are faster, by approximately a factor of two.
351 However, defining inline functions (via defsubst) still makes sense
352 for tight loops.
353
354 *** Finally, a few functions have had dramatic performance
355 improvements.  For example, `(last long-list)' is now 30 times faster.
356
357 Of course, your mileage will vary.
358
359 Many operations do not see any improvement.  Surprisingly, running
360 (font-lock-fontify-buffer) does not use the Lisp engine much at all.
361 Speeding up your favorite slow operation is an excellent project to
362 improve XEmacs.  Don't forget to profile!
363
364 ** Native widgets can be displayed in buffers.
365
366 The glyph system has been extended to allow the display of glyphs that
367 are implemented as native window-system widgets.  Thus you can embed
368 buttons, scrollbars, combo boxes, edit fields and progress gauges in a
369 buffer.  As a side effect subwindow support now works once again.
370
371 All of this is still fairly experimental and there is no
372 documentation.  The current APIs might change in a future version of
373 XEmacs.  Some widgets are only available under MS-Windows.  See the
374 file glyphs-test.el in the XEmacs src distribution for examples of
375 usage.
376
377 The buffers-tab functionality and progress gauge have been implemented
378 using this feature.
379
380 ** `user-init-file' and `user-init-directory' are now absolute
381 file/directory names.  Previously, both variables used to be relative
382 to (concat "~" init-file-user).  This turned out to be too complicated
383 for most packages (and some core Lisp files) to use correctly.  Also,
384 the `init-file-user' variable has been obsoleted in the process.
385
386 The user-visible options like `-u' have not changed their behavior.
387
388 ** XEmacs finally has an automated test suite!
389 Although this is not yet very sophisticated, it is already responsible
390 for several important bug fixes in XEmacs.  To try it out, simply use
391 the makefile target `make check' after building XEmacs.
392
393 ** Hash tables have been reimplemented.
394 As was pointed out above, the standard interface to hash tables is now
395 the Common Lisp interface, as described in Common Lisp, the Language
396 (CLtL2, by Steele).  The older interface (functions with names
397 containing the phrase `hashtable') will continue to work, but the
398 preferred interface now has names containing the phrase `hash-table'.
399
400 Here's the executive overview: create hash tables using
401 make-hash-table, and use gethash, puthash, remhash, maphash and
402 clrhash to manipulate entries in the hash table.  See the (updated)
403 Lisp Reference Manual for details.
404
405 ** Lisp code handles circular lists much more robustly.
406 Many basic lisp functions used to loop forever when given a circular
407 list, expecting you to C-g (quit) out of the loop.  Now this is more
408 likely to trigger a `circular-list' error.  Printing a circular list
409 now results in something like this:
410
411     (let ((x (cons 'foo 'foo)))
412       (setcdr x x)
413       x)
414       => (foo ... <circular list>)
415
416 An extra bonus is that checking for circularities is not just
417 friendlier, but actually faster than checking for C-g.
418
419 ** Functions for decoding base64 encoding are now available; see
420 `base64-encode-region', `base64-encode-string', `base64-decode-region'
421 and `base64-decode-string'.
422
423 ** The functions `read-string', `read-expression', `eval-minibuffer',
424 `read-variable', `read-command', `read-function', `read-number',
425 `read-shell-command', `read-from-minibuffer', and `completing-read'
426 now take an additional argument which specifies the default value.  If
427 this argument is non-nil, it should be a string; that string is used
428 in two ways:
429
430   It is returned if the user enters empty input.
431   It is available through the history command M-n.
432
433 ** LDAP changes.
434
435 *** The LDAP interface now consists of two layers, a low-level layer
436 that closely matches the LDAP C API, and a more convenient
437 higher-level set of functions.
438
439 *** The low-level functions that used to be named *-internal are now
440 named more simply: `ldap-open', `ldap-close', `ldap-search-basic',
441 `ldap-add', and `ldap-modify'.  They should be used directly for very
442 specific purposes (such as multiple operations on a connection) only.
443
444 *** The higher-level functions provide a more convenient way to access
445 LDAP directories hiding the subtleties of handling the connection,
446 translating arguments and ensuring compliance with LDAP
447 internationalization rules and formats (currently partly implemented
448 only.)  This layer provides atomic operations for searches,
449 modification, addition and deletion of multiple entries at once:
450 `ldap-search-entries', `ldap-add-entries', `ldap-delete-entries', and
451 `ldap-modify-entries'.
452
453 *** To maintain compatibility with previous code, the now obsolete
454 function `ldap-search' is now merely a wrapper that calls either
455 `ldap-search-basic' or `ldap-search-entries'.  Please don't use the
456 `ldap-search' function in your new programs -- a direct call to one of
457 the two replacements is more efficient and unambiguous.
458
459 ** The arguments to `locate-file' are now more Lisp-like.  As before,
460 the usage is:
461
462     (locate-file FILENAME PATH-LIST &optional SUFFIXES MODE)
463
464 Except that SUFFIXES are now a list of strings instead of a single,
465 colon-separated string.  MODE is now a symbol or a list of symbols
466 (symbols `exists', `executable', `writable', and `readable' are
467 supported) instead of an integer code.  See the documentation for
468 details.  Of course, the old form is still accepted for backward
469 compatibility.
470
471 Several bugs in locate-file have been fixed, most notably its failure
472 to call expand-file-name on elements of PATH-LIST.  Because of that
473 elements of load-path of the form "~/..." used to not work.
474 locate-file is now guaranteed to expand files during its course of
475 operation.
476
477 ** `translate-region' has been improved in several ways.  Its TABLE
478 argument used to be a 256-character string.  In addition to this, it
479 can now also be a vector or a char-table, which makes the function
480 useful for Mule, which it wasn't.  If TABLE a vector or a generic
481 char-table, you can map characters to strings instead of to other
482 characters.  For instance:
483
484     (let ((table (make-char-table 'generic)))
485       (put-char-table ?a "the letter a" table)
486       (put-char-table ?b "" table)
487       (put-char-table ?c ?\n table)
488       (translate-region (point-min) (point-max) table))
489
490 ** The new form `ignore-file-errors', similar to `ignore-errors' may
491 be used as a short-hand for condition-case when you wish to ignore
492 file-related error.  For example:
493
494     (ignore-file-errors (delete-file "foo"))
495
496 ** The first argument to `intern-soft' may now also be a symbol, like
497 with `unintern'.  If given a symbol, `intern-soft' will look for that
498 exact symbol rather than for any string.  This is useful when you want
499 to check whether a specific symbol is interned in an obarray, e.g.:
500
501     (intern "foo")
502     (intern-soft "foo")
503       => foo
504     (intern-soft (make-symbol "foo"))
505       => nil
506
507 ** The `keywordp' function now returns non-nil only on symbols
508 interned in the global obarray.  For example:
509
510     (keywordp (intern ":foo" [0]))
511       => nil
512     (keywordp (intern ":foo"))       ; The same as (keywordp :foo)
513       => t
514
515 This behavior is compatible with other code which treats symbols
516 beginning with colon as keywords only if they are interned in the
517 global obarray.  `keywordp' used to wrongly return t in both cases
518 above.
519
520 ** New variables `this-command-properties' and
521 `last-command-properties' are now available for communication between
522 consecutive commands.  Commands should use these to communicate with
523 the pre/post-command hooks, subsequent commands, wrapping commands,
524 etc. in preference to looking at and/or setting `this-command'.
525
526 ** New functions `add-one-shot-hook' and `add-local-one-shot-hook' make
527 it possible to add a "one-shot" hook, which is to say a hook that runs
528 only once, and automatically removes itself after the first time it
529 has run.
530
531 ** The descriptor that specifies the text of a menu item can now be an
532 evaluated expression.  This makes this descriptor parallel with
533 others, which can also be expressions.
534
535 \f
536 * Changes in XEmacs 21.0
537 ========================
538
539 ** XEmacs has been unbundled into constituent installable packages.
540 See the Info documentation under "Packages" for more information.
541 See the file `etc/PACKAGES' in the distribution for a partial list of
542 packages available at the time of the 21.0 release.
543
544 ** XEmacs is now supported under Microsoft Windows 95/98 and Windows
545 NT operating systems.  For starters, look at the XEmacs on Windows FAQ
546 at <URL:http://jagor.srce.hr/~hniksic/xemacs-on-windows-faq.txt>.  To
547 discuss Windows-specific issues, subscribe to the mailing list at
548 <xemacs-nt-request@xemacs.org>.
549
550 ** XEmacs will now use `XEmacs' as its application class if it finds
551 any `XEmacs' resources in the resource database.  Otherwise, it will
552 continue to use the `Emacs' class.
553
554 ** The options menu has been ported to Custom.
555 This means that each entry in the options menu acts as if you had customized
556 the corresponding variable by hand.  ### WARNING: there is currently no
557 upgrading function to help you port your old options settings to the new
558 format. Consequently, if you want to modify the options for XEmacs 21, you
559 will have to set them all again through the menu, and remove the code loading
560 .xemacs-options from your .emacs.
561
562 ** When the Zmacs region is active, `M-x query-replace' and the other
563 replace commands now operate on the region contents only.
564
565 ** XEmacs now is able to choose X visuals and use private colormaps.
566 The '-visual <visualStr>' command line option or the '.EmacsVisual'
567 Xresource controls which visual XEmacs will use, and
568 '-privateColormap' or '.privateColormap' will force XEmacs to create a
569 private colormap for use.  The syntax for the visual string is
570 "<visual><bitdepth>" where <visual> is one of 'StaticColor',
571 'TrueColor', 'GrayScale', 'PseudoColor' or 'DirectColor' and
572 <bitdepth> is the appropriate number of bits per pixel.  If an invalid
573 or non-supported combination is entered, XEmacs attempts to find a happy
574 medium.  The X creation mechanism will then determine if it needs to
575 create a colormap for use, or the presence of the private flags will
576 force it to create it.
577
578 ** The `imenu' package has been ported to XEmacs and is available as a
579 package.
580
581 ** `echo-keystrokes' can now be a floating-point number, so that you
582 can set it to intervals shorter than one second.
583
584    (setq echo-keystrokes 0.1)
585
586 ** The new command `center-to-window-line' works like `recenter'
587 (bound to `C-l'), only it does not redisplay the whole display area.
588
589 ** The M-. command will now first search through exact tags matches,
590 and then through inexact matches, as one would expect.
591
592 ** The new variable `user-full-name' can be used to customize one's
593 name when using the Emacs mail and news reading facilities.
594
595 Normally, `user-full-name' is a function that returns the full name of
596 a user or UID, as specified by the system -- for instance,
597 (user-full-name "root") returns something like "Super-User".  However,
598 when the function is called without arguments, it will return the
599 value of the `user-full-name' variable.  The `user-full-name' variable
600 is initialized using the environment variable NAME and (failing that)
601 the user's system name.
602
603 The behavior of the `user-full-name' function with an argument
604 specified is unchanged.
605
606 ** The new command `M-x customize-changed-options' lets you customize
607 all the options whose default values have changed in recent Emacs
608 versions.  You specify a previous Emacs version number as argument,
609 and the command creates a customization buffer showing all the
610 customizable options whose default values were changed since that
611 version.
612
613 If you don't specify a particular version number argument, then the
614 customization buffer shows all the customizable options for which
615 Emacs versions of changes are recorded.
616
617 ** The new command `add-log-convert' can be used to convert the
618 old-style (pre-20.3) ChangeLog buffers to new style, for
619 consistency.  A reminder: if you wish to revert to old-style
620 ChangeLogs instead, customize the value of `add-log-time-format'
621 variable.
622
623 ** The new command `zap-up-to-char' is now available.  It is similar
624 to `zap-to-char', except that it does not delete the searched-for
625 character.  It is not bound to a key by default.
626
627 ** You can now store a number into a register with `C-u NUMBER C-x r n'
628 REG, increment it by INC with `C-u INC C-x r + REG' (to increment by
629 one, omit C-u INC), and insert it in the buffer with `C-x r g REG'.
630 This is useful for writing keyboard macros.
631
632 ** The M-: command, when given a prefix argument, will now insert its
633 result to the current buffer.
634
635 ** The `C-h c' command, when given a prefix argument, will now insert
636 the message into the current buffer.
637
638 ** Horizontally split windows may now be dragged using the mouse.
639 Because of this, the dividers between vertical windows are always
640 visible.  To turn it off, set `vertical-divider-always-visible-p' to
641 nil.
642
643 ** XEmacs/Mule (internationalization) changes.
644
645 *** Mule support now works on TTY's.  Use `set-terminal-coding-system'
646 and `set-keyboard-coding-system' to specify the coding system of your
647 display and keyboard.
648
649 *** Egg/SJ3 input method is now officially supported.  Quail and
650 Egg/Skk have been available through the generalized Leim since 20.3.
651
652 *** Localized Japanese menubars are available if XEmacs is built with
653 XFONTSET and either the X11 libraries are built with X_LOCALE defined
654 or the native C libraries support Japanese localization.  This has
655 been available since 20.3, only it hasn't been announced before.
656
657 ** Jamie Zawinski's `gdb-highlight' extension is now distributed with
658 the `debug' package.  gdb-highlight makes most objects printed in a
659 gdb buffer be mouse-sensitive: as text shows up in the buffer, it is
660 parsed, and objects which are recognized have context-sensitive
661 commands attached to them.  To use it, add the following to `.emacs':
662
663   (add-hook 'gdb-mode-hook (lambda () (require 'gdb-highlight)))
664
665 ** The package popper.el is now included in the edit-utils package.
666 It has been greatly enhanced with respect to the one once included
667 with the ilisp package and should work well under XEmacs 21.0.
668
669 ** Gnuserv changes
670
671 *** Like the old 'gnudoit' program. Gnuclient -batch now can read from stdin.
672
673 *** Gnuclient -batch no longer breaks off the output at the first LF.
674
675 ** C mode changes
676
677 *** Multiline macros are now handled, both as they affect indentation,
678 and as recognized syntax.  New syntactic symbol cpp-macro-cont is
679 assigned to second and subsequent lines of a multiline macro
680 definition.
681
682 *** A new style "user" which captures all non-hook-ified
683 (i.e. top-level) .emacs file variable setings and customizations.
684 Style "cc-mode" is an alias for "user" and is deprecated.  "gnu" style
685 is still the default however.
686
687 *** "java" style now conforms to Sun's JDK coding style.
688
689 *** There are new commands c-beginning-of-defun, c-end-of-defun which
690 are alternatives which you could bind to C-M-a and C-M-e if you prefer
691 them.  They do not have key bindings by default.
692
693 *** New and improved implementations of M-a (c-beginning-of-statement)
694 and M-e (c-end-of-statement).
695
696 *** C++ namespace blocks are supported, with new syntactic symbols
697 namespace-open, namespace-close, and innamespace.
698
699 *** File local variable settings of c-file-style and c-file-offsets
700 makes the style variables local to that buffer only.
701
702 *** New indentation functions c-lineup-close-paren,
703 c-indent-one-line-block, c-lineup-dont-change.
704
705 *** Improvements (hopefully!) to the way CC Mode is loaded.  You
706 should now be able to do a (require 'cc-mode) to get the entire
707 package loaded properly for customization in your .emacs file.  A new
708 variable c-initialize-on-load controls this and is t by default.
709
710 ** In Text mode, now only blank lines separate paragraphs.
711 This makes it possible to get the full benefit of Adaptive Fill mode
712 in Text mode, and other modes derived from it (such as Mail mode).
713 TAB in Text mode now runs the command indent-relative; this makes a
714 practical difference only when you use indented paragraphs.
715
716 As a result, the old Indented Text mode is now identical to Text mode,
717 and is an alias for it.
718
719 If you want spaces at the beginning of a line to start a paragraph,
720 use the new mode, Paragraph Indent Text mode.
721
722 ** Changes to Gnus, the XEmacs newsreader.
723
724 *** New functionality for using Gnus as an offline newsreader has been
725 added.  A plethora of new commands and modes have been added.  See the
726 Gnus manual for the full story.
727
728 *** The nndraft backend has returned, but works differently than
729 before.  All Message buffers are now also articles in the nndraft
730 group, which is created automatically.
731
732 *** `gnus-alter-header-function' can now be used to alter header
733 values.
734
735 *** `gnus-summary-goto-article' now accept Message-ID's.
736
737 *** A new Message command for deleting text in the body of a message
738 outside the region: `C-c C-v'.
739
740 *** You can now post to component group in nnvirtual groups with
741 `C-u C-c C-c'.
742
743 *** `nntp-rlogin-program' -- new variable to ease customization.
744
745 *** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
746 re-highlighting of the article buffer.
747
748 *** New element in `gnus-boring-article-headers' -- `long-to'.
749
750 *** `M-i' symbolic prefix command.  See the section "Symbolic
751 Prefixes" in the Gnus manual for details.
752
753 *** `L' and `I' in the summary buffer now take the symbolic prefix
754 `a' to add the score rule to the "all.SCORE" file.
755
756 *** `gnus-simplify-subject-functions' variable to allow greater
757 control over simplification.
758
759 *** `A T' -- new command for fetching the current thread.
760
761 *** `/ T' -- new command for including the current thread in the
762 limit.
763
764 *** `M-RET' is a new Message command for breaking cited text.
765
766 *** \\1-expressions are now valid in `nnmail-split-methods'.
767
768 *** The `custom-face-lookup' function has been removed.
769 If you used this function in your initialization files, you must
770 rewrite them to use `face-spec-set' instead.
771
772 *** Cancelling now uses the current select method.  Symbolic prefix
773 `a' forces normal posting method.
774
775 *** New command to translate M******** sm*rtq**t*s into proper text
776 -- `W d'.
777
778 *** For easier debugging of nntp, you can set `nntp-record-commands'
779 to a non-nil value.
780
781 *** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
782 where and how to send AUTHINFO to NNTP servers.
783
784 *** A command for editing group parameters from the summary buffer
785 has been added.
786
787 *** A history of where mails have been split is available.
788
789 *** A new article date command has been added -- `article-date-iso8601'.
790
791 *** Subjects can be simplified when threading by setting
792 `gnus-score-thread-simplify'.
793
794 *** A new function for citing in Message has been added --
795 `message-cite-original-without-signature'.
796
797 *** `article-strip-all-blank-lines' -- new article command.
798
799 *** A new Message command to kill to the end of the article has
800 been added.
801
802 *** A minimum adaptive score can be specified by using the
803 `gnus-adaptive-word-minimum' variable.
804
805 *** The "lapsed date" article header can be kept continually
806 updated by the `gnus-start-date-timer' command.
807
808 *** Web listserv archives can be read with the nnlistserv backend.
809
810 *** Old dejanews archives can now be read by nnweb.
811
812 *** Byte-compilation of user-specs now works under XEmacs.
813
814 ** The `dir' files are no longer essential for functioning of the Info
815 subsystem.  If the `dir' file does not exist in an Info directory, the
816 relevant information will be generated on-the-fly.
817
818 This behavior can be customized, look for `Info-auto-generate-directory'
819 and `Info-save-auto-generated-dir' in the `info' customization group.
820
821 \f
822 * Lisp and internal changes in XEmacs 21.0
823 ==========================================
824
825 ** It is now possible to build XEmacs with support for 31-bit Lisp
826 integers (normally, Lisp integers are only 28 bits wide on 32-bit
827 machines.)  Configure with --use-minimal-tagbits to test.  With this
828 change, the maximum buffer size on 32-bit machines is increased from
829 128M to 1G.  This setting will be made default in a future XEmacs
830 version.
831
832 ** Specifier changes.
833
834 *** When instantiating a specifier, the window locale now has a higher
835 precedence than the buffer locale.  This is because the window locale
836 is more specific than the buffer locale.
837
838 *** The new macro `let-specifier' can be used to temporarily add
839 specifications to specifiers.  See the documentation for details.
840
841 *** The new specifiers `vertical-scrollbar-visible-p' and
842 `horizontal-scrollbar-visible-p' may be used to control scrollbar
843 visibility.  Previously, the only way to remove a scrollbar was to set
844 its size to 0.  This method is still supported for backward
845 compatibility.
846
847 *** The new specifiers `scrollbar-on-left-p' and `scrollbar-on-top-p'
848 may be used to control the position of the vertical and horizontal
849 toolbar.  Previously, their position could be changed only through the
850 use of X resources.
851
852 *** The new draggable vertical dividers between windows may be turned
853 off using the `vertical-divider-always-visible-p' specifier.  When
854 this is set to nil, the vertical dividers between windows are shown
855 only when needed, and they are not draggable.
856
857 Other properties of the vertical dividers may be controlled using
858 `vertical-divider-shadow-thickness', `vertical-divider-line-width' and
859 `vertical-divider-spacing' specifiers, which see.
860
861 ** Frame focus management changes.
862
863 *** When the variable focus-follows-mouse is non-nil, `select-frame'
864 no longer permanently selects a different frame.  The frame selection
865 is temporary and is reverted when the current command terminates, much
866 like the buffer selected by `set-buffer'.  This is the same as in FSF
867 Emacs.
868
869 *** The new function `focus-frame' sets the window system focus to
870 FRAME (and selects it), regardless of the value of
871 `focus-follows-mouse'.  Doing this is not well behaved, so be
872 absolutely sure that you want this.
873
874 The code that uses `select-frame' only to get the window manager focus
875 should be changed to use `set-frame-focus' instead, so that they keep
876 working when `focus-follows-mouse' is non-nil.
877
878 *** The special forms `save-selected-frame' and `with-selected-frame'
879 can now be used to temporarily change selected frame.
880
881 *** The behavior of `other-frame' command (`C-x 5 o') is unaffected by
882 these changes.
883
884 ** The function `select-window' now has an optional second argument
885 NORECORD which if non-nil inhibits the recording of a buffer change.
886
887 ** The function `vertical-motion' now correctly handles the second,
888 optional WINDOW argument.  A new third argument PIXELS, if non-nil,
889 indicates that the returned motion should be in pixels.
890
891 ** The new function `vertical-motion-pixels' is similar to
892 vertical-motion but takes as input a vertical motion in pixels.
893
894 ** The new functions window-text-area-pixel-{width,height,edges} can
895 be used to obtain information about the text-displaying area of a
896 window.
897
898 ** The new functions `shrink-window-pixels' and `enlarge-window-pixels'
899 can be used to adjust the size of a window by a pixel amount.
900
901 ** The new function `window-displayed-text-pixel-height' can be used
902 to determine the height of the text actually displayed in a window.
903
904 ** The arithmetic comparison functions <, >, =, /= now accept a
905 variable number of arguments.
906
907 This means that if you want to test whether A < B < C, you can write
908 it as (< A B C) instead of (and (< A B) (< B C)).  Likewise,
909 (apply #'> LIST) now tests if LIST is monotonously increasing -- and
910 so on.
911
912 ** The XEmacs hashtables now have a consistent read/print syntax.
913 This means that a hashtable will be readably printed in a
914 structure-like form:
915
916    #s(hashtable size 2 data (key1 value1 key2 value2))
917
918 When XEmacs reads this form, it will create a new hashtable according
919 to description.  This allows you to easily dump hashtables to files
920 using `prin1', and read them back in using `read'.
921
922 If `print-readably' is non-nil, a more relaxed syntax is used; for
923 instance:
924
925    #<hashtable size 2/13 data (key1 value1 key2 value2) 0x874d>
926
927 ** It is now possible to build XEmacs with LDAP support.
928 You will need to install a LDAP library first.  The following have
929 been tested:
930   - LDAP 3.3 from the University of Michigan
931     (get it from <URL:http://www.umich.edu/~dirsvcs/ldap/>)
932   - OpenLDAP 1.0.3 from the OpenLDAP Foundation
933     (get it from <URL:http://www.openldap.org/>)
934   - LDAP SDK 1.0 from Netscape Corp.
935     (get it from <URL:http://developer.netscape.com/>)
936
937 ** When profiling is in effect, a call-count of all recorded functions
938 is now calculated.  This information is stored in
939 `call-count-profile-table', and is utilized by `profile-results' as
940 well as the new command `profile-call-count-results'.
941
942 ** It is now an error to change the value of a symbol whose name
943 starts with a colon, if it is interned in the standard obarray.
944
945 However, setting such a symbol to its proper value, which is that
946 symbol itself, is not an error.  This is for the sake of programs that
947 support pre-19.12 XEmacs and pre-20 GNU Emacs by explicitly setting
948 these variables to themselves.
949
950 ** The `concat' function no longer accepts integer arguments.
951
952 ** The new function `string' concatenates all its argument characters
953 and returns the resulting string.  This is consistent with other
954 functions, like `list', `vector', etc.
955
956 ** The function `temp-directory' is now available to return the
957 directory to store temporary files.  On Unix this will be obtained
958 from TMPDIR, defaulting to `/tmp'.
959
960 ** The function load-average now accepts an optional argument
961 USE-FLOATS.  If it is non-nil, the load average values are returned as
962 floating point numbers, rather than as integers to be divided by 100.
963
964 ** The `make-event' function now supports the TYPE and PLIST
965 arguments, which can be used to create various events from Lisp.  See
966 the documentation for details.
967
968 ** `function-interactive' is a new function that returns the
969 interactive specification of a funcallable object.
970
971 ** The new `lmessage' function allows printing of a formatted message
972 with a particular label.
973
974    (lmessage 'progress "Processing... %d" counter)
975
976 This function is more convenient than `display-message' because it
977 automatically applies `format' to its arguments.
978
979 ** The new `lwarn' function, analogous to `lmessage', allows printing
980 a formatted warning, with a non-default CLASS or LABEL.
981
982 ** The new function `split-path' can now be used to explode the
983 components of a colon-separated search path into a list.
984
985    (split-path "foo:bar")
986      => ("foo" "bar")
987
988 ** Specifiers and symbols whose value is a specifier are now allowed
989 as modeline specifications.
990
991 ** defcustom now accepts the keyword `:version'.  Use this to specify
992 in which version of Emacs a certain variable's default value changed.
993 For example,
994
995    (defcustom foo-max 34 "*Maximum number of foo's allowed."
996      :type 'integer
997      :group 'foo
998      :version "21.0")
999
1000 This information is used to control the customize-changed-options
1001 command.
1002
1003 ** The line number tracking in modeline is now efficient, even for
1004 very large buffers.  This is achieved by caching the line numbers of
1005 recent buffer positions, and reusing them.  This cache is used only in
1006 the buffers where `line-number-mode' is in effect.
1007
1008 ** When the new GNU Malloc aka Doug Lea Malloc is available, it will
1009 be used.  This should result in better performance on Linux systems
1010 with libc6.
1011
1012 ** The code XEmacs uses to assemble its various paths into the
1013 directory hierarchy has been rewritten to support the package system.
1014 Look under "Startup Paths" in the Info documentation for more
1015 information.
1016
1017 *** site-lisp is no longer part of the load-path by default.
1018 Its use is deprecated, but you can specify --with-site-lisp=yes at the
1019 configure command line to get it back.
1020
1021 *** `Info-default-directory-list' is now obsolete.  If you want to
1022 change the path which XEmacs uses to search for info files, set
1023 `Info-directory-list' instead.