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