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