Commit | Line | Data |
---|---|---|
29b7722a | 1 | GNU Emacs NEWS -- history of user-visible changes. |
5b87ad55 | 2 | |
a1ed8b05 | 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 | |
a1ed8b05 GM |
17 | Temporary note: |
18 | +++ indicates that the appropriate manual has already been updated. | |
19 | --- means no change in the manuals is called for. | |
20 | When you add a new item, please add it without either +++ or --- | |
21 | so we will look at it and add it to the manual. | |
22 | ||
23 | \f | |
24 | * Installation Changes in Emacs 24.2 | |
b8df54ff PE |
25 | |
26 | ** New configure option '--enable-gcc-warnings', intended for developers. | |
27 | If building with GCC, this enables compile-time checks that warn about | |
28 | possibly-questionable C code. On a recent GNU system there should be | |
29 | no warnings; on older and on non-GNU systems the generated warnings | |
ae6e112d | 30 | may be useful. |
b8df54ff | 31 | |
501390c5 PE |
32 | ** The configure option '--disable-maintainer-mode' has been removed, |
33 | as it was confusingly-named and rarely useful. | |
34 | ||
a4a18b8b GM |
35 | --- |
36 | ** Emacs uses libtinfo in preference to libncurses, if available. | |
37 | ||
187e9b90 GM |
38 | --- |
39 | ** On FreeBSD and NetBSD, configure no longer adds /usr/local/lib and | |
40 | /usr/pkg/lib to the linker search path. You must add them yourself if | |
41 | you want them. | |
42 | ||
136c45ee GM |
43 | --- |
44 | ** On Mac OS X, configure no longer automatically adds the Fink /sw | |
45 | directories to the search path. You must add them yourself if you want them. | |
46 | ||
276d5f5d GM |
47 | --- |
48 | ** The standalone scripts rcs-checkin and vcdiff have been removed | |
49 | (from the bin and libexec directories, respectively). The former is | |
50 | no longer relevant, the latter is replaced by lisp (in vc-sccs.el). | |
51 | ||
646b5f55 AS |
52 | ** The configuration option '--enable-use-lisp-union-type' has been |
53 | renamed to '--enable-check-lisp-object-type', as the resulting | |
54 | Lisp_Object type no longer uses a union to implement the compile time | |
55 | check that this option enables. | |
56 | ||
a1ed8b05 GM |
57 | \f |
58 | * Startup Changes in Emacs 24.2 | |
e5fcdb5e GM |
59 | |
60 | ** Emacs no longer searches for `leim-list.el' files beneath the standard | |
61 | lisp/ directory. There should not be any there anyway. If you have | |
62 | been adding them there, put them somewhere else, eg site-lisp. | |
63 | ||
a1ed8b05 GM |
64 | \f |
65 | * Changes in Emacs 24.2 | |
66 | ||
e5a36063 GM |
67 | ** New functions `system-users', `system-groups' return lists of the user |
68 | name, group names known to the system (where possible). | |
69 | ||
a1ed8b05 GM |
70 | ** If your Emacs was built from a bzr checkout, the new variable |
71 | `emacs-bzr-version' contains information about which bzr revision was used. | |
72 | ||
c505aaeb CY |
73 | ** ImageMagick support, if available, is automatically enabled. |
74 | It is no longer necessary to call `imagemagick-register-types' | |
75 | explicitly to install ImageMagick image types; that function is called | |
7afbaca4 GM |
76 | automatically at startup, or when customizing a relevant imagemagick- |
77 | option. | |
c505aaeb CY |
78 | |
79 | *** Setting `imagemagick-types-inhibit' to t now disables the use of | |
87eb79c2 GM |
80 | ImageMagick to view images. You must call imagemagick-register-types |
81 | afterwards if you do not use customize to change this. | |
c505aaeb | 82 | |
7afbaca4 | 83 | *** The new variable `imagemagick-enabled-types' also affects which |
60b5f187 GM |
84 | ImageMagick types are treated as images. The function |
85 | `imagemagick-filter-types' returns the list of types that will be | |
86 | treated as images. | |
32d72c2f | 87 | |
1b9b4cf4 CY |
88 | *** Images displayed via ImageMagick now support transparency and the |
89 | :background image spec property. | |
c505aaeb | 90 | |
db80bdc8 GM |
91 | ** Face underlining can now use a wave. |
92 | See the "Face Attributes" section of the Elisp manual. | |
93 | ||
de6ff46d CY |
94 | ** String values for `initial-buffer-choice' also apply to emacsclient |
95 | frames, if emacsclient is only told to open a new frame without | |
96 | specifying any file to visit or expression to evaluate. | |
97 | ||
dc0f75c8 GM |
98 | +++ |
99 | ** You can prevent the creation of lock files by setting `create-lockfiles' | |
100 | to nil. Use with caution, and only if you really need to. | |
101 | ||
b8a82b69 | 102 | +++ |
03794570 | 103 | ** Using "unibyte: t" in Lisp source files is obsolete. |
57699e37 | 104 | Use "coding: raw-text" instead. |
03794570 | 105 | |
383f7350 CY |
106 | ** Mode line changes |
107 | ||
108 | *** New option `mode-line-default-help-echo' specifies the help text | |
109 | (shown in a tooltip or in the echo area) for any part of the mode line | |
110 | that does not have its own specialized help text. | |
111 | ||
cbe46e5f CY |
112 | *** You can now click mouse-3 in the coding system indicator to |
113 | invokes `set-buffer-file-coding-system'. | |
114 | ||
21ffb35a MA |
115 | +++ |
116 | ** Setting `enable-remote-dir-locals' to non-nil allows directory | |
117 | local variables on remote hosts. | |
118 | ||
a1ed8b05 GM |
119 | \f |
120 | * Editing Changes in Emacs 24.2 | |
c25df26e | 121 | |
b9cb2387 JL |
122 | ** Search changes |
123 | ||
124 | *** Global `M-s _' starts a symbol (identifier) incremental search, | |
125 | and `M-s _' in Isearch toggles symbol search mode. | |
126 | `M-s c' in Isearch toggles search case-sensitivity. | |
127 | ||
c25df26e RT |
128 | ** M-x move-to-column, if called interactively with no prefix arg, now |
129 | prompts for a column number. | |
130 | ||
0f84437b TV |
131 | ** `mouse-avoidance-banish-position' can now be used to customize |
132 | `mouse-avoidance-mode' further. | |
133 | ||
09b95ce3 MY |
134 | ** `C-M-f' and `C-M-b' will now move to the path name separator |
135 | character when doing minibuffer filename prompts. | |
136 | ||
5dd1713e CY |
137 | ** `goto-char' is now bound to `M-g c'. |
138 | ||
6b79ce7e NTND |
139 | ** New input method `vietnamese-vni'. |
140 | ||
a1ed8b05 GM |
141 | \f |
142 | * Changes in Specialized Modes and Packages in Emacs 24.2 | |
b2459884 | 143 | |
7c1898a7 SM |
144 | ** CL's main entry is now (require 'cl-lib). |
145 | `cl-lib' is like the old `cl' except that it uses the namespace cleanly, | |
146 | i.e. all its definitions have the "cl-" prefix. | |
147 | ||
148 | If `cl' provided a feature under the name `foo', then `cl-lib' provides it | |
149 | under the name `cl-foo' instead, with the exceptions of the few definitions | |
150 | that had to use `foo*' to avoid conflicts with pre-existing Elisp entities, | |
151 | which have not been renamed to `cl-foo*' but just `cl-foo'. | |
152 | ||
153 | The old `cl' is now deprecated and is nothing more than a bunch of aliases that | |
154 | provide the old non-prefixed names. | |
155 | ||
e76f0800 CY |
156 | ** Desktop |
157 | ||
158 | *** `desktop-path' no longer includes the "." directory. Desktop | |
159 | files are now located in ~/.emacs.d by default. | |
160 | ||
40d8bcb8 GM |
161 | ** A new mode for Python. |
162 | This provides several new features, including: | |
163 | per-buffer shells, better indentation, Python 3 support, and improved | |
164 | shell-interaction compatible with iPython (and virtually any other | |
165 | text based shell). | |
166 | ||
167 | *** Some user options have been replaced/renamed: | |
168 | Old defcustom: | New defcustom: | |
169 | python-indent | python-indent-offset | |
170 | python-guess-indent | python-indent-guess-indent-offset | |
171 | python-pdbtrack-do-tracking-p | python-pdbtrack-activate | |
172 | python-use-skeletons | python-skeleton-autoinsert | |
173 | ||
174 | *** Some user options have been removed: | |
175 | ||
176 | **** `python-indent-string-contents': Strings are never indented. | |
177 | ||
178 | **** `python-honour-comment-indentation': | |
179 | Comments are never considered as indentation markers themselves. | |
180 | ||
181 | **** `python-continuation-offset': Indentation is automatically | |
182 | calculated in a pep8 compliant way depending on the context. | |
183 | ||
184 | **** `python-shell-prompt-alist', `python-shell-continuation-prompt-alist': | |
185 | Have no direct mapping as the shell interaction is completely different. | |
186 | ||
187 | **** `python-python-command', `python-jython-command': | |
188 | Replaced by `python-shell-interpreter'. | |
189 | ||
190 | **** `inferior-python-filter-regexp', `python-remove-cwd-from-path', | |
191 | `python-pdbtrack-minor-mode-string', `python-source-modes': | |
192 | No longer relevant. | |
193 | ||
194 | *** Some commands have been replaced: | |
195 | Old command | New command | |
196 | python-insert-class | python-skeleton-class | |
197 | python-insert-def | python-skeleton-def | |
198 | python-insert-for | python-skeleton-for | |
199 | python-insert-if | python-skeleton-if | |
200 | python-insert-try/except | python-skeleton-try | |
201 | python-insert-try/finally | python-skeleton-try | |
202 | python-insert-while | python-skeleton-while | |
203 | python-find-function | python-nav-jump-to-defun | |
204 | python-next-statement | python-nav-forward-sentence | |
205 | python-previous-statement | python-nav-backward-sentence | |
206 | python-send-buffer | python-shell-send-buffer | |
207 | python-send-defun | python-shell-send-defun | |
208 | python-send-region | python-shell-send-region | |
209 | python-send-region-and-go | Emulate with python-shell-send-region and | |
210 | python-shell-switch-to-shell | |
211 | python-send-string | python-shell-send-string | |
212 | python-switch-to-python | python-shell-switch-to-shell | |
213 | python-describe-symbol | python-eldoc-at-point | |
214 | ||
fda91268 RZ |
215 | ** VHDL-mode |
216 | - Support for ghdl (free vhdl compiler). Now default. | |
217 | - Add/update support for VHDL-AMS packages. | |
218 | - Update to VHDL'02 standard. | |
219 | - Accept \r and \f as whitespace. | |
220 | ||
bc1b21bb JL |
221 | ** Diff mode |
222 | ||
223 | Faces for changes now use the same diff color scheme as in modern VCSes | |
224 | where deletions are displayed in red (new faces `diff-refine-removed' | |
225 | and `smerge-refined-removed' and new definition of `diff-removed'), | |
226 | insertions in green (new faces `diff-refine-added' and | |
227 | `smerge-refined-added' and new definition of `diff-added'). | |
228 | The variable `diff-use-changed-face' defines whether to use | |
229 | the face `diff-changed', or `diff-removed' and `diff-added' | |
230 | to highlight changes in context diffs. | |
231 | ||
b03b4c00 JL |
232 | ** Ediff now uses the same color scheme as Diff mode |
233 | on high color displays. | |
234 | ||
ff46c759 SM |
235 | ** `sh-script' |
236 | *** Pairing of parens/quotes uses electric-pair-mode instead of skeleton-pair. | |
237 | *** `sh-electric-here-document-mode' now controls auto-insertion of here-docs. | |
238 | *** `sh-use-smie' lets you choose a new indentation and navigation code. | |
239 | ||
d13c8be6 SM |
240 | ** reStructuredText mode |
241 | ||
6d3f7c2f SM |
242 | *** Rebind nearly all keys making room for more keys and complying |
243 | better to usage in other modes. Describe bindings with C-c C-h. | |
d13c8be6 | 244 | |
6d3f7c2f SM |
245 | *** Major revision of indentation working very similar to other |
246 | modes. TAB is your friend. | |
d13c8be6 | 247 | |
6d3f7c2f SM |
248 | *** Major revision of filling working fine with most of |
249 | reStructuredText syntax. Support auto-filling. | |
d13c8be6 SM |
250 | |
251 | *** Major revision of comment handling. | |
252 | ||
6d3f7c2f | 253 | *** Major revision of fontification working with `jit-lock-mode'. |
d13c8be6 | 254 | |
6d3f7c2f SM |
255 | *** Cover reStructuredText syntax more closely. Improve |
256 | the experience for Sphinx users. | |
d13c8be6 | 257 | |
6d3f7c2f | 258 | *** `rst-insert-list' inserts new list or continues existing lists. |
d13c8be6 | 259 | |
6d3f7c2f | 260 | *** Extend correct and improve customization. |
d13c8be6 SM |
261 | |
262 | *** Negative prefix argument always works for `rst-adjust'. | |
263 | ||
6d3f7c2f | 264 | *** Reset window configuration after displaying TOC. |
d13c8be6 | 265 | |
6d3f7c2f | 266 | *** Package version in `rst-version'. |
d13c8be6 | 267 | |
d81bd059 SM |
268 | ** New `derived-mode' filter for Ibuffer, bound to `/ M'. |
269 | `/ m' is now bound to filter by used-mode, which used to be bound to `/ M'. | |
c4cf6d91 | 270 | |
46c71e23 CY |
271 | ** Apropos |
272 | ||
273 | *** The faces used by Apropos are now directly customizable. | |
274 | These faces are named `apropos-symbol', `apropos-keybinding', and so on; | |
275 | see the `apropos' Custom group for details. | |
276 | ||
277 | **** The old options whose values specified faces to use were removed | |
278 | (i.e. `apropos-symbol-face', `apropos-keybinding-face', etc.). | |
279 | ||
8b0823d6 CY |
280 | ** Buffer Menu |
281 | This package has been rewritten to use Tabulated List mode. | |
282 | ||
283 | *** Option `Buffer-menu-buffer+size-width' is now obsolete. | |
284 | Use `Buffer-menu-name-width' and `Buffer-menu-size-width' instead. | |
285 | ||
48176e8b GM |
286 | ** Calendar |
287 | ||
03794570 GM |
288 | *** The calendars produced by cal-html include holidays. |
289 | Customize cal-html-holidays to change this. | |
48176e8b | 290 | |
cf20dee0 CY |
291 | ** Customize |
292 | ||
293 | *** `custom-reset-button-menu' now defaults to t. | |
ab036cd7 | 294 | |
775c916b CY |
295 | *** Non-option variables are never matched in `customize-apropos' and |
296 | `customize-apropos-options' (i.e. the prefix argument does nothing for | |
297 | these commands now). | |
298 | ||
b2459884 | 299 | ** erc will look up server/channel names via auth-source and use the |
29734c21 | 300 | channel keys found, if any. |
b2459884 | 301 | |
9f9aa044 CY |
302 | ** FFAP |
303 | ||
304 | *** The option `ffap-url-unwrap-remote' can now be a list of strings, | |
305 | specifying URL types which should be converted to remote file names at | |
306 | the FFAP prompt. The default is now '("ftp"). | |
307 | ||
782fbf2a CY |
308 | ** Follow mode |
309 | ||
310 | *** The obsolete variable `follow-mode-off-hook' has been removed. | |
311 | ||
312 | *** Follow mode no longer works by using advice. | |
313 | The option `follow-intercept-processes' has been removed. | |
314 | ||
29734c21 MN |
315 | ** The `server-auth-key' variable can be used to set a permanent |
316 | shared key for Emacs Server. | |
fc72b15c PO |
317 | |
318 | ** In Perl mode, new option `perl-indent-parens-as-block' causes non-block | |
319 | closing brackets to be aligned with the line of the opening bracket. | |
320 | ||
25a9a140 GM |
321 | ** FIXME something happened to ses.el, 2012-04-17. |
322 | ||
cf20dee0 CY |
323 | ** which-function-mode now applies to all applicable major modes by default. |
324 | ||
05ecb497 MA |
325 | ** Tramp |
326 | ||
327 | +++ | |
328 | *** The syntax has been extended in order to allow ad-hoc proxy | |
329 | definitions. See the manual for details. | |
330 | ||
331 | +++ | |
332 | *** Remote processes are now supported also on remote Windows host. | |
333 | ||
dcbf5805 MA |
334 | ** D-Bus |
335 | ||
336 | +++ | |
337 | *** New variables `dbus-compiled-version' and `dbus-runtime-version'. | |
338 | ||
339 | +++ | |
340 | *** The D-Bus object manager interface is implemented. | |
341 | ||
342 | +++ | |
343 | *** Variables of type :(u)int32 and :(u)int64 accept floating points, | |
344 | if their value does not fit into Emacs's integer range. | |
345 | ||
346 | +++ | |
347 | *** The function `dbus-call-method' works non-blocking now, it can be | |
348 | interrupted by C-g. `dbus-call-method-non-blocking' is obsolete. | |
349 | ||
350 | +++ | |
351 | *** Signals can be sent also as unicast message. | |
352 | ||
353 | +++ | |
354 | *** The argument list of `dbus-register-signal' has been extended, | |
355 | according to the new match rule types of D-Bus. See the manual for | |
356 | details. | |
357 | ||
358 | +++ | |
359 | *** `dbus-init-bus' supports private connections. | |
360 | ||
361 | +++ | |
362 | *** There is a new function `dbus-setenv'. | |
363 | ||
0268cf45 MA |
364 | +++ |
365 | ** notifications.el supports now version 1.2 of the Notifications API. | |
366 | The function `notifications-get-capabilities' returns the supported | |
367 | server properties. | |
368 | ||
60057926 CY |
369 | ** Package Menu |
370 | ||
371 | *** Newly-available packages are listed in the Package Menu as "new", | |
372 | and sorted above the other "available" packages by default. | |
373 | ||
6632d361 CY |
374 | ** Tabulated List and packages derived from it |
375 | ||
e5f9458f | 376 | *** New command `tabulated-list-sort', bound to `S', sorts the column |
6632d361 CY |
377 | at point, or the Nth column if a numeric prefix argument is given. |
378 | ||
ce7b18ec CY |
379 | ** URL |
380 | ||
381 | *** Structs made by `url-generic-parse-url' have nil `attributes' slot. | |
382 | Previously, this slot stored semicolon-separated attribute-value pairs | |
383 | appended to some imap URLs, but this is not compatible with RFC 3986. | |
384 | So now the `filename' slot stores the entire path and query components | |
385 | and the `attributes' slot is always nil. | |
386 | ||
387 | *** New function `url-encode-url' for encoding a URI string. | |
388 | The `url-retrieve' function now uses this to encode its URL argument, | |
389 | in case that is not properly encoded. | |
390 | ||
82f289a4 GM |
391 | ** Obsolete packages: |
392 | ||
797e6e88 SM |
393 | *** assoc.el |
394 | In most cases, assoc+member+push+delq work just as well. | |
395 | And in any case it's just a terrible package: ugly semantics, terrible | |
396 | inefficiency, and not namespace-clean. | |
397 | ||
3c74813a GM |
398 | *** bruce.el |
399 | ||
daed4003 GM |
400 | *** ledit.el |
401 | ||
82f289a4 | 402 | *** mailpost.el |
d57de7fe CY |
403 | |
404 | *** mouse-sel.el | |
405 | ||
3c74813a GM |
406 | *** patcomp.el |
407 | ||
d32926ff SM |
408 | *** cust-print.el |
409 | ||
a1ed8b05 GM |
410 | \f |
411 | * New Modes and Packages in Emacs 24.2 | |
412 | \f | |
413 | * Incompatible Lisp Changes in Emacs 24.2 | |
b4d3bc10 CY |
414 | |
415 | +++ | |
416 | ** Docstrings starting with `*' no longer indicate user options. | |
417 | Only variables defined using `defcustom' are considered user options. | |
418 | The function `user-variable-p' is now an obsolete alias for | |
419 | `custom-variable-p'. | |
420 | ||
eeddc531 CY |
421 | ** `face-spec-set' no longer sets frame-specific attributes when the |
422 | third argument is a frame (that usage was obsolete since Emacs 22.2). | |
423 | ||
a59d531e MA |
424 | +++ |
425 | ** The arguments of `dbus-register-signal' are no longer just strings, | |
426 | but keywords or keyword-string pairs. The old argument list will | |
427 | still be supported for Emacs 24.x. | |
428 | ||
78f3273a CY |
429 | ** The following obsolete variables and varaliases have been removed: |
430 | ||
431 | *** `facemenu-unlisted-faces' | |
432 | *** `rmail-decode-mime-charset' | |
433 | ||
a1ed8b05 GM |
434 | \f |
435 | * Lisp changes in Emacs 24.2 | |
ef24141c | 436 | |
1053a871 SM |
437 | ** The return value of `defalias' has changed and is now undefined. |
438 | ||
500fcedc SM |
439 | ** `defun' also accepts a (declare DECLS) form, like `defmacro'. |
440 | The interpretation of the DECLS is determined by `defun-declarations-alist'. | |
441 | ||
442 | ** `macro-declaration-function' is obsolete, use `macro-declarations-alist'. | |
443 | ||
f95e9344 SM |
444 | ** New function `set-temporary-overlay-map'. |
445 | ||
446 | ** New macros `setq-local' and `defvar-local'. | |
447 | ||
71873e2b | 448 | ** New error type and new function `user-error'. Doesn't trigger the debugger. |
f95e9344 | 449 | |
51a5f9d8 | 450 | ** The functions get-lru-window, get-mru-window and get-largest-window |
48d1354e | 451 | now accept a third argument to avoid choosing the selected window. |
51a5f9d8 | 452 | |
ef24141c SM |
453 | ** Completion |
454 | ||
455 | *** New function `completion-table-with-quoting' to handle completion | |
456 | in the presence of quoting, such as file completion in shell buffers. | |
457 | ||
458 | *** New function `completion-table-subvert' to use an existing completion | |
459 | table, but with a different prefix. | |
ab0fa4e4 PE |
460 | |
461 | ** Time | |
462 | ||
463 | *** `current-time-string' no longer requires that its argument's year | |
464 | must be in the range 1000..9999. It now works with any year supported | |
465 | by the underlying C implementation. | |
8a61ee22 SM |
466 | |
467 | ** `automount-dir-prefix' is obsolete. | |
43416392 | 468 | ** `buffer-has-markers-at' is obsolete. |
adce950d | 469 | \f |
9078ead6 EZ |
470 | * Changes in Emacs 24.2 on non-free operating systems |
471 | ||
472 | ** New configure.bat options on MS-Windows: | |
473 | ||
474 | *** --without-libxml2 omits support for libxml2, even if its presence | |
475 | is detected. | |
476 | ||
53a63be6 EZ |
477 | ** When invoked with the -nw switch to run on the Windows text-mode terminal, |
478 | Emacs now supports mouse highlight, help-echo (in the echo area), and | |
479 | mouse-autoselect-window. | |
480 | ||
c6bf3022 CY |
481 | ** New function `tty-top-frame' returns the topmost frame of a text terminal. |
482 | ||
9078ead6 | 483 | \f |
eb199145 | 484 | * Installation Changes in Emacs 24.1 |
09e18d03 | 485 | |
31fd3586 GM |
486 | ** Emacs can be compiled with Gtk+ 3.0 if you pass --with-x-toolkit=gtk3 |
487 | to configure. Note that other libraries used by Emacs, RSVG and GConf, | |
488 | also depend on Gtk+. You can disable them with --without-rsvg and | |
489 | --without-gconf. | |
338648ad | 490 | |
31fd3586 GM |
491 | ** Emacs can be compiled with GnuTLS support. |
492 | This happens by default if a suitably recent version of the library is | |
493 | found at build time. To prevent this, use the configure option | |
494 | `--without-gnutls'. See below for GnuTLS features. | |
338648ad | 495 | |
31fd3586 GM |
496 | ** Emacs can be compiled with SELinux support. |
497 | This happens by default if a suitably recent version of the library is | |
498 | found at build time. To prevent this, use the configure option | |
499 | `--without-selinux'. See below for SELinux features. | |
aded53ff | 500 | |
31fd3586 GM |
501 | ** Emacs can be compiled with ImageMagick support. |
502 | This happens by default if a suitably recent version of the library is | |
503 | found at build time. To prevent this, use the configure option | |
504 | `--without-imagemagick'. See below for ImageMagick features. | |
c1f10868 | 505 | This feature is not available for the Nextstep or MS ports. |
d9170db5 | 506 | |
043efd56 GM |
507 | ** Emacs can be compiled with libxml2 support. |
508 | This happens by default if a suitably recent version of the library is | |
509 | found at build time. To prevent this, use the configure option | |
510 | `--without-xml2'. See below for libxml2 features. | |
511 | ||
7d301ae6 CY |
512 | ** By default, the installed Info and man pages are compressed. |
513 | You can disable this by configuring --without-compress-info. | |
514 | ||
7d301ae6 | 515 | ** New configure option --with-wide-int. |
81eafe29 | 516 | With it, Emacs integers typically have 62 bits, even on 32-bit machines. |
0a768890 PE |
517 | On 32-bit hosts, this raises the limit on buffer sizes from about 512 MiB |
518 | to about 2 GiB. | |
81eafe29 | 519 | |
7d301ae6 | 520 | ** New configure options: --with-mmdf, --with-mail-unlink, --with-mailhost. |
31fd3586 GM |
521 | These provide no new functionality, they just remove the need to edit |
522 | lib-src/Makefile by hand in order to use the associated features. | |
523 | ||
7d301ae6 | 524 | ** New configure option --enable-use-lisp-union-type. |
31fd3586 GM |
525 | This is only useful for Emacs developers to debug certain types of bugs. |
526 | This is not a new feature; only the configure flag is new. | |
041d709f CY |
527 | |
528 | ** The standalone programs digest-doc and sorted-doc are removed. | |
529 | Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'. | |
530 | ||
041d709f CY |
531 | ** The standalone program `fakemail' is removed. |
532 | If you need it, feedmail.el provides a superset of the functionality. | |
533 | ||
0bfd685e | 534 | \f |
eb199145 | 535 | * Startup Changes in Emacs 24.1 |
4a263588 | 536 | |
198a7a97 | 537 | ** The --unibyte, --multibyte, --no-multibyte, and --no-unibyte |
adbf62ff GM |
538 | command line arguments, and the EMACS_UNIBYTE environment variable, no |
539 | longer have any effect. (They were declared obsolete in Emacs 23.) | |
198a7a97 | 540 | |
66b7b0fe | 541 | ** New command line option `--no-site-lisp' removes site-lisp directories |
1b5e5b0c GM |
542 | from load-path. -Q now implies this. This option does not affect the |
543 | EMACSLOADPATH environment variable (and hence has no effect for | |
c8d59ba3 | 544 | Nextstep builds). |
66b7b0fe | 545 | |
0bfd685e | 546 | \f |
eb199145 | 547 | * Changes in Emacs 24.1 |
7841339b | 548 | |
a2a25d24 | 549 | ** Completion |
fdeb32ec | 550 | |
dfdb4cad CY |
551 | *** Many packages now use the `completion-at-point' command, |
552 | rather than implementing separate completion commands. | |
553 | ||
de0bde62 | 554 | *** `completion-at-point' now handles tags and semantic completion. |
dfdb4cad | 555 | |
a2a25d24 SM |
556 | *** Completion in a non-minibuffer now tries to detect the end of completion |
557 | and pops down the *Completions* buffer accordingly. | |
dfdb4cad CY |
558 | |
559 | *** New option `completion-cycle-threshold' allows completion cycling. | |
560 | ||
561 | *** New option `completion-category-overrides' for overriding the | |
2c719188 | 562 | default completion style in certain circumstances. |
dfdb4cad | 563 | |
a2a25d24 | 564 | *** New completion style `substring'. |
dfdb4cad CY |
565 | |
566 | *** Completion of buffer names uses `substring' completion by default. | |
567 | ||
568 | *** The option `widget-complete-field' has been removed. | |
620c53a6 | 569 | |
6870aaef | 570 | ** Mail changes |
dfdb4cad | 571 | |
7d301ae6 CY |
572 | *** The first time you try sending mail, Emacs asks for a mail method. |
573 | This is implemented by a new default for `send-mail-function', which | |
574 | is `sendmail-query-once'. This offers to use the smtpmail package, or | |
575 | to use the old defaults relying on external mail facilities | |
576 | (`sendmail-send-it' on GNU/Linux and other Unix-like systems, and | |
577 | `mailclient-send-it' on Windows). | |
dfdb4cad | 578 | |
7d301ae6 CY |
579 | *** Typing C-c m in the buffer made by M-x report-emacs-bug transfers |
580 | the report to your desktop's preferred mail client, if there is one. | |
581 | This uses either the "xdg-email" utility, or Mac OS's "open" command. | |
dfdb4cad | 582 | |
7d301ae6 CY |
583 | *** See Changes in Specialized Modes and Packages for SMTPmail changes |
584 | and Mail mode changes | |
3f88cd72 | 585 | |
041d709f | 586 | ** Emacs server and client changes |
dfdb4cad | 587 | |
7d301ae6 | 588 | *** New option `server-port' specifies the port for TCP Emacs servers. |
dfdb4cad | 589 | |
041d709f | 590 | *** New emacsclient argument -q/--quiet suppresses some status messages. |
dfdb4cad | 591 | |
7d301ae6 CY |
592 | *** New emacsclient argument --frame-parameters specifies the frame |
593 | parameters of any newly-created graphical frame. | |
dfdb4cad CY |
594 | |
595 | *** If emacsclient shuts down due to Emacs signaling an error, | |
596 | its exit status is 1. | |
597 | ||
041d709f CY |
598 | *** New emacsclient argument --parent-id ID. |
599 | This opens a client frame in parent X window ID, via XEmbed, similar | |
600 | to the --parent-id argument to Emacs. | |
601 | ||
d0ce9f8c MB |
602 | ** Internationalization changes |
603 | ||
d0ce9f8c | 604 | *** Emacs now supports display and editing of bidirectional text. |
7d301ae6 CY |
605 | Right-to-left (RTL) scripts, such as Arabic, Farsi, and Hebrew, are |
606 | displayed in the correct visual order as expected by users of those | |
dfdb4cad CY |
607 | scripts. The display reordering is a "full bidirectionality" class |
608 | implementation of the Unicode Bidirectional Algorithm (UBA). Buffers | |
609 | with no RTL text should look exactly the same as before. | |
f4b6ba46 | 610 | |
041d709f | 611 | **** New buffer-local variable `bidi-display-reordering'. |
7d301ae6 | 612 | To disable display reordering in a buffer, change this to nil. |
d20e1419 | 613 | |
041d709f CY |
614 | **** New buffer-local variable `bidi-paragraph-direction'. |
615 | If nil (the default), Emacs determines the base direction of each | |
dfdb4cad CY |
616 | paragraph from its text, as specified by the UBA. Setting the value |
617 | to `right-to-left' or `left-to-right' forces a base direction on each | |
618 | paragraph. | |
f4b6ba46 | 619 | |
7d301ae6 CY |
620 | Paragraphs with right-to-left base direction are displayed starting at |
621 | the right window edge. | |
f1816485 | 622 | |
dfdb4cad CY |
623 | *** Enhanced support for characters with no glyphs in available fonts, |
624 | or, on text terminals, characters that cannot be encoded by the | |
625 | terminal coding system. The new option `glyphless-char-display-control' | |
626 | specifies how to display them: as a hexadecimal code in a box, a thin | |
627 | 1-pixel space, an empty box, etc. | |
d0ce9f8c | 628 | |
9702b7a1 GM |
629 | *** New input methods for Farsi and Bulgarian |
630 | (farsi-isiri-9147, farsi-transliterate-banan, bulgarian-alt-phonetic). | |
041d709f | 631 | |
939db9ac CY |
632 | *** `nobreak-char-display' now also highlights Unicode hyphen chars |
633 | (U+2010 and U+2011). | |
634 | ||
7d301ae6 | 635 | *** New Hebrew translation of the Emacs Tutorial. |
31fd3586 GM |
636 | Type `C-u C-h t' to choose it in case your language setup doesn't |
637 | automatically select it. | |
638 | ||
7d301ae6 CY |
639 | ** An Emacs Lisp package manager is now included. |
640 | This is a convenient way to download and install additional packages, | |
641 | from a package repository at http://elpa.gnu.org. | |
dfdb4cad | 642 | |
7d301ae6 CY |
643 | *** M-x list-packages shows a list of packages, which can be |
644 | selected for installation. | |
dfdb4cad | 645 | |
7d301ae6 | 646 | *** New command `describe-package', bound to `C-h P'. |
dfdb4cad | 647 | |
7d301ae6 CY |
648 | *** By default, all installed packages are loaded automatically when |
649 | Emacs starts up. To disable this, set `package-enable-at-startup' to | |
650 | nil. To specify the packages to load, customize `package-load-list'. | |
16a91140 | 651 | |
dfdb4cad CY |
652 | ** Custom theme changes |
653 | ||
7d301ae6 CY |
654 | *** New command `M-x customize-themes', which provides a convenient |
655 | interface for enabling and disabling Custom themes. | |
dfdb4cad | 656 | |
7d301ae6 | 657 | *** New option `custom-theme-load-path' is the load path for themes. |
dfdb4cad CY |
658 | Emacs no longer looks for Custom themes in `load-path'. The default |
659 | value of `custom-theme-load-path' says to look for themes in | |
660 | `custom-theme-directory', followed by a subdirectory of | |
661 | `data-directory' named "themes/", which contains a small selection of | |
662 | built-in Custom themes. | |
663 | ||
7d301ae6 CY |
664 | *** New option `custom-safe-themes' records known-safe theme files. |
665 | If a theme is not in this list, Emacs queries before loading it, and | |
666 | offers to save the theme to `custom-safe-themes' automatically. By | |
667 | default, all themes included in Emacs are treated as safe. | |
b7d65a5f | 668 | |
7d301ae6 | 669 | ** Improved GTK integration |
dfdb4cad | 670 | |
7d301ae6 | 671 | *** GTK scroll-bars are now placed on the right by default. |
dfdb4cad CY |
672 | The function `set-scroll-bar-mode' can change this. |
673 | ||
7d301ae6 | 674 | *** GTK tool bars can have just text, just images or images and text. |
dfdb4cad CY |
675 | Customize `tool-bar-style' to choose the style. On a Gnome desktop, |
676 | the default is taken from desktop settings. | |
677 | ||
678 | *** GTK tool bars can be placed on any edge of the frame. | |
7d301ae6 CY |
679 | The frame-parameter tool-bar-position controls this. It takes the |
680 | values top, left, right or bottom. The Options => Show/Hide menu has | |
681 | entries for this. | |
dfdb4cad | 682 | |
7d301ae6 CY |
683 | *** The default colors for selected text (the `region' face) are taken |
684 | from the GTK theme when Emacs is built with GTK. | |
dfdb4cad | 685 | |
7d301ae6 CY |
686 | *** Emacs uses GTK tooltips by default if built with GTK. |
687 | You can disable this by changing `x-gtk-use-system-tooltips' to nil. | |
a5bee597 | 688 | |
dfdb4cad CY |
689 | ** Graphical interface changes |
690 | ||
691 | *** On graphical displays, the mode-line no longer ends in dashes. | |
692 | Also, the first dash (which does not indicate anything) is just | |
693 | displayed as a space. | |
694 | ||
695 | *** `menu-bar-select-buffer-function' lets you choose another operation | |
696 | instead of `switch-to-buffer' when selecting an item in the Buffers menu. | |
697 | ||
698 | *** Lucid menus and dialogs can display antialiased fonts if Emacs is | |
699 | built with Xft. These fonts can be set via X resources, for example: | |
700 | Emacs.pane.menubar.font: Courier-12 | |
701 | ||
7d301ae6 | 702 | ** Exiting changes |
dfdb4cad | 703 | |
7d301ae6 | 704 | *** Emacs now calls `kill-emacs' if it receives SIGTERM or SIGHUP, |
dfdb4cad CY |
705 | or if it receives a SIGINT signal in batch mode. |
706 | ||
7d301ae6 CY |
707 | *** `kill-emacs-hook' is now also run in batch mode. |
708 | Third-party code which adds to `kill-emacs-hook' should check if they | |
709 | do the right thing in batch mode. | |
9c524fcb | 710 | |
041d709f | 711 | ** Scrolling changes |
dfdb4cad | 712 | |
041d709f | 713 | *** New scrolling commands `scroll-up-command' and `scroll-down-command' |
0a19a6f8 | 714 | (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom |
7d301ae6 | 715 | of buffer at first key-press (instead they move to top/bottom of buffer) |
550f41cd | 716 | when `scroll-error-top-bottom' is non-nil. |
dfdb4cad CY |
717 | |
718 | *** New option `scroll-error-top-bottom' (see above). | |
719 | ||
041d709f | 720 | *** New scrolling commands `scroll-up-line' and `scroll-down-line' |
5a97d2da | 721 | scroll a line instead of full screen. |
dfdb4cad | 722 | |
041d709f | 723 | *** New property `scroll-command' should be set on a command's symbol to |
b2957ea8 | 724 | define it as a scroll command affected by `scroll-preserve-screen-position'. |
dfdb4cad | 725 | |
041d709f | 726 | *** If you customize `scroll-conservatively' to a value greater than 100, |
d0f69533 EZ |
727 | Emacs will never recenter point in the window when it scrolls due to |
728 | cursor motion commands or commands that move point (e.f., `M-g M-g'). | |
729 | Previously, you needed to use `most-positive-fixnum' as the value of | |
730 | `scroll-conservatively' to achieve the same effect. | |
dfdb4cad | 731 | |
7d301ae6 | 732 | *** "Aggressive" scrolling now honors the scroll margins. |
d0f69533 EZ |
733 | If you customize `scroll-up-aggressively' or |
734 | `scroll-down-aggressively' and move point off the window, Emacs now | |
735 | scrolls the window so as to avoid positioning point inside the scroll | |
736 | margin. | |
737 | ||
7d301ae6 CY |
738 | ** Basic SELinux support has been added. |
739 | This requires Emacs to be linked with libselinux at build time. | |
f1a5d776 | 740 | |
dfdb4cad CY |
741 | *** Emacs preserves the SELinux file context when backing up. |
742 | Also, the function `copy-file' has an extra optional argument for | |
743 | preserving SELinux context, and the return value of `backup-buffer' | |
744 | now includes the SELinux context. | |
f0bf7c8e | 745 | |
dfdb4cad | 746 | *** New functions `file-selinux-context' and `set-file-selinux-context' |
7d301ae6 | 747 | get and set the SELinux context of a file. |
44198b6e | 748 | |
7d301ae6 | 749 | ** Trash changes |
dfdb4cad | 750 | |
7d301ae6 CY |
751 | *** `delete-by-moving-to-trash' now only affects commands that specify |
752 | trashing. This avoids inadvertently trashing temporary files. | |
dfdb4cad | 753 | |
7d301ae6 CY |
754 | *** Calling `delete-file' or `delete-directory' with a prefix argument |
755 | now forces true deletion, regardless of `delete-by-moving-to-trash'. | |
278f6845 | 756 | |
041d709f | 757 | ** File- and directory-local variable changes |
dfdb4cad | 758 | |
041d709f CY |
759 | *** You can stop directory local vars from applying to subdirectories. |
760 | Add an element (subdirs . nil) to the alist portion of any variables | |
761 | settings to indicate that the section should not apply to | |
762 | subdirectories. | |
dfdb4cad | 763 | |
041d709f CY |
764 | *** Directory local variables can apply to some file-less buffers. |
765 | Affected modes include dired, vc-dir, and log-edit. For example, | |
766 | adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will | |
767 | turn on `whitespace-mode' for *vc-diff* buffers. Modes should call | |
768 | `hack-dir-local-variables-non-file-buffer' to support this. | |
dfdb4cad | 769 | |
041d709f CY |
770 | *** Using "mode: MINOR-MODE" to enable a minor mode is deprecated. |
771 | Instead, use "eval: (minor-mode 1)". | |
c136e5cd | 772 | |
7b447e9b GM |
773 | *** The variable `inhibit-first-line-modes-regexps' has been renamed |
774 | to `inhibit-local-variables-regexps'. As the name suggests, it now | |
dfdb4cad CY |
775 | applies to ALL file local variables, not just -*- lines. The |
776 | associated `inhibit-first-line-modes-suffixes' has been renamed in the | |
777 | corresponding way. | |
5d907d6c | 778 | |
0a2132ba CY |
779 | ** Window changes |
780 | ||
91b65361 CY |
781 | *** The `quit-window' command now restores the last buffer displayed |
782 | in the quitted window. | |
783 | ||
0a2132ba CY |
784 | *** Resizing an Emacs frame now preserves proportional window sizes, |
785 | modulo restrictions like window minimum sizes and fixed-size windows. | |
786 | ||
787 | *** The behavior of `display-buffer' is now customizable in detail. | |
dfdb4cad | 788 | |
0a2132ba CY |
789 | **** New option `display-buffer-base-action' specifies a list of |
790 | user-determined display "actions" (functions and optional arguments | |
791 | for choosing the displaying window). | |
792 | ||
793 | This takes precedence over the default display action, which is | |
794 | specified by `display-buffer-fallback-action'. | |
795 | ||
796 | **** New option `display-buffer-alist' maps buffer name regexps to | |
797 | display actions, taking precedence over `display-buffer-base-action'. | |
798 | ||
a0c2d0ae MR |
799 | *** New option `window-combination-limit'. |
800 | The new option `window-combination-limit' allows to return the space | |
801 | obtained for resizing or creating a window more reliably to the window | |
802 | from which such space was obtained. | |
0a2132ba | 803 | |
a0c2d0ae MR |
804 | *** New option `window-combination-resize'. |
805 | The new option `window-combination-resize' allows to split a window that | |
806 | otherwise cannot be split because it's too small by stealing space from | |
807 | other windows in the same combination. Subsequent resizing or deletion | |
808 | of the window will resize all windows in the same combination as well. | |
0a2132ba | 809 | |
91b65361 CY |
810 | *** New option `frame-auto-hide-function' lets you choose between |
811 | iconifying or deleting a frame when burying a buffer in a dedicated | |
812 | frame, or quitting a window showing a buffer in a frame of its own. | |
813 | ||
0a2132ba | 814 | *** New commands `maximize-window' and `minimize-window'. |
53964682 | 815 | These maximize and minimize the size of a window within its frame. |
0a2132ba | 816 | |
0a2132ba CY |
817 | *** New commands `switch-to-prev-buffer' and `switch-to-next-buffer'. |
818 | These functions allow to navigate through the live buffers that have | |
819 | been shown in a specific window. | |
820 | ||
7d301ae6 | 821 | ** Minibuffer changes |
dfdb4cad | 822 | |
7d301ae6 | 823 | *** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'. |
104dc9c6 GM |
824 | This is handy for minibuffer-only frames, and is also used for the feature |
825 | where mouse-1 pops up *Messages*"', which can now easily be changed. | |
041d709f | 826 | |
7d301ae6 | 827 | *** Minibuffers set `truncate-lines' to nil. |
f66eca26 | 828 | If you want to change the value to something else, you could use |
7d301ae6 CY |
829 | for example `minibuffer-setup-hook'. |
830 | ||
7d301ae6 CY |
831 | ** `auto-mode-case-fold' is now enabled by default. |
832 | ||
7d301ae6 | 833 | ** `backup-by-copying-when-mismatch' now defaults to t. |
f66eca26 | 834 | |
dfdb4cad CY |
835 | ** New basic faces `error', `warning', `success'. |
836 | These are used to highlight text indicating failure, caution or | |
837 | successful operation. | |
838 | ||
839 | ** New option `list-colors-sort' defines the color sort order | |
840 | for `list-colors-display'. | |
841 | ||
842 | ** The variable `focus-follows-mouse' now always defaults to nil. | |
843 | ||
0bfd685e | 844 | \f |
eb199145 | 845 | * Editing Changes in Emacs 24.1 |
b350bdf2 | 846 | |
892777ba | 847 | ** Search changes |
dfdb4cad CY |
848 | |
849 | *** C-y in Isearch is now bound to `isearch-yank-kill', instead of | |
850 | `isearch-yank-line'. | |
851 | ||
852 | *** M-y in Isearch is now bound to `isearch-yank-pop', instead of | |
853 | `isearch-yank-kill'. | |
854 | ||
855 | *** M-s C-e in Isearch is now bound to `isearch-yank-line'. | |
856 | ||
b2b0776e | 857 | ** New commands `count-words-region' and `count-words'. |
dfdb4cad | 858 | |
10607bea CY |
859 | *** M-= is bound to `count-words-region', not `count-lines-region'. |
860 | The `count-words-region' command, when called interactively, reports | |
861 | the number of lines, words, and characters in the region. It is a | |
862 | superset of the old `count-lines-region', which is now an obsolete | |
863 | alias for it. | |
ea4f7750 | 864 | |
ec9da840 | 865 | ** The command `just-one-space' (M-SPC), if given a negative argument, |
1c708c1a CY |
866 | also deletes newlines around point. |
867 | ||
b9229673 | 868 | ** Deletion changes |
dfdb4cad | 869 | |
b9229673 | 870 | *** New option `delete-active-region'. |
ddb54206 | 871 | If non-nil, [delete] and DEL delete the region if it is active and no |
dfdb4cad | 872 | prefix argument is given. If set to `kill', those commands kill |
ddb54206 | 873 | instead. |
dfdb4cad | 874 | |
59ee0542 | 875 | *** New command `delete-forward-char', bound to [delete]. |
42d9cffa CY |
876 | This is meant for interactive use, and obeys `delete-active-region'. |
877 | The command `delete-char' does not obey `delete-active-region'. | |
dfdb4cad | 878 | |
b9229673 CY |
879 | *** `delete-backward-char' is now a Lisp function. |
880 | Apart from obeying `delete-active-region', its behavior is unchanged. | |
7d301ae6 CY |
881 | However, the byte compiler now warns if it is called from Lisp; Lisp |
882 | callers should use delete-char with a negative argument instead. | |
dfdb4cad | 883 | |
b9229673 CY |
884 | *** The option `mouse-region-delete-keys' has been deleted. |
885 | ||
f9d71b42 CY |
886 | ** Selection changes. |
887 | ||
7d301ae6 CY |
888 | The default handling of clipboard and primary selections has been |
889 | changed to conform with modern X applications. In short, most | |
890 | commands for killing and yanking text now use the clipboard, while | |
891 | mouse commands use the primary selection. | |
b1ab31ae CY |
892 | |
893 | In the following, we provide a list of these changes, followed by a | |
894 | list of steps to get the old behavior back if you prefer that. | |
895 | ||
b1ab31ae CY |
896 | *** `select-active-regions' now defaults to t. |
897 | Merely selecting text (e.g. with drag-mouse-1) no longer puts it in | |
963578d3 | 898 | the kill ring. The selected text is put in the primary selection, if |
b1ab31ae CY |
899 | the system possesses a separate primary selection facility (e.g. X). |
900 | ||
901 | **** `select-active-regions' also accepts a new value, `only'. | |
902 | This means to only set the primary selection for temporarily active | |
903 | regions (usually made by mouse-dragging or shift-selection); | |
904 | "ordinary" active regions, such as those made with C-SPC followed by | |
905 | point motion, do not alter the primary selection. | |
906 | ||
963578d3 CY |
907 | **** `mouse-drag-copy-region' now defaults to nil. |
908 | ||
b1ab31ae CY |
909 | *** mouse-2 is now bound to `mouse-yank-primary'. |
910 | This pastes from the primary selection, ignoring the kill-ring. | |
911 | Previously, mouse-2 was bound to `mouse-yank-at-click'. | |
dfdb4cad | 912 | |
b1ab31ae | 913 | *** `x-select-enable-clipboard' now defaults to t on all platforms. |
dfdb4cad | 914 | |
b1ab31ae CY |
915 | *** `x-select-enable-primary' now defaults to nil. |
916 | Thus, commands that kill text or copy it to the kill-ring (such as | |
917 | M-w, C-w, and C-k) also use the clipboard---not the primary selection. | |
918 | ||
919 | **** The "Copy", "Cut", and "Paste" items in the "Edit" menu are now | |
dfdb4cad | 920 | exactly equivalent to M-w, C-w, and C-y respectively. |
b1ab31ae CY |
921 | |
922 | **** Note that on MS-Windows, `x-select-enable-clipboard' was already | |
923 | non-nil by default, as Windows does not support the primary selection | |
924 | between applications. | |
925 | ||
926 | *** To return to the previous behavior, do the following: | |
dfdb4cad | 927 | |
104c2fe9 | 928 | **** Change `select-active-regions' to nil. |
b1ab31ae CY |
929 | **** Change `mouse-drag-copy-region' to t. |
930 | **** Change `x-select-enable-primary' to t (on X only). | |
931 | **** Change `x-select-enable-clipboard' to nil. | |
932 | **** Bind `mouse-yank-at-click' to mouse-2. | |
f9d71b42 | 933 | |
084e6df3 | 934 | *** Support for X cut buffers has been removed. |
dfdb4cad | 935 | |
3fd50d5c CY |
936 | *** X clipboard managers are now supported. |
937 | To inhibit this, change `x-select-enable-clipboard-manager' to nil. | |
4b80f674 | 938 | |
dfdb4cad CY |
939 | ** New command `C-x r N' (`rectangle-number-lines') numbers the lines |
940 | in the current rectangle. With a prefix argument, this prompts for a | |
941 | number to count from and for a format string. | |
99f053cf | 942 | |
7d301ae6 | 943 | ** `redisplay-dont-pause' now defaults to t. |
6bf7006f EZ |
944 | This makes Emacs feel more responsive to editing commands that arrive |
945 | at high rate, e.g. if you lean on some key, because stopping redisplay | |
946 | in the middle (when this variable is nil) forces more expensive | |
947 | updates later on, and Emacs appears to be unable to keep up. | |
948 | ||
e70b5064 CY |
949 | ** The behavior of <TAB> for active regions in Text mode has changed. |
950 | In Text and related modes, typing <TAB> (`indent-for-tab-command') | |
951 | when the region is active causes Emacs to indent all the lines in the | |
952 | region, aligning them with the line previous to the first line in the | |
953 | region (or with the left margin if there is no previous line). | |
954 | ||
dfdb4cad CY |
955 | ** When `occur' is called with a prefix argument, matching strings are |
956 | collected into the `*Occur*' buffer without line numbers. If there | |
957 | are parenthesized subexpressions in the specified regexp, `occur' | |
958 | reads replacement text that may contain \\& and \\N whose convention | |
959 | follows `replace-match'. | |
960 | ||
9bae34bf | 961 | \f |
eb199145 | 962 | * Changes in Specialized Modes and Packages in Emacs 24.1 |
efeb796b | 963 | |
041d709f | 964 | ** Archive Mode has basic support for browsing and updating 7z archives. |
d76674bb | 965 | |
b7c3692a | 966 | ** BibTeX mode |
dfdb4cad | 967 | |
2de69e00 | 968 | *** BibTeX mode now supports biblatex. |
7d301ae6 CY |
969 | Use the variable `bibtex-dialect' to select different BibTeX dialects. |
970 | `bibtex-entry-field-alist' is now an obsolete alias for | |
971 | `bibtex-BibTeX-entry-alist'. | |
972 | ||
dfdb4cad CY |
973 | *** New command `bibtex-search-entries', bound to C-c C-a. |
974 | ||
b7c3692a | 975 | *** New `bibtex-entry-format' option `sort-fields', disabled by default. |
dfdb4cad | 976 | |
022fe7ce RW |
977 | *** New variable `bibtex-search-entry-globally'. |
978 | ||
7d301ae6 | 979 | ** Browse-url |
dfdb4cad | 980 | |
7d301ae6 | 981 | *** New option `browse-url-mailto-function' specifies how to handle "mailto:"s. |
dfdb4cad | 982 | |
7d301ae6 CY |
983 | *** The default browser used by the package is now the "xdg-open" program, |
984 | on platforms that support it. This calls your desktop's preferred browser. | |
985 | ||
cf16af42 GM |
986 | ** Calendar, Diary, and Appt |
987 | ||
7d301ae6 | 988 | *** Diary entries can contain non-printing "comments". |
548d0a63 GM |
989 | See the variable `diary-comment-start'. |
990 | ||
5006e634 GM |
991 | *** Appointments can specify their individual warning times. |
992 | See the variable `appt-warning-time-regexp'. | |
993 | ||
0a2bb1a9 GM |
994 | *** The function specified by `appt-disp-window-function' may be passed |
995 | lists of arguments if multiple appointments are due at similar times. | |
996 | If you are using a custom function for this, you should update it. | |
997 | ||
7454f200 GM |
998 | *** New function `diary-hebrew-birthday'. |
999 | ||
e565dd37 GM |
1000 | *** Elements of `calendar-day-abbrev-array' and `calendar-month-abbrev-array' |
1001 | may no longer be nil, but must all be strings. | |
1002 | ||
7d301ae6 CY |
1003 | *** The obsolete (since Emacs 22.1) method of enabling the appt |
1004 | package by adding `appt-make-list' to `diary-hook' has been removed. | |
1005 | Use `appt-activate' instead. | |
cf16af42 | 1006 | |
cf16af42 GM |
1007 | *** Some appt variables (obsolete since Emacs 22.1) have been removed: |
1008 | appt-issue-message (use the function appt-activate) | |
1009 | appt-visible/appt-msg-window (use the variable appt-display-format) | |
1010 | ||
cf16af42 GM |
1011 | *** Some diary function aliases (obsolete since Emacs 22.1) have been removed: |
1012 | view-diary-entries, list-diary-entries, show-all-diary-entries | |
1013 | ||
551b046f | 1014 | ** CC Mode |
dfdb4cad | 1015 | |
551b046f | 1016 | *** New feature to "guess" the style in an existing buffer. |
7d301ae6 | 1017 | The main entry point is M-x c-guess. |
041d709f | 1018 | |
551b046f AM |
1019 | *** Java Mode now supports Java 5.0 (Tiger) and 6 (Mustang). |
1020 | ||
dfdb4cad | 1021 | *** `c-beginning-of-defun' and `c-end-of-defun' now respect nested scopes. |
551b046f AM |
1022 | Thus C-M-a will, by default, go to the beginning of the immediate function, |
1023 | not the top level. | |
1024 | ||
dfdb4cad | 1025 | *** "Macros with semicolons" can be registered for correct indentation. |
551b046f AM |
1026 | Where such a macro ends a line (no semicolon) the next statement is no longer |
1027 | parsed as a statement continuation. | |
1028 | ||
dfdb4cad | 1029 | ** Comint and modes derived from it use the standard completion code. |
041d709f CY |
1030 | |
1031 | ** Compilation mode | |
dfdb4cad | 1032 | |
7d301ae6 | 1033 | *** Compilation mode can be used without Font Lock mode. |
041d709f CY |
1034 | `compilation-parse-errors-function' is now obsolete. |
1035 | ||
dfdb4cad | 1036 | *** New variable `compilation-filter-start', which is bound while |
7d301ae6 CY |
1037 | `compilation-filter-hook' runs. It records the start position of the |
1038 | text inserted by `compilation-filter'. | |
041d709f | 1039 | |
47a6a35f GM |
1040 | *** `compilation-error-screen-columns' and `compilation-first-column' |
1041 | are obeyed in the editing buffer. So programming language modes can | |
7d301ae6 CY |
1042 | set them, whereas previously only the value in the *Compilation* |
1043 | buffer was used. | |
1dce7193 | 1044 | |
52834b6b CY |
1045 | ** Customize |
1046 | ||
1047 | *** Customize buffers now contain a search field. | |
1048 | The search is performed using `customize-apropos'. | |
7d301ae6 | 1049 | To turn off the search field, set `custom-search-field' to nil. |
52834b6b CY |
1050 | |
1051 | *** Custom options now start out hidden if at their default values. | |
1052 | Use the arrow to the left of the option name to toggle visibility. | |
1053 | ||
1054 | *** custom-buffer-sort-alphabetically now defaults to t. | |
1055 | ||
1056 | *** The color widget now has a "Choose" button, which allows you to | |
7d301ae6 | 1057 | choose a color via `list-colors-display'. |
52834b6b | 1058 | |
041d709f CY |
1059 | ** D-Bus |
1060 | ||
5da3be7f GM |
1061 | *** It is now possible to access buses other than the default system |
1062 | or session bus. | |
041d709f | 1063 | |
7d301ae6 | 1064 | *** The `dbus-register-method' and `dbus-register-property' functions |
5da3be7f | 1065 | optionally do not register names. |
041d709f | 1066 | |
7d301ae6 | 1067 | *** The new function `dbus-register-service' registers a known service |
dfdb4cad | 1068 | name on a D-Bus without also registering a property or a method. |
041d709f | 1069 | |
f5d6548a | 1070 | ** Dired-x |
425a25f1 | 1071 | |
7d301ae6 CY |
1072 | *** C-x C-j (`dired-jump') and C-x 4 C-j (`dired-jump-other-window'), |
1073 | if called with a prefix argument, read a file name from the minibuffer | |
1074 | instead of using the current buffer. | |
f5d6548a | 1075 | |
7d301ae6 | 1076 | *** The "dired local variables" feature of Dired-x is obsolete. |
817b48a7 | 1077 | The standard directory local variables feature replaces it. |
8117868f | 1078 | |
041d709f | 1079 | ** ERC changes |
7492acc9 | 1080 | |
c4077254 GM |
1081 | *** New options `erc-autojoin-timing' and `erc-autojoin-delay', |
1082 | controlling attempts to autojoin a channel. | |
041d709f CY |
1083 | |
1084 | *** New variable `erc-coding-system-precedence': If we use `undecided' | |
1085 | as the server coding system, this variable will then be consulted. | |
1086 | The default is to decode strings that can be decoded as utf-8 as | |
1087 | utf-8, and do the normal `undecided' decoding for the rest. | |
7492acc9 | 1088 | |
041d709f | 1089 | ** Eshell changes |
7492acc9 | 1090 | |
05f77e38 GM |
1091 | *** The default value of `eshell-directory-name' has changed |
1092 | to be an "eshell" directory in `user-emacs-directory'. | |
1093 | The old "~/.eshell/" directory is still used if it exists, though. | |
041d709f CY |
1094 | |
1095 | ** gdb-mi | |
dfdb4cad CY |
1096 | |
1097 | *** The M-x gdb command now uses the GDB Machine Interface protocol. | |
05f77e38 GM |
1098 | It now supports multithread non-stop debugging and simultaneous |
1099 | debugging of several threads. | |
7492acc9 | 1100 | |
18af70d0 CY |
1101 | ** Image mode |
1102 | ||
05f77e38 GM |
1103 | *** RET (`image-toggle-animation') toggles animation, if applicable. |
1104 | Animation plays once, unless the option `image-animate-loop' is non-nil. | |
18af70d0 | 1105 | |
041d709f | 1106 | ** Info |
723ee192 | 1107 | |
7d301ae6 | 1108 | *** New command M-x info-display-manual displays a named Info manual. |
2ebc3b94 GM |
1109 | If that manual is already visited in some Info buffer, it displays |
1110 | that buffer. (This is handy if you have many manuals in many *info* | |
1111 | buffers, and don't remember the name of the buffer visiting the manual | |
1112 | you want to consult.) Otherwise, it loads and displays the manual. | |
691cf4a0 | 1113 | |
24ea72d3 EZ |
1114 | *** `e' is now bound to `end-of-buffer' rather than to `Info-edit'. |
1115 | This is for compatibility with the stand-alone Info reader program, | |
1116 | and also because `Info-edit' is a rarely used command that is disabled | |
1117 | by default. | |
1118 | ||
7d301ae6 | 1119 | ** Mail mode changes (not Message mode) |
dfdb4cad | 1120 | |
7d301ae6 | 1121 | *** New command M-x mail-add-attachment for adding MIME attachments |
7d301ae6 | 1122 | |
dfdb4cad CY |
1123 | *** The command M-x mail-attach-file was renamed to M-x mail-insert-file. |
1124 | (Its name is misleading, since it has nothing to do with MIME | |
1125 | attachments.) The old name is now an obsolete alias to the new name. | |
1126 | ||
f2c3a9eb | 1127 | ** MH-E has been updated to MH-E version 8.3.1. |
041d709f | 1128 | See MH-E-NEWS for details. |
37221432 | 1129 | |
041d709f | 1130 | ** Modula-2 mode provides auto-indentation. |
37221432 | 1131 | |
041d709f | 1132 | ** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags. |
3c3d4f5b | 1133 | |
5d1ac394 | 1134 | ** nXML mode no longer binds C-RET to `nxml-complete'. |
dfdb4cad CY |
1135 | Completion is now performed via `completion-at-point', bound to C-M-i |
1136 | or M-TAB. If `nxml-bind-meta-tab-to-complete-flag' is non-nil (the | |
1137 | default), this performs tag completion. | |
5d1ac394 | 1138 | |
f2c3a9eb CY |
1139 | ** Org mode has been updated to version 7.8.09. |
1140 | See ORG-NEWS for details. | |
1141 | ||
041d709f | 1142 | ** Prolog mode has been completely revamped, with lots of additional |
7d301ae6 CY |
1143 | functionality such as more intelligent indentation, electricity, |
1144 | support for more variants, including Mercury, and a lot more. | |
041d709f CY |
1145 | |
1146 | ** Rmail | |
1147 | ||
1148 | *** The command `rmail-epa-decrypt' decrypts OpenPGP data | |
1149 | in the Rmail incoming message. | |
1150 | ||
50419064 GM |
1151 | *** The variable `rmail-message-filter' no longer has any effect. |
1152 | This change was made in Emacs 23.1 but was not advertised at the time. | |
1153 | Try using `rmail-show-message-hook' instead. | |
1154 | ||
717a1362 | 1155 | ** Shell mode |
dfdb4cad CY |
1156 | |
1157 | *** M-x shell prompts for the shell path name if the default directory | |
1158 | is a remote file name and neither the environment variable $ESHELL nor | |
1159 | the variable `explicit-shell-file-name' is set. | |
1160 | ||
1161 | *** TAB is now bound to the standard `completion-at-point' command, | |
1162 | which now implements the pcomplete rules for shell command completion. | |
717a1362 | 1163 | |
7d301ae6 CY |
1164 | ** SMTPmail |
1165 | ||
dfdb4cad | 1166 | *** SMTPmail now uses encrypted connections (via STARTTLS) by default |
7d301ae6 CY |
1167 | if the mail server supports them. This uses either built-in GnuTLS |
1168 | support, or the starttls.el library. Customize `smtpmail-stream-type' | |
1169 | to change this. | |
1170 | ||
7d301ae6 CY |
1171 | *** The variable `smtpmail-auth-credentials' has been removed. |
1172 | By default, the information is now stored in the file ~/.authinfo. | |
dfdb4cad CY |
1173 | This was the default value of smtpmail-auth-credentials. If you had |
1174 | customized smtpmail-auth-credentials to a list of user names and | |
1175 | passwords, those settings are not used. During your first connection | |
1176 | to the smtp server, Emacs will prompt for the user name and password, | |
1177 | and offer to save them to ~/.authinfo. Or you can manually copy the | |
1178 | credentials to ~/.authinfo. For example, if you had | |
7d301ae6 CY |
1179 | |
1180 | (setq smtpmail-auth-credentials | |
1181 | '(("mail.example.org" 25 "jim" "s!cret"))) | |
1182 | ||
1183 | then the equivalent line in ~/.authinfo would be | |
1184 | ||
1185 | machine mail.example.org port 25 login jim password s!cret | |
1186 | ||
1187 | See the auth-source manual for more information, e.g. on encrypting | |
1188 | the credentials file. | |
1189 | ||
7d301ae6 | 1190 | *** The variable `smtpmail-starttls-credentials' has been removed. |
dfdb4cad | 1191 | If you had that set, you need to put |
7d301ae6 CY |
1192 | |
1193 | machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert" | |
1194 | ||
1195 | in your ~/.authinfo file instead. | |
1196 | ||
34e8a2da | 1197 | ** SQL mode |
041d709f | 1198 | |
34e8a2da GM |
1199 | *** New options `sql-port', `sql-connection-alist', `sql-send-terminator', |
1200 | and `sql-oracle-scan-on'. | |
041d709f | 1201 | |
dfdb4cad | 1202 | *** New options controlling prompting for login parameters. |
34e8a2da GM |
1203 | Each supported product has a custom variable `sql-*-login-params', |
1204 | which is a list of the parameters to be prompted for before a | |
1205 | connection is established. | |
041d709f CY |
1206 | |
1207 | *** The command `sql-product-interactive' now takes a prefix argument, | |
34e8a2da | 1208 | which causes it to prompt for an SQL product. |
041d709f | 1209 | |
34e8a2da | 1210 | *** Product-specific SQL interactive commands now take prefix arguments. |
041d709f CY |
1211 | These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.), |
1212 | given a prefix argument, prompt for a name for the SQL interactive | |
1213 | buffer. This reduces the need for calling `sql-rename-buffer'. | |
1214 | ||
1215 | *** SQL interactive modes suppress command continuation prompts, and | |
1216 | replace tabs with spaces. The first change impacts multiple line SQL | |
1217 | statements entered with C-j between each line, statements yanked into | |
1218 | the buffer and statements sent with `sql-send-*' functions. The | |
34e8a2da GM |
1219 | second prevents the MySQL and Postgres interpreters from listing |
1220 | object name completions when sent text via `sql-send-*' functions. | |
041d709f CY |
1221 | |
1222 | *** New command `sql-connect' starts a predefined SQLi session, | |
1223 | using the login parameters from `sql-connection-alist'. | |
1224 | ||
1225 | *** New "Save Connection" menu item in SQLi buffers. | |
1226 | This gathers the login params specified for the SQLi session, if it | |
1227 | was not started by a connection, and saves them as a new connection. | |
1228 | ||
34e8a2da GM |
1229 | *** New commands for listing database objects and details: |
1230 | sql-list-all and sql-list-table. | |
041d709f CY |
1231 | |
1232 | *** An API for manipulating SQL product definitions has been added. | |
1233 | ||
1234 | ** TeX modes | |
1235 | ||
1236 | *** latex-electric-env-pair-mode keeps \begin..\end matched on the fly. | |
412b9ee5 | 1237 | |
459bba37 | 1238 | ** Tramp |
dfdb4cad | 1239 | |
7d301ae6 | 1240 | *** New inline access method "ksu" (kerberized su). |
dfdb4cad | 1241 | |
459bba37 | 1242 | *** The following access methods are discontinued: "ssh1_old", |
ea843702 | 1243 | "ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish". |
dfdb4cad | 1244 | |
b011fbfe GM |
1245 | *** The user option `remote-file-name-inhibit-cache' controls whether |
1246 | remote file attributes are cached for better performance. | |
dfdb4cad | 1247 | |
58f74fe4 MA |
1248 | *** The option `ange-ftp-binary-file-name-regexp' has changed its |
1249 | default value to "". | |
dfdb4cad | 1250 | |
7d301ae6 CY |
1251 | *** Handlers for `file-selinux-context' and `set-file-selinux-context' |
1252 | for remote machines which support SELinux. | |
58f74fe4 | 1253 | |
dfdb4cad | 1254 | ** New function `url-queue-retrieve', which behaves like url-retrieve, |
a48ec60c GM |
1255 | but with limits (`url-queue-parallel-processes', `url-queue-timeout') on |
1256 | the degree of parallelism. | |
177549d0 | 1257 | |
0c32ce32 CY |
1258 | ** VC and related modes |
1259 | ||
1260 | *** Support for pulling on distributed version control systems. | |
7d301ae6 CY |
1261 | The command C-x v + (`vc-pull') runs a "pull" operation, if it is |
1262 | supported (currently with Bzr, Git, and Mercurial), to update the | |
1263 | current branch and working tree. A prefix argument means to prompt | |
1264 | the user for specifics, e.g. a pull location. | |
0c32ce32 | 1265 | |
dab3703d | 1266 | *** `vc-update' is now an alias for `vc-pull'. |
0c32ce32 CY |
1267 | |
1268 | *** Support for merging on distributed version control systems. | |
7d301ae6 CY |
1269 | The command C-x v m (`vc-merge') now runs a "merge" operation, if it |
1270 | is supported (currently with Bzr, Git, and Mercurial), to merge | |
1271 | changes from another branch into the current one. It prompts for | |
1272 | specifics, e.g. a merge source. | |
0c32ce32 | 1273 | |
2afef60a | 1274 | *** New option `vc-revert-show-diff' controls whether `vc-revert' |
bbe43420 | 1275 | shows a diff while querying the user. It defaults to t. |
2afef60a | 1276 | |
d4eb88c7 CY |
1277 | *** Log entries in some Log View buffers can be toggled to display a |
1278 | longer description by typing RET (log-view-toggle-entry-display). | |
dab3703d GM |
1279 | This is currently supported for Bzr, Git, and Mercurial (to support |
1280 | another backend, define a `log-view-expanded-log-entry-function'). | |
7d301ae6 | 1281 | In the Log View buffers made by C-x v L (`vc-print-root-log'), you can |
d4eb88c7 CY |
1282 | use this to display the full log entry for the revision at point. |
1283 | ||
1c6c854e CS |
1284 | *** New command `vc-ediff' allows visual comparison of two revisions |
1285 | of a file similar to `vc-diff', but using ediff backend. | |
1286 | ||
86c60681 CY |
1287 | *** The option `vc-initial-comment' was removed in Emacs 23.2, but |
1288 | this was not advertised at the time. | |
1289 | ||
86c60681 CY |
1290 | *** `vc-toggle-read-only' is an obsolete alias for `toggle-read-only'. |
1291 | Since Emacs 23, it has done the same thing as `toggle-read-only', but | |
80c6d77f GM |
1292 | this was not advertised at the time. |
1293 | ||
041d709f CY |
1294 | ** Obsolete modes |
1295 | ||
23d70505 GM |
1296 | *** abbrevlist.el |
1297 | ||
f8ca9162 | 1298 | *** erc-hecomplete.el (use erc-pcomplete.el instead) |
23d70505 GM |
1299 | |
1300 | *** partial-completion-mode (complete.el) is obsolete. | |
041d709f CY |
1301 | You can get a comparable behavior with: |
1302 | (setq completion-styles '(partial-completion initials)) | |
1303 | (setq completion-pcm-complete-word-inserts-delimiters t) | |
1304 | ||
23d70505 GM |
1305 | *** pc-mode.el is obsolete (CUA mode is much more comprehensive). |
1306 | ||
2c719188 | 1307 | *** pgg is obsolete (use EasyPG instead). |
041d709f CY |
1308 | |
1309 | *** sregex.el is obsolete, since rx.el is a strict superset. | |
1310 | ||
23d70505 GM |
1311 | *** s-region.el and pc-select.el are obsolete. |
1312 | They are superseded by shift-select-mode, enabled by default since 23.1. | |
1313 | ||
2c719188 | 1314 | *** vc-mcvs.el is obsolete (for lack of a maintainer). |
ca5eed61 | 1315 | |
0fe719e6 GM |
1316 | ** Miscellaneous |
1317 | ||
05f77e38 | 1318 | *** The Landmark game is now invoked with `landmark', not `lm'. |
c6ad2a4e | 1319 | Its functions and variables have been similarly renamed. |
05f77e38 | 1320 | |
dfdb4cad | 1321 | *** In `ido-file-completion-map', C-v is no longer bound to `ido-toggle-vc'. |
05f77e38 GM |
1322 | (This interfered with cua-mode.) |
1323 | ||
9f678528 GM |
1324 | *** f90.el has some support for Fortran 2008 syntax. |
1325 | ||
0fe719e6 GM |
1326 | *** `copyright-fix-years' can optionally convert consecutive years to ranges. |
1327 | ||
5b3e6db8 GM |
1328 | *** New command `nato-region' converts text to NATO phonetic alphabet. |
1329 | ||
eb199145 GM |
1330 | \f |
1331 | * New Modes and Packages in Emacs 24.1 | |
d445b3f8 | 1332 | |
60e56523 | 1333 | ** Occur Edit mode applies edits made in *Occur* buffers to the |
8c0f49f0 | 1334 | original buffers. It is bound to "e" in Occur mode. |
60e56523 | 1335 | |
a075a2c5 GM |
1336 | ** New global minor mode electric-pair-mode. |
1337 | When enabled, typing an open parenthesis automatically inserts the | |
1338 | matching closing one. | |
1339 | ||
1340 | ** New global minor mode electric-indent-mode. | |
1341 | When enabled, typing certain characters triggers reindentation. | |
cd3308f3 GM |
1342 | Major modes wishing to use this can set electric-indent-chars or |
1343 | electric-indent-functions. | |
a075a2c5 GM |
1344 | |
1345 | ** New global minor mode electric-layout-mode. | |
1346 | When enabled, typing certain characters automatically inserts newlines. | |
cd3308f3 | 1347 | Major modes wishing to use this can set electric-layout-rules. |
3b843809 | 1348 | |
a83ec3c9 CY |
1349 | ** tabulated-list.el provides a generic major mode for tabulated data, |
1350 | from which other modes can be derived. | |
1351 | ||
d02c9bcd SM |
1352 | ** pcase.el provides the ML-style pattern matching macro `pcase'. |
1353 | ||
7725ebb7 MA |
1354 | ** secrets.el is an implementation of the Secret Service API, an |
1355 | interface to password managers like GNOME Keyring or KDE Wallet. The | |
065f2743 MA |
1356 | Secret Service API requires D-Bus for communication. The command |
1357 | `secrets-show-secrets' offers a buffer with a visualization of the | |
1358 | secrets. | |
7725ebb7 | 1359 | |
f9e78150 MA |
1360 | ** notifications.el provides an implementation of the Desktop |
1361 | Notifications API. It requires D-Bus for communication. | |
1362 | ||
12fe5bcc MA |
1363 | ** soap-client.el supports access to SOAP web services from Emacs. |
1364 | soap-inspect.el is an interactive inspector for SOAP WSDL structures. | |
1365 | ||
ff1796f3 | 1366 | ** New generic mode, xmodmap-generic-mode, for xmodmap files. |
ad7d6ecb | 1367 | |
53bbe3ad | 1368 | ** New emacs-lock.el package. |
7d301ae6 CY |
1369 | The previous version has been moved to obsolete/old-emacs-lock.el. |
1370 | Now, there is a proper minor mode `emacs-lock-mode'. Protection | |
1371 | against exiting Emacs and killing the buffer can be set separately. | |
1372 | The mechanism for automatically turning off protection for buffers | |
1373 | with dead inferior processes has been generalized. | |
53bbe3ad | 1374 | |
eb199145 GM |
1375 | \f |
1376 | * Incompatible Lisp Changes in Emacs 24.1 | |
6dfcbe31 | 1377 | |
7d301ae6 CY |
1378 | ** Passing a nil argument to a minor mode function call now ENABLES |
1379 | the minor mode unconditionally. This is so that you can write e.g. | |
1380 | ||
dfdb4cad | 1381 | (add-hook 'text-mode-hook 'foo-mode) |
7d301ae6 | 1382 | |
dfdb4cad CY |
1383 | to enable foo-mode in Text mode buffers, removing the need for |
1384 | `turn-on-foo-mode' style functions. This affects all mode commands | |
1385 | defined by `define-minor-mode'. If called interactively, the mode | |
1386 | command still toggles the minor mode. | |
7d301ae6 | 1387 | |
d268b4fe CY |
1388 | ** The return value of `backup-buffer' has changed. |
1389 | It is now a list of three elements, where the second element is a list | |
1390 | describing the original file's SELinux context. If Emacs or the | |
f003f294 | 1391 | system lacks SELinux support, the context list is (nil nil nil nil). |
7d301ae6 | 1392 | See "Basic SELinux support" above, under "Changes in Emacs 24.1". |
d268b4fe | 1393 | |
dfdb4cad CY |
1394 | ** `char-direction-table' and the `char-direction' function were deleted. |
1395 | They were buggy and inferior to the new support of bidirectional | |
1396 | editing introduced in Emacs 24. If you need the bidirectional | |
1397 | properties of a character, use `get-char-code-property' with the last | |
1398 | argument `bidi-class'. | |
fa6996bc | 1399 | |
470d996d TV |
1400 | ** `copy-directory' now copies the source directory as a subdirectory |
1401 | of the target directory, if the latter is an existing directory. The | |
1402 | new optional arg COPY-CONTENTS, if non-nil, makes the function copy | |
1403 | the contents directly into a pre-existing target directory. | |
1404 | ||
9173a8fb CY |
1405 | ** For mouse click input events in the text area, the Y pixel |
1406 | coordinate in the POSITION list now counts from the top of the text | |
1407 | area, excluding any header line. Previously, it counted from the top | |
1408 | of the header line. | |
1409 | ||
7d301ae6 CY |
1410 | ** Support for "old-style" backquotes, obsolete for 10+ years, has |
1411 | been further reduced. Now a backquote not followed by a space is | |
1412 | always treated as a "new-style" backquote. Please remove all | |
1413 | "old-style" backquotes from your code. If your code uses backquotes | |
1414 | as documented in the Elisp manual, and compiles without warning, then | |
1415 | you have nothing to do in this regard. Code not following the | |
1416 | appropriate conventions may fail to compile. | |
50ab02c5 CY |
1417 | |
1418 | The most common cause of trouble seems to be an old-style backquote | |
1419 | followed by a newline. Another cause of trouble is vector notation | |
1420 | for key sequence notation: instead of [(control ,)] and [(control ')], | |
1421 | you should write [(control ?,)] and [(control ?')], which will work in | |
7d301ae6 | 1422 | older Emacsen too. |
288cf4e9 | 1423 | |
520f2425 GM |
1424 | ** The macro `eval-at-startup' was removed in Emacs 23.2, but this |
1425 | was not advertised at the time. The function `custom-initialize-delay' | |
1426 | replaced all known uses. | |
1427 | ||
7d301ae6 CY |
1428 | ** `view-buffer' now treats special mode-class in the same way that |
1429 | `view-file' has since Emacs 22 (i.e. it won't enable View mode if the | |
1430 | major mode is special). | |
fd5c9dfa | 1431 | |
7d301ae6 | 1432 | ** Menu and tool bar changes |
6431f2e6 | 1433 | |
7d301ae6 | 1434 | *** During startup, Emacs no longer adds entries for `menu-bar-lines' |
0a19a6f8 JB |
1435 | and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'. |
1436 | With these alist entries omitted, `make-frame' checks the value of the | |
1437 | variable `menu-bar-mode'/`tool-bar-mode' to determine whether to create | |
1438 | a menu-bar or tool-bar, respectively. If the alist entries are added, | |
1439 | they override the value of `menu-bar-mode'/`tool-bar-mode'. | |
6431f2e6 | 1440 | |
7d301ae6 CY |
1441 | *** The menu bar bindings's caches are not used any more. |
1442 | Use (where-is-internal <def> nil t) instead. | |
1443 | ||
fe0aa820 | 1444 | ** Regions created by mouse dragging are now normal active regions, |
dfdb4cad | 1445 | similar to those created by shift-selection (see Selection changes |
7d301ae6 CY |
1446 | above). In previous Emacs versions, these regions were delineated by |
1447 | `mouse-drag-overlay'; that variable has been removed. | |
d6d8ee7a | 1448 | |
7d301ae6 CY |
1449 | ** The fourth argument of `filter-buffer-substring' has been removed. |
1450 | If you want to remove text properties from the final result, simply | |
1451 | pass the result through substring-no-properties. | |
34c99998 | 1452 | |
4583e796 GM |
1453 | ** cl.el no longer provides `cl-19'. |
1454 | ||
7d301ae6 CY |
1455 | ** The following obsolete functions and aliases have been removed |
1456 | (the appropriate new function is given in parentheses; "not needed" | |
1457 | means you can just remove all calls to the function in question): | |
1458 | ||
1459 | *** `comint-kill-output' (`comint-delete-output') | |
1460 | *** `decompose-composite-char' (`char-to-string') | |
1461 | *** `outline-visible' (`outline-invisible-p') | |
1462 | *** `internal-find-face' (`facep') | |
1463 | *** `internal-get-face' (`facep and check-face') | |
1464 | *** `frame-update-faces' (not needed) | |
1465 | *** `frame-update-face-colors' (`frame-set-background-mode') | |
1466 | *** `x-frob-font-weight' and `x-frob-font-slant' (`make-face-*' functions) | |
2c719188 | 1467 | *** `x-make-font-bold and x-make-font-demibold (`make-face-bold') |
7d301ae6 CY |
1468 | *** `x-make-font-italic' and `x-make-font-oblique' (`make-face-italic') |
1469 | *** `x-make-font-bold-italic' (`make-face-bold-italic') | |
1470 | *** `x-make-font-unbold' (`make-face-unbold') | |
1471 | *** `x-make-font-unitalic' (`make-face-unitalic') | |
1472 | *** `mldrag-drag-mode-line' (`mouse-drag-mode-line') | |
1473 | *** `mldrag-drag-vertical-line' (`mouse-drag-vertical-line') | |
1474 | *** `iswitchb-default-keybindings' (`iswitchb-mode') | |
1475 | *** `char-bytes' (== 1) | |
1476 | *** `isearch-return-char' (`isearch-printing-char') | |
1477 | *** `make-local-hook' (not needed) | |
1478 | *** `set-screen-height' (`set-frame-height') | |
1479 | *** `set-screen-width' (`set-frame-width') | |
1480 | ||
7d301ae6 CY |
1481 | ** The following obsolete variables and varaliases have been removed |
1482 | (the appropriate new variable is given in parentheses): | |
1483 | ||
1484 | *** `checkdoc-minor-keymap' (`checkdoc-minor-mode-map') | |
1485 | *** `vc-header-alist' (`vc-BACKEND-header') | |
1486 | *** `directory-sep-char' (== ?/) | |
1487 | *** `font-lock-defaults-alist' (`font-lock-defaults') | |
1488 | *** `e' (`float-e'). | |
3226d6ca | 1489 | |
041d709f | 1490 | ** The following obsolete files were removed: |
7b0e3048 GM |
1491 | sc.el, x-menu.el, rnews.el, rnewspost.el |
1492 | ||
7d301ae6 CY |
1493 | ** The format of the finder-inf.el file has changed, since the Finder |
1494 | mechanism is now based on the package system. The variable | |
1495 | `finder-package-info' is replaced by `package--builtins' and | |
1496 | `finder-keywords-hash'. | |
33658d4e | 1497 | |
c2c79260 DE |
1498 | ** When generating autoloads, `update-directory-autoloads' no longer |
1499 | assumes every inspected file is in your `load-path'. It instead | |
1500 | generates relative names according to the current `load-path'. | |
1501 | ||
eb199145 GM |
1502 | \f |
1503 | * Lisp changes in Emacs 24.1 | |
9097e8af | 1504 | |
041d709f | 1505 | ** Code can now use lexical scoping by default instead of dynamic scoping. |
dfdb4cad | 1506 | The `lexical-binding' variable enables lexical scoping for local |
48da7392 | 1507 | variables. It is typically set via a file-local variable in the first |
dfdb4cad CY |
1508 | line of the file, in which case it applies to all the code in that |
1509 | file. | |
1510 | ||
041d709f CY |
1511 | *** `eval' takes a new optional argument `lexical' to choose the new lexical |
1512 | binding instead of the old dynamic binding mode. | |
dfdb4cad | 1513 | |
041d709f CY |
1514 | *** Lexically scoped interpreted functions are represented with a new form |
1515 | of function value which looks like (closure ENV ARGS &rest BODY). | |
1516 | ||
1517 | *** New macro `letrec' to define recursive local functions. | |
dfdb4cad CY |
1518 | |
1519 | *** `defvar' and `defconst' now mark the variable as special (dynamic). | |
1520 | So do `defcustom' and other forms that call `defvar' as a subroutine. | |
1521 | ||
041d709f CY |
1522 | *** New function `special-variable-p' to check whether a variable is |
1523 | declared as dynamically bound. | |
1524 | ||
88ed9e87 SM |
1525 | *** The form ((lambda ...) ...) is deprecated. |
1526 | ||
041d709f CY |
1527 | ** An Emacs Lisp testing tool is now included. |
1528 | Emacs Lisp developers can use this tool to write automated tests for | |
1529 | their code. See the ERT info manual for details. | |
1530 | ||
1531 | ** Changes for bidirectional display and editing | |
f1816485 | 1532 | |
041d709f | 1533 | *** New function `current-bidi-paragraph-direction'. |
7d301ae6 | 1534 | This returns the base direction of the paragraph at point. |
041d709f | 1535 | |
041d709f | 1536 | *** New function `bidi-string-mark-left-to-right'. |
dfdb4cad CY |
1537 | Given a string containing characters from right-to-left scripts, this |
1538 | function returns another string which can be safely inserted into a | |
1539 | buffer, such that any following text will be always displayed to the | |
7d301ae6 CY |
1540 | right of that string. (This works by appending an invisible Unicode |
1541 | "LEFT-TO-RIGHT MARK" character if the argument string might need it.) | |
041d709f | 1542 | |
7d301ae6 | 1543 | This is useful when the buffer has overall left-to-right paragraph |
dfdb4cad CY |
1544 | direction and you need to insert a string whose contents are not known |
1545 | in advance, without disrupting the layout of the line. | |
041d709f | 1546 | |
bee0fcef | 1547 | ** Window changes |
dfdb4cad | 1548 | |
c4682d18 MR |
1549 | *** Window tree functions are accessible in Elisp. |
1550 | Functions are provided to return the parent, siblings or child windows | |
1551 | of any window including internal windows (windows not associated with a | |
1552 | buffer) in the window tree. | |
dfdb4cad | 1553 | |
24300f5f CY |
1554 | **** New function `window-valid-p' gives non-nil for live and internal |
1555 | windows. | |
dfdb4cad | 1556 | |
24300f5f | 1557 | **** Window manipulation can deal with internal windows. |
c4682d18 MR |
1558 | Many window handling functions like `split-window', `delete-window', or |
1559 | `delete-other-windows' as well as the window resizing functions can now | |
1560 | act on any window including internal ones. | |
dfdb4cad | 1561 | |
c4682d18 MR |
1562 | *** window-total-height/-width vs window-body-height/-width. |
1563 | The function `window-height' has been renamed to `window-total-height' | |
1564 | and `window-width' has been renamed to `window-body-width'. The old | |
1565 | names are provided as aliases. Two new functions `window-total-width' | |
1566 | and `window-body-height' are provided. | |
dfdb4cad | 1567 | |
c4682d18 MR |
1568 | *** Window parameters specific to window handling functions. |
1569 | For each window you can specify a parameter to override the default | |
1570 | behavior of a number of functions like `split-window', `delete-window' | |
ed6235ea MR |
1571 | and `delete-other-windows'. The variable `ignore-window-parameters' |
1572 | allows to ignore processing such parameters. | |
dfdb4cad | 1573 | |
c4682d18 | 1574 | *** New semantics of third argument of `split-window'. |
c4682d18 MR |
1575 | The third argument of `split-window' has been renamed to SIDE and can be |
1576 | set to any of the values 'below, 'right, 'above, or 'left to make the | |
1577 | new window appear on the corresponding side of the window that shall be | |
1578 | split. Any other value of SIDE will cause `split-window' to split the | |
1579 | window into two side-by-side windows as before. | |
dfdb4cad | 1580 | |
c4682d18 | 1581 | *** Window resizing functions. |
487ffd7a | 1582 | A new standard function for resizing windows called `window-resize' has |
c4682d18 MR |
1583 | been introduced. This and all other functions for resizing windows no |
1584 | longer delete any windows when they become too small. | |
dfdb4cad | 1585 | |
b3c0dbfd MR |
1586 | *** Deleting the selected window now selects the most recently selected |
1587 | live window on that frame instead. | |
dfdb4cad | 1588 | |
c4682d18 MR |
1589 | *** `adjust-window-trailing-edge' adjustments. |
1590 | `adjust-window-trailing-edge' can now deal with fixed-size windows and | |
1591 | is able to resize other windows if a window adjacent to the trailing | |
1592 | edge cannot be shrunk any more. This makes its behavior more similar to | |
1593 | that of Emacs 21 without compromising, however, its inability to delete | |
1594 | windows which was introduced in Emacs 22. | |
dfdb4cad | 1595 | |
c4682d18 MR |
1596 | *** Window-local buffer lists. |
1597 | Windows now have local buffer lists. This means that removing a buffer | |
1598 | from display in a window will preferably show the buffer previously | |
1599 | shown in that window with its previous window-start and window-point | |
1600 | positions. This also means that the same buffer may be automatically | |
1601 | shown twice even if it already appears in another window. | |
dfdb4cad | 1602 | |
bee0fcef CY |
1603 | *** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW, |
1604 | which if non-nil requires the buffer to be displayed in the currently | |
1605 | selected window, signaling an error otherwise. If nil, another window | |
1606 | can be used, e.g. if the selected one is strongly dedicated. | |
dfdb4cad | 1607 | |
0a2132ba | 1608 | *** `split-window-vertically' and `split-window-horizontally' renamed |
2d197ffb CY |
1609 | to `split-window-below' and `split-window-right' respectively. |
1610 | The old names are kept as aliases. | |
dfdb4cad | 1611 | |
0a2132ba CY |
1612 | *** Display actions |
1613 | ||
1614 | **** The second arg to `display-buffer' and `pop-to-buffer' is now | |
1615 | named ACTION, and takes a display action of the same form as | |
1616 | `display-buffer-base-action' (see Changes, above). A non-nil, | |
1617 | non-list value is treated specially, as the old meaning. | |
1618 | ||
1619 | **** New variable `display-buffer-overriding-action'. | |
1620 | ||
1621 | **** The procedure of `display-buffer' etc. to choose a window is | |
1622 | determined by combining `display-buffer-overriding-action', | |
1623 | `display-buffer-alist', the ACTION arg, `display-buffer-base-action', | |
1624 | and `display-buffer-fallback-action'. The second and fourth of these | |
1625 | are user-customizable variables. | |
1626 | ||
1627 | See the docstring of `display-buffer' for details. | |
bee0fcef | 1628 | |
20d2304d CY |
1629 | *** New functions `window-state-get' and `window-state-put'. |
1630 | These functions allow to save and restore the state of an arbitrary | |
1631 | frame or window as an Elisp object. | |
1632 | ||
a2a25d24 | 1633 | ** Completion |
041d709f | 1634 | |
7d301ae6 CY |
1635 | *** New variable `completion-extra-properties' used to specify extra |
1636 | properties of the current completion: | |
a2a25d24 SM |
1637 | - :annotate-function, same as the old completion-annotate-function. |
1638 | - :exit-function, function to call after completion took place. | |
1639 | ||
7d301ae6 CY |
1640 | *** Functions on `completion-at-point-functions' can return any of the |
1641 | properties valid for `completion-extra-properties'. | |
a2a25d24 | 1642 | |
7d301ae6 | 1643 | *** `completion-annotate-function' is obsolete. |
a2a25d24 | 1644 | |
620c53a6 SM |
1645 | *** New `metadata' method for completion tables. The metadata thus returned |
1646 | can specify various details of the data returned by `all-completions': | |
1647 | - `category' is the kind of objects returned (e.g., `buffer', `file', ...), | |
1648 | used to select a style in completion-category-overrides. | |
1649 | - `annotation-function' to add annotations in *Completions*. | |
1650 | - `display-sort-function' to specify how to sort entries in *Completions*. | |
1651 | - `cycle-sort-function' to specify how to sort entries when cycling. | |
1652 | ||
7d301ae6 CY |
1653 | *** `minibuffer-local-filename-must-match-map' is not used any more. |
1654 | Instead, the bindings in `minibuffer-local-filename-completion-map' | |
1655 | are combined with `minibuffer-local-must-match-map'. | |
de09aa52 CY |
1656 | |
1657 | *** New variable `completing-read-function' allows overriding the | |
1658 | behavior of `completing-read'. | |
1659 | ||
f042970d | 1660 | ** `glyphless-char-display' can now distinguish between graphical and |
16a43933 CY |
1661 | text terminal display, via a char-table entry that is a cons cell. |
1662 | ||
7d301ae6 | 1663 | ** `pre-command-hook'/`post-command-hook' are not reset to nil on error. |
f6d62986 SM |
1664 | Instead, the offending function is removed. |
1665 | ||
b1f6fa26 CY |
1666 | ** New hook types |
1667 | ||
1668 | *** New function `run-hook-wrapped' for running an abnormal hook by | |
1669 | passing the hook functions as arguments to a "wrapping" function. | |
e7bc51d0 | 1670 | Like `run-hook-with-args-until-success', it stops at the first |
5385447f | 1671 | non-nil return value. |
e7bc51d0 | 1672 | |
b1f6fa26 CY |
1673 | *** New macro `with-wrapper-hook' for running an abnormal hook as a |
1674 | set of "wrapping" filters, similar to around advice. | |
54521c99 GM |
1675 | (A version of this macro was actually added in Emacs 23.2 but was not |
1676 | advertised at the time.) | |
f6d62986 | 1677 | |
0b19b281 | 1678 | ** Debugger changes |
dfdb4cad | 1679 | |
0b19b281 | 1680 | *** New macro `condition-case-unless-debug' (this was actually added in |
1be3ca5a | 1681 | Emacs 23.1 as condition-case-no-debug, but not advertised) |
dfdb4cad | 1682 | |
0b19b281 | 1683 | *** The macro `with-demoted-errors' was added in Emacs 23.1, but not advertised. |
dfdb4cad | 1684 | |
0b19b281 | 1685 | *** Variable `stack-trace-on-error' removed. |
dfdb4cad | 1686 | |
0b19b281 CY |
1687 | *** The debugger can now "continue" from an error, which means it will |
1688 | jump to the error handler as if the debugger had not been invoked | |
1689 | instead of jumping all the way to the top-level. | |
dfdb4cad | 1690 | |
0b19b281 CY |
1691 | *** Set `debug-on-event' to enter the debugger on events like SIGUSR1. |
1692 | This can be useful when `inhibit-quit' is set. | |
d6b1d521 | 1693 | |
953cebf5 | 1694 | ** The new function `server-eval-at' allows evaluation of Lisp forms on |
37576acd | 1695 | named Emacs server instances. |
7deebf1b | 1696 | |
1b9f60cc GM |
1697 | ** `call-process' and `call-process-region' allow a `(:file "file")' spec |
1698 | to redirect STDOUT to a file. | |
7deebf1b | 1699 | |
7d301ae6 CY |
1700 | ** The function `format-time-string' now supports the %N directive, |
1701 | for higher-resolution time stamps. | |
da97a9e6 | 1702 | |
0b19b281 | 1703 | ** New input reading functions |
dfdb4cad | 1704 | |
0b19b281 CY |
1705 | *** New function `read-char-choice' reads a restricted set of |
1706 | characters, discarding any inputs not inside the set. | |
dfdb4cad | 1707 | |
0b19b281 CY |
1708 | *** The command `read-color' now requires a match for a color name |
1709 | or RGB triplet, instead of signaling an error if the user provides | |
1710 | invalid input. | |
dfdb4cad | 1711 | |
0b19b281 | 1712 | **** `facemenu-read-color' is now an alias for `read-color'. |
3ef01959 | 1713 | |
2e288d54 JB |
1714 | ** `image-library-alist' is renamed to `dynamic-library-alist'. |
1715 | The variable is now used to load all kind of supported dynamic libraries, | |
1716 | not just image libraries. The previous name is still available as an | |
1717 | obsolete alias. | |
1718 | ||
0b19b281 | 1719 | ** Syntax parsing changes |
dfdb4cad | 1720 | |
0b19b281 | 1721 | *** New variable `syntax-propertize-function'. |
04e2ce72 | 1722 | This replaces `font-lock-syntactic-keywords' which is now obsolete. |
cf38dd42 SM |
1723 | This allows syntax-table properties to be set independently from font-lock: |
1724 | just call syntax-propertize to make sure the text is propertized. | |
1725 | Together with this new variable come a new hook | |
1726 | syntax-propertize-extend-region-functions, as well as two helper functions: | |
1727 | syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords | |
1728 | as-is; and syntax-propertize-rules which provides a new way to specify | |
1729 | syntactic rules. | |
dfdb4cad | 1730 | |
0b19b281 | 1731 | *** Syntax tables support a new "comment style c" additionally to style b. |
a2e5caf7 | 1732 | |
7d301ae6 | 1733 | ** New hook `post-self-insert-hook', run after `self-insert-command'. |
041d709f | 1734 | |
4e2db1fe | 1735 | ** frame-local variables cannot be let-bound any more. |
041d709f | 1736 | |
15de15c6 | 1737 | ** Major and minor mode changes |
dfdb4cad | 1738 | |
0b19b281 CY |
1739 | *** `set-auto-mode' now respects mode: local variables at the end of files, |
1740 | as well as those in the -*- line. | |
dfdb4cad | 1741 | |
15de15c6 CY |
1742 | *** `prog-mode' is a new major mode from which programming modes |
1743 | should be derived. | |
dfdb4cad | 1744 | |
15de15c6 CY |
1745 | **** `prog-mode-hook' can be used to enable features for programming |
1746 | modes, e.g. (add-hook 'prog-mode-hook 'flyspell-prog-mode) to enable | |
1747 | on-the-fly spell checking for comments and strings. | |
dfdb4cad | 1748 | |
15de15c6 CY |
1749 | *** New hook `change-major-mode-after-body-hook', run by |
1750 | `run-mode-hooks' just before any other mode hooks. | |
dfdb4cad | 1751 | |
7a9a2fc6 GM |
1752 | *** Enabled globalized minor modes can be disabled in specific major modes. |
1753 | If the global mode is global-FOO-mode, then run (FOO-mode -1) in the | |
1754 | major mode's hook, where FOO-mode toggles the mode on a per-buffer basis. | |
dfdb4cad | 1755 | |
feb8a83a | 1756 | *** `define-minor-mode' accepts new keywords :variable, :after-hook. |
f44379e7 | 1757 | |
7d301ae6 CY |
1758 | ** File-handling changes |
1759 | ||
7d301ae6 | 1760 | *** `delete-file' and `delete-directory' now accept optional arg TRASH. |
f1a5d776 CY |
1761 | Trashing is performed if TRASH and `delete-by-moving-to-trash' are |
1762 | both non-nil. Interactively, TRASH defaults to t, unless a prefix | |
1763 | argument is supplied (see Trash changes, above). | |
53967e09 | 1764 | |
7d301ae6 | 1765 | *** New file predicates: `file-equal-p', `file-in-directory-p'. |
ec70a47d | 1766 | |
4039c786 CY |
1767 | ** Tool-bars can display separators. |
1768 | Tool-bar separators are handled like menu separators in menu-bar maps, | |
94975270 | 1769 | i.e. via menu entries of the form `(menu-item "--")'. |
9317e499 | 1770 | |
00fe2df1 JL |
1771 | ** Image API |
1772 | ||
18af70d0 CY |
1773 | *** Animated images support (currently animated gifs only). |
1774 | ||
1775 | **** `image-animated-p' returns non-nil if an image can be animated. | |
1776 | ||
1777 | **** `image-animate' animates a supplied image spec. | |
1778 | ||
1779 | **** `image-animate-timer' returns the timer object for an image that | |
1780 | is being animated. | |
00fe2df1 | 1781 | |
7cb76fe0 GM |
1782 | *** `image-extension-data' has been renamed to `image-metadata'. |
1783 | The old name is an obsolete alias to the new one. | |
1546c559 | 1784 | |
b4ac6e8c GM |
1785 | *** Image mode can view any image type that ImageMagick supports. |
1786 | This requires Emacs to be built with ImageMagick support. | |
7d301ae6 CY |
1787 | |
1788 | **** New function `imagemagick-types', defined if ImageMagick support | |
1789 | is enabled, returns a list of image file extensions that your | |
1790 | ImageMagick installation supports. | |
1791 | ||
1792 | **** New function `imagemagick-register-types' enables ImageMagick | |
1793 | image types in Image mode and in `create-image' and other helper | |
1794 | functions. | |
1795 | ||
1796 | **** New option `imagemagick-types-inhibit' excludes certain | |
1797 | ImageMagick image types from `imagemagick-register-types'. | |
1798 | ||
7d301ae6 CY |
1799 | **** With ImageMagick support, there are extra Image mode commands to |
1800 | resize and rotate images: `image-transform-fit-to-height', | |
1801 | `image-transform-fit-to-width', `image-transform-set-rotation', and | |
1802 | `image-transform-set-scale'. | |
041d709f | 1803 | |
7d301ae6 CY |
1804 | ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and |
1805 | passes it to the mail user agent function. This argument specifies an | |
1806 | action for returning to the caller after finishing with the mail. For | |
1807 | example, this is used by Rmail to optionally delete a mail window. | |
b4ac6e8c | 1808 | |
71c17aec | 1809 | ** XML and HTML parsing |
483ab230 CY |
1810 | If Emacs is compiled with libxml2 support, there are two new |
1811 | functions: `libxml-parse-html-region' (which parses "real world" HTML) | |
1812 | and `libxml-parse-xml-region' (which parses XML). Both return an | |
1813 | Emacs Lisp parse tree. | |
4b9832a6 | 1814 | |
7d301ae6 | 1815 | ** Networking and encryption changes |
e2574f2c | 1816 | |
7d301ae6 CY |
1817 | *** `open-network-stream' can now be used to open an encrypted stream. |
1818 | It now accepts an optional `:type' parameter for initiating a TLS | |
1819 | connection, directly or via STARTTLS. To do STARTTLS, additional | |
1820 | parameters (`:end-of-command', `:success', `:capabilities-command') | |
1821 | must also be supplied. | |
1822 | ||
1823 | *** New library gnutls.el. | |
dfdb4cad CY |
1824 | The new function `gnutls-available-p' returns non-nil if Emacs is |
1825 | built with GnuTLS support. The main entry points are | |
1826 | `open-gnutls-stream' and `gnutls-negotiate'. It's easiest to use | |
1827 | these functions through `open-network-stream', because that can | |
7d301ae6 CY |
1828 | upgrade connections through STARTTLS opportunistically or use plain |
1829 | SSL, depending on your needs. For debugging, set `gnutls-log-level' | |
1830 | greater than 0. | |
1831 | ||
7d301ae6 CY |
1832 | *** New primitive `secure-hash' that supports many secure hash algorithms: |
1833 | md5, sha1, sha2, sha224, sha256, sha384, and sha512. The lisp library | |
1834 | sha1.el has been removed. The `sha1' feature is provided by default. | |
71c17aec | 1835 | |
a6020335 MH |
1836 | ** Isearch |
1837 | ||
1838 | *** New hook `isearch-update-post-hook' that runs in `isearch-update'. | |
1839 | ||
9326ba26 CY |
1840 | ** Progress reporters can now "spin". |
1841 | The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can | |
1842 | now be nil, or omitted. This makes a "non-numeric" reporter. Each | |
1843 | time you call `progress-reporter-update' on that progress reporter, | |
1844 | with a nil or omitted VALUE argument, the reporter message is | |
1845 | displayed with a "spinning bar". | |
1846 | ||
3e214b50 JB |
1847 | ** New variable `revert-buffer-in-progress-p' is true while a buffer is |
1848 | being reverted, even if the buffer has a local `revert-buffer-function'. | |
1849 | ||
001bf877 GM |
1850 | ** New variables `delayed-warnings-list' and `delayed-warnings-hook'. |
1851 | If delayed-warnings-list is non-nil, the command loop calls | |
7d301ae6 CY |
1852 | `delayed-warnings-hook' after `post-command-hook'. At present, this |
1853 | is only used by Emacs on some platforms to display warnings during | |
1854 | startup, which might otherwise not be noticed. This uses the | |
1855 | functions `display-delayed-warnings' and `collapse-delayed-warnings'. | |
001bf877 | 1856 | |
6420d28b CY |
1857 | ** rx.el has a new `group-n' construct for explicitly numbered groups. |
1858 | ||
dac86404 GM |
1859 | ** New function `make-composed-keymap' that constructs a new keymap |
1860 | from multiple input maps. You can use this to make a keymap that | |
1861 | inherits from multiple maps, eg: | |
1862 | (set-keymap-parent newmap (make-composed-keymap othermap parent)) | |
43dc9f5b | 1863 | |
c8f6ec5c GM |
1864 | ** New function `string-prefix-p'. |
1865 | (This was actually added in Emacs 23.2 but was not advertised at the time.) | |
1866 | ||
27f7ef2f | 1867 | ** New reader macro ## that stands for the empty symbol. |
43dc9f5b AS |
1868 | This means that the empty symbol can now be read back. Also, #: by itself |
1869 | (when not immediately followed by a possible symbol character) stands for | |
1870 | an empty uninterned symbol. | |
041d709f | 1871 | |
fead402d CY |
1872 | ** New math functions `isnan', `copysign', `frexp', `ldexp'. |
1873 | ||
7d301ae6 | 1874 | ** The following functions and variables are obsolete: |
041d709f | 1875 | |
05f77e38 GM |
1876 | *** `tooltip-use-echo-area' is obsolete. |
1877 | Rather than setting this to t, disable Tooltip mode instead. | |
1878 | ||
041d709f CY |
1879 | *** buffer-substring-filters is obsolete. |
1880 | Use `filter-buffer-substring-functions' instead. | |
1881 | ||
1882 | *** `byte-compile-disable-print-circle' is obsolete. | |
1883 | ||
1884 | *** `deferred-action-list' and `deferred-action-function' are obsolete. | |
f160676e GM |
1885 | Use `post-command-hook' instead. |
1886 | ||
67e729a5 CY |
1887 | *** `font-lock-maximum-size' is obsolete. |
1888 | ||
eb199145 GM |
1889 | \f |
1890 | * Changes in Emacs 24.1 on non-free operating systems | |
d53a60a6 | 1891 | |
7a22e700 | 1892 | ** On MS Windows, Emacs warns when using the obsolete init file _emacs, |
a2f0118c GM |
1893 | and also when HOME is set to C:\ by default. |
1894 | ||
7a22e700 | 1895 | ** New configure.bat options |
04779484 | 1896 | |
7a22e700 | 1897 | *** --enable-checking builds Emacs with extra runtime checks. |
e3aef5c6 | 1898 | |
7a22e700 | 1899 | *** --distfiles specifies files to be included in binary distribution. |
e2574f2c | 1900 | |
7a22e700 OK |
1901 | *** --without-gnutls disables automatic GnuTLS detection. |
1902 | ||
a0d363f4 | 1903 | *** --lib for general library linkage, works with the USER_LIBS build variable. |
e2574f2c | 1904 | |
0a19a6f8 | 1905 | ** New make target `dist' to create binary distribution for MS Windows. |
e3aef5c6 | 1906 | |
1f5e1a16 GM |
1907 | ** The Lisp function `w32-default-color-map' is now obsolete. |
1908 | (It is only used internally in the Emacs C code.) | |
5430d399 | 1909 | |
1f5e1a16 GM |
1910 | ** Customize ns-auto-hide-menu-bar to have the menu-bar hidden, but |
1911 | reappear on mouse-over. (Requires OS X 10.6 or later.) | |
04e2ce72 | 1912 | |
ad7c802c CY |
1913 | ** On Mac OS X, dragging a file into Emacs visits the file, like on |
1914 | other platforms, rather than inserting its contents into the buffer. | |
1915 | ||
05197f40 | 1916 | \f |
a933dad1 | 1917 | ---------------------------------------------------------------------- |
5b87ad55 | 1918 | This file is part of GNU Emacs. |
a933dad1 | 1919 | |
ab73e885 | 1920 | GNU Emacs is free software: you can redistribute it and/or modify |
5b87ad55 | 1921 | it under the terms of the GNU General Public License as published by |
ab73e885 GM |
1922 | the Free Software Foundation, either version 3 of the License, or |
1923 | (at your option) any later version. | |
5b87ad55 GM |
1924 | |
1925 | GNU Emacs is distributed in the hope that it will be useful, | |
1926 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
1927 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
1928 | GNU General Public License for more details. | |
a933dad1 | 1929 | |
5b87ad55 | 1930 | You should have received a copy of the GNU General Public License |
ab73e885 | 1931 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
a933dad1 | 1932 | |
05197f40 | 1933 | \f |
a933dad1 DL |
1934 | Local variables: |
1935 | mode: outline | |
1936 | paragraph-separate: "[ \f]*$" | |
1937 | end: |