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