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