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