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