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