428
|
1 -*- mode:outline -*-
|
|
2
|
|
3 * Introduction
|
|
4 ==============
|
|
5
|
2291
|
6 This file presents the changes in recent XEmacs versions. Primarily
|
|
7 it documents user-visible (interface) changes, but also includes
|
|
8 internal changes of possible interest to users. When describing new
|
|
9 features, we also document ways of reverting to the old behavior,
|
|
10 where applicable. If you dislike a recent change in how XEmacs
|
|
11 behaves, you may find a remedy in this file.
|
428
|
12
|
2291
|
13 Use `C-c C-f' to move to the next heading at the same level, and
|
|
14 `C-c C-b' to move to the previous heading at this level. `C-h m' gives
|
|
15 help on Outline mode. The menubar provides more commands.
|
428
|
16
|
|
17 Users who would like to know which capabilities have been introduced
|
|
18 in each release should look at the appropriate section of this file.
|
|
19 Starting with version 20.0, XEmacs includes ChangeLogs, which can be
|
|
20 consulted for a more detailed list of changes.
|
|
21
|
2291
|
22 N.B. The term "GNU Emacs" refers to any release of Emacs from the
|
|
23 Free Software Foundation's GNU Project starting with Version 19.
|
|
24 The term "XEmacs" refers to this program or sometimes to its
|
|
25 predecessors "Era" and "Lucid Emacs". The predecessor of all these
|
|
26 programs is called "Emacs 18". When no particular version is
|
|
27 implied, "Emacs" will be used.
|
|
28
|
|
29
|
|
30 * Changes in XEmacs 21.5
|
|
31 ========================
|
|
32
|
|
33 ** Summary of user-visible changes:
|
|
34
|
|
35 -- Bignums have been implemented.
|
|
36 -- Windows users have benefit of the full Win32 Unicode API.
|
|
37 -- (in process) Xft provides antialiased fonts on X11.
|
2681
|
38 -- "XEmacs" used as X11 application class
|
2291
|
39
|
|
40 ** Bignum implementation.
|
|
41
|
|
42 Integer computations no longer overflow, rational arithmetic "just
|
|
43 works", and very precise floating point calculation is available.
|
|
44 This also means that large buffers (over 2^30 = 1GB) can be
|
|
45 manipulated.
|
428
|
46
|
2681
|
47 ** "XEmacs" used as X11 application class
|
|
48
|
|
49 Previously, XEmacs checked the X11 resource database for resources starting
|
2757
|
50 with XEmacs, and used "XEmacs" as its application class if any existed;
|
|
51 otherwise it used "Emacs", for backward compatibility. Because of
|
|
52 divergence between the resources that GNU Emacs and XEmacs use, we've
|
|
53 changed this. If you don't have the time to migrate your resource DB right
|
|
54 now, set USE_EMACS_AS_DEFAULT_APPLICATION_CLASS in your environment before
|
|
55 starting XEmacs, for the old behavior. This workaround will go away in the
|
|
56 course of the next major release, though, so you will have to migrate your
|
|
57 resources at some point.
|
2681
|
58
|
428
|
59
|
464
|
60 * Changes in XEmacs 21.4
|
428
|
61 ========================
|
|
62
|
479
|
63 ** Summary of user-visible changes:
|
|
64
|
|
65 -- The delete key now deletes forward by default.
|
|
66 -- Shifted motion keys now select text by default.
|
|
67 -- You can now build XEmacs with support for GTK+ widget set.
|
|
68 -- ~/.xemacs/init.el is now the preferred location for the init file.
|
|
69 - XEmacs now supports a `~/.xemacs/init.el' startup file.
|
|
70 - Custom file will move to ~/.xemacs/custom.el.
|
|
71 -- Much-improved sample init.el, showing how to use many useful features.
|
|
72 -- XEmacs support for menu accelerators has been much improved.
|
|
73 -- Default menubar improvements.
|
|
74 - Default menubar has many new commands and better organization.
|
|
75 - The font-menu is now available under MS Windows.
|
|
76 -- Dialog box improvements, including a real file dialog box.
|
|
77 - XEmacs now has a proper file dialog box under MS Windows (and GTK)!
|
|
78 - The old clunky file dialog box is improved.
|
|
79 - Keyboard traversal now works correctly in MS Windows dialog boxes.
|
|
80 - There is a Search dialog box available from Edit->Find...
|
|
81 -- New buffer tabs.
|
|
82 -- There is a new MS Windows installer, netinstall, ported from Cygwin.
|
|
83 -- The subprocess quote-handling mechanism under Windows is much improved.
|
|
84 -- Printing support now available under MS Windows.
|
|
85 -- Selection improvements.
|
|
86 - Kill and yank now interact with the clipboard under Windows.
|
|
87 - MS Windows support for selection is now much more robust.
|
|
88 - Motif selection support is now more correct (but slower).
|
|
89 -- Mail spool locking now works correctly.
|
|
90 -- International support changes.
|
|
91 - The default coding-priority-list is now safer.
|
|
92 - International keysyms are now supported under X.
|
|
93 - MS Windows 1251 code page now supported.
|
|
94 - Czech, Thai, Cyrillic-KOI8, Vietnamese, Ethiopic now supported.
|
|
95 - Proper support for words in Latin 3 and Latin 4.
|
|
96 -- Help buffers contain hyperlinks, and other changes.
|
|
97 -- The modeline's text is now scrollable.
|
|
98 -- The mouse wheel under MS Windows now functions correctly.
|
|
99 -- Interactive searching and matching case improvements.
|
|
100 - Incremental search will now highlight all visible matches.
|
|
101 - Interactive searches always respect uppercase characters.
|
|
102 -- Rectangle functions rewritten to avoid inserting extra spaces.
|
|
103 -- New command `kill-entire-line' that always kills the entire line.
|
|
104 -- Default values correctly stored in minibuffer histories.
|
|
105 -- You can now create "indirect buffers", like in GNU Emacs.
|
|
106 -- Pixel-based scrolling has been implemented.
|
|
107 -- Operation progress can be displayed using graphical widgets.
|
|
108 -- User names following a tilde can now be completed at file name prompts.
|
|
109 -- XEmacs can now play sound using Enlightenment Sound Daemon (ESD).
|
|
110 -- X-Face support is now available under MS Windows.
|
|
111 -- The PostgreSQL Relational Database Management System is now supported.
|
|
112 -- Indentation no longer indents comments that begin at column zero.
|
|
113 -- Face and variable settings can have comments in Customize.
|
|
114 -- New locations for early package hierarchies.
|
|
115 -- The `auto-save' library has been greatly improved.
|
|
116 -- New variable `mswindows-alt-by-itself-activates-menu'.
|
|
117 -- Other init-file-related changes.
|
|
118 - Init file in your home directory may be called `.emacs.el'.
|
|
119 - New command-line switches -user-init-file and -user-init-directory.
|
|
120 -- Etags changes.
|
|
121 - In DOS, etags looks for file.cgz if it cannot find file.c.
|
|
122 - New option --ignore-case-regex is an alternative to --regex.
|
|
123 - New option --declarations, for C-type languages.
|
|
124 - In C++, tags are created for "operator".
|
|
125 - Ada now supported.
|
|
126 - In Fortran, procedure is no longer tagged.
|
|
127 - In Java, tags are created for "interface".
|
|
128 - In Lisp, def-type constructs are now tagged.
|
|
129 - In Perl, the --globals option tags global variables.
|
|
130 - Python now supported.
|
|
131 - New file extensions recognized: .ss, .pdb, .psw.
|
|
132
|
440
|
133 ** The delete key now deletes forward by default.
|
428
|
134
|
440
|
135 This is regulated by the variable `delete-key-deletes-forward', which
|
|
136 now defaults to t. `delete-key-deletes-forward' takes effect only on
|
|
137 the systems that offer both a backspace and a delete key. If set to
|
|
138 nil, the key labeled "Delete" will always delete backward. If set to
|
|
139 non-nil, the "Delete" key will delete forward, except on keyboards
|
479
|
140 where a "Backspace" key is not provided (e.g. old DEC keyboards).
|
428
|
141
|
|
142 Unless our implementation has bugs, the only reason why you would want
|
|
143 to set `delete-key-deletes-forward' to nil is if you want to use the
|
|
144 Delete key to delete backwards, despite the presence (according to
|
|
145 Xlib) of a BackSpace key on the keyboard.
|
|
146
|
479
|
147 ** Shifted motion keys now select text by default.
|
|
148
|
|
149 You can turn this off by setting `shifted-motion-keys-select-region'
|
|
150 to nil. This works based off of particular keys, not particular
|
|
151 commands: Thus, the arrow keys will normally trigger selection when
|
|
152 the Shift key is held down regardless of their bindings, and non-arrow
|
|
153 keys with the same bindings (e.g. C-f) will not work this way. You
|
|
154 can control which keys trigger shifted motion using
|
|
155 `motion-keys-for-shifted-motion'. See also
|
|
156 `unshifted-motion-keys-deselect-region'.
|
|
157
|
464
|
158 ** You can now build XEmacs with support for GTK+ widget set.
|
|
159
|
|
160 XEmacs built that way uses GTK+ to draw menubars, scrollbars, and
|
|
161 other GUI components, as well GDK for drawing text, choosing fonts,
|
|
162 allocating colors, etc. Additionally, GTK-XEmacs supports Lisp
|
|
163 functions for writing your own GTK programs in Emacs Lisp!
|
|
164
|
|
165 To use this, build XEmacs with the `--with-gtk' configure flag. (Of
|
|
166 course, you'll need to have the GTK+ libraries and header files on the
|
|
167 system.) Gnome widgets and functionality are supported where
|
|
168 available, and can be turned off.
|
|
169
|
479
|
170 ** ~/.xemacs/init.el is now the preferred location for the init file.
|
|
171
|
|
172 *** XEmacs now supports a `~/.xemacs/init.el' startup file.
|
|
173 If it exists, XEmacs will prefer it over `.emacs' and `.emacs.el'.
|
|
174 The file may be byte-compiled as `~/.xemacs/init.elc'.
|
|
175
|
|
176 If present, the `~/.xemacs/' directory may contain startup files for
|
|
177 XEmacs packages that support it.
|
|
178
|
|
179 The first time you start up XEmacs, it will ask you if you would like
|
|
180 to migrate your `.emacs' to the new location. (Your custom settings
|
|
181 will also be moved, to `~/.xemacs/custom.el' -- see below.) If so, you
|
|
182 will also be asked whether you would like to create a compatibility
|
|
183 `.emacs' for backward compatibility with previous versions of XEmacs
|
|
184 and with GNU Emacs. (This compatibility `.emacs' simply loads the new
|
|
185 init and custom files.) Doing this is generally a good idea -- new
|
|
186 versions of XEmacs will prefer `~/.xemacs/init.el' over `~/.emacs' in
|
|
187 any case.
|
|
188
|
|
189 You can manually migrate at any time with `migrate-user-init-file',
|
|
190 and undo any migration with `unmigrate-user-init-file'. The function
|
|
191 `create-compatibility-dot-emacs' also lets you manually create a
|
|
192 compatibility `.emacs'.
|
|
193
|
|
194 NOTE: Under MS Windows, your home directory (i.e. the directory named
|
|
195 `~') is specified by the HOME environment variable, and defaults to
|
|
196 C:\. To set this variable, modify AUTOEXEC.BAT under Windows 95/98,
|
|
197 or select Control Panel->System->Advanced->Environment Variables...
|
|
198 under Windows NT/2000.
|
|
199
|
|
200 *** Custom file will move to ~/.xemacs/custom.el.
|
|
201
|
|
202 Whereas customize settings were formerly stored in the regular init
|
|
203 file, XEmacs now prefers them to be in a separate file
|
|
204 `~/.xemacs/custom.el', completely under automatic control. This
|
|
205 change goes with the migration of the init file, and XEmacs offers
|
|
206 automatic migration upon startup.
|
|
207
|
|
208 ** Much-improved sample init.el, showing how to use many useful features.
|
|
209
|
|
210 The sample init file, located in the `etc/' directory of the XEmacs
|
|
211 installation, has been renamed from `sample.emacs' to `sample.init.el',
|
|
212 and pretty much rewritten from scratch. (You can view it by selecting
|
|
213 the menu item Help->Samples->Sample init.el.) Many of the most-useful
|
|
214 optional features in XEmacs have been enabled, and other features that
|
|
215 are useful but may be annoying to some are present but commented out.
|
|
216 There is also extensive documentation on how to add your own
|
|
217 improvements to the init file and where to find more documentation
|
|
218 elsewhere in XEmacs. The file has been specifically designed so that
|
|
219 most people can simply make it their own init file by copying it to
|
|
220 ~/.xemacs/init.el, and they will be satisfied with the results.
|
|
221
|
|
222 ** XEmacs support for menu accelerators has been much improved.
|
442
|
223
|
479
|
224 It now works properly under MS Windows, for example. To enable
|
|
225 accelerators, set `menu-accelerator-enabled' to `menu-force'. Menus
|
|
226 now have accelerators by default, currently on the first letter of the
|
|
227 menu item unless another letter was indicated as the accelerator using
|
|
228 %_ in the menu string. These %_ specifications are automatically
|
|
229 removed when displaying the menu item, and are handled correctly in
|
|
230 functions such as `normalize-menu-item-name'. Some auto-generated
|
|
231 menus will have accelerators added dynamically, using numbers 1-9 and
|
|
232 letters; to add this feature yourself, use the Lisp command
|
|
233 `submenu-generate-accelerator-spec' in a menu filter. The feature
|
|
234 `menu-accelerator-support' has been added so that packages can check
|
|
235 whether this support exists.
|
|
236
|
|
237 ** Default menubar improvements.
|
|
238
|
|
239 *** Default menubar has many new commands and better organization.
|
|
240
|
|
241 The default menubar has been extensively reorganized. Many more
|
|
242 commands are available, and they are more logically organized. The
|
|
243 Options menu, in particular, has been significantly expanded, and almost
|
|
244 everything on the new Cmds menu is new. (Much of the useful
|
|
245 functionality from the `big-menubar' package has been imported.)
|
|
246
|
|
247 *** The font-menu is now available under MS Windows.
|
|
248
|
|
249 ** Dialog box improvements, including a real file dialog box.
|
|
250
|
|
251 *** XEmacs now has a proper file dialog box under MS Windows (and GTK)!
|
|
252 This will appear whenever you select a menu item that requires a file
|
|
253 as an argument.
|
|
254
|
|
255 *** The old clunky file dialog box is improved.
|
|
256 The in-buffer file dialog box (visible on non-MS-Windows, non-GTK
|
|
257 systems) is still clunky but has had many improvements to make it work
|
|
258 significantly better.
|
|
259
|
|
260 *** Keyboard traversal now works correctly in MS Windows dialog boxes.
|
|
261
|
|
262 *** There is a Search dialog box available from Edit->Find...
|
|
263 However, it's very experimental and needs a lot of work.
|
|
264
|
|
265 ** New buffer tabs.
|
|
266
|
|
267 You can now use buffer tabs to switch between buffers.
|
|
268
|
|
269 The tabs are located between the toolbar and the uppermost window, in
|
|
270 a location called the "gutter". If you dislike the buffer tabs, you can
|
|
271 disable them using the menu item `Options->Display->Buffers Tab Visible'
|
|
272 by customizing `gutter-buffers-tab-visible-p', or by placing this in
|
|
273 your .xemacs/init.el:
|
|
274
|
|
275 (custom-set-variables '(gutter-buffers-tab-visible-p nil))
|
|
276
|
|
277 You can change the location of the gutter using the menu item
|
|
278 `Options->Display->Default Gutter Location' or with (e.g.)
|
|
279
|
|
280 (custom-set-variables '(default-gutter-position 'left))
|
|
281
|
|
282 However, currently only MS Windows supports tab widgets with
|
|
283 orientations other than vertical, and it doesn't currently support
|
|
284 gutters on the bottom of the frame.
|
|
285
|
|
286 ** There is a new MS Windows installer, netinstall, ported from Cygwin.
|
|
287
|
|
288 Nearly complete automation of the XEmacs install process from
|
|
289 ftp.xemacs.org. Includes selection of Lisp packages to install, etc.
|
442
|
290
|
479
|
291 ** The subprocess quote-handling mechanism under Windows is much improved.
|
|
292
|
|
293 Specifically, the quote-handling mechanism has been completely rewritten,
|
|
294 and you should now be able to use single or double quotes to quote arguments
|
|
295 just like under Unix, and expect to get correct results regardless of the
|
|
296 shell you are using (e.g. CMD.EXE, bash from Cygwin, etc.). For example,
|
|
297 the following command:
|
|
298
|
|
299 M-x grep '<<<<<<<' *.c
|
|
300
|
|
301 should work as intended.
|
|
302
|
|
303 ** Printing support now available under MS Windows.
|
|
304
|
|
305 The File->Print... menu item pretty-prints using the standard MS
|
|
306 Windows printing facilities. Unfortunately it's still rather
|
|
307 experimental. There is a separate `msprinter' device tag for MS
|
|
308 Windows printers, and so you can control the way that faces appear on
|
|
309 the printer by using this tag to specify device-specific face
|
|
310 settings.
|
|
311
|
|
312 ** Selection improvements.
|
|
313
|
|
314 *** Kill and yank now interact with the clipboard under Windows.
|
464
|
315
|
479
|
316 This was done by changing the default value of `interprogram-cut-function'
|
|
317 and `interprogram-paste-function'. You can get the old behavior by
|
|
318 setting these to nil, and there is an option on the options menu to do
|
|
319 this.
|
|
320
|
|
321 *** MS Windows support for selection is now much more robust.
|
|
322
|
|
323 Generally selection should now do what you would expect under
|
|
324 MS Windows: the middle mouse button will paste your current selection
|
|
325 or the clipboard; conversions from different types of selection to the
|
|
326 clipboard can be made; the kill-ring and friends will be updated as
|
|
327 per X.
|
|
328
|
|
329 The only thing selection doesn't do is set the clipboard automatically
|
|
330 as this would break the MS Windows model. If you want this behavior
|
|
331 then set `selection-sets-clipboard' to t.
|
|
332
|
|
333 *** Motif selection support is now more correct (but slower).
|
|
334
|
|
335 Changes have been made to allow correct operation of cut/copy/paste
|
|
336 operations between native widgets and XEmacs buffers. However, this
|
|
337 can lead to a lot of X traffic which slows down the performance of
|
|
338 `C-k'. If you want the old behaviour then set
|
|
339 `x-selection-strict-motif-ownership' to nil.
|
|
340
|
|
341 ** Mail spool locking now works correctly.
|
464
|
342
|
479
|
343 XEmacs has always come with a little auxiliary program, movemail,
|
|
344 which moves mail out of the system's spool area into user storage. To
|
|
345 coordinate between XEmacs, the mail delivery agent, and other mail
|
|
346 user agents, movemail needs to properly lock the spool file before
|
|
347 moving it. Movemail now correctly respects the --mail-locking option
|
|
348 to configure. Moreover, movemail's locking behavior can be specified
|
|
349 at run-time, via a new command-line option -m to movemail, or through
|
|
350 the environment variable EMACSLOCKMETHOD.
|
|
351
|
|
352 When installing XEmacs, make sure you configure it according to your
|
|
353 environment's mail spool locking conventions. When you're using a
|
|
354 binary kit, set the `mail-lock-method' variable at startup, or the
|
|
355 EMACSLOCKMETHOD environment variable.
|
|
356
|
|
357 ** International support changes.
|
|
358
|
|
359 *** The default coding-priority-list is now safer.
|
|
360
|
|
361 This means that if you have no language environment set, Mule no
|
|
362 longer automatically recognizes ISO 2022 escapes in your files. This
|
|
363 makes editing binary files safe.
|
|
364
|
|
365 *** International keysyms are now supported under X.
|
|
366
|
|
367 This means that XEmacs running under Mule will automatically recognize
|
|
368 the keysym `scaron' to be the lower-case `s' with caron in the Latin 2
|
|
369 character set. (Specifically, it will bind the keysym to
|
|
370 `self-insert' and augment its `ascii-character' property.) This is
|
|
371 very useful with XFree under European locales as shipped by recent
|
|
372 Linux distributions. If XEmacs is compiled without Mule support, the
|
|
373 feature still works, but it is unaware of different character sets --
|
|
374 it unconditionally sets the `ascii-character' property to values in
|
|
375 the [160, 256) range.
|
442
|
376
|
479
|
377 *** MS Windows 1251 code page now supported.
|
|
378
|
|
379 It's available as coding system `windows-1251'.
|
|
380
|
|
381 *** Czech, Thai, Cyrillic-KOI8, Vietnamese, Ethiopic now supported.
|
|
382
|
|
383 *** Proper support for words in Latin 3 and Latin 4.
|
|
384
|
|
385 The appropriate characters in Latin 3 and Latin 4 character sets are
|
|
386 correctly defined as words.
|
|
387
|
|
388 ** Help buffers contain hyperlinks, and other changes.
|
|
389
|
|
390 The help buffers created by C-h commands now contain hyperlinks to
|
|
391 other commands, functions and variables mentioned in the documentation.
|
|
392 Use button2 to follow a link. Use button3 to bring up a context menu
|
|
393 that lets you follow the link, find the source for the item, do a tag
|
|
394 search, etc. The buffers are also syntax-highlighted.
|
|
395
|
|
396 Help functions (e.g. `C-h f') now know how to print macro argument
|
|
397 lists. If your macro definition included an argument list for the sake
|
|
398 of help output, you no longer need to do that.
|
|
399
|
|
400 ** The modeline's text is now scrollable.
|
|
401
|
|
402 This is controlled by the variable `modeline-scrolling-method', which
|
|
403 you need to set to a non-nil value. You can also choose scrolling
|
|
404 types; see the docstring of `modeline-scrolling-method' for more
|
|
405 information.
|
|
406
|
|
407 ** The mouse wheel under MS Windows now functions correctly.
|
|
408
|
|
409 It scrolls the XEmacs window under the pointer, not the selected
|
|
410 window.
|
442
|
411
|
428
|
412 ** Interactive searching and matching case improvements.
|
|
413
|
479
|
414 *** Incremental search will now highlight all visible matches.
|
|
415
|
|
416 This makes it easier to anticipate where consecutive C-s or C-r will
|
|
417 place the point. If you want to disable the feature, set
|
|
418 `isearch-highlight-all-matches' to nil.
|
|
419
|
|
420 *** Interactive searches always respect uppercase characters.
|
|
421
|
|
422 Case sensitiveness in searching operations is normally controlled
|
|
423 by the variable `case-fold-search' (if non-nil, case is ignored while
|
428
|
424 searching). This mechanism has now been slightly improved for
|
|
425 interactive searches: if the search string (or regexp) contains
|
|
426 uppercase characters, the searching is forced to be case-sensitive,
|
|
427 `case-fold-search'.
|
|
428
|
|
429 The new behavior affects all functions performing interactive
|
|
430 searches, like `zap-to-char', `list-matching-lines', `tags-search'
|
|
431 etc. The incremental search facility has always behaved that way.
|
|
432
|
479
|
433 ** Rectangle functions rewritten to avoid inserting extra spaces.
|
442
|
434
|
479
|
435 The rectangle functions have been almost completely rewritten in
|
428
|
436 order to avoid inserting undesirable spaces, notably at the end of
|
|
437 lines. Two typical examples of the old behavior were
|
|
438 `string-rectangle', which filled all lines up to the right side of the
|
|
439 rectangle, and `clear-rectangle', which filled even empty lines up to
|
|
440 the left side. All functions have been rewritten to avoid inserting
|
|
441 unwanted spaces, and an optional prefix now allows them to behave the
|
|
442 old way.
|
|
443
|
442
|
444 Also, the behavior of `string-rectangle' is now compliant with
|
|
445 `pending-delete-mode': if this mode is active, then the string
|
|
446 replaces the region rectangle. Otherwise, the command does not delete
|
|
447 or overwrite any existing text. For those who want that feature but do
|
|
448 not use pending-delete-mode, a new function, `replace-rectangle', is
|
686
|
449 available, and bound to `C-x r p'.
|
442
|
450
|
428
|
451 As a side effect, the FORCE argument to `move-to-column' now
|
|
452 understands the special value `coerce', which means that the line
|
|
453 should not be filled if it is too short to reach the desired column.
|
|
454
|
479
|
455 ** New command `kill-entire-line' that always kills the entire line.
|
|
456
|
|
457 This kills the entire line at point, regardless of whether the point
|
|
458 is at the beginning of line, and regardless of the setting of
|
|
459 `kill-whole-line'.
|
|
460
|
|
461 ** Default values correctly stored in minibuffer histories.
|
428
|
462
|
479
|
463 When you press RET at a minibuffer prompt that provides a default
|
|
464 value, the value is stored in history instead of an empty line. Also,
|
|
465 you can now edit the default value by pressing the down arrow,
|
|
466 accessing the logical "future" value. Not all minibuffer prompts have
|
|
467 yet been converted to support this feature.
|
428
|
468
|
479
|
469 ** You can now create "indirect buffers", like in GNU Emacs.
|
|
470
|
|
471 An indirect buffer shares its text with another buffer ("base
|
|
472 buffer"), but has its own major mode, local variables, extents, and
|
|
473 narrowing. An indirect buffer has a name of its own, distinct from
|
|
474 those of the base buffer and all other buffers. An indirect buffer
|
|
475 cannot itself be visiting a file (though its base buffer can be).
|
|
476 The base buffer cannot itself be indirect.
|
428
|
477
|
|
478 Use (make-indirect-buffer BASE-BUFFER NAME) to make an indirect buffer
|
|
479 named NAME whose base is BASE-BUFFER. If BASE-BUFFER is itself an
|
|
480 indirect buffer, its base buffer is used as the base for the new
|
|
481 buffer.
|
|
482
|
|
483 You can make an indirect buffer current, or switch to it in a window,
|
|
484 just as you would a non-indirect buffer.
|
|
485
|
|
486 The function `buffer-base-buffer' returns a buffer's base buffer or
|
|
487 nil, if given an ordinary (non-indirect) buffer. The function
|
|
488 `buffer-indirect-children' returns a list of the indirect children of
|
|
489 a base buffer.
|
|
490
|
479
|
491 ** Pixel-based scrolling has been implemented.
|
|
492 By default this will attempt to scroll in increments equal to the
|
|
493 height of the default face. Set `window-pixel-scroll-increment' to
|
|
494 modify this behavior.
|
|
495
|
|
496 ** Operation progress can be displayed using graphical widgets.
|
|
497 See `progress-feedback' for details. This support has been switched
|
|
498 on by default for font-lock and some web browsing functions. If you
|
|
499 do not like this behavior, set `progress-feedback-use-echo-area' to
|
|
500 nil.
|
|
501
|
|
502 ** User names following a tilde can now be completed at file name prompts.
|
|
503 e.g. `C-x C-f ~hni<TAB>' will complete to `~hniksic/'. To make this
|
|
504 operation faster, a cache of user names is maintained internally.
|
428
|
505
|
|
506 The new primitives available for this purpose are functions named
|
|
507 `user-name-completion' and `user-name-all-completions'.
|
|
508
|
|
509 ** XEmacs can now play sound using Enlightenment Sound Daemon (ESD).
|
|
510 It will try NAS first, then ESD, then playing native sound directly.
|
|
511
|
479
|
512 ** X-Face support is now available under MS Windows.
|
|
513 If an X-Face library built under MS Windows is available then XEmacs
|
428
|
514 will use this at build time.
|
|
515
|
479
|
516 ** The PostgreSQL Relational Database Management System is now supported.
|
|
517 It is now possible to build XEmacs so that the programming interface
|
|
518 to the PostgreSQL RDBMS (libpq) is available in XEmacs Lisp.
|
|
519 Supported versions of PostgreSQL are 6.5.3 (earlier versions may work,
|
|
520 but have not been tested) and 7.0-beta1.
|
438
|
521
|
464
|
522 ** Indentation no longer indents comments that begin at column zero.
|
|
523 This makes it easy to deal with commented out regions of code.
|
|
524
|
479
|
525 ** Face and variable settings can have comments in Customize.
|
|
526 Customize now supports adding comments about your face and variable
|
|
527 settings using a new menu entry. Comments for variables can also be
|
|
528 assigned by calling `customize-set-(value|variable)' with a prefix
|
|
529 argument.
|
|
530
|
|
531 ** New locations for early package hierarchies.
|
|
532 XEmacs now locates the early package hierarchies at
|
|
533 ~/.xemacs/mule-packages/ and ~/.xemacs/xemacs-packages/. Previously,
|
|
534 the early packages were located in ~/.xemacs/.
|
464
|
535
|
479
|
536 ** The `auto-save' library has been greatly improved.
|
|
537 (This lets you group all your auto-save files into one directory, and
|
|
538 is provided standardly with XEmacs. See `etc/sample.init.el',
|
|
539 available on the Help menu, for more info on how to set it up.)
|
|
540 Specifically, it now works under MS Windows, and it uses a completely
|
|
541 reversible encoding (basically quoted-printable), so that all
|
|
542 filenames (as well as non-filename buffers) are successfully handled
|
|
543 regardless of any special characters in their names.
|
464
|
544
|
479
|
545 ** New variable `mswindows-alt-by-itself-activates-menu'.
|
|
546 If you set this variable to nil then pressing and releasing the Alt
|
|
547 key under MS Windows will no longer activate the menubar. The default
|
|
548 is t. This is not to be confused with `menu-accelerator-enabled',
|
|
549 which enables the use of Alt+<Letter> accelerators to invoke the
|
|
550 menus.
|
|
551
|
|
552 ** Other init-file-related changes.
|
464
|
553
|
|
554 *** Init file in your home directory may be called `.emacs.el'.
|
442
|
555
|
464
|
556 Like in GNU Emacs 20.4 and on, you can now name the XEmacs init file
|
|
557 located in your home directory `.emacs.el'. Formerly the name had to
|
|
558 be `.emacs'. If you use the name `.emacs.el', you can byte-compile
|
|
559 the file in the usual way.
|
|
560
|
|
561 If both `.emacs' and `.emacs.el' exist, the latter file is the one
|
|
562 that is used.
|
442
|
563
|
464
|
564 *** New command-line switches -user-init-file and -user-init-directory.
|
479
|
565
|
464
|
566 These can be used to specify alternate locations for what is normally
|
|
567 ~/.emacs and ~/.xemacs.
|
442
|
568
|
464
|
569 Moreover, the `-user <user>' command-line option (which used to only
|
|
570 work in unpredictable ways) is now equivalent to `-user-init-file
|
|
571 ~<user>/.xemacs/init.el -user-init-directory ~<user>/.xemacs', or
|
|
572 `-user-init-file ~<user>/.emacs -user-init-directory ~<user>/.xemacs',
|
|
573 whichever init file comes first.
|
|
574
|
428
|
575 ** Etags changes.
|
|
576
|
|
577 *** In DOS, etags looks for file.cgz if it cannot find file.c.
|
|
578
|
479
|
579 *** New option --ignore-case-regex is an alternative to --regex.
|
|
580 It is now possible to bind a regexp to a language, by prepending the
|
|
581 regexp with {lang}, where lang is one of the languages that `etags
|
|
582 --help' prints out. This feature is useful especially for regex
|
|
583 files, where each line contains a regular expression. The manual
|
|
584 contains details.
|
428
|
585
|
479
|
586 *** New option --declarations, for C-type languages.
|
|
587 In C and derived languages, etags creates tags for function
|
428
|
588 declarations when given the --declarations option.
|
|
589
|
479
|
590 *** In C++, tags are created for "operator".
|
|
591 The tags have the form "operator+", without spaces between the
|
|
592 keyword and the operator.
|
428
|
593
|
479
|
594 *** Ada now supported.
|
|
595 Tags are functions, procedures, packages, tasks, and types.
|
428
|
596
|
464
|
597 *** In Fortran, procedure is no longer tagged.
|
428
|
598
|
|
599 *** In Java, tags are created for "interface".
|
|
600
|
479
|
601 *** In Lisp, def-type constructs are now tagged.
|
|
602 This includes "(defstruct (foo", "(defun (operator" and similar constructs.
|
|
603
|
|
604 *** In Perl, the --globals option tags global variables.
|
|
605 my and local variables are tagged.
|
428
|
606
|
479
|
607 *** Python now supported.
|
|
608 def and class at the beginning of a line are tags.
|
428
|
609
|
479
|
610 *** New file extensions recognized: .ss, .pdb, .psw.
|
|
611 .ss files are Scheme files, .pdb is Postscript with C syntax, .psw is
|
428
|
612 for PSWrap.
|
|
613
|
|
614
|
464
|
615 * Lisp and internal changes in XEmacs 21.4
|
428
|
616 ==========================================
|
|
617
|
440
|
618 ** A new portable dumper is available for beta testing.
|
430
|
619
|
|
620 Olivier Galibert has written a portable dumper for XEmacs, based on
|
464
|
621 initial work by Kyle Jones. To perform even the most basic editor,
|
|
622 XEmacs requires some amount of Lisp code to be loaded. To avoid
|
|
623 repeating the expensive loading process at every startup, XEmacs is
|
|
624 built in a special way. Its C sources link into an executable called
|
|
625 `temacs', which loads the bootstrap Lisp code and uses a special
|
|
626 "unexec" call to dump the resulting memory image into a proper
|
|
627 `xemacs' executable on disk. The unexec() process is hard to
|
432
|
628 implement correctly and makes XEmacs very hard to port to new
|
|
629 operating systems, or even to new releases of old systems.
|
430
|
630
|
464
|
631 The new portable dumper uses a different approach to dumping: instead
|
|
632 of dumping full-fledged executable, it only dumps out the initialized
|
430
|
633 data structures (both Lisp and C) into an external file. A normally
|
464
|
634 running XEmacs only needs to mmap that file and relocate a bit to get
|
|
635 to the initialized data. In that scheme, there is no difference
|
430
|
636 between `temacs' and `xemacs'.
|
|
637
|
464
|
638 Unfortunately, the portable dumper has not been completely finished
|
|
639 for this release, and will not be used by default. However, if you
|
|
640 wish to experiment with it, or if you need to compile XEmacs on a new
|
|
641 and unsupported platform, you can test it by configuring XEmacs with
|
|
642 `--pdump' flag.
|
440
|
643
|
428
|
644 ** Much effort has been invested to make XEmacs Lisp faster:
|
|
645
|
|
646 *** Many basic lisp operations are now faster.
|
|
647 This is especially the case when running a Mule-enabled XEmacs.
|
|
648
|
|
649 A general overhaul of the lisp engine should produce a speedup of 1.4
|
464
|
650 in a non-Mule XEmacs, and 2.1 in a Mule XEmacs. These numbers were
|
428
|
651 obtained running `(byte-compile "simple.el")', which should be a
|
|
652 pretty typical test of "pure" Lisp.
|
|
653
|
|
654 *** Lisp hash tables have been re-implemented. The Common Lisp style
|
|
655 hash table interface has been made standard, and moved from cl.el into
|
|
656 fast C code (See the section on hash tables in the XEmacs Lisp
|
|
657 Reference). A speedup factor of 3 can be expected with code that
|
|
658 makes intensive use of hash tables.
|
|
659
|
|
660 *** The garbage collector has been tuned, leading to a speedup of
|
|
661 1.16.
|
|
662
|
464
|
663 *** The byte-compiler and the byte-optimizer have been tuned to
|
|
664 produce better code in many small ways.
|
|
665
|
428
|
666 *** The family of functions that iterate over lists, like `memq', and
|
|
667 `rassq', have been made a little faster (typically 1.3).
|
|
668
|
|
669 *** Lisp function calls are faster, by approximately a factor of two.
|
|
670 However, defining inline functions (via defsubst) still makes sense
|
|
671 for tight loops.
|
|
672
|
|
673 *** Finally, a few functions have had dramatic performance
|
|
674 improvements. For example, `(last long-list)' is now 30 times faster.
|
|
675
|
|
676 Of course, your mileage will vary.
|
|
677
|
|
678 Many operations do not see any improvement. Surprisingly, running
|
|
679 (font-lock-fontify-buffer) does not use the Lisp engine much at all.
|
|
680 Speeding up your favorite slow operation is an excellent project to
|
|
681 improve XEmacs. Don't forget to profile!
|
|
682
|
430
|
683 ** Native widgets can be displayed in buffers.
|
|
684
|
|
685 The glyph system has been extended to allow the display of glyphs that
|
|
686 are implemented as native window-system widgets. Thus you can embed
|
|
687 buttons, scrollbars, combo boxes, edit fields and progress gauges in a
|
|
688 buffer. As a side effect subwindow support now works once again.
|
|
689
|
440
|
690 All of this is still fairly experimental and there is no
|
442
|
691 documentation. The current APIs might change in a future version of
|
479
|
692 XEmacs. Some widgets are only available under MS Windows. See the
|
440
|
693 file glyphs-test.el in the XEmacs src distribution for examples of
|
|
694 usage.
|
430
|
695
|
440
|
696 The buffers-tab functionality and progress gauge have been implemented
|
|
697 using this feature.
|
430
|
698
|
464
|
699 ** Case translation now supports international characters.
|
|
700
|
|
701 *** Instead of being lists of 256-character strings, case tables are
|
|
702 now opaque objects. The interface to access them is almost the same,
|
|
703 except it now works for international characters, and you can set the
|
|
704 case pairs using `put-case-table-pair'. `set-case-table' and friends
|
|
705 still support the old list/string based interface for backward
|
|
706 compatibility.
|
|
707
|
|
708 *** As a consequence of this change, functions `downcase' and `upcase'
|
|
709 as well as all the case-transformation commands now work with
|
|
710 non-ASCII characters. Built-in tables cover all the Latin character
|
|
711 sets that we support. If your language has a distinction between
|
|
712 upper and lower case that is not handled by XEmacs/Mule, please let us
|
|
713 know.
|
|
714
|
|
715 *** The code that implements case-insensitive search has been modified
|
|
716 to respect the case table settings. This also applies to regexp
|
|
717 search.
|
|
718
|
479
|
719 ** Syntax tables may now be specified for a part of a buffer by
|
|
720 attaching the `syntax-table' property to an extent. For compatibility
|
|
721 with GNU Emacs, you may use the text-property interface to achieve the
|
|
722 same result.
|
|
723
|
464
|
724 ** Values of variables `user-init-file' and `user-init-directory' are
|
|
725 now absolute file/directory names. Previously, both variables used to
|
|
726 be relative to `(concat "~" init-file-user)'. This turned out to be
|
|
727 too complicated for most packages (and some core Lisp files) to use
|
|
728 correctly. Also, the `init-file-user' variable has been obsoleted in
|
|
729 the process.
|
440
|
730
|
442
|
731 The user-visible options like `-u' have not changed their behavior.
|
430
|
732
|
428
|
733 ** XEmacs finally has an automated test suite!
|
|
734 Although this is not yet very sophisticated, it is already responsible
|
|
735 for several important bug fixes in XEmacs. To try it out, simply use
|
|
736 the makefile target `make check' after building XEmacs.
|
|
737
|
|
738 ** Hash tables have been reimplemented.
|
|
739 As was pointed out above, the standard interface to hash tables is now
|
|
740 the Common Lisp interface, as described in Common Lisp, the Language
|
|
741 (CLtL2, by Steele). The older interface (functions with names
|
|
742 containing the phrase `hashtable') will continue to work, but the
|
|
743 preferred interface now has names containing the phrase `hash-table'.
|
|
744
|
|
745 Here's the executive overview: create hash tables using
|
|
746 make-hash-table, and use gethash, puthash, remhash, maphash and
|
|
747 clrhash to manipulate entries in the hash table. See the (updated)
|
|
748 Lisp Reference Manual for details.
|
|
749
|
|
750 ** Lisp code handles circular lists much more robustly.
|
|
751 Many basic lisp functions used to loop forever when given a circular
|
|
752 list, expecting you to C-g (quit) out of the loop. Now this is more
|
|
753 likely to trigger a `circular-list' error. Printing a circular list
|
|
754 now results in something like this:
|
|
755
|
|
756 (let ((x (cons 'foo 'foo)))
|
|
757 (setcdr x x)
|
|
758 x)
|
|
759 => (foo ... <circular list>)
|
|
760
|
|
761 An extra bonus is that checking for circularities is not just
|
|
762 friendlier, but actually faster than checking for C-g.
|
|
763
|
430
|
764 ** Functions for decoding base64 encoding are now available; see
|
|
765 `base64-encode-region', `base64-encode-string', `base64-decode-region'
|
|
766 and `base64-decode-string'.
|
428
|
767
|
440
|
768 ** The functions `read-string', `read-expression', `eval-minibuffer',
|
|
769 `read-variable', `read-command', `read-function', `read-number',
|
|
770 `read-shell-command', `read-from-minibuffer', and `completing-read'
|
|
771 now take an additional argument which specifies the default value. If
|
|
772 this argument is non-nil, it should be a string; that string is used
|
|
773 in two ways:
|
|
774
|
464
|
775 * It is returned if the user enters empty input.
|
|
776 * It is available as the logical "future" entry, by pressing the down
|
|
777 arrow.
|
440
|
778
|
|
779 ** LDAP changes.
|
|
780
|
|
781 *** The LDAP interface now consists of two layers, a low-level layer
|
|
782 that closely matches the LDAP C API, and a more convenient
|
|
783 higher-level set of functions.
|
|
784
|
|
785 *** The low-level functions that used to be named *-internal are now
|
|
786 named more simply: `ldap-open', `ldap-close', `ldap-search-basic',
|
|
787 `ldap-add', and `ldap-modify'. They should be used directly for very
|
|
788 specific purposes (such as multiple operations on a connection) only.
|
|
789
|
|
790 *** The higher-level functions provide a more convenient way to access
|
|
791 LDAP directories hiding the subtleties of handling the connection,
|
|
792 translating arguments and ensuring compliance with LDAP
|
|
793 internationalization rules and formats (currently partly implemented
|
|
794 only.) This layer provides atomic operations for searches,
|
|
795 modification, addition and deletion of multiple entries at once:
|
|
796 `ldap-search-entries', `ldap-add-entries', `ldap-delete-entries', and
|
|
797 `ldap-modify-entries'.
|
|
798
|
|
799 *** To maintain compatibility with previous code, the now obsolete
|
|
800 function `ldap-search' is now merely a wrapper that calls either
|
|
801 `ldap-search-basic' or `ldap-search-entries'. Please don't use the
|
|
802 `ldap-search' function in your new programs -- a direct call to one of
|
|
803 the two replacements is more efficient and unambiguous.
|
|
804
|
430
|
805 ** The arguments to `locate-file' are now more Lisp-like. As before,
|
|
806 the usage is:
|
428
|
807
|
|
808 (locate-file FILENAME PATH-LIST &optional SUFFIXES MODE)
|
|
809
|
|
810 Except that SUFFIXES are now a list of strings instead of a single,
|
|
811 colon-separated string. MODE is now a symbol or a list of symbols
|
|
812 (symbols `exists', `executable', `writable', and `readable' are
|
|
813 supported) instead of an integer code. See the documentation for
|
|
814 details. Of course, the old form is still accepted for backward
|
|
815 compatibility.
|
|
816
|
|
817 Several bugs in locate-file have been fixed, most notably its failure
|
|
818 to call expand-file-name on elements of PATH-LIST. Because of that
|
|
819 elements of load-path of the form "~/..." used to not work.
|
|
820 locate-file is now guaranteed to expand files during its course of
|
|
821 operation.
|
|
822
|
|
823 ** `translate-region' has been improved in several ways. Its TABLE
|
|
824 argument used to be a 256-character string. In addition to this, it
|
|
825 can now also be a vector or a char-table, which makes the function
|
464
|
826 useful for Mule, which it wasn't. If TABLE is a vector or a generic
|
428
|
827 char-table, you can map characters to strings instead of to other
|
|
828 characters. For instance:
|
|
829
|
|
830 (let ((table (make-char-table 'generic)))
|
|
831 (put-char-table ?a "the letter a" table)
|
|
832 (put-char-table ?b "" table)
|
|
833 (put-char-table ?c ?\n table)
|
|
834 (translate-region (point-min) (point-max) table))
|
|
835
|
430
|
836 ** The new form `ignore-file-errors', similar to `ignore-errors' may
|
|
837 be used as a short-hand for condition-case when you wish to ignore
|
|
838 file-related error. For example:
|
|
839
|
|
840 (ignore-file-errors (delete-file "foo"))
|
|
841
|
|
842 ** The first argument to `intern-soft' may now also be a symbol, like
|
|
843 with `unintern'. If given a symbol, `intern-soft' will look for that
|
|
844 exact symbol rather than for any string. This is useful when you want
|
|
845 to check whether a specific symbol is interned in an obarray, e.g.:
|
|
846
|
|
847 (intern "foo")
|
|
848 (intern-soft "foo")
|
|
849 => foo
|
|
850 (intern-soft (make-symbol "foo"))
|
|
851 => nil
|
|
852
|
428
|
853 ** The `keywordp' function now returns non-nil only on symbols
|
|
854 interned in the global obarray. For example:
|
|
855
|
|
856 (keywordp (intern ":foo" [0]))
|
|
857 => nil
|
|
858 (keywordp (intern ":foo")) ; The same as (keywordp :foo)
|
|
859 => t
|
|
860
|
442
|
861 This behavior is compatible with other code which treats symbols
|
428
|
862 beginning with colon as keywords only if they are interned in the
|
464
|
863 global obarray. `keywordp' used to wrongly return t in both above
|
|
864 cases.
|
|
865
|
|
866 ** The function `replace-in-string' has been rewritten to use
|
|
867 `replace-match'. This not only makes it much faster, but adds all the
|
|
868 features of `replace-match'.
|
428
|
869
|
442
|
870 ** New variables `this-command-properties' and
|
|
871 `last-command-properties' are now available for communication between
|
|
872 consecutive commands. Commands should use these to communicate with
|
|
873 the pre/post-command hooks, subsequent commands, wrapping commands,
|
|
874 etc. in preference to looking at and/or setting `this-command'.
|
|
875
|
|
876 ** New functions `add-one-shot-hook' and `add-local-one-shot-hook' make
|
|
877 it possible to add a "one-shot" hook, which is to say a hook that runs
|
|
878 only once, and automatically removes itself after the first time it
|
|
879 has run.
|
|
880
|
|
881 ** The descriptor that specifies the text of a menu item can now be an
|
464
|
882 evaluated expression. This makes it parallel with other descriptors,
|
|
883 which can also be expressions.
|
442
|
884
|
428
|
885
|
|
886 * Changes in XEmacs 21.0
|
|
887 ========================
|
|
888
|
|
889 ** XEmacs has been unbundled into constituent installable packages.
|
|
890 See the Info documentation under "Packages" for more information.
|
|
891 See the file `etc/PACKAGES' in the distribution for a partial list of
|
|
892 packages available at the time of the 21.0 release.
|
|
893
|
|
894 ** XEmacs is now supported under Microsoft Windows 95/98 and Windows
|
|
895 NT operating systems. For starters, look at the XEmacs on Windows FAQ
|
|
896 at <URL:http://jagor.srce.hr/~hniksic/xemacs-on-windows-faq.txt>. To
|
|
897 discuss Windows-specific issues, subscribe to the mailing list at
|
|
898 <xemacs-nt-request@xemacs.org>.
|
|
899
|
|
900 ** XEmacs will now use `XEmacs' as its application class if it finds
|
|
901 any `XEmacs' resources in the resource database. Otherwise, it will
|
|
902 continue to use the `Emacs' class.
|
|
903
|
|
904 ** The options menu has been ported to Custom.
|
|
905 This means that each entry in the options menu acts as if you had customized
|
|
906 the corresponding variable by hand. ### WARNING: there is currently no
|
|
907 upgrading function to help you port your old options settings to the new
|
|
908 format. Consequently, if you want to modify the options for XEmacs 21, you
|
|
909 will have to set them all again through the menu, and remove the code loading
|
|
910 .xemacs-options from your .emacs.
|
|
911
|
|
912 ** When the Zmacs region is active, `M-x query-replace' and the other
|
|
913 replace commands now operate on the region contents only.
|
|
914
|
|
915 ** XEmacs now is able to choose X visuals and use private colormaps.
|
|
916 The '-visual <visualStr>' command line option or the '.EmacsVisual'
|
|
917 Xresource controls which visual XEmacs will use, and
|
|
918 '-privateColormap' or '.privateColormap' will force XEmacs to create a
|
|
919 private colormap for use. The syntax for the visual string is
|
|
920 "<visual><bitdepth>" where <visual> is one of 'StaticColor',
|
|
921 'TrueColor', 'GrayScale', 'PseudoColor' or 'DirectColor' and
|
|
922 <bitdepth> is the appropriate number of bits per pixel. If an invalid
|
|
923 or non-supported combination is entered, XEmacs attempts to find a happy
|
|
924 medium. The X creation mechanism will then determine if it needs to
|
|
925 create a colormap for use, or the presence of the private flags will
|
|
926 force it to create it.
|
|
927
|
|
928 ** The `imenu' package has been ported to XEmacs and is available as a
|
|
929 package.
|
|
930
|
|
931 ** `echo-keystrokes' can now be a floating-point number, so that you
|
|
932 can set it to intervals shorter than one second.
|
|
933
|
|
934 (setq echo-keystrokes 0.1)
|
|
935
|
|
936 ** The new command `center-to-window-line' works like `recenter'
|
|
937 (bound to `C-l'), only it does not redisplay the whole display area.
|
|
938
|
|
939 ** The M-. command will now first search through exact tags matches,
|
|
940 and then through inexact matches, as one would expect.
|
|
941
|
|
942 ** The new variable `user-full-name' can be used to customize one's
|
|
943 name when using the Emacs mail and news reading facilities.
|
|
944
|
|
945 Normally, `user-full-name' is a function that returns the full name of
|
|
946 a user or UID, as specified by the system -- for instance,
|
|
947 (user-full-name "root") returns something like "Super-User". However,
|
|
948 when the function is called without arguments, it will return the
|
|
949 value of the `user-full-name' variable. The `user-full-name' variable
|
|
950 is initialized using the environment variable NAME and (failing that)
|
|
951 the user's system name.
|
|
952
|
|
953 The behavior of the `user-full-name' function with an argument
|
|
954 specified is unchanged.
|
|
955
|
|
956 ** The new command `M-x customize-changed-options' lets you customize
|
|
957 all the options whose default values have changed in recent Emacs
|
|
958 versions. You specify a previous Emacs version number as argument,
|
|
959 and the command creates a customization buffer showing all the
|
|
960 customizable options whose default values were changed since that
|
|
961 version.
|
|
962
|
|
963 If you don't specify a particular version number argument, then the
|
|
964 customization buffer shows all the customizable options for which
|
|
965 Emacs versions of changes are recorded.
|
|
966
|
|
967 ** The new command `add-log-convert' can be used to convert the
|
|
968 old-style (pre-20.3) ChangeLog buffers to new style, for
|
|
969 consistency. A reminder: if you wish to revert to old-style
|
|
970 ChangeLogs instead, customize the value of `add-log-time-format'
|
|
971 variable.
|
|
972
|
|
973 ** The new command `zap-up-to-char' is now available. It is similar
|
|
974 to `zap-to-char', except that it does not delete the searched-for
|
|
975 character. It is not bound to a key by default.
|
|
976
|
|
977 ** You can now store a number into a register with `C-u NUMBER C-x r n'
|
|
978 REG, increment it by INC with `C-u INC C-x r + REG' (to increment by
|
|
979 one, omit C-u INC), and insert it in the buffer with `C-x r g REG'.
|
|
980 This is useful for writing keyboard macros.
|
|
981
|
|
982 ** The M-: command, when given a prefix argument, will now insert its
|
|
983 result to the current buffer.
|
|
984
|
|
985 ** The `C-h c' command, when given a prefix argument, will now insert
|
|
986 the message into the current buffer.
|
|
987
|
|
988 ** Horizontally split windows may now be dragged using the mouse.
|
|
989 Because of this, the dividers between vertical windows are always
|
|
990 visible. To turn it off, set `vertical-divider-always-visible-p' to
|
|
991 nil.
|
|
992
|
|
993 ** XEmacs/Mule (internationalization) changes.
|
|
994
|
|
995 *** Mule support now works on TTY's. Use `set-terminal-coding-system'
|
|
996 and `set-keyboard-coding-system' to specify the coding system of your
|
|
997 display and keyboard.
|
|
998
|
|
999 *** Egg/SJ3 input method is now officially supported. Quail and
|
|
1000 Egg/Skk have been available through the generalized Leim since 20.3.
|
|
1001
|
|
1002 *** Localized Japanese menubars are available if XEmacs is built with
|
|
1003 XFONTSET and either the X11 libraries are built with X_LOCALE defined
|
|
1004 or the native C libraries support Japanese localization. This has
|
|
1005 been available since 20.3, only it hasn't been announced before.
|
|
1006
|
|
1007 ** Jamie Zawinski's `gdb-highlight' extension is now distributed with
|
|
1008 the `debug' package. gdb-highlight makes most objects printed in a
|
|
1009 gdb buffer be mouse-sensitive: as text shows up in the buffer, it is
|
|
1010 parsed, and objects which are recognized have context-sensitive
|
|
1011 commands attached to them. To use it, add the following to `.emacs':
|
|
1012
|
|
1013 (add-hook 'gdb-mode-hook (lambda () (require 'gdb-highlight)))
|
|
1014
|
|
1015 ** The package popper.el is now included in the edit-utils package.
|
|
1016 It has been greatly enhanced with respect to the one once included
|
|
1017 with the ilisp package and should work well under XEmacs 21.0.
|
|
1018
|
|
1019 ** Gnuserv changes
|
|
1020
|
|
1021 *** Like the old 'gnudoit' program. Gnuclient -batch now can read from stdin.
|
|
1022
|
|
1023 *** Gnuclient -batch no longer breaks off the output at the first LF.
|
|
1024
|
|
1025 ** C mode changes
|
|
1026
|
|
1027 *** Multiline macros are now handled, both as they affect indentation,
|
|
1028 and as recognized syntax. New syntactic symbol cpp-macro-cont is
|
|
1029 assigned to second and subsequent lines of a multiline macro
|
|
1030 definition.
|
|
1031
|
|
1032 *** A new style "user" which captures all non-hook-ified
|
|
1033 (i.e. top-level) .emacs file variable setings and customizations.
|
|
1034 Style "cc-mode" is an alias for "user" and is deprecated. "gnu" style
|
|
1035 is still the default however.
|
|
1036
|
|
1037 *** "java" style now conforms to Sun's JDK coding style.
|
|
1038
|
|
1039 *** There are new commands c-beginning-of-defun, c-end-of-defun which
|
|
1040 are alternatives which you could bind to C-M-a and C-M-e if you prefer
|
|
1041 them. They do not have key bindings by default.
|
|
1042
|
|
1043 *** New and improved implementations of M-a (c-beginning-of-statement)
|
|
1044 and M-e (c-end-of-statement).
|
|
1045
|
|
1046 *** C++ namespace blocks are supported, with new syntactic symbols
|
|
1047 namespace-open, namespace-close, and innamespace.
|
|
1048
|
|
1049 *** File local variable settings of c-file-style and c-file-offsets
|
|
1050 makes the style variables local to that buffer only.
|
|
1051
|
|
1052 *** New indentation functions c-lineup-close-paren,
|
|
1053 c-indent-one-line-block, c-lineup-dont-change.
|
|
1054
|
|
1055 *** Improvements (hopefully!) to the way CC Mode is loaded. You
|
|
1056 should now be able to do a (require 'cc-mode) to get the entire
|
|
1057 package loaded properly for customization in your .emacs file. A new
|
|
1058 variable c-initialize-on-load controls this and is t by default.
|
|
1059
|
|
1060 ** In Text mode, now only blank lines separate paragraphs.
|
|
1061 This makes it possible to get the full benefit of Adaptive Fill mode
|
|
1062 in Text mode, and other modes derived from it (such as Mail mode).
|
|
1063 TAB in Text mode now runs the command indent-relative; this makes a
|
|
1064 practical difference only when you use indented paragraphs.
|
|
1065
|
|
1066 As a result, the old Indented Text mode is now identical to Text mode,
|
|
1067 and is an alias for it.
|
|
1068
|
|
1069 If you want spaces at the beginning of a line to start a paragraph,
|
|
1070 use the new mode, Paragraph Indent Text mode.
|
|
1071
|
|
1072 ** Changes to Gnus, the XEmacs newsreader.
|
|
1073
|
|
1074 *** New functionality for using Gnus as an offline newsreader has been
|
|
1075 added. A plethora of new commands and modes have been added. See the
|
|
1076 Gnus manual for the full story.
|
|
1077
|
|
1078 *** The nndraft backend has returned, but works differently than
|
|
1079 before. All Message buffers are now also articles in the nndraft
|
|
1080 group, which is created automatically.
|
|
1081
|
|
1082 *** `gnus-alter-header-function' can now be used to alter header
|
|
1083 values.
|
|
1084
|
|
1085 *** `gnus-summary-goto-article' now accept Message-ID's.
|
|
1086
|
|
1087 *** A new Message command for deleting text in the body of a message
|
|
1088 outside the region: `C-c C-v'.
|
|
1089
|
|
1090 *** You can now post to component group in nnvirtual groups with
|
|
1091 `C-u C-c C-c'.
|
|
1092
|
|
1093 *** `nntp-rlogin-program' -- new variable to ease customization.
|
|
1094
|
|
1095 *** `C-u C-c C-c' in `gnus-article-edit-mode' will now inhibit
|
|
1096 re-highlighting of the article buffer.
|
|
1097
|
|
1098 *** New element in `gnus-boring-article-headers' -- `long-to'.
|
|
1099
|
|
1100 *** `M-i' symbolic prefix command. See the section "Symbolic
|
|
1101 Prefixes" in the Gnus manual for details.
|
|
1102
|
|
1103 *** `L' and `I' in the summary buffer now take the symbolic prefix
|
|
1104 `a' to add the score rule to the "all.SCORE" file.
|
|
1105
|
|
1106 *** `gnus-simplify-subject-functions' variable to allow greater
|
|
1107 control over simplification.
|
|
1108
|
|
1109 *** `A T' -- new command for fetching the current thread.
|
|
1110
|
|
1111 *** `/ T' -- new command for including the current thread in the
|
|
1112 limit.
|
|
1113
|
|
1114 *** `M-RET' is a new Message command for breaking cited text.
|
|
1115
|
|
1116 *** \\1-expressions are now valid in `nnmail-split-methods'.
|
|
1117
|
|
1118 *** The `custom-face-lookup' function has been removed.
|
|
1119 If you used this function in your initialization files, you must
|
|
1120 rewrite them to use `face-spec-set' instead.
|
|
1121
|
|
1122 *** Cancelling now uses the current select method. Symbolic prefix
|
|
1123 `a' forces normal posting method.
|
|
1124
|
|
1125 *** New command to translate M******** sm*rtq**t*s into proper text
|
|
1126 -- `W d'.
|
|
1127
|
|
1128 *** For easier debugging of nntp, you can set `nntp-record-commands'
|
|
1129 to a non-nil value.
|
|
1130
|
|
1131 *** nntp now uses ~/.authinfo, a .netrc-like file, for controlling
|
|
1132 where and how to send AUTHINFO to NNTP servers.
|
|
1133
|
|
1134 *** A command for editing group parameters from the summary buffer
|
|
1135 has been added.
|
|
1136
|
|
1137 *** A history of where mails have been split is available.
|
|
1138
|
|
1139 *** A new article date command has been added -- `article-date-iso8601'.
|
|
1140
|
|
1141 *** Subjects can be simplified when threading by setting
|
|
1142 `gnus-score-thread-simplify'.
|
|
1143
|
|
1144 *** A new function for citing in Message has been added --
|
|
1145 `message-cite-original-without-signature'.
|
|
1146
|
|
1147 *** `article-strip-all-blank-lines' -- new article command.
|
|
1148
|
|
1149 *** A new Message command to kill to the end of the article has
|
|
1150 been added.
|
|
1151
|
|
1152 *** A minimum adaptive score can be specified by using the
|
|
1153 `gnus-adaptive-word-minimum' variable.
|
|
1154
|
|
1155 *** The "lapsed date" article header can be kept continually
|
|
1156 updated by the `gnus-start-date-timer' command.
|
|
1157
|
|
1158 *** Web listserv archives can be read with the nnlistserv backend.
|
|
1159
|
|
1160 *** Old dejanews archives can now be read by nnweb.
|
|
1161
|
|
1162 *** Byte-compilation of user-specs now works under XEmacs.
|
|
1163
|
|
1164 ** The `dir' files are no longer essential for functioning of the Info
|
|
1165 subsystem. If the `dir' file does not exist in an Info directory, the
|
|
1166 relevant information will be generated on-the-fly.
|
|
1167
|
|
1168 This behavior can be customized, look for `Info-auto-generate-directory'
|
|
1169 and `Info-save-auto-generated-dir' in the `info' customization group.
|
|
1170
|
|
1171
|
|
1172 * Lisp and internal changes in XEmacs 21.0
|
|
1173 ==========================================
|
|
1174
|
|
1175 ** It is now possible to build XEmacs with support for 31-bit Lisp
|
|
1176 integers (normally, Lisp integers are only 28 bits wide on 32-bit
|
|
1177 machines.) Configure with --use-minimal-tagbits to test. With this
|
|
1178 change, the maximum buffer size on 32-bit machines is increased from
|
|
1179 128M to 1G. This setting will be made default in a future XEmacs
|
|
1180 version.
|
|
1181
|
|
1182 ** Specifier changes.
|
|
1183
|
|
1184 *** When instantiating a specifier, the window locale now has a higher
|
|
1185 precedence than the buffer locale. This is because the window locale
|
|
1186 is more specific than the buffer locale.
|
|
1187
|
|
1188 *** The new macro `let-specifier' can be used to temporarily add
|
|
1189 specifications to specifiers. See the documentation for details.
|
|
1190
|
|
1191 *** The new specifiers `vertical-scrollbar-visible-p' and
|
|
1192 `horizontal-scrollbar-visible-p' may be used to control scrollbar
|
|
1193 visibility. Previously, the only way to remove a scrollbar was to set
|
|
1194 its size to 0. This method is still supported for backward
|
|
1195 compatibility.
|
|
1196
|
|
1197 *** The new specifiers `scrollbar-on-left-p' and `scrollbar-on-top-p'
|
|
1198 may be used to control the position of the vertical and horizontal
|
|
1199 toolbar. Previously, their position could be changed only through the
|
|
1200 use of X resources.
|
|
1201
|
|
1202 *** The new draggable vertical dividers between windows may be turned
|
|
1203 off using the `vertical-divider-always-visible-p' specifier. When
|
|
1204 this is set to nil, the vertical dividers between windows are shown
|
|
1205 only when needed, and they are not draggable.
|
|
1206
|
|
1207 Other properties of the vertical dividers may be controlled using
|
|
1208 `vertical-divider-shadow-thickness', `vertical-divider-line-width' and
|
|
1209 `vertical-divider-spacing' specifiers, which see.
|
|
1210
|
|
1211 ** Frame focus management changes.
|
|
1212
|
|
1213 *** When the variable focus-follows-mouse is non-nil, `select-frame'
|
|
1214 no longer permanently selects a different frame. The frame selection
|
|
1215 is temporary and is reverted when the current command terminates, much
|
|
1216 like the buffer selected by `set-buffer'. This is the same as in FSF
|
|
1217 Emacs.
|
|
1218
|
|
1219 *** The new function `focus-frame' sets the window system focus to
|
|
1220 FRAME (and selects it), regardless of the value of
|
|
1221 `focus-follows-mouse'. Doing this is not well behaved, so be
|
|
1222 absolutely sure that you want this.
|
|
1223
|
|
1224 The code that uses `select-frame' only to get the window manager focus
|
|
1225 should be changed to use `set-frame-focus' instead, so that they keep
|
|
1226 working when `focus-follows-mouse' is non-nil.
|
|
1227
|
|
1228 *** The special forms `save-selected-frame' and `with-selected-frame'
|
|
1229 can now be used to temporarily change selected frame.
|
|
1230
|
|
1231 *** The behavior of `other-frame' command (`C-x 5 o') is unaffected by
|
|
1232 these changes.
|
|
1233
|
|
1234 ** The function `select-window' now has an optional second argument
|
|
1235 NORECORD which if non-nil inhibits the recording of a buffer change.
|
|
1236
|
|
1237 ** The function `vertical-motion' now correctly handles the second,
|
|
1238 optional WINDOW argument. A new third argument PIXELS, if non-nil,
|
|
1239 indicates that the returned motion should be in pixels.
|
|
1240
|
|
1241 ** The new function `vertical-motion-pixels' is similar to
|
|
1242 vertical-motion but takes as input a vertical motion in pixels.
|
|
1243
|
|
1244 ** The new functions window-text-area-pixel-{width,height,edges} can
|
|
1245 be used to obtain information about the text-displaying area of a
|
|
1246 window.
|
|
1247
|
|
1248 ** The new functions `shrink-window-pixels' and `enlarge-window-pixels'
|
|
1249 can be used to adjust the size of a window by a pixel amount.
|
|
1250
|
|
1251 ** The new function `window-displayed-text-pixel-height' can be used
|
|
1252 to determine the height of the text actually displayed in a window.
|
|
1253
|
|
1254 ** The arithmetic comparison functions <, >, =, /= now accept a
|
|
1255 variable number of arguments.
|
|
1256
|
|
1257 This means that if you want to test whether A < B < C, you can write
|
|
1258 it as (< A B C) instead of (and (< A B) (< B C)). Likewise,
|
|
1259 (apply #'> LIST) now tests if LIST is monotonously increasing -- and
|
|
1260 so on.
|
|
1261
|
|
1262 ** The XEmacs hashtables now have a consistent read/print syntax.
|
|
1263 This means that a hashtable will be readably printed in a
|
|
1264 structure-like form:
|
|
1265
|
|
1266 #s(hashtable size 2 data (key1 value1 key2 value2))
|
|
1267
|
|
1268 When XEmacs reads this form, it will create a new hashtable according
|
|
1269 to description. This allows you to easily dump hashtables to files
|
|
1270 using `prin1', and read them back in using `read'.
|
|
1271
|
|
1272 If `print-readably' is non-nil, a more relaxed syntax is used; for
|
|
1273 instance:
|
|
1274
|
|
1275 #<hashtable size 2/13 data (key1 value1 key2 value2) 0x874d>
|
|
1276
|
|
1277 ** It is now possible to build XEmacs with LDAP support.
|
|
1278 You will need to install a LDAP library first. The following have
|
|
1279 been tested:
|
|
1280 - LDAP 3.3 from the University of Michigan
|
|
1281 (get it from <URL:http://www.umich.edu/~dirsvcs/ldap/>)
|
|
1282 - OpenLDAP 1.0.3 from the OpenLDAP Foundation
|
|
1283 (get it from <URL:http://www.openldap.org/>)
|
|
1284 - LDAP SDK 1.0 from Netscape Corp.
|
|
1285 (get it from <URL:http://developer.netscape.com/>)
|
|
1286
|
|
1287 ** When profiling is in effect, a call-count of all recorded functions
|
|
1288 is now calculated. This information is stored in
|
|
1289 `call-count-profile-table', and is utilized by `profile-results' as
|
|
1290 well as the new command `profile-call-count-results'.
|
|
1291
|
|
1292 ** It is now an error to change the value of a symbol whose name
|
|
1293 starts with a colon, if it is interned in the standard obarray.
|
|
1294
|
|
1295 However, setting such a symbol to its proper value, which is that
|
|
1296 symbol itself, is not an error. This is for the sake of programs that
|
|
1297 support pre-19.12 XEmacs and pre-20 GNU Emacs by explicitly setting
|
|
1298 these variables to themselves.
|
|
1299
|
|
1300 ** The `concat' function no longer accepts integer arguments.
|
|
1301
|
|
1302 ** The new function `string' concatenates all its argument characters
|
|
1303 and returns the resulting string. This is consistent with other
|
|
1304 functions, like `list', `vector', etc.
|
|
1305
|
|
1306 ** The function `temp-directory' is now available to return the
|
|
1307 directory to store temporary files. On Unix this will be obtained
|
|
1308 from TMPDIR, defaulting to `/tmp'.
|
|
1309
|
|
1310 ** The function load-average now accepts an optional argument
|
|
1311 USE-FLOATS. If it is non-nil, the load average values are returned as
|
|
1312 floating point numbers, rather than as integers to be divided by 100.
|
|
1313
|
|
1314 ** The `make-event' function now supports the TYPE and PLIST
|
|
1315 arguments, which can be used to create various events from Lisp. See
|
|
1316 the documentation for details.
|
|
1317
|
|
1318 ** `function-interactive' is a new function that returns the
|
|
1319 interactive specification of a funcallable object.
|
|
1320
|
|
1321 ** The new `lmessage' function allows printing of a formatted message
|
|
1322 with a particular label.
|
|
1323
|
|
1324 (lmessage 'progress "Processing... %d" counter)
|
|
1325
|
|
1326 This function is more convenient than `display-message' because it
|
|
1327 automatically applies `format' to its arguments.
|
|
1328
|
|
1329 ** The new `lwarn' function, analogous to `lmessage', allows printing
|
|
1330 a formatted warning, with a non-default CLASS or LABEL.
|
|
1331
|
|
1332 ** The new function `split-path' can now be used to explode the
|
|
1333 components of a colon-separated search path into a list.
|
|
1334
|
|
1335 (split-path "foo:bar")
|
|
1336 => ("foo" "bar")
|
|
1337
|
|
1338 ** Specifiers and symbols whose value is a specifier are now allowed
|
|
1339 as modeline specifications.
|
|
1340
|
|
1341 ** defcustom now accepts the keyword `:version'. Use this to specify
|
|
1342 in which version of Emacs a certain variable's default value changed.
|
|
1343 For example,
|
|
1344
|
|
1345 (defcustom foo-max 34 "*Maximum number of foo's allowed."
|
|
1346 :type 'integer
|
|
1347 :group 'foo
|
|
1348 :version "21.0")
|
|
1349
|
|
1350 This information is used to control the customize-changed-options
|
|
1351 command.
|
|
1352
|
|
1353 ** The line number tracking in modeline is now efficient, even for
|
|
1354 very large buffers. This is achieved by caching the line numbers of
|
|
1355 recent buffer positions, and reusing them. This cache is used only in
|
|
1356 the buffers where `line-number-mode' is in effect.
|
|
1357
|
|
1358 ** When the new GNU Malloc aka Doug Lea Malloc is available, it will
|
|
1359 be used. This should result in better performance on Linux systems
|
|
1360 with libc6.
|
|
1361
|
|
1362 ** The code XEmacs uses to assemble its various paths into the
|
|
1363 directory hierarchy has been rewritten to support the package system.
|
|
1364 Look under "Startup Paths" in the Info documentation for more
|
|
1365 information.
|
|
1366
|
|
1367 *** site-lisp is no longer part of the load-path by default.
|
|
1368 Its use is deprecated, but you can specify --with-site-lisp=yes at the
|
|
1369 configure command line to get it back.
|
|
1370
|
|
1371 *** `Info-default-directory-list' is now obsolete. If you want to
|
|
1372 change the path which XEmacs uses to search for info files, set
|
|
1373 `Info-directory-list' instead.
|
464
|
1374
|
|
1375
|
|
1376 * For older news, see the file ONEWS.
|