Emacs Lisp manual updates.
[bpt/emacs.git] / etc / NEWS
1 GNU Emacs NEWS -- history of user-visible changes.
2
3 Copyright (C) 2010-2012 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
5
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
8
9 This file is about changes in Emacs version 24.
10
11 See files NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
12 and NEWS.1-17 for changes in older Emacs versions.
13
14 You can narrow news to a specific version by calling `view-emacs-news'
15 with a prefix argument or by typing C-u C-h C-n.
16
17
18 Temporary note:
19 +++ indicates that the appropriate manual has already been updated.
20 --- means no change in the manuals is called for.
21 When you add a new item, please add it without either +++ or ---
22 so we will look at it and add it to the manual.
23
24 \f
25 * Installation Changes in Emacs 24.1
26
27 ** Configure links against libselinux if it is found.
28 You can disable this by using --without-selinux.
29
30 ---
31 ** By default, the installed Info and man pages are compressed.
32 You can disable this by configuring --without-compress-info.
33
34 ---
35 ** There are new configure options:
36 --with-mmdf, --with-mail-unlink, --with-mailhost.
37 These provide no new functionality, they just remove the need to edit
38 lib-src/Makefile by hand in order to use the associated features.
39
40 ---
41 ** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
42 to configure. Note that other libraries used by Emacs, RSVG and GConf,
43 also depend on Gtk+. You can disable them with --without-rsvg and
44 --without-gconf.
45
46 ---
47 ** There is a new configure option --enable-use-lisp-union-type.
48 This is only useful for Emacs developers to debug certain types of bugs.
49 This is not a new feature; only the configure flag is new.
50
51 ---
52 ** There is a new configure option --with-wide-int.
53 With it, Emacs integers typically have 62 bits, even on 32-bit machines.
54 On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB
55 to about 2 GiB.
56
57 ---
58 ** New translation of the Emacs Tutorial in Hebrew is available.
59 Type `C-u C-h t' to choose it in case your language setup doesn't
60 automatically select it.
61
62 ** Emacs can be compiled with ImageMagick support.
63 Emacs links to ImageMagick if version 6.2.8 or newer of the library is
64 present at build time. To inhibit ImageMagick, use the configure
65 option `--without-imagemagick' .
66
67 ---
68 ** The standalone programs digest-doc and sorted-doc are removed.
69 Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
70
71 ---
72 ** The standalone program `fakemail' is removed.
73 If you need it, feedmail.el provides a superset of the functionality.
74
75 \f
76 * Startup Changes in Emacs 24.1
77
78 ---
79 ** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte
80 command line arguments, and the EMACS_UNIBYTE environment variable, no
81 longer have any effect. (They were declared obsolete in Emacs 23.)
82
83 +++
84 ** New command line option `--no-site-lisp' removes site-lisp directories
85 from load-path. -Q now implies this.
86
87 \f
88 * Changes in Emacs 24.1
89
90 +++
91 ** auto-mode-case-fold is now enabled by default.
92
93 ** Completion
94
95 *** shell-mode uses pcomplete rules, with the standard completion UI.
96 +++
97 *** Many packages have been changed to use `completion-at-point'
98 rather than their own completion code.
99 +++
100 *** `completion-at-point' now handles tags and semantic completion.
101 ---
102 *** Completion in a non-minibuffer now tries to detect the end of completion
103 and pops down the *Completions* buffer accordingly.
104 +++
105 *** Completion can cycle, depending on completion-cycle-threshold.
106 +++
107 *** New completion style `substring'.
108 +++
109 *** Completion style can be set per-category `completion-category-overrides'.
110 +++
111 *** Completion of buffers now uses substring completion by default.
112
113 ** Mail changes
114
115 +++
116 *** The default of `send-mail-function' is now `sendmail-query-once',
117 which asks the user (once) whether to use the smtpmail package to send
118 email, or to use the old defaults that rely on external mail
119 facilities (`sendmail-send-it' on GNU/Linux and other Unix-like
120 systems, and `mailclient-send-it' on Windows).
121
122 *** smtpmail changes
123
124 **** smtpmail now uses encrypted connections (via STARTTLS) if the
125 mail server supports them. It also uses the auth-source framework for
126 getting credentials.
127
128 **** The variable `smtpmail-auth-credentials' has been removed.
129 That variable used to have the default value "~/.authinfo", in which
130 case you won't see any difference. But if you changed it to be a list
131 of user names and passwords, that setting is now ignored; you will be
132 prompted for the user name and the password, which will then be saved
133 to ~/.authinfo. (To control where and how the credentials are stored,
134 see the auth-source manual. You may want to change the auth-source
135 preferences if you want to store the credentials encrypted, for
136 instance.)
137
138 You can also manually copy the credentials to your ~/.authinfo file.
139 For example, if you had
140
141 (setq smtpmail-auth-credentials
142 '(("mail.example.org" 25 "jim" "s!cret")))
143
144 then the equivalent line in ~/.authinfo would be
145
146 machine mail.example.org port 25 login jim password s!cret
147
148 **** The variable `smtpmail-starttls-credentials' has been removed.
149
150 If you had that set, then you need to put
151
152 machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
153
154 in your ~/.authinfo file instead.
155
156 *** Mail mode changes (this is the old Mail mode, not Message mode)
157 +++
158 **** New command `mail-add-attachment' for adding MIME attachments
159 ---
160 **** The command `mail-attach-file' was renamed to `mail-insert-file'.
161 The old name is now an obsolete alias to the new name.
162
163 ** Emacs server and client changes
164 +++
165 *** New option `server-port' specifies the port on which the Emacs
166 server should listen.
167 +++
168 *** New emacsclient argument -q/--quiet suppresses some status messages.
169 +++
170 *** New emacsclient argument --frame-parameters can be used to set the
171 frame parameters of a newly-created graphical frame.
172 +++
173 *** If emacsclient shuts down as a result of Emacs signaling an
174 error, its exit status is 1.
175 +++
176 *** New emacsclient argument --parent-id ID.
177 This opens a client frame in parent X window ID, via XEmbed, similar
178 to the --parent-id argument to Emacs.
179
180 ** Internationalization changes
181
182 +++
183 *** Emacs now supports display and editing of bidirectional text.
184
185 Text that includes characters from right-to-left (RTL) scripts, such
186 as Arabic, Farsi, or Hebrew, is displayed in the correct visual order
187 as expected by users of those scripts. This display reordering is a
188 "Full bidirectionality" class implementation of the Unicode
189 Bidirectional Algorithm. Buffers with no RTL text should look exactly
190 the same as before.
191
192 For more information, see the node "Bidirectional Editing" in the
193 Emacs Manual.
194
195 +++
196 **** New buffer-local variable `bidi-display-reordering'.
197 To disable display reordering in any given buffer, change this to nil.
198
199 +++
200 **** New buffer-local variable `bidi-paragraph-direction'.
201 If nil (the default), Emacs determines the base direction of each
202 paragraph from its text, as specified by the Unicode Bidirectional
203 Algorithm.
204
205 Setting this to `right-to-left' or `left-to-right' forces a particular
206 base direction on each paragraph in the buffer.
207
208 Paragraphs whose base direction is right-to-left are displayed
209 starting at the right margin of the window.
210
211 +++
212 *** Enhanced support for characters with no glyphs in available fonts.
213 If a character has no glyphs in any of the available fonts, Emacs
214 normally displays it either as a hexadecimal code in a box or as a
215 thin 1-pixel space. In addition to these two methods, Emacs can
216 display these characters as empty box, as an acronym, or not display
217 them at all. To change how these characters are displayed, customize
218 the variable `glyphless-char-display-control'.
219
220 On character terminals, these methods are used for characters that
221 cannot be encoded by the `terminal-coding-system'.
222
223 ---
224 *** New input methods for Farsi: farsi and farsi-translit.
225
226 +++
227 *** `nobreak-char-display' now also highlights Unicode hyphen chars
228 (U+2010 and U+2011).
229
230 ** Improved GTK integration
231 +++
232 *** GTK scroll-bars are now placed on the right by default.
233 Use `set-scroll-bar-mode' to change this.
234 +++
235 *** GTK tool bars can have just text, just images or images and text.
236 Customize `tool-bar-style' to choose style. On a Gnome desktop, the default
237 is taken from the desktop settings.
238 ---
239 *** GTK tool bars can be placed on the left/right or top/bottom of the frame.
240 The frame-parameter tool-bar-position controls this. It takes the values
241 top, left, right or bottom. The Options => Show/Hide menu has entries
242 for this.
243 +++
244 *** The colors for selected text (the `region' face) are taken from
245 the GTK theme when Emacs is built with GTK.
246 +++
247 *** Emacs uses GTK tooltips by default if built with GTK. You can turn that
248 off by customizing x-gtk-use-system-tooltips.
249
250 +++
251 ** New basic faces `error', `warning', `success' are available to
252 highlight strings that indicate failure, caution or successful operation.
253
254 ---
255 ** Lucid menus and dialogs can display antialiased fonts if Emacs is built
256 with Xft. To change font, use the X resource font, for example:
257 Emacs.pane.menubar.font: Courier-12
258
259 +++
260 ** On graphical displays, the mode-line no longer ends in dashes.
261 Also, the first dash (which does not indicate anything) is just
262 displayed as a space.
263
264 ** Basic SELinux support has been added.
265 This requires Emacs to be linked with libselinux at build time.
266
267 *** Emacs preserves the SELinux file context when backing up, and
268 optionally when copying files. To this end, copy-file has an extra
269 optional argument, and backup-buffer and friends include the SELinux
270 context in their return values.
271
272 *** The new functions file-selinux-context and set-file-selinux-context
273 get and set the SELinux context of a file.
274 ---
275 *** Tramp offers handlers for file-selinux-context and set-file-selinux-context
276 for remote machines which support SELinux.
277
278 ** Changes for exiting Emacs
279 +++
280 *** The function kill-emacs is now run upon receipt of the signals
281 SIGTERM and SIGHUP, and upon SIGINT in batch mode.
282 +++
283 *** kill-emacs-hook is now also run in batch mode.
284 If you have code that adds something to kill-emacs-hook, you should
285 consider if it is still appropriate to add it in the noninteractive case.
286
287 ** Scrolling changes
288 +++
289 *** New scrolling commands `scroll-up-command' and `scroll-down-command'
290 (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
291 of buffer at first key-press (instead move to top/bottom of buffer)
292 when `scroll-error-top-bottom' is non-nil.
293 +++
294 *** New variable `scroll-error-top-bottom' (see above).
295 +++
296 *** New scrolling commands `scroll-up-line' and `scroll-down-line'
297 scroll a line instead of full screen.
298 +++
299 *** New property `scroll-command' should be set on a command's symbol to
300 define it as a scroll command affected by `scroll-preserve-screen-position'.
301 +++
302 *** If you customize `scroll-conservatively' to a value greater than 100,
303 Emacs will never recenter point in the window when it scrolls due to
304 cursor motion commands or commands that move point (e.f., `M-g M-g').
305 Previously, you needed to use `most-positive-fixnum' as the value of
306 `scroll-conservatively' to achieve the same effect.
307 ---
308 *** ``Aggressive'' scrolling now honors the scroll margins.
309 If you customize `scroll-up-aggressively' or
310 `scroll-down-aggressively' and move point off the window, Emacs now
311 scrolls the window so as to avoid positioning point inside the scroll
312 margin.
313
314 ** Trash changes
315 +++
316 *** `delete-by-moving-to-trash' now only affects commands that specify
317 trashing. This avoids inadvertently trashing temporary files.
318 +++
319 *** Calling `delete-file' or `delete-directory' with a prefix argument
320 now forces true deletion, regardless of `delete-by-moving-to-trash'.
321
322 ** New option `list-colors-sort' defines the color sort order
323 for `list-colors-display'.
324
325 ** An Emacs Lisp package manager is now included.
326 This is a convenient way to download and install additional packages,
327 from a package repository at http://elpa.gnu.org.
328 +++
329 *** `M-x list-packages' shows a list of packages, which can be
330 selected for installation.
331 +++
332 *** New command `describe-package', bound to `C-h P'.
333 +++
334 *** By default, all installed packages are loaded and activated
335 automatically when Emacs starts up. To disable this, set
336 `package-enable-at-startup' to nil. To change which packages are
337 loaded, customize `package-load-list'.
338
339 ** Custom Themes
340 +++
341 *** `M-x customize-themes' lists Custom themes which can be enabled.
342 +++
343 *** New option `custom-theme-load-path' is the load path for themes.
344 Emacs no longer looks for custom themes in `load-path'. The default
345 is to search in `custom-theme-directory', followed by a built-in theme
346 directory named "themes/" in `data-directory'.
347 +++
348 *** New option `custom-safe-themes' records known-safe theme files.
349 If a theme is not in this list, Emacs queries before loading it, and
350 offers to save the theme to `custom-safe-themes' automatically. By
351 default, all themes included in Emacs are treated as safe.
352
353 ** The user option `remote-file-name-inhibit-cache' controls whether
354 the remote file-name cache is used for read access.
355
356 ** File- and directory-local variable changes
357 +++
358 *** You can stop directory local vars from applying to subdirectories.
359 Add an element (subdirs . nil) to the alist portion of any variables
360 settings to indicate that the section should not apply to
361 subdirectories.
362 +++
363 *** Directory local variables can apply to some file-less buffers.
364 Affected modes include dired, vc-dir, and log-edit. For example,
365 adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
366 turn on `whitespace-mode' for *vc-diff* buffers. Modes should call
367 `hack-dir-local-variables-non-file-buffer' to support this.
368 +++
369 *** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
370 Instead, use "eval: (minor-mode 1)".
371
372 +++
373 *** The variable `inhibit-first-line-modes-regexps' has been renamed
374 to `inhibit-local-variables-regexps'. As the name suggests, it now
375 applies to ALL file local variables, not just -*- mode ones.
376 The associated `inhibit-first-line-modes-suffixes' has been renamed
377 in the corresponding way.
378
379 +++
380 ** The variable `focus-follows-mouse' now always defaults to nil.
381
382 ** New primitive `secure-hash' that supports many secure hash algorithms
383 including md5, sha-1 and sha-2 (sha-224, sha-256, sha-384 and sha-512).
384 The elisp implementation sha1.el is removed. Feature sha1 is provided
385 by default.
386
387 ** Menu-bar changes
388 ---
389 *** `menu-bar-select-buffer-function' lets you choose another operation
390 instead of `switch-to-buffer' when selecting an item in the Buffers menu.
391
392 ** Window changes
393
394 +++
395 *** Resizing an Emacs frame now preserves proportional window sizes,
396 modulo restrictions like window minimum sizes and fixed-size windows.
397
398 *** The behavior of `display-buffer' is now customizable in detail.
399 +++
400 **** New option `display-buffer-base-action' specifies a list of
401 user-determined display "actions" (functions and optional arguments
402 for choosing the displaying window).
403
404 This takes precedence over the default display action, which is
405 specified by `display-buffer-fallback-action'.
406
407 +++
408 **** New option `display-buffer-alist' maps buffer name regexps to
409 display actions, taking precedence over `display-buffer-base-action'.
410
411 +++
412 *** New option `window-combination-limit'.
413 The new option `window-combination-limit' allows to return the space
414 obtained for resizing or creating a window more reliably to the window
415 from which such space was obtained.
416
417 +++
418 *** New option `window-combination-resize'.
419 The new option `window-combination-resize' allows to split a window that
420 otherwise cannot be split because it's too small by stealing space from
421 other windows in the same combination. Subsequent resizing or deletion
422 of the window will resize all windows in the same combination as well.
423
424 +++
425 *** New commands `maximize-window' and `minimize-window'.
426 These maximize and minimize the size of a window within its frame.
427
428 +++
429 *** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'.
430 These functions allow to navigate through the live buffers that have
431 been shown in a specific window.
432
433 +++
434 *** New functions `window-state-get' and `window-state-put'.
435 These functions allow to save and restore the state of an arbitrary
436 frame or window as an Elisp object.
437
438 ** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
439 This is handy for minibuffer-only frames, and is also used for the "mouse-1
440 pops up *Messages*" feature, which can now easily be changed.
441
442 \f
443 * Editing Changes in Emacs 24.1
444
445 ** Search changes
446 +++
447 *** C-y in Isearch is now bound to isearch-yank-kill, instead of
448 isearch-yank-line.
449 +++
450 *** M-y in Isearch is now bound to isearch-yank-pop, instead of
451 isearch-yank-kill.
452 +++
453 *** M-s C-e in Isearch is now bound to isearch-yank-line.
454
455 +++
456 ** New commands `count-words-region' and `count-words'.
457
458 *** `count-lines-region' is now an alias for `count-words-region',
459 bound to M-=, which shows the number of lines, words, and characters.
460
461 +++
462 ** The default value of `backup-by-copying-when-mismatch' is now t.
463
464 +++
465 ** The command `just-one-space' (M-SPC), if given a negative argument,
466 also deletes newlines around point.
467
468 ** Deletion changes
469 +++
470 *** New option `delete-active-region'.
471 If non-nil, [delete] and DEL delete the region if it is active and no
472 prefix argument is given. If set to `kill', these commands kill
473 instead.
474 +++
475 *** New command `delete-forward-char', bound to [delete].
476 This is meant for interactive use, and obeys `delete-active-region'.
477 The command `delete-char' does not obey `delete-active-region'.
478 ---
479 *** `delete-backward-char' is now a Lisp function.
480 Apart from obeying `delete-active-region', its behavior is unchanged.
481 However, the byte compiler now warns if it is called from Lisp; you
482 should use delete-char with a negative argument instead.
483 ---
484 *** The option `mouse-region-delete-keys' has been deleted.
485
486 ** Selection changes.
487
488 The default handling of clipboard and primary selections was changed
489 to conform with modern X applications. In short, most commands for
490 killing and yanking text now use the clipboard, while mouse commands
491 use the primary selection.
492
493 In the following, we provide a list of these changes, followed by a
494 list of steps to get the old behavior back if you prefer that.
495
496 +++
497 *** `select-active-regions' now defaults to t.
498 Merely selecting text (e.g. with drag-mouse-1) no longer puts it in
499 the kill ring. The selected text is put in the primary selection, if
500 the system possesses a separate primary selection facility (e.g. X).
501
502 +++
503 **** `select-active-regions' also accepts a new value, `only'.
504 This means to only set the primary selection for temporarily active
505 regions (usually made by mouse-dragging or shift-selection);
506 "ordinary" active regions, such as those made with C-SPC followed by
507 point motion, do not alter the primary selection.
508
509 ---
510 **** `mouse-drag-copy-region' now defaults to nil.
511
512 +++
513 *** mouse-2 is now bound to `mouse-yank-primary'.
514 This pastes from the primary selection, ignoring the kill-ring.
515 Previously, mouse-2 was bound to `mouse-yank-at-click'.
516
517 +++
518 *** `x-select-enable-clipboard' now defaults to t on all platforms.
519 +++
520 *** `x-select-enable-primary' now defaults to nil.
521 Thus, commands that kill text or copy it to the kill-ring (such as
522 M-w, C-w, and C-k) also use the clipboard---not the primary selection.
523
524 ---
525 **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now
526 exactly equivalent to, respectively M-w, C-w, and C-y.
527
528 ---
529 **** Note that on MS-Windows, `x-select-enable-clipboard' was already
530 non-nil by default, as Windows does not support the primary selection
531 between applications.
532
533 ---
534 *** To return to the previous behavior, do the following:
535 **** Change `select-active-regions' to nil.
536 **** Change `mouse-drag-copy-region' to t.
537 **** Change `x-select-enable-primary' to t (on X only).
538 **** Change `x-select-enable-clipboard' to nil.
539 **** Bind `mouse-yank-at-click' to mouse-2.
540
541 +++
542 *** Support for X cut buffers has been removed.
543
544 *** X clipboard managers are now supported.
545 To inhibit this, change `x-select-enable-clipboard-manager' to nil.
546
547 +++
548 ** New command `rectangle-number-lines', bound to `C-x r N', numbers
549 the lines in the current rectangle. With a prefix argument, this
550 prompts for a number to count from and for a format string.
551
552 +++
553 ** The default value of redisplay-dont-pause is now t
554 This makes Emacs feel more responsive to editing commands that arrive
555 at high rate, e.g. if you lean on some key, because stopping redisplay
556 in the middle (when this variable is nil) forces more expensive
557 updates later on, and Emacs appears to be unable to keep up.
558
559 +++
560 ** The behavior of <TAB> for active regions in Text mode has changed.
561 In Text and related modes, typing <TAB> (`indent-for-tab-command')
562 when the region is active causes Emacs to indent all the lines in the
563 region, aligning them with the line previous to the first line in the
564 region (or with the left margin if there is no previous line).
565
566 \f
567 * Changes in Specialized Modes and Packages in Emacs 24.1
568
569 +++
570 ** Archive Mode has basic support for browsing and updating 7z archives.
571
572 +++
573 ** browse-url has a new variable `browse-url-mailto-function'
574 specifies how mailto: URLs are handled. The default is `browse-url-mail'.
575
576 ---
577 ** BibTeX mode
578
579 *** BibTeX mode now supports biblatex.
580 Use the variable bibtex-dialect to select support for different BibTeX
581 dialects. bibtex-entry-field-alist is now an obsolete alias for
582 bibtex-BibTeX-entry-alist.
583
584 *** New command `bibtex-search-entries' bound to C-c C-a.
585
586 *** New `bibtex-entry-format' option `sort-fields', disabled by default.
587
588 *** New variable `bibtex-search-entry-globally'.
589
590 ** Calendar, Diary, and Appt
591
592 +++
593 *** Diary entries can contain non-printing `comments'.
594 See the variable `diary-comment-start'.
595
596 +++
597 *** Appointments can specify their individual warning times.
598 See the variable `appt-warning-time-regexp'.
599
600 ---
601 *** The function specified by `appt-disp-window-function' may be passed
602 lists of arguments if multiple appointments are due at similar times.
603 If you are using a custom function for this, you should update it.
604
605 +++
606 *** New function `diary-hebrew-birthday'.
607
608 ---
609 *** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array'
610 may no longer be nil, but must all be strings.
611
612 ---
613 *** The obsolete (since Emacs 22.1) method of enabling the appt package
614 by adding appt-make-list to diary-hook has been removed. Use appt-activate.
615
616 ---
617 *** Some appt variables (obsolete since Emacs 22.1) have been removed:
618 appt-issue-message (use the function appt-activate)
619 appt-visible/appt-msg-window (use the variable appt-display-format)
620
621 ---
622 *** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
623 view-diary-entries, list-diary-entries, show-all-diary-entries
624
625 ** CC Mode (C, C++, etc.)
626
627 *** New feature to "guess" the style in an existing buffer.
628
629 ** comint and modes derived from it use the generic completion code.
630
631 ** Compilation mode
632 ---
633 *** Compilation mode can be used without font-lock-mode.
634 `compilation-parse-errors-function' is now obsolete.
635
636 *** `compilation-filter-start' is let-bound to the start of the text
637 inserted by the compilation filter function, when calling
638 compilation-filter-hook.
639
640 *** `compilation-error-screen-columns' is obeyed in the editing buffer.
641 So programming language modes can set it, whereas previously only the value
642 in the *compilation* buffer was used.
643
644 ** Customize
645
646 +++
647 *** Customize buffers now contain a search field.
648 The search is performed using `customize-apropos'.
649 To turn off the search field, set custom-search-field to nil.
650
651 +++
652 *** Custom options now start out hidden if at their default values.
653 Use the arrow to the left of the option name to toggle visibility.
654
655 *** custom-buffer-sort-alphabetically now defaults to t.
656
657 +++
658 *** The color widget now has a "Choose" button, which allows you to
659 choose a color via list-colors-display.
660
661 ** D-Bus
662
663 *** It is possible now, to access alternative buses than the default
664 system or session bus.
665
666 *** dbus-register-{service,method,property}
667 The -method and -property functions do not automatically register
668 names anymore.
669
670 The new function dbus-register-service registers a service known name
671 on a D-Bus without simultaneously registering a property or a method.
672
673 ** Dired-x
674 ---
675 *** dired-jump and dired-jump-other-window called with a prefix argument
676 read a file name from the minibuffer instead of using buffer-file-name.
677
678 +++
679 *** The `dired local variables' feature provided by Dired-x is obsolete.
680 The standard directory local variables feature replaces it.
681
682 ** ERC changes
683
684 *** New vars `erc-autojoin-timing' and `erc-autojoin-delay'.
685 If the value of `erc-autojoin-timing' is 'ident, ERC autojoins after a
686 successful NickServ identification, or after `erc-autojoin-delay'
687 seconds. The default value, 'ident, means to autojoin immediately
688 after connecting.
689
690 *** New variable `erc-coding-system-precedence': If we use `undecided'
691 as the server coding system, this variable will then be consulted.
692 The default is to decode strings that can be decoded as utf-8 as
693 utf-8, and do the normal `undecided' decoding for the rest.
694
695 ** Eshell changes
696
697 *** The default value of eshell-directory-name is a directory named
698 "eshell" in `user-emacs-directory'. If the old "~/.eshell/" directory
699 exists, that is used instead.
700
701 ** gdb-mi
702 +++
703 *** GDB User Interface migrated to GDB Machine Interface and now
704 supports multithread non-stop debugging and debugging of several
705 threads simultaneously.
706
707 ** In ido-mode, C-v is no longer bound to ido-toggle-vc.
708 The reason is that this interferes with cua-mode.
709
710 ** Image mode
711
712 *** RET (`image-toggle-animation') toggles animation, if the displayed
713 image can be animated.
714
715 *** Option `image-animate-loop', if non-nil, loops the animation.
716 If nil, `image-toggle-animation' plays the animation once.
717
718 ** Info
719
720 *** New command `info-display-manual' displays an Info manual
721 specified by its name. If that manual is already visited in some Info
722 buffer within the current session, the command will display that
723 buffer. Otherwise, it will load the manual and display it. This is
724 handy if you have many manuals in many Info buffers, and don't
725 remember the name of the buffer visiting the manual you want to
726 consult.
727
728 +++
729 *** `e' is now bound to `end-of-buffer' rather than to `Info-edit'.
730 This is for compatibility with the stand-alone Info reader program,
731 and also because `Info-edit' is a rarely used command that is disabled
732 by default.
733
734 +++
735 ** The Landmark game is now invoked with `landmark', not `lm'.
736
737 ** MH-E has been upgraded to MH-E version 8.3.1.
738 See MH-E-NEWS for details.
739
740 ** Modula-2 mode provides auto-indentation.
741
742 ** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
743
744 ** Prolog mode has been completely revamped, with lots of additional
745 functionality such as more intelligent indentation, electricity, support for
746 more variants, including Mercury, and a lot more.
747
748 ** Rmail
749
750 *** The command `rmail-epa-decrypt' decrypts OpenPGP data
751 in the Rmail incoming message.
752
753 ---
754 *** The variable `rmail-message-filter' no longer has any effect.
755 This change was made in Emacs 23.1 but was not advertised at the time.
756 Try using `rmail-show-message-hook' instead.
757
758 ** Shell mode
759 +++
760 *** Shell mode uses pcomplete rules, with the standard completion UI.
761 +++
762 *** The `shell' command prompts for the shell path name if the default
763 directory is a remote file name and neither the environment variable
764 $ESHELL nor the variable `explicit-shell-file-name' is set.
765
766 ---
767 ** SQL Mode enhancements.
768
769 *** `sql-dialect' is an alias for `sql-product'.
770
771 *** New variable `sql-port' specifies the port number for connecting
772 to a MySQL or Postgres server.
773
774 *** The command `sql-product-interactive' now takes a prefix argument,
775 which causes it to prompt for an SQL product instead of the current
776 value of `sql-product'.
777
778 *** Product-specific SQL interactive commands now take prefix args.
779 These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
780 given a prefix argument, prompt for a name for the SQL interactive
781 buffer. This reduces the need for calling `sql-rename-buffer'.
782
783 *** SQL interactive modes suppress command continuation prompts, and
784 replace tabs with spaces. The first change impacts multiple line SQL
785 statements entered with C-j between each line, statements yanked into
786 the buffer and statements sent with `sql-send-*' functions. The
787 second change prevents the MySQL and Postgres interpreters from
788 listing object name completions when sent text via `sql-send-*'
789 functions.
790
791 *** New custom variables control prompting for login parameters.
792 Each supported product has a custom variable `sql-*-login-params',
793 which is a list of the parameters to be prompted for before a
794 connection is established.
795
796 *** New variable `sql-connection-alist' for login parameter values.
797 This can be used to store different username, database and server
798 values. Connections defined in this variable appear in the submenu
799 SQL->Start... for making new SQLi sessions.
800
801 *** New command `sql-connect' starts a predefined SQLi session,
802 using the login parameters from `sql-connection-alist'.
803
804 *** New "Save Connection" menu item in SQLi buffers.
805 This gathers the login params specified for the SQLi session, if it
806 was not started by a connection, and saves them as a new connection.
807
808 *** Commands for listing database objects and details.
809 In an SQLi session, you can get a list of objects in the database.
810 The contents of these lists are product specific.
811
812 **** `C-c C-l a' or the "SQL->List all objects" menu item
813 lists all the objects in the database. With a prefix argument, it
814 displays additional details or extend the listing to include other
815 schemas objects.
816
817 **** `C-c C-l t' or the "SQL->List Table details" menu item
818 prompts for the name of a database table or view and displays the list
819 of columns in the relation. With a prefix argument, it displays
820 additional details about each column.
821
822 *** New options `sql-send-terminator' and `sql-oracle-scan-on'.
823
824 *** An API for manipulating SQL product definitions has been added.
825
826 ** TeX modes
827
828 *** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
829
830 ** Tramp
831 ---
832 *** There exists a new inline access method "ksu" (kerberized su).
833 ---
834 *** The following access methods are discontinued: "ssh1_old",
835 "ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
836 ---
837 *** The option `ange-ftp-binary-file-name-regexp' has changed its
838 default value to "".
839
840 ** `url-queue-retrieve' downloads web pages asynchronously, but allow
841 controlling the degree of parallelism.
842
843 ** VC and related modes
844
845 +++
846 *** Support for pulling on distributed version control systems.
847 `C-x v +' (`vc-pull') runs a "pull" operation, if it is supported, to
848 update the current branch and working tree. A prefix argument means
849 to prompt the user for specifics, e.g. a pull location.
850
851 **** `vc-update' is now an alias for `vc-pull'.
852
853 **** Currently supported by Bzr, Git, and Mercurial.
854
855 +++
856 *** Support for merging on distributed version control systems.
857 The vc-merge command now runs a "merge" operation, if it is supported,
858 to merge changes from another branch into the current one. It prompts
859 for specifics, e.g. a merge source.
860
861 **** Currently supported for Bzr, Git, and Mercurial.
862
863 +++
864 *** New option `vc-revert-show-diff' controls whether `vc-revert'
865 shows a diff while querying the user. It defaults to t.
866
867 +++
868 *** Log entries in some Log View buffers can be toggled to display a
869 longer description by typing RET (log-view-toggle-entry-display).
870 In the Log View buffers made by `C-x v L' (vc-print-root-log), you can
871 use this to display the full log entry for the revision at point.
872
873 **** Currently supported for Bzr, Git, and Mercurial.
874
875 **** Packages using Log View mode can enable this functionality by
876 binding `log-view-expanded-log-entry-function' to a suitable function.
877
878 +++
879 *** New command `vc-ediff' allows visual comparison of two revisions
880 of a file similar to `vc-diff', but using ediff backend.
881
882 +++
883 *** The option `vc-initial-comment' was removed in Emacs 23.2, but
884 this was not advertised at the time.
885
886 +++
887 *** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'.
888 Since Emacs 23, it has done the same thing as `toggle-read-only', but
889 this was not advertised at the time.
890
891 ** FIXME: xdg-open for browse-url and reportbug, 2010/08.
892
893 ** Obsolete modes
894
895 *** partial-completion-mode is obsolete.
896 You can get a comparable behavior with:
897 (setq completion-styles '(partial-completion initials))
898 (setq completion-pcm-complete-word-inserts-delimiters t)
899
900 *** pc-mode.el is obsolete.
901
902 *** sregex.el is obsolete, since rx.el is a strict superset.
903
904 *** s-region.el and pc-select are obsolete.
905 They are superseded by shift-select-mode enabled by default in 23.1.
906
907 ** Miscellaneous
908
909 +++
910 *** f90.el has some support for Fortran 2008 syntax.
911
912 ---
913 *** `copyright-fix-years' can optionally convert consecutive years to ranges.
914
915 +++
916 *** New command `nato-region' converts text to NATO phonetic alphabet.
917
918 \f
919 * New Modes and Packages in Emacs 24.1
920
921 +++
922 ** Occur Edit mode applies edits made in *Occur* buffers to the
923 original buffers. It is bound to "e" in Occur mode.
924
925 ** New global minor modes electric-pair-mode, electric-indent-mode,
926 and electric-layout-mode.
927
928 ** tabulated-list.el provides a generic major mode for tabulated data,
929 from which other modes can be derived.
930
931 ** pcase.el provides the ML-style pattern matching macro `pcase'.
932
933 ** secrets.el is an implementation of the Secret Service API, an
934 interface to password managers like GNOME Keyring or KDE Wallet. The
935 Secret Service API requires D-Bus for communication. The command
936 `secrets-show-secrets' offers a buffer with a visualization of the
937 secrets.
938
939 ** notifications.el provides an implementation of the Desktop
940 Notifications API. It requires D-Bus for communication.
941
942 ** soap-client.el supports access to SOAP web services from Emacs.
943 soap-inspect.el is an interactive inspector for SOAP WSDL structures.
944
945 ** xmodmap-generic-mode for xmodmap files.
946
947 ** New emacs-lock.el package.
948 (The pre-existing one has been renamed to old-emacs-lock.el and moved
949 to obsolete/.) Now, Emacs Lock is a proper minor mode
950 `emacs-lock-mode'. Protection against exiting Emacs and killing the
951 buffer can be set separately. The mechanism for auto turning off
952 protection for buffers with inferior processes has been generalized.
953
954 \f
955 * Incompatible Lisp Changes in Emacs 24.1
956
957 ---
958 ** `char-direction-table' and the associated function `char-direction'
959 were deleted. They were buggy and inferior to the new support of
960 bidirectional editing introduced in Emacs 24. If you need the
961 bidirectional properties of a character, use `get-char-code-property'
962 with the last argument `bidi-class'.
963
964 +++
965 ** `copy-directory' now copies the source directory as a subdirectory
966 of the target directory, if the latter is an existing directory. The
967 new optional arg COPY-CONTENTS, if non-nil, makes the function copy
968 the contents directly into a pre-existing target directory.
969
970 ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and
971 passes it to the mail user agent function. This argument specifies an
972 action for returning to the caller after finishing with the mail.
973 This is currently used by Rmail to delete a mail window.
974
975 ** For mouse click input events in the text area, the Y pixel
976 coordinate in the POSITION list now counts from the top of the text
977 area, excluding any header line. Previously, it counted from the top
978 of the header line.
979
980 ** Removed obsolete name `e' (use `float-e' instead).
981
982 ** A backquote not followed by a space is now always treated as new-style.
983
984 ** Test for special mode-class was moved from view-file to view-buffer.
985 FIXME: This only says what was changed, but not what are the
986 programmer-visible consequences.
987
988 ** Passing a nil argument to a minor mode function now turns the mode
989 ON unconditionally.
990
991 +++
992 ** During startup, Emacs no longer adds entries for `menu-bar-lines'
993 and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
994 With these alist entries omitted, `make-frame' checks the value of the
995 variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create
996 a menu-bar or tool-bar, respectively. If the alist entries are added,
997 they override the value of `menu-bar-mode'/`tool-bar-mode'.
998
999 +++
1000 ** Regions created by mouse dragging are now normal active regions,
1001 similar to the ones created by shift-selection. In previous Emacs
1002 versions, these regions were delineated by `mouse-drag-overlay', which
1003 has now been removed.
1004
1005 ** cl.el no longer provides `cl-19'.
1006
1007 ** The menu bar bindings's caches are not used any more.
1008 Use (where-is-internal <def> nil t) instead.
1009
1010 ** The following obsolete functions and aliases were removed:
1011 comint-kill-output, decompose-composite-char, outline-visible,
1012 internal-find-face, internal-get-face, frame-update-faces,
1013 frame-update-face-colors, x-frob-font-weight, x-frob-font-slant,
1014 x-make-font-bold, x-make-font-demibold, x-make-font-unbold
1015 x-make-font-italic, x-make-font-oblique, x-make-font-unitalic
1016 x-make-font-bold-italic, mldrag-drag-mode-line, mldrag-drag-vertical-line,
1017 iswitchb-default-keybindings, char-bytes, isearch-return-char,
1018 make-local-hook
1019
1020 ** The following obsolete variables and varaliases were removed:
1021 checkdoc-minor-keymap, vc-header-alist, directory-sep-char, and
1022 font-lock-defaults-alist.
1023
1024 ** The following obsolete files were removed:
1025 sc.el, x-menu.el, rnews.el, rnewspost.el
1026
1027 ** FIXME finder-inf.el changes.
1028
1029 \f
1030 * Lisp changes in Emacs 24.1
1031
1032 ** Code can now use lexical scoping by default instead of dynamic scoping.
1033 The `lexical-binding' variable lets code use lexical scoping for local
1034 variables. It is typically set via file-local variables, in which case it
1035 applies to all the code in that file.
1036
1037 *** `eval' takes a new optional argument `lexical' to choose the new lexical
1038 binding instead of the old dynamic binding mode.
1039
1040 *** Lexically scoped interpreted functions are represented with a new form
1041 of function value which looks like (closure ENV ARGS &rest BODY).
1042
1043 *** New macro `letrec' to define recursive local functions.
1044
1045 *** New function `special-variable-p' to check whether a variable is
1046 declared as dynamically bound.
1047
1048 ** An Emacs Lisp testing tool is now included.
1049 Emacs Lisp developers can use this tool to write automated tests for
1050 their code. See the ERT info manual for details.
1051
1052 ** Changes for bidirectional display and editing
1053
1054 +++
1055 *** New function `current-bidi-paragraph-direction'.
1056 This returns the actual value of base direction of the paragraph at
1057 point.
1058
1059 +++
1060 *** New function `bidi-string-mark-left-to-right'.
1061 Given a string containing characters from right-to-left (RTL) scripts,
1062 this function returns another string which can be safely inserted into
1063 a buffer, such that any following text will be always displayed to the
1064 right of that string. (This works by appending the Unicode
1065 "LEFT-TO-RIGHT MARK" character when the argument string might need that.)
1066
1067 This is useful when the buffer has overall left-to-right (LTR)
1068 paragraph direction and you need to insert a string whose contents and
1069 directionality are not known in advance, without disrupting the layout
1070 of the line.
1071
1072 ** Window changes
1073 +++
1074 *** Window tree functions are accessible in Elisp.
1075 Functions are provided to return the parent, siblings or child windows
1076 of any window including internal windows (windows not associated with a
1077 buffer) in the window tree.
1078 +++
1079 **** New function `window-valid-p' gives non-nil for live and internal
1080 windows.
1081 +++
1082 **** Window manipulation can deal with internal windows.
1083 Many window handling functions like `split-window', `delete-window', or
1084 `delete-other-windows' as well as the window resizing functions can now
1085 act on any window including internal ones.
1086 +++
1087 *** window-total-height/-width vs window-body-height/-width.
1088 The function `window-height' has been renamed to `window-total-height'
1089 and `window-width' has been renamed to `window-body-width'. The old
1090 names are provided as aliases. Two new functions `window-total-width'
1091 and `window-body-height' are provided.
1092 +++
1093 *** Window parameters specific to window handling functions.
1094 For each window you can specify a parameter to override the default
1095 behavior of a number of functions like `split-window', `delete-window'
1096 and `delete-other-windows'. The variable `ignore-window-parameters'
1097 allows to ignore processing such parameters.
1098 +++
1099 *** New semantics of third argument of `split-window'.
1100 The third argument of `split-window' has been renamed to SIDE and can be
1101 set to any of the values 'below, 'right, 'above, or 'left to make the
1102 new window appear on the corresponding side of the window that shall be
1103 split. Any other value of SIDE will cause `split-window' to split the
1104 window into two side-by-side windows as before.
1105 +++
1106 *** Window resizing functions.
1107 A new standard function for resizing windows called `window-resize' has
1108 been introduced. This and all other functions for resizing windows no
1109 longer delete any windows when they become too small.
1110 +++
1111 *** Deleting the selected window now selects the most recently selected
1112 live window on that frame instead.
1113 +++
1114 *** `adjust-window-trailing-edge' adjustments.
1115 `adjust-window-trailing-edge' can now deal with fixed-size windows and
1116 is able to resize other windows if a window adjacent to the trailing
1117 edge cannot be shrunk any more. This makes its behavior more similar to
1118 that of Emacs 21 without compromising, however, its inability to delete
1119 windows which was introduced in Emacs 22.
1120 +++
1121 *** Window-local buffer lists.
1122 Windows now have local buffer lists. This means that removing a buffer
1123 from display in a window will preferably show the buffer previously
1124 shown in that window with its previous window-start and window-point
1125 positions. This also means that the same buffer may be automatically
1126 shown twice even if it already appears in another window.
1127 +++
1128 *** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
1129 which if non-nil requires the buffer to be displayed in the currently
1130 selected window, signaling an error otherwise. If nil, another window
1131 can be used, e.g. if the selected one is strongly dedicated.
1132 +++
1133 *** `split-window-vertically' and `split-window-horizontally' renamed
1134 to `split-window-below' and `split-window-right' respectively.
1135 The old names are kept as aliases.
1136 +++
1137 *** Display actions
1138
1139 **** The second arg to `display-buffer' and `pop-to-buffer' is now
1140 named ACTION, and takes a display action of the same form as
1141 `display-buffer-base-action' (see Changes, above). A non-nil,
1142 non-list value is treated specially, as the old meaning.
1143
1144 **** New variable `display-buffer-overriding-action'.
1145
1146 **** The procedure of `display-buffer' etc. to choose a window is
1147 determined by combining `display-buffer-overriding-action',
1148 `display-buffer-alist', the ACTION arg, `display-buffer-base-action',
1149 and `display-buffer-fallback-action'. The second and fourth of these
1150 are user-customizable variables.
1151
1152 See the docstring of `display-buffer' for details.
1153
1154 +++
1155 *** New behavior of `quit-window'.
1156 The behavior of `quit-window' has been changed in order to restore the
1157 state before the last buffer display operation in that window.
1158
1159 +++
1160 *** The new option `frame-auto-hide-function' lets you choose between
1161 iconifying or deleting a frame when burying a buffer shown in a dedicated
1162 frame or quitting a window showing a buffer in a frame of its own.
1163
1164 ** Completion
1165
1166 *** New variable completion-extra-properties used to specify extra properties
1167 of the current completion:
1168 - :annotate-function, same as the old completion-annotate-function.
1169 - :exit-function, function to call after completion took place.
1170
1171 *** Functions on completion-at-point-functions can return any of the properties
1172 valid for completion-extra-properties.
1173
1174 *** completion-annotate-function is obsolete.
1175
1176 *** New `metadata' method for completion tables. The metadata thus returned
1177 can specify various details of the data returned by `all-completions':
1178 - `category' is the kind of objects returned (e.g., `buffer', `file', ...),
1179 used to select a style in completion-category-overrides.
1180 - `annotation-function' to add annotations in *Completions*.
1181 - `display-sort-function' to specify how to sort entries in *Completions*.
1182 - `cycle-sort-function' to specify how to sort entries when cycling.
1183
1184 *** minibuffer-local-filename-must-match-map is not used any more.
1185 Instead, the bindings in minibuffer-local-filename-completion-map are
1186 combined with minibuffer-local-must-match-map.
1187
1188 *** New variable `completing-read-function' allows overriding the
1189 behavior of `completing-read'.
1190
1191 +++
1192 ** `glyphless-char-display' can now distinguish between graphical and
1193 text terminal display, via a char-table entry that is a cons cell.
1194
1195 ** `open-network-stream' can now be used to open an encrypted stream.
1196 It now accepts an optional `:type' parameter for initiating a TLS
1197 connection, directly or via STARTTLS. To do STARTTLS, additional
1198 parameters (`:end-of-command', `:success', `:capabilities-command')
1199 must also be supplied.
1200
1201 +++
1202 ** pre/post-command-hook are not reset to nil upon error.
1203 Instead, the offending function is removed.
1204
1205 ** New hook types
1206
1207 *** New function `run-hook-wrapped' for running an abnormal hook by
1208 passing the hook functions as arguments to a "wrapping" function.
1209 +++
1210 *** New macro `with-wrapper-hook' for running an abnormal hook as a
1211 set of "wrapping" filters, similar to around advice.
1212
1213 ** `server-eval-at' is provided to allow evaluating forms on different
1214 Emacs server instances.
1215
1216 ** `call-process' allows a `(:file "file")' spec to redirect STDOUT to
1217 a file.
1218
1219 ---
1220 ** Variable `stack-trace-on-error' removed.
1221 Also the debugger can now "continue" from an error, which means it will jump
1222 to the error handler as if the debugger had not been invoked instead of
1223 jumping all the way to the top-level.
1224
1225 +++
1226 ** The function format-time-string now supports the %N directive, for
1227 higher-resolution time stamps.
1228
1229 ** New function `read-char-choice' reads a restricted set of characters,
1230 discarding any inputs not inside the set.
1231
1232 ** `image-library-alist' is renamed to `dynamic-library-alist'.
1233 The variable is now used to load all kind of supported dynamic libraries,
1234 not just image libraries. The previous name is still available as an
1235 obsolete alias.
1236
1237 ** New variable `syntax-propertize-function'.
1238 This replaces `font-lock-syntactic-keywords' which is now obsolete.
1239 This allows syntax-table properties to be set independently from font-lock:
1240 just call syntax-propertize to make sure the text is propertized.
1241 Together with this new variable come a new hook
1242 syntax-propertize-extend-region-functions, as well as two helper functions:
1243 syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords
1244 as-is; and syntax-propertize-rules which provides a new way to specify
1245 syntactic rules.
1246
1247 ** New hook post-self-insert-hook run at the end of self-insert-command.
1248
1249 +++
1250 ** Syntax tables support a new "comment style c" additionally to style b.
1251
1252 ** frame-local variables cannot be let-bound any more.
1253
1254 ** Major and minor mode changes
1255 +++
1256 *** `prog-mode' is a new major mode from which programming modes
1257 should be derived.
1258
1259 **** `prog-mode-hook' can be used to enable features for programming
1260 modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable
1261 on-the-fly spell checking for comments and strings.
1262
1263 *** New hook `change-major-mode-after-body-hook', run by
1264 `run-mode-hooks' just before any other mode hooks.
1265
1266 *** Enabled globalized minor modes can be disabled in specific modes,
1267 by running (FOO-mode-hook 0) via a mode hook.
1268
1269 *** `define-minor-mode' accepts a new keyword :variable.
1270
1271 +++
1272 ** `delete-file' and `delete-directory' now accept optional arg TRASH.
1273 Trashing is performed if TRASH and `delete-by-moving-to-trash' are
1274 both non-nil. Interactively, TRASH defaults to t, unless a prefix
1275 argument is supplied (see Trash changes, above).
1276
1277 ** `facemenu-read-color' is now an alias for `read-color'.
1278 The command `read-color' now requires a match for a color name or RGB
1279 triplet, instead of signaling an error if the user provides a invalid
1280 input.
1281
1282 ** Tool-bars can display separators.
1283 Tool-bar separators are handled like menu separators in menu-bar maps,
1284 i.e. via menu entries of the form `(menu-item "--")'.
1285
1286 ** Image API
1287
1288 *** Animated images support (currently animated gifs only).
1289
1290 **** `image-animated-p' returns non-nil if an image can be animated.
1291
1292 **** `image-animate' animates a supplied image spec.
1293
1294 **** `image-animate-timer' returns the timer object for an image that
1295 is being animated.
1296
1297 *** `image-extension-data' is renamed to `image-metadata'.
1298
1299 *** If Emacs is compiled with ImageMagick support (see Startup
1300 Changes), the function `imagemagick-types' returns a list of image
1301 file extensions that your installation of ImageMagick supports. The
1302 function `imagemagick-register-types' enables ImageMagick support for
1303 these image types, minus those listed in `imagemagick-types-inhibit'.
1304
1305 See the Emacs Lisp Reference Manual for more information.
1306
1307 ** XML and HTML parsing
1308
1309 *** If Emacs is compiled with libxml2 support (which is the default),
1310 two new Emacs Lisp-level functions are defined:
1311 `libxml-parse-html-region' (which will parse "real world" HTML)
1312 and `libxml-parse-xml-region' (which parses XML). Both return an
1313 Emacs Lisp parse tree.
1314
1315 FIXME: These should be front-ended by xml.el.
1316
1317 ** GnuTLS
1318
1319 *** Emacs can be compiled with libgnutls support
1320 This is the default. You will then be able to use the functionality
1321 in gnutls.el, namely the `open-gnutls-stream' and `gnutls-negotiate'
1322 functions. It's easiest to use these functions through
1323 `open-network-stream' because it can upgrade connections through
1324 STARTTLS opportunistically or use plain SSL, depending on your needs.
1325
1326 Only versions 2.8.x and higher or GnuTLS have been tested.
1327 [FIXME: this statement needs clarifying, given that GnuTLS >= 2.6.6
1328 is the test used by configure.]
1329
1330 *** gnutls-log-level
1331 Set `gnutls-log-level' higher than 0 to get debug output. 1 is for
1332 important messages, 2 is for debug data, and higher numbers are as per
1333 the GnuTLS logging conventions. The output is in *Messages*.
1334
1335 ** Isearch
1336
1337 *** New hook `isearch-update-post-hook' that runs in `isearch-update'.
1338
1339 +++
1340 ** Progress reporters can now "spin".
1341 The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
1342 now be nil, or omitted. This makes a "non-numeric" reporter. Each
1343 time you call `progress-reporter-update' on that progress reporter,
1344 with a nil or omitted VALUE argument, the reporter message is
1345 displayed with a "spinning bar".
1346
1347 ** New variable `revert-buffer-in-progress-p' is true while a buffer is
1348 being reverted, even if the buffer has a local `revert-buffer-function'.
1349
1350 ** New variables `delayed-warnings-list' and `delayed-warnings-hook' allow
1351 deferring warnings until the main command loop is executed.
1352
1353 +++
1354 ** `set-auto-mode' now respects mode: local variables at the end of files,
1355 as well as those in the -*- line.
1356
1357 ---
1358 ** rx.el has a new `group-n' construct for explicitly numbered groups.
1359
1360 ** keymaps can inherit from multiple parents.
1361
1362 ** `debug-on-event' lets you debug Emacs when stuck because of inhibit-quit.
1363
1364 +++
1365 ** New reader macro ## which stands for the empty symbol.
1366 This means that the empty symbol can now be read back. Also, #: by itself
1367 (when not immediately followed by a possible symbol character) stands for
1368 an empty uninterned symbol.
1369
1370 +++
1371 ** New math functions `isnan', `copysign', `frexp', `ldexp'.
1372
1373 ** Obsolete functions and variables
1374
1375 *** buffer-substring-filters is obsolete.
1376 Use `filter-buffer-substring-functions' instead.
1377
1378 *** `byte-compile-disable-print-circle' is obsolete.
1379
1380 *** `deferred-action-list' and `deferred-action-function' are obsolete.
1381 +++
1382 *** `font-lock-maximum-size' is obsolete.
1383
1384 \f
1385 * Changes in Emacs 24.1 on non-free operating systems
1386
1387 ---
1388 ** On MS Windows, Emacs warns when using the obsolete init file _emacs,
1389 and also when HOME is set to C:\ by default.
1390
1391 ** New configure.bat options
1392
1393 *** --enable-checking builds Emacs with extra runtime checks.
1394
1395 *** --distfiles specifies files to be included in binary distribution.
1396
1397 *** --without-gnutls disables automatic GnuTLS detection.
1398
1399 *** --lib for general library linkage, works with the USER_LIBS build
1400 variable.
1401
1402 ** New make target `dist' to create binary distribution for MS Windows.
1403
1404 ** Function `w32-default-color-map' is now obsolete.
1405
1406 ** On Nextstep/OSX, the menu bar can be hidden by customizing
1407 ns-auto-hide-menu-bar.
1408
1409 \f
1410 ----------------------------------------------------------------------
1411 This file is part of GNU Emacs.
1412
1413 GNU Emacs is free software: you can redistribute it and/or modify
1414 it under the terms of the GNU General Public License as published by
1415 the Free Software Foundation, either version 3 of the License, or
1416 (at your option) any later version.
1417
1418 GNU Emacs is distributed in the hope that it will be useful,
1419 but WITHOUT ANY WARRANTY; without even the implied warranty of
1420 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1421 GNU General Public License for more details.
1422
1423 You should have received a copy of the GNU General Public License
1424 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
1425
1426 \f
1427 Local variables:
1428 mode: outline
1429 paragraph-separate: "[ \f]*$"
1430 end: