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