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