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