]> code.delx.au - gnu-emacs/blob - etc/NEWS
Merge from origin/emacs-25
[gnu-emacs] / etc / NEWS
1 GNU Emacs NEWS -- history of user-visible changes.
2
3 Copyright (C) 2014-2016 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
5
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
8
9 This file is about changes in Emacs version 25.
10
11 See file HISTORY for a list of GNU Emacs versions and release dates.
12 See files NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18,
13 and NEWS.1-17 for changes in older Emacs versions.
14
15 You can narrow news to a specific version by calling 'view-emacs-news'
16 with a prefix argument or by typing C-u C-h C-n.
17
18 Temporary note:
19 +++ indicates that all necessary documentation updates are complete.
20 (This means all relevant manuals in doc/ AND lisp doc-strings.)
21 --- means no change in the manuals is needed.
22 When you add a new item, use the appropriate mark if you are sure it applies,
23 otherwise leave it unmarked.
24
25 \f
26 * Installation Changes in Emacs 25.2
27
28 +++
29 ** New configure option '--disable-build-details' attempts to build an
30 Emacs that is more likely to be reproducible; that is, if you build
31 and install Emacs twice, the second Emacs is a copy of the first.
32 Deterministic builds omit the build date from the output of the
33 emacs-version and erc-cmd-SV functions, and the leave the following
34 variables nil: emacs-build-system, emacs-build-time,
35 erc-emacs-build-time.
36
37 ** Emacs no longer works on IRIX. We expect that Emacs users are not
38 affected by this, as SGI stopped supporting IRIX in December 2013.
39
40 \f
41 * Startup Changes in Emacs 25.2
42
43 \f
44 * Changes in Emacs 25.2
45
46 +++
47 ** A number of accessors for the value returned by 'file-attributes'
48 has been added. They are: 'file-attribute-type',
49 'file-attribute-link-number', 'file-attribute-user-id',
50 'file-attribute-group-id', 'file-attribute-access-time',
51 'file-attribute-modification-time',
52 'file-attribute-status-change-time', 'file-attribute-size',
53 'file-attribute-modes', 'file-attribute-inode-number', and
54 'file-attribute-device-number'
55
56 +++
57 ** The new function 'buffer-hash' has been added, and can be used to
58 compute a fash, non-consing hash of the contents of a buffer.
59
60 ---
61 ** 'fill-paragraph' no longer marks the buffer as changed unless it
62 actually changed something.
63
64 ---
65 ** The locale language name 'ca' is now mapped to the language
66 environment 'Catalan', which has been added.
67
68 ---
69 ** 'align-regexp' has a separate history for its interactive argument
70 'align-regexp' no longer shares its history with all other
71 history-less functions that use 'read-string'
72
73 +++
74 ** The networking code has been reworked so that it's more
75 asynchronous than it was (when specifying :nowait t in
76 'make-network-process'). How asynchronous it is varies based on the
77 capabilities of the system, but on a typical GNU/Linux system the DNS
78 resolution, the connection, and (for TLS streams) the TLS negotiation
79 are all done without blocking the main Emacs thread. To get
80 asynchronous TLS, the TLS boot parameters have to be passed in (see
81 the manual for details).
82
83 Certain process oriented functions (like 'process-datagram-address')
84 will block until socket setup has been performed. The recommended way
85 to deal with asynchronous sockets is to avoid interacting with them
86 until they have changed status to "run". This is most easily done
87 from a process sentinel.
88
89 ** 'make-network-process' and 'open-network-stream' sometimes allowed
90 :service to be an integer string (e.g., :service "993") and sometimes
91 required an integer (e.g., :service 993). This difference has been
92 eliminated, and integer strings work everywhere.
93
94 ** It is possible to disable attempted recovery on fatal signals
95
96 Two new variables allow to disable attempts to recover from stack
97 overflow and to avoid automatic auto-save when Emacs is delivered a
98 fatal signal. 'attempt-stack-overflow-recovery', if set to 'nil',
99 will disable attempts to recover from C stack overflows; Emacs will
100 then crash as with any other fatal signal.
101 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
102 disable attempts to auto-save the session and shut down in an orderly
103 fashion when Emacs receives a fatal signal; instead, Emacs will
104 terminate immediately. Both variables are non-'nil' by default.
105 These variables are for users who would like to avoid the small
106 probability of data corruption due to techniques Emacs uses to recover
107 in these situations.
108
109 \f
110 * Editing Changes in Emacs 25.2
111
112 \f
113 * Changes in Specialized Modes and Packages in Emacs 25.2
114
115 ** eww
116
117 +++
118 *** A new 's' command for switching to another eww buffer via the minibuffer.
119
120 ---
121 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
122 with the 'o' command from 'image-map'.
123
124 +++
125 ** The commands that add ChangeLog entries now prefer a VCS root directory
126 for the ChangeLog file, if none already exists. Customize
127 'change-log-directory-files' to nil for the old behavior.
128
129 ---
130 ** Support for non-string values of 'time-stamp-format' has been removed.
131
132 ** Tramp
133
134 +++
135 *** New connection method "sg", which allows to edit files under
136 different group ID.
137
138 +++
139 *** New connection method "doas" for OpenBSD hosts.
140
141 ---
142 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
143
144 ** CSS mode
145
146 ---
147 *** Support for completing attribute values and bang-rules using the
148 'completion-at-point' command.
149
150 \f
151 * New Modes and Packages in Emacs 25.2
152
153 \f
154 * Incompatible Lisp Changes in Emacs 25.2
155
156 +++
157 ** Resizing a frame no longer runs 'window-configuration-change-hook'.
158 Put your function on 'window-size-change-functions' instead.
159
160 \f
161 * Lisp Changes in Emacs 25.2
162
163 ** New var syntax-ppss-table to control the syntax-table used in syntax-ppss
164
165 ** Autoload files can be generated without timestamps,
166 by setting 'autoload-timestamps' to nil.
167 FIXME As an experiment, nil is the current default.
168 If no insurmountable problems before next release, it can stay that way.
169
170 ** 'ert-with-function-mocked' of 'ert-x package allows mocking of functions
171 in unit tests.
172
173 ---
174 ** 'gnutls-boot' now takes a parameter :complete-negotiation that says
175 that negotiation should complete even on non-blocking sockets.
176
177 +++
178 ** New functions 'window-pixel-width-before-size-change' and
179 'window-pixel-height-before-size-change' allow to detect which window
180 changed size when 'window-size-change-functions' are run.
181
182 +++
183 ** New function 'display-buffer-reuse-mode-window' is an action function
184 suitable for use in 'display-buffer-alist'. For example, to avoid creating
185 a new window when opening man pages when there's already one, use
186 (add-to-list 'display-buffer-alist
187 '("\\`\\*Man .*\\*\\'" .
188 (display-buffer-reuse-mode-window
189 (inhibit-same-window . nil)
190 (mode . Man-mode))))
191
192 +++
193 ** New function 'func-arity' returns information about the argument list
194 of an arbitrary function.
195 This is a generalization of 'subr-arity' for functions that are not
196 built-in primitives. We recommend using this new function instead of
197 'subr-arity'.
198
199 +++
200 ** 'parse-partial-sexp' state has a new element. Element 10 is
201 non-nil when the last character scanned might be the first character
202 of a two character construct, i.e. a comment delimiter or escaped
203 character. Its value is the syntax of that last character.
204
205 +++
206 ** 'parse-partial-sexp''s state, element 9, has now been confirmed as
207 permanent and documented, and may be used by Lisp programs. Its value
208 is a list of currently open parenthesis positions, starting with the
209 outermost parenthesis.
210
211 \f
212 * Changes in Emacs 25.2 on Non-Free Operating Systems
213
214 ** Intercepting hotkeys on Windows 7 and later now works better.
215 The new keyboard hooking code properly grabs system hotkeys such as
216 Win-* and Alt-TAB, in a way that Emacs can get at them before the
217 system. This makes the 'w32-register-hot-key' functionality work
218 again on all versions of MS-Windows starting with Windows 7. On
219 Windows NT and later you can now register any hotkey combination. (On
220 Windows 9X, the previous limitations, spelled out in the Emacs manual,
221 still apply.)
222
223 \f
224 * Installation Changes in Emacs 25.1
225
226 +++
227 ** Building Emacs now requires C99 or later.
228
229 +++
230 ** Building Emacs now requires GNU make, version 3.81 or later.
231
232 +++
233 ** New configure option --with-cairo.
234 This builds Emacs with Cairo drawing. As a side effect, it provides
235 support for built-in printing, when Emacs was built with GTK+.
236 Cairo drawing is an experimental feature in Emacs, and subject to
237 change in future releases.
238
239 +++
240 ** New configure option --with-modules.
241 This enables support for loading dynamic modules; see below.
242
243 ---
244 ** By default, Emacs no longer works on IRIX. We expect that Emacs
245 users are not affected by this, as SGI stopped supporting IRIX in
246 December 2013. If you are affected, please send a bug report. You
247 should be able to work around the problem either by porting the Emacs
248 undumping code to GCC under IRIX, or by configuring --with-wide-int,
249 or by sticking with Emacs 24.4.
250
251 ---
252 ** The Emacs garbage collector assumes GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
253 The GC_MAKE_GCPROS_NOOPS stack-marking variant has been the default
254 since Emacs 24.4, and the other variants were undocumented and were
255 obstacles to maintenance and development. GC_MARK_STACK and its
256 related symbols have been removed from the C internals.
257
258 ---
259 ** 'configure' now prefers gnustep-config when configuring GNUstep.
260 If gnustep-config is not available, the old heuristics are used.
261
262 ---
263 ** 'configure' now prefers inotify to gfile for file notification,
264 unless gfile is explicitly requested via --with-file-notification='gfile'.
265
266 ---
267 ** 'configure' detects the kqueue file notification library on *BSD
268 and Mac OS X machines.
269
270 ---
271 ** The configure option '--with-pkg-config-prog' has been removed.
272 Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to.
273
274 ---
275 ** The configure option '--with-mmdf' has been removed.
276 It was no longer useful, as it relied on libraries that are no longer
277 supported, and its presence led to confusion during configuration.
278 This affects only the 'movemail' utility; Emacs itself can still
279 process MMDF-format files as before.
280
281 +++
282 ** The configure option '--enable-silent-rules' is now the default,
283 and silent rules are now quieter. To get the old behavior where
284 'make' chatters a lot, configure with '--disable-silent-rules' or
285 build with 'make V=1'.
286
287 ---
288 ** The configure option '--with-gameuser' now allows you to specify a
289 group instead of a user if its argument is prefixed by ':' (a colon).
290 This will cause the game score files in ${localstatedir}/games/emacs
291 to be owned by that group, and the helper program for updating them to
292 be installed setgid. The option now defaults to the 'games' group.
293
294 ---
295 ** The 'grep-changelog' script (and its manual page) are no longer included.
296 It has no particular connection to Emacs and has not changed in years,
297 so if you want to use it, you can always take a copy from an older Emacs.
298
299 ---
300 ** Emacs 25 comes with a new set of icons.
301 Various resolutions are available as etc/images/icons/hicolor/*/apps/emacs.png.
302 The old Emacs logo icons are available as 'emacs23.png' in the same location.
303
304 ---
305 ** New make target 'check-expensive' to run additional tests.
306 This includes all tests which run via "make check", plus additional
307 tests which take more time to perform.
308
309 \f
310 * Startup Changes in Emacs 25.1
311
312 +++
313 ** When Emacs is given a file as a command line argument and
314 'initial-buffer-choice' is non-nil, display both the file and
315 'initial-buffer-choice'. When Emacs is given more than one file and
316 'initial-buffer-choice' is non-nil, show 'initial-buffer-choice'
317 and *Buffer List*. This makes Emacs convenient to use from the
318 command line when 'initial-buffer-choice' is non-nil.
319
320 +++
321 ** The value of 'initial-scratch-message' is now treated as a doc string
322 and can contain escape sequences for command keys, quotes, and the like.
323
324 ---
325 ** The default height of GUI frames was enlarged.
326 This is so there's enough space in the initial window to display the
327 optional text about recovering crashes sessions, without losing the
328 splash image display.
329
330 \f
331 * Changes in Emacs 25.1
332
333 +++
334 ** Xwidgets: a new feature for embedding native widgets inside Emacs buffers.
335 If you have gtk3 and webkitgtk3 installed, and Emacs was built with
336 xwidget support, you can access the embedded webkit browser with 'M-x
337 xwidget-webkit-browse-url'. This opens a new buffer with the embedded
338 browser. The buffer will have a new mode, 'xwidget-webkit-mode'
339 (similar to 'image-mode'), which supports the webkit widget.
340
341 +++
342 *** New functions for xwidget-webkit mode 'xwidget-webkit-insert-string',
343 'xwidget-webkit-adjust-size-dispatch', 'xwidget-webkit-back',
344 'xwidget-webkit-browse-url', 'xwidget-webkit-reload',
345 'xwidget-webkit-current-url', 'xwidget-webkit-scroll-backward',
346 'xwidget-webkit-scroll-forward', 'xwidget-webkit-scroll-down',
347 'xwidget-webkit-scroll-up'.
348
349 +++
350 ** Emacs can now load shared/dynamic libraries (modules).
351 A dynamic Emacs module is a shared library that provides additional
352 functionality for use in Emacs Lisp programs, just like a package
353 written in Emacs Lisp would. The functions 'load', 'require',
354 'load-file', etc. were extended to load such modules, as they do with
355 Emacs Lisp packages. The new variable 'module-file-suffix' holds the
356 system-dependent value of the file-name extension ('.so' on Posix
357 hosts) of the module files.
358
359 A module should export a C-callable function named
360 'emacs_module_init', which Emacs will call as part of the call to
361 'load' or 'require' which loads the module. It should also export a
362 symbol named 'plugin_is_GPL_compatible' to indicate that its code is
363 released under the GPL or compatible license; Emacs will refuse to
364 load modules that don't export such a symbol.
365
366 If a module needs to call Emacs functions, it should do so through the
367 API defined and documented in the header file 'emacs-module.h'. Note
368 that any module that provides Lisp-callable functions will have to use
369 Emacs functions such as 'fset' and 'funcall', in order to register its
370 functions with the Emacs Lisp interpreter.
371
372 Modules can create 'user-ptr' Lisp objects that embed pointers to C
373 structs defined by the module. This is useful for keeping around
374 complex data structures created by a module, to be passed back to the
375 module's functions. User-ptr objects can also have associated
376 "finalizers" -- functions to be run when the object is GC'ed; this is
377 useful for freeing any resources allocated for the underlying data
378 structure, such as memory, open file descriptors, etc. A new
379 predicate 'user-ptrp' returns non-nil if its argument is a 'user-ptr'
380 object.
381
382 Loadable modules in Emacs are an experimental feature, and subject to
383 change in future releases. For that reason, their support is disabled
384 by default, and must be enabled by using the '--with-modules' option
385 at configure time.
386
387 +++
388 ** A second dir-local file (.dir-locals-2.el) is now accepted.
389 See the variable 'dir-locals-file-2' for more information.
390
391 +++
392 ** Network security (TLS/SSL certificate validity and the like) is
393 added via the new Network Security Manager (NSM) and controlled via
394 the 'network-security-level' variable.
395
396 ---
397 ** International domain names (IDNA) are now encoded via the new
398 puny.el library, so that one can visit web sites with non-ASCII URLs.
399
400 +++
401 ** C-h l now also lists the commands that were run.
402
403 ** The new M-s M-w key binding uses eww to search the web for the
404 text in the region.
405
406 +++
407 ** The new 'timer-list' command lists all active timers in a buffer
408 where you can cancel them with the 'c' command.
409
410 ** M-x suggests shorthands and ignores obsolete commands for completion.
411 ** x-select-enable-clipboard is renamed select-enable-clipboard.
412 x-select-enable-primary and renamed select-enable-primary.
413 Additionally they both now apply to all systems (OSX, GNUstep, Windows, you
414 name it), with the proviso that on some systems (e.g. Windows)
415 select-enable-primary is ineffective since the system doesn't
416 have the equivalent of a primary selection.
417
418 +++
419 ** New option 'switch-to-buffer-in-dedicated-window' allows you to
420 customize how 'switch-to-buffer' proceeds interactively when the
421 selected window is strongly dedicated to its buffer.
422
423 +++
424 ** The option 'even-window-heights' has been renamed to
425 'even-window-sizes' and now handles window widths as well.
426
427 +++
428 ** New function 'read-multiple-choice' use to prompt for
429 multiple-choice questions, with a handy way to display help texts.
430
431 +++
432 ** terpri gets an optional arg ENSURE to conditionally output a newline.
433
434 +++
435 ** 'insert-register' now leaves point after the inserted text
436 when called interactively. A prefix argument toggles this behavior.
437
438 +++
439 ** The new variable 'term-file-aliases' replaces some files from lisp/term.
440 The function 'tty-run-terminal-initialization' consults this variable
441 when deciding what terminal-specific initialization code to run.
442
443 ---
444 ** New variable 'system-configuration-features', listing some of the
445 main features that Emacs was compiled with. This is mainly intended
446 for use in Emacs bug reports.
447
448 +++
449 ** A password is now hidden also when typed in batch mode. Another
450 hiding character but the default '.' can be used by let-binding the
451 variable 'read-hide-char'.
452
453 +++
454 ** The Emacs pseudo-random number generator can be securely seeded.
455 On system where Emacs can access the system entropy or some other
456 cryptographically secure random stream, it now uses that when 'random'
457 is called with its argument 't'. This allows cryptographically strong
458 random values; in particular, the Emacs server now uses this facility
459 to produce its authentication key.
460
461 ---
462 ** New input methods: 'tamil-dvorak' and 'programmer-dvorak'.
463
464 \f
465 * Editing Changes in Emacs 25.1
466
467 +++
468 ** M-x suggests shorthands and ignores obsolete commands for completion.
469
470 ** Changes in undo
471
472 +++
473 *** Successive single-char deletions are collapsed in the undo-log just like
474 successive char insertions. Which commands invoke this behavior is
475 controlled by the new 'undo-auto-amalgamate' function. See the node
476 "Undo" in the ELisp manual for more details.
477
478 +++
479 *** The heuristic used to insert 'undo-boundary' after each command
480 has changed, so that if a command causes changes in more than just the
481 current buffer, Emacs now calls 'undo-boundary' in every buffer
482 affected by the command.
483
484 +++
485 ** New command 'comment-line' bound to 'C-x C-;'.
486
487 ** New and improved facilities for inserting Unicode characters
488
489 ---
490 *** Unicode names entered via C-x 8 RET now use substring completion by default.
491
492 +++
493 *** C-x 8 now has shorthands for several chars, such as U+2010
494 (HYPHEN), U+2011 (NON-BREAKING HYPHEN), and U+2012 (FIGURE DASH). As
495 before, you can type C-x 8 C-h to list shorthands.
496
497 +++
498 *** New minor mode electric-quote-mode for using curved quotes as you
499 type. See also the new variable 'text-quoting-style'.
500
501 ---
502 ** New minor mode global-eldoc-mode is enabled by default.
503
504 ---
505 ** Emacs now uses "bracketed paste mode" on text terminals that support it.
506 Bracketed paste mode causes text terminals to wrap pasted text in special
507 escape sequences that allow Emacs to tell the difference between text
508 you type and text you paste from other applications. Emacs then
509 avoids interpreting each character in the pasted text as it does with
510 keyboard input, which results in a paste experience similar to that
511 under a window system, and significant performance improvements when
512 pasting large amounts of text.
513
514 Bracketed paste mode is disabled by default, so Emacs automatically
515 enables it at startup if the terminal supports it.
516
517 +++
518 ** Emacs now supports the latest version of the UBA.
519 The Emacs implementation of the Unicode Bidirectional Algorithm (UBA)
520 was updated to support all the latest additions and changes introduced
521 in Unicode Standard versions 6.3, 7.0, and the latest Unicode 8.0.
522 This includes full support for directional isolates and the
523 Bidirectional Parentheses Algorithm (BPA) specified by these Unicode
524 standards.
525
526 +++
527 ** You can access 'mouse-buffer-menu' (C-down-mouse-1) using C-f10.
528
529 +++
530 ** New buffer-local 'electric-pair-local-mode'.
531
532 +++
533 ** New variable 'fast-but-imprecise-scrolling' inhibits
534 fontification during full screen scrolling operations, giving less
535 hesitant operation during auto-repeat of C-v, M-v at the cost of
536 possible inaccuracies in the end position.
537
538 +++
539 ** New documentation command 'describe-symbol'.
540 Works for functions, variables, faces, etc. It is bound to 'C-h o' by
541 default.
542
543 +++
544 ** New function 'custom-prompt-customize-unsaved-options' checks for
545 unsaved customizations and prompts user to customize (if found). It
546 is intended for adding to 'kill-emacs-query-functions'.
547
548 +++
549 ** The old 'C-x w' bindings in hi-lock-mode are officially deprecated
550 in favor of the global 'M-s h' bindings introduced in Emacs-23.1.
551 They'll disappear soon.
552
553 +++
554 ** New bindings for 'query-replace-map'.
555 'undo', undo the last replacement; bound to 'u'.
556 'undo-all', undo all replacements; bound to 'U'.
557
558 \f
559 * Changes in Specialized Modes and Packages in Emacs 25.1
560
561 ** Checkdoc
562
563 +++
564 *** New command 'checkdoc-package-keywords' checks if the
565 current package keywords are recognized. Set the new option
566 'checkdoc-package-keywords-flag' to non-nil to make
567 'checkdoc-current-buffer' call this function automatically.
568
569 +++
570 *** New function 'checkdoc-file' checks for style errors.
571 It's meant for use together with 'compile':
572 emacs -batch --eval "(checkdoc-file \"subr.el\")"
573
574 ** Desktop
575
576 ---
577 *** The desktop format version has been upgraded from 206 to 208.
578 Although Emacs 25.1 can read a version 206 desktop, earlier Emacsen
579 cannot read a version 208 desktop. To upgrade your desktop file, you
580 must explicitly request the upgrade, by C-u M-x desktop-save. You are
581 recommended to do this as soon as you have firmly upgraded to Emacs
582 25.1 (or later). Should you ever need to downgrade your desktop file
583 to version 206, you can do this with C-u C-u M-x desktop-save.
584
585 +++
586 ** New function 'bookmark-set-no-overwrite' bound to C-x r M.
587 It raises an error if a bookmark of that name already exists,
588 unlike 'bookmark-set' which silently updates an existing bookmark.
589
590 ** Gnus
591
592 +++
593 *** New user options 'mm-html-inhibit-images' and 'mm-html-blocked-images'
594 now control how mm-* functions fetch and display images in an HTML
595 message. Gnus still uses 'gnus-inhibit-images' and 'gnus-blocked-images'
596 for that purpose, i.e., binds mm-html- variables with those gnus-
597 variables, but other packages do not have to bind gnus- variables now.
598
599 ---
600 *** 'mm-inline-text-html-with-images' has been removed.
601 Use 'mm-html-inhibit-images' instead. Note that the value is opposite
602 in meaning.
603
604 ** IMAP
605
606 ---
607 *** 'imap-ssl-program' has been removed, and imap.el uses the internal
608 GnuTLS encryption functions if possible.
609
610 ** JSON
611
612 ---
613 *** 'json-pretty-print' and 'json-pretty-print-buffer' now maintain
614 the ordering of object keys by default.
615
616 ---
617 *** New commands 'json-pretty-print-ordered' and
618 'json-pretty-print-buffer-ordered' pretty prints JSON objects with
619 object keys sorted alphabetically.
620
621 +++
622 ** Prog mode has some support for multi-mode indentation.
623 This allows better indentation support in modes that support multiple
624 programming languages in the same buffer, like literate programming
625 environments or ANTLR programs with embedded Python code.
626
627 A major mode can provide indentation context for a sub-mode through
628 the 'prog-indentation-context' variable. To support this, modes that
629 provide indentation should use 'prog-widen' instead of 'widen' and
630 'prog-first-column' instead of a literal zero. See the node
631 "Mode-Specific Indent" in the ELisp manual for more details.
632
633 ** Prettify Symbols mode
634
635 +++
636 *** Prettify Symbols mode supports custom composition predicates. By
637 overriding the default 'prettify-symbols-compose-predicate', modes can
638 specify in which contexts a symbol may be displayed as some Unicode
639 character. 'prettify-symbols-default-compose-p' is the default which
640 is suitable for most programming languages such as C or Lisp (but not
641 (La)TeX).
642
643 +++
644 *** Symbols can be unprettified while point is inside them.
645 New variable 'prettify-symbols-unprettify-at-point' configures this.
646
647 ** Enhanced xterm support
648
649 ---
650 *** The new variable 'xterm-screen-extra-capabilities' for configuring xterm.
651 This variable tells Emacs which advanced capabilities are available in
652 the xterm terminal emulator used to display Emacs text-mode frames.
653 The default is to check each capability, and use it if available.
654 (This variable was introduced in Emacs 24.1, but was not announced in
655 its NEWS.)
656
657 ---
658 *** Killing text now also sets the CLIPBOARD/PRIMARY selection
659 in the surrounding GUI (using the OSC-52 escape sequence). This only works
660 if your xterm supports it and enables the 'allowWindowOps' options (disabled
661 by default at least in Debian, for security reasons).
662
663 Similarly, you can yank the CLIPBOARD/PRIMARY selection (using the OSC-52
664 escape sequence) if your xterm has the feature enabled but for that you
665 additionally need to add 'getSelection' to 'xterm-extra-capabilities'.
666
667 +++
668 *** 'xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
669
670 ---
671 ** The way to turn on and off 'save-place' mode has changed.
672 It is no longer sufficient to load the saveplace library and set
673 'save-place' non-nil. Instead, use the two new minor modes:
674 'save-place-mode' turns on saving last place in every file, and
675 'save-place-local-mode' does that only for the file in whose buffer it
676 is invoked. The 'save-place' variable is now an obsolete alias for
677 'save-place-mode', which replaces it, and 'toggle-save-place' is an
678 obsolete alias for the new 'save-place-local-mode' command.
679
680 ** ERC
681
682 +++
683 *** ERC can now hide message types by network or channel.
684 'erc-hide-list' will hide all messages of the specified type, while
685 'erc-network-hide-list' and 'erc-channel-hide-list' will only hide the
686 specified message types for the respective specified targets.
687
688 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
689 servers.
690
691 ---
692 *** Reconnection is now asynchronous.
693
694 ---
695 *** Nick completion is now case-insensitive again after inadvertently
696 being made case-sensitive in Emacs 24.2.
697
698 ** MPC
699
700 ---
701 *** New commands, key binds, and menu items.
702
703 **** '<' and '>' for navigating previous and next tracks in playlist
704
705 **** New play/pause command 'mpc-toggle-play' bound to 's'
706
707 **** 'g' bound to new command 'mpc-seek-current' will navigate current
708 track.
709
710 **** New commands 'mpc-toggle-{consume,repeat,single,shuffle}' for
711 toggling playback modes.
712
713 ---
714 *** Now supports connecting to a UNIX domain socket.
715
716 ---
717 *** Looks at more image file names to use as album art.
718 Case-insensitively tries for .folder.png (freedesktop) and folder.jpg
719 (XP) in addition to cover.jpg.
720
721 ---
722 *** Searches in more locations for MPD configuration files.
723 MPD supports the XDG base directory specification since version 0.17.6.
724
725 ** Midnight-mode
726
727 ---
728 *** 'midnight-mode' is now a proper minor mode.
729
730 ---
731 *** clean-buffer-*-regexps can now specify buffers via predicate functions.
732
733 ** package.el
734
735 +++
736 *** New "external" package status.
737 An external package is any installed package that's not built-in and
738 not from 'package-user-dir', which usually means it's from an entry in
739 'package-directory-list'. They are treated much like built-in
740 packages, in that they cannot be deleted through the package menu and
741 are not considered for upgrades.
742
743 The effect is that a user can manually place a specific version of a
744 package inside 'package-directory-list' and the package menu will
745 always respect that.
746
747 +++
748 *** If a package is available on multiple archives and one has higher
749 priority (as per 'package-archive-priorities') only that one is
750 listed. This can be configured with 'package-menu-hide-low-priority'.
751
752 +++
753 *** 'package-menu-toggle-hiding' now toggles the hiding of packages.
754 This includes the above-mentioned low-priority packages, as well as
755 available packages whose version is lower than the currently installed
756 version (which were previously impossible to display).
757 This allows users to downgrade a package if a lower version is
758 available.
759
760 ---
761 *** When filtering the package menu, keywords starting with "arc:" or
762 "status:" represent package archive or status, respectively, instead
763 of actual keywords.
764
765 ---
766 *** Most functions which involve downloading information now take an
767 ASYNC argument. If it is non-nil, package.el performs the download(s)
768 asynchronously.
769
770 ---
771 *** New variable 'package-menu-async' controls whether the
772 package-menu uses asynchronous downloads.
773
774 ---
775 *** 'package-install-from-buffer' and 'package-install-file' work on directories.
776 This follows the same rules as installing from a .tar file, except the
777 -pkg file is optional.
778
779 ---
780 *** Packages which are dependencies of other packages cannot be deleted.
781 The FORCE argument to 'package-delete' overrides this.
782
783 ---
784 *** New custom variable 'package-selected-packages' tracks packages
785 which were installed by the user (as opposed to installed as
786 dependencies). This variable can also be manually customized.
787
788 ---
789 *** New command 'package-install-selected-packages' installs all
790 packages from 'package-selected-packages' which are currently missing.
791
792 ---
793 *** 'package-install' function now takes a DONT-SELECT argument. If
794 this function is called interactively or if DONT-SELECT is nil, add the
795 package being installed to 'package-selected-packages'.
796
797 ---
798 *** New command 'package-autoremove' removes all packages which were
799 installed strictly as dependencies but are no longer needed.
800
801 +++
802 ** Shell
803
804 When you invoke 'shell' interactively, the *shell* buffer will now
805 display in a new window. However, you can customize this behavior via
806 the 'display-buffer-alist' variable. For example, to get
807 the old behavior -- *shell* buffer displays in current window -- use
808 (add-to-list 'display-buffer-alist
809 '("^\\*shell\\*$" . (display-buffer-same-window))).
810
811 ** EIEIO
812 +++
813 *** The ':protection' slot option is not obeyed any more.
814 +++
815 *** The 'newname' argument to constructors is optional&deprecated.
816 If you need your objects to be named, do it by inheriting from 'eieio-named'.
817 +++
818 *** The <class>-list-p and <class>-child-p functions are declared obsolete.
819 +++
820 *** The <class> variables are declared obsolete.
821 +++
822 *** The <initarg> variables are declared obsolete.
823 +++
824 *** defgeneric and defmethod are declared obsolete.
825 Use the equivalent facilities from cl-generic.el instead.
826 +++
827 *** 'constructor' is now an obsolete alias for 'make-instance'.
828 --- 'pcase' accepts a new UPattern 'eieio'.
829
830 ** ido
831
832 +++
833 *** New command 'ido-bury-buffer-at-head' bound to C-S-b
834 Bury the buffer at the head of 'ido-matches', analogous to how C-k
835 kills the buffer at head.
836
837 ---
838 *** A prefix argument to 'ido-restrict-to-matches' will reverse its
839 meaning, and the list is restricted to those elements that do not
840 match the current input.
841
842 ** Minibuffer
843
844 +++
845 *** You can use <UP> and <DOWN> arrow keys to move through history by lines.
846 The new commands 'next-line-or-history-element' and
847 'previous-line-or-history-element', bound to <UP> and <DOWN> in the
848 minibuffer, allow by-line movement through minibuffer history,
849 similarly to an ordinary buffer. Only when point moves over
850 the bottom/top of the minibuffer it goes to the next/previous history
851 element. 'M-p' and 'M-n' still move directly to previous/next history
852 item as before.
853
854 ** Search and Replace
855
856 +++
857 *** 'isearch' and 'query-replace' can now perform character folding in matches.
858 This is analogous to case folding, but instead of disregarding case
859 variants, it disregards wider classes of distinctions between similar
860 characters. (Case folding is a special case of character folding.)
861 This means many characters in the search string will match entire
862 groups of characters instead of just themselves.
863
864 For instance, the ASCII double quote character " will match all
865 variants of double quotes, and the letter 'a' will match all of its
866 accented cousins, even those composed of multiple characters, as well
867 as many other symbols like U+249C (PARENTHESIZED LATIN SMALL LETTER
868 A).
869
870 Character folding is enabled by customizing 'search-default-mode' to
871 the value 'character-fold-to-regexp'. You can also toggle character
872 folding in the middle of a search by typing 'M-s ''.
873
874 'query-replace' honors character folding if the new variable
875 'replace-character-fold' is customized to a non-nil value.
876
877 +++
878 *** New user option 'search-default-mode'.
879 This option specifies the default mode for Isearch. The default
880 value, nil specifies that Isearch does literal searches (however,
881 'case-fold-search' and 'isearch-lax-whitespace' may still be applied,
882 as in previous Emacs versions).
883
884 +++
885 *** New function 'character-fold-to-regexp' can be used
886 by searching commands to produce a regexp matching anything that
887 character-folds into STRING.
888
889 +++
890 *** The new M-s M-w key binding uses eww to search the web for the
891 text in the region. The search engine to use for this is specified by
892 the customizable variable 'eww-search-prefix'.
893
894 +++
895 *** Query-replace history is enhanced.
896 When query-replace reads the FROM string from the minibuffer, typing
897 'M-p' will now show previous replacements as "FROM SEP TO", where FROM
898 and TO are the original text and its replacement, and SEP is an arrow
899 string defined by the new variable 'query-replace-from-to-separator'.
900 To select a prior replacement, type 'M-p' until the desired
901 replacement appears in the minibuffer, and then exit the minibuffer by
902 typing RET.
903
904 ** Calc
905 +++
906 *** If 'quick-calc' is called with a prefix argument, insert the
907 result of the calculation into the current buffer.
908
909 +++
910 ** In Edebug, you can now set the initial mode with C-x C-a C-m. With
911 this you can tell Edebug not to stop at the start of the first
912 instrumented function.
913
914 ** ElDoc
915
916 +++
917 *** New minor mode 'global-eldoc-mode'
918 It is turned on by default, and affects '*scratch*' and other buffers
919 whose major mode supports Emacs Lisp.
920
921 ---
922 *** 'eldoc-documentation-function' now defaults to 'ignore'
923
924 ---
925 *** 'describe-char-eldoc' displays information about character at point,
926 and can be used as a default value of 'eldoc-documentation-function'. It is
927 useful when, for example, one needs to distinguish various spaces - e.g.,
928 U+00A0 (NO-BREAK SPACE), U+2002 (EN SPACE), and U+2009 (THIN SPACE) - while
929 using mono-spaced font.
930
931 ** eww
932
933 ---
934 *** HTML can now be rendered using variable-width fonts.
935
936 +++
937 *** A new command 'F' ('eww-toggle-fonts') can be used to toggle
938 whether to use variable-pitch fonts or not. The user can also
939 customize the 'shr-use-fonts' variable.
940
941 +++
942 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
943 whether to use the HTML-specified colors or not. The user can also
944 customize the 'shr-use-colors' variable.
945
946 +++
947 *** A new command 'R' ('eww-readable') will try do identify the main
948 textual parts of a web page and display only that, leaving menus and
949 the like off the page.
950
951 +++
952 *** A new command 'D' ('eww-toggle-paragraph-direction') allows you to
953 toggle the paragraph direction between left-to-right and right-to-left.
954
955 ---
956 *** Images that are being loaded are now marked with grey
957 "placeholder" images of the size specified by the HTML. They are then
958 replaced by the real images asynchronously, which will also now
959 respect width/height HTML specs (unless they specify widths/heights
960 bigger than the current window).
961
962 ---
963 *** You can now use several eww buffers in parallel by renaming eww
964 buffers you want to keep separate.
965
966 +++
967 *** Partial state of the eww buffers (the URIs and the titles of the
968 pages visited) is now preserved in the desktop file.
969
970 +++
971 *** 'eww-after-render-hook' is now called after eww has rendered
972 the data in the buffer.
973
974 ---
975 *** The 'eww-reload' command now takes a prefix to not reload via
976 the net, but just use the local copy of the HTML.
977
978 +++
979 *** The DOM shr and eww uses has been changed to the general Emacs
980 xml.el/libxml2 DOM, and a new package dom.el has been added to
981 interact with this DOM. See the Emacs Lisp manual for interface
982 details.
983
984 +++
985 *** 'mailcap-mime-data' is now consulted when displaying PDF files.
986
987 +++
988 *** The new 'S' command will list all eww buffers, and allow managing
989 them.
990
991 ---
992 *** https pages with valid certificates have headers marked in green, while
993 invalid certificates are marked in red.
994
995 ** Message mode
996
997 ---
998 *** text/html messages that contain inline image parts will be
999 transformed into multipart/related messages before sending.
1000
1001 ---
1002 *** The 'message-valid-fqdn-regexp' variable has been removed, since
1003 there are now top-level domains added all the time. Message will no
1004 longer warn about sending emails to top-level domains it hasn't heard
1005 about.
1006
1007 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
1008 In 'visual-line-mode' it will look for the true beginning of a header
1009 while in non-'visual-line-mode' it will move the point to the indented
1010 header's value.
1011
1012 +++
1013 ** In Show Paren Mode, a parenthesis can be highlighted when point
1014 stands inside it, and certain parens can be highlighted when point is
1015 at BOL or EOL, or in whitespace there. To enable these, customize,
1016 respectively, 'show-paren-when-point-inside-paren' or
1017 'show-paren-when-point-in-periphery'.
1018
1019 ---
1020 ** If gpg2 exists on the system, it is now used as the default value
1021 of 'epg-gpg-program' (instead of gpg).
1022
1023 ** Images
1024
1025 +++
1026 *** Images are automatically scaled before displaying based on the
1027 'image-scaling-factor' variable (if Emacs supports scaling the images
1028 in question).
1029
1030 +++
1031 *** Images inserted with 'insert-image' and related functions get a
1032 keymap put into the text properties (or overlays) that span the
1033 image. This keymap binds keystrokes for manipulating size and
1034 rotation, as well as saving the image to a file. These commands are
1035 also available in 'image-mode'.
1036
1037 +++
1038 *** A new library for creating and manipulating SVG images has been
1039 added. See the "SVG Images" section in the lispref manual for
1040 details.
1041
1042 +++
1043 *** New setf-able function to access and set image parameters is
1044 provided: 'image-property'.
1045
1046
1047 ** Lisp mode
1048
1049 ---
1050 *** Strings after ':documentation' are highlighted as docstrings.
1051 This enhances Lisp mode fontification to handle documentation of the
1052 form '(:documentation "the doc string")' used in Common Lisp code for
1053 CLOS class and slot documentation.
1054
1055 ** Rectangle editing
1056
1057 +++
1058 *** Rectangle Mark mode can have corners past EOL or in the middle of a TAB.
1059
1060 +++
1061 *** C-x C-x in rectangle-mark-mode now cycles through the four corners.
1062 *** 'string-rectangle' provides on-the-fly preview of the result.
1063
1064 +++
1065 ** New font-lock functions 'font-lock-ensure' and 'font-lock-flush'.
1066 These should be used in preference to 'font-lock-fontify-buffer' when
1067 called from Lisp.
1068
1069 ---
1070 ** Macro 'minibuffer-with-setup-hook' can optionally append a function
1071 to 'minibuffer-setup-hook'.
1072
1073 If the first argument of the macro is of the form '(:append FUN)',
1074 then FUN will be appended to 'minibuffer-setup-hook', instead of
1075 prepending it.
1076
1077 ** cl-lib
1078 +++
1079 *** New functions 'cl-fresh-line', 'cl-digit-char-p', and 'cl-parse-integer'.
1080
1081 ---
1082 *** 'pcase' accepts the new UPattern 'cl-struct'.
1083
1084 ** Calendar and diary
1085
1086 +++
1087 *** The default 'diary-file' is now located in .emacs.d.
1088
1089 +++
1090 *** New commands to insert diary entries with Chinese dates:
1091 'diary-chinese-insert-anniversary-entry' 'diary-chinese-insert-entry'
1092 'diary-chinese-insert-monthly-entry', 'diary-chinese-insert-yearly-entry'.
1093
1094 +++
1095 *** The calendar can now list and mark diary entries with Chinese dates.
1096 See 'diary-chinese-list-entries' and 'diary-chinese-mark-entries'.
1097
1098 ---
1099 *** The option 'calendar-mode-line-format' can now be nil,
1100 which means to do nothing special with the mode line in calendars.
1101
1102 +++
1103 *** New option 'calendar-weekend-days'.
1104 The option customizes which day headers receive the
1105 'calendar-weekend-header' face.
1106
1107 ---
1108 *** New optional args N and STRING for 'holiday-greek-orthodox-easter'.
1109
1110 ---
1111 *** Many items obsolete since at least version 23.1 have been removed.
1112 The majority were function/variable/face aliases, too numerous to list here.
1113 The remainder were:
1114
1115 **** Functions 'calendar-one-frame-setup', 'calendar-only-one-frame-setup',
1116 'calendar-two-frame-setup', 'european-calendar', 'american-calendar'.
1117
1118 **** Hooks 'cal-menu-load-hook', 'cal-x-load-hook'.
1119
1120 **** Macro 'calendar-for-loop'.
1121
1122 **** Variables 'european-calendar-style', 'diary-face', 'hebrew-holidays-{1,4}'.
1123
1124 **** The nil and list forms of 'diary-display-function'.
1125
1126 +++
1127 ** New ERT function 'ert-summarize-tests-batch-and-exit'.
1128 If the output of ERT tests in batch mode execution can be saved to a
1129 log file, then it can be passed as an argument to the above function
1130 to produce a neat summary.
1131
1132 ---
1133 ** New js.el option 'js-indent-first-init'.
1134
1135 ** Info
1136
1137 ---
1138 ** Info mode now displays symbol names in fixed-pitch font.
1139 If you want to get the old behavior back, customize the 'Info-quoted'
1140 face to use the same definitions as the default face.
1141
1142 ---
1143 *** 'Info-fontify-maximum-menu-size' can be t for no limit.
1144
1145 +++
1146 *** 'info-display-manual' can now be given a prefix argument which (any
1147 non-nil value) directs the command to limit the completion
1148 alternatives to currently visited manuals.
1149
1150 ---
1151 ** ntlm.el has support for NTLM2.
1152
1153 ** Rmail
1154
1155 +++
1156 *** The Rmail commands 'd', 'C-d' and 'u' take optional repeat counts
1157 to delete or undelete multiple messages.
1158
1159 +++
1160 *** Rmail can now render HTML mail messages if your Emacs was built with
1161 libxml2 or if you have the Lynx browser installed. By default, Rmail
1162 will display the HTML version of a mail message that has both HTML and
1163 plain text parts, if display of HTML email is possible; customize the
1164 'rmail-mime-prefer-html' option to 'nil' if you don't want that.
1165
1166 +++
1167 *** In the commands that make summaries by subject, recipients, or senders,
1168 you can no longer use commas to separate regular expressions.
1169
1170 +++
1171 ** SES now supports local printer functions; see 'ses-define-local-printer'.
1172
1173 ** Shell-script Mode
1174 ---
1175 *** In sh-mode you can now use 'sh-shell' as a file-local variable to
1176 specify the type of shell in use (bash, csh, etc).
1177
1178 ---
1179 *** New value 'always' for 'sh-indent-after-continuation'.
1180 This provides old-style ("dumb") indentation of continued lines.
1181 See the doc string of 'sh-indent-after-continuation' for details.
1182
1183 ** TLS
1184 ---
1185 *** Fatal TLS errors are now silent by default.
1186
1187 ---
1188 *** If Emacs isn't built with TLS support, an external TLS-capable
1189 program is used instead. This program used to be run in --insecure
1190 mode by default, but has now changed to be secure instead, and will
1191 fail if you try to connect to non-verifiable hosts. This is
1192 controlled by the 'tls-program' variable.
1193
1194 ** URL
1195
1196 +++
1197 *** The URL package accepts now the protocols "ssh", "scp" and "rsync".
1198 When 'url-handler-mode' is enabled, file operations for these
1199 protocols as well as for "telnet" and "ftp" are passed to Tramp.
1200
1201 +++
1202 *** The URL package allows customizing the 'url-user-agent' string.
1203 The new 'url-user-agent' variable can be customized to be a string or
1204 a function.
1205
1206 ---
1207 *** The new interface variable 'url-request-noninteractive' can be used
1208 to specify that we're running in a noninteractive context, and that
1209 we should not be queried about things like TLS certificate validity.
1210
1211 ---
1212 *** 'url-mime-accept-string' can now be used as in "interface"
1213 variable, meaning you can bind it around an 'url-retrieve' call.
1214
1215 ---
1216 *** If URL is used with a https connection, the first callback argument
1217 plist will contain a :peer element that has the output of
1218 'gnutls-peer-status' (if Emacs is built with GnuTLS support).
1219
1220 +++
1221 *** The new function 'url-cookie-delete-cookie' can be used to
1222 programmatically delete all cookies, or cookies from a specific
1223 domain.
1224
1225 ** Tramp
1226
1227 +++
1228 *** New connection method "afp", which allows you to access Mac OS X
1229 volumes via the Apple Filing Protocol.
1230
1231 +++
1232 *** New connection method "nc", which allows you to access dumb
1233 busyboxes.
1234
1235 +++
1236 *** Method-specific parameters can be overwritten now with variable
1237 'tramp-connection-properties'.
1238
1239 ---
1240 *** Handler for 'file-notify-valid-p' for remote machines that support
1241 filesystem notifications.
1242
1243 ** SQL mode
1244
1245 ---
1246 *** New user variable 'sql-default-directory' enables remote
1247 connections using Tramp.
1248
1249 ---
1250 *** New command 'sql-send-line-and-next'.
1251 This command, bound to 'C-c C-n' by default, sends the current line to
1252 the SQL process and advances to the next line, skipping whitespace and
1253 comments.
1254
1255 ---
1256 *** Added support for Vertica SQL.
1257
1258 ** VC and related modes
1259
1260 +++
1261 *** Basic push support, via 'vc-push', bound to 'C-x v P'.
1262 Implemented for Bzr, Git, Hg. As part of this change, the pre-existing
1263 (undocumented) command vc-hg-push now behaves slightly differently.
1264
1265 +++
1266 *** The new command vc-region-history shows the log+diff of the active region.
1267
1268 +++
1269 *** You can refresh the VC state of a file buffer with 'M-x vc-refresh-state'.
1270 This command is useful when you perform version control commands
1271 outside Emacs (e.g., from the shell prompt), or if you switch the VC
1272 back-end for the buffer's file, or remove it from version control.
1273
1274 ---
1275 *** The VC state indicator in the mode line now defaults to more
1276 colorful faces to make it more obvious to the user what the state is.
1277 See the 'vc-faces' customization group.
1278
1279 +++
1280 *** New option 'vc-annotate-background-mode' controls whether
1281 the color range from 'vc-annotate-color-map' is applied to the
1282 background or to the foreground.
1283
1284 +++
1285 *** 'compare-windows' now compares text with the most recently selected window
1286 instead of the next window. If you want the previous behavior of
1287 comparing with the next window, customize the new option
1288 'compare-windows-get-window-function' to the value
1289 'compare-windows-get-next-window'.
1290
1291 ---
1292 *** Two new faces 'compare-windows-removed' and 'compare-windows-added'
1293 replace the face 'compare-windows', which is now an obsolete alias for
1294 'compare-windows-added'.
1295
1296 ---
1297 *** The VC state indicator in the mode line now has different faces
1298 corresponding to each of the possible states. See the 'vc-faces'
1299 customization group.
1300
1301 ---
1302 *** 'log-edit-insert-changelog' converts "(tiny change)" to
1303 "Copyright-paperwork-exempt: yes". Set 'log-edit-rewrite-tiny-change'
1304 nil to disable this.
1305
1306 ---
1307 ** VHDL mode now supports VHDL'08.
1308
1309 ** Calculator
1310
1311 ---
1312 *** Decimal display mode uses "," groups, so it's more
1313 fitting for use in money calculations
1314
1315 ---
1316 *** Factorial works with non-integer inputs.
1317
1318 ** Hide-IfDef mode
1319
1320 ---
1321 *** Hide-IfDef mode now support full C/C++ expressions in macros,
1322 macro argument expansion, interactive macro evaluation and automatic
1323 scanning of #define'd symbols.
1324
1325 ---
1326 *** New command 'hif-evaluate-macro', bound to 'C-c @ e', displays the
1327 result of evaluating a macro.
1328
1329 ---
1330 *** New command 'hif-clear-all-ifdef-define', bound to 'C-c @ C', clears
1331 all defined symbols in 'hide-ifdef-env'.
1332
1333 ---
1334 *** New custom variable 'hide-ifdef-header-regexp' to define C/C++ header
1335 file name patterns. Defaults to files whose extension is one of '.h',
1336 '.hh', '.hpp', '.hxx', or '.h++', matched case-insensitively.
1337
1338 ---
1339 *** New custom variable 'hide-ifdef-expand-reinclusion-protection' to prevent
1340 reinclusion protected (a.k.a. "idempotent") header files from being hidden.
1341 (This could happen when an idempotent header file is visited again,
1342 when its guard symbol is already defined.) Defaults to 't'.
1343
1344 ---
1345 *** New custom variable 'hide-ifdef-exclude-define-regexp' to define symbol
1346 name patterns (e.g. all "FOR_DOXYGEN_ONLY_*") to be ignored when
1347 looking for macro definitions. By default, no symbols are ignored.
1348
1349 ** TeX mode
1350
1351 +++
1352 *** New custom variable 'tex-print-file-extension' to help users who
1353 use PDF instead of DVI.
1354
1355 +++
1356 *** TeX mode now supports Prettify Symbols mode. When enabling
1357 'prettify-symbols-mode' in a tex-mode buffer, \alpha ... \omega, and
1358 many other math macros are displayed using unicode characters.
1359
1360 +++
1361 ** New 'big-indent' style in 'whitespace-mode' highlights deep indentation.
1362 By default, 32 consecutive spaces or four consecutive TABs are
1363 considered to be too deep, but the new variable
1364 'whitespace-big-indent-regexp' can be customized to change that.
1365
1366 ---
1367 ** New options in 'tildify-mode'.
1368 New options 'tildify-space-string', 'tildify-pattern', and
1369 'tildify-foreach-region-function' variables make
1370 'tildify-string-alist', 'tildify-pattern-alist', and
1371 'tildify-ignored-environments-alist' variables (as well as a few
1372 helper functions) obsolete.
1373
1374 +++
1375 ** New package Xref replaces Etags's front-end and UI
1376
1377 The new package Xref provides a generic framework and new commands to
1378 find and move to definitions of functions, macros, data structures
1379 etc., as well as go back to the location where you were before moving
1380 to a definition. It supersedes and obsoletes many Etags commands,
1381 while still using the etags.el code that reads the TAGS tables as one
1382 of its back-ends.
1383
1384 The command 'xref-find-definitions' replaces 'find-tag' and provides
1385 an interface to pick one definition among several.
1386 'tags-loop-continue' is now unbound. 'xref-pop-marker-stack' replaces
1387 'pop-tag-mark', but has a keybinding ('M-,') different from the one
1388 'pop-tag-mark' used.
1389
1390 'xref-find-definitions-other-window' replaces 'find-tag-other-window'.
1391 'xref-find-definitions-other-frame' replaces 'find-tag-other-frame'.
1392 'xref-find-apropos' replaces 'find-tag-regexp'.
1393
1394 As a result of this, the following commands are now obsolete:
1395 'find-tag-other-window', 'find-tag-other-frame', 'find-tag-regexp',
1396 'tags-apropos'.
1397
1398 'tags-loop-continue' is not obsolete because it's still useful in
1399 'tags-search' and 'tags-query-replace', for which there are no direct
1400 replacements yet.
1401
1402 +++
1403 *** Variants of 'tags-search' and 'tags-query-replace' in Dired were also
1404 replaced by xref-style commands, see the "Dired" section below.
1405
1406 +++
1407 *** New variables
1408
1409 'find-tag-marker-ring-length' is now an obsolete alias for
1410 'xref-marker-ring-length'. 'find-tag-marker-ring' is now an obsolete
1411 alias for a private variable. 'xref-push-marker-stack' and
1412 'xref-pop-marker-stack' should be used instead to manipulate the stack
1413 of searches for definitions.
1414
1415 ---
1416 *** 'xref-find-definitions' and 'describe-function' now display
1417 information about mode local overrides (defined by cedet/mode-local.el
1418 'define-overloadable-function' 'define-mode-local-overrides').
1419
1420 The framework's Lisp API is still experimental and can change in major,
1421 backward-incompatible ways.
1422
1423 ---
1424 ** New package Project
1425
1426 The new package Project provides generic infrastructure for dealing
1427 with projects. The main commands included in it are
1428 'project-find-file' and 'project-find-regexp'.
1429
1430 The Lisp API of this package is still experimental.
1431
1432 ** EUDC
1433 EUDC's LDAP backend has been improved.
1434
1435 +++
1436 *** EUDC supports LDAP-over-SSL URLs (ldaps://).
1437
1438 ---
1439 *** EUDC passes LDAP passwords through a pipe to the ldapsearch
1440 subprocess instead of on the command line.
1441
1442 ---
1443 *** EUDC handles LDAP wildcards automatically so the user shouldn't
1444 need to configure this manually anymore.
1445
1446 +++
1447 *** The LDAP configuration section of EUDC's manual has been
1448 rewritten.
1449
1450 There have also been customization changes.
1451
1452 +++
1453 *** New custom variable 'eudc-server-hotlist' to allow specifying
1454 multiple EUDC servers in init file.
1455
1456 +++
1457 *** Custom variable 'eudc-inline-query-format' defaults to completing
1458 on email and firstname instead of surname.
1459
1460 ---
1461 *** Custom variable 'eudc-expansion-overwrites-query' defaults to nil
1462 to avoid interfering with the kill ring.
1463
1464 +++
1465 *** Custom variable 'eudc-inline-expansion-format' defaults to
1466 "Firstname Surname <mail-address>".
1467
1468 +++
1469 *** Custom variable 'eudc-options-file' defaults to
1470 "~/.emacs.d/eudc-options".
1471
1472 ---
1473 *** New custom variable 'ldap-ldapsearch-password-prompt-regexp' to
1474 allow overriding the regular expression that recognizes the ldapsearch
1475 command line's password prompt.
1476
1477 ---
1478 EUDC's BBDB backend now supports BBDB 3.
1479
1480 ---
1481 EUDC's PH backend (eudcb-ph.el) is obsolete.
1482
1483 ** Eshell
1484
1485 +++
1486 *** The new built-in command 'clear' can scroll window contents out of sight.
1487 If provided with an optional non-nil argument, the scrollback contents will be cleared.
1488
1489 +++
1490 *** New buffer syntax '#<buffer-name>', which is equivalent to
1491 '#<buffer buffer-name>'. This shorthand makes interacting with
1492 buffers from eshell more convenient. Custom variable
1493 'eshell-buffer-shorthand', which has been broken for a while, has been
1494 removed.
1495
1496 +++
1497 *** By default, eshell "visual" program buffers (created by
1498 'eshell-visual-commands' and similar custom vars) are no longer killed
1499 when their processes die. This fixes issues with short-lived commands
1500 and makes visual programs more useful in general. For example, if
1501 "git log" is a visual command, it will always show the visual command
1502 buffer, even if the "git log" process dies. For the old behavior,
1503 make the new option 'eshell-destroy-buffer-when-process-dies' non-nil.
1504
1505 ** Browse-url
1506
1507 ---
1508 *** Support for the Google Chrome web browser.
1509
1510 ---
1511 *** Support for the Conkeror web browser.
1512
1513 ---
1514 *** Support for several ancient browsers is now officially obsolete.
1515
1516 +++
1517 ** tar-mode: new 'tar-new-entry' command, allowing for new members to
1518 be added to the archive.
1519
1520 ** Autorevert
1521
1522 ---
1523 *** Dired buffers are also auto-reverted via file notifications, if
1524 Emacs is compiled with file notification support.
1525
1526 ---
1527 *** 'auto-revert-use-notify' is set to nil in 'global-auto-revert-mode'.
1528 See <http://debbugs.gnu.org/22814>.
1529
1530 ** File Notifications
1531
1532 +++
1533 *** The kqueue library is integrated for *BSD and Mac OS X machines.
1534
1535 +++
1536 *** The new event 'stopped' signals, that a file notification watch is
1537 not active any longer.
1538
1539 +++
1540 *** The new function 'file-notify-valid-p' checks, whether a file
1541 notification descriptor still corresponds to an activate watch.
1542
1543 ** Dired
1544
1545 +++
1546 *** The command 'dired-do-compress' bound to 'Z' now can compress
1547 directories and decompress zip files.
1548
1549 +++
1550 *** New command 'dired-do-compress-to' bound to 'c' can be used to
1551 compress many marked files into a single named archive. The
1552 compression command is determined from the new
1553 'dired-compress-files-alist' variable.
1554
1555 +++
1556 *** In wdired, when editing files to contain slash characters,
1557 the resulting directories are automatically created. Whether
1558 to do this or not is controlled by the
1559 'wdired-create-parent-directories' variable.
1560
1561 +++
1562 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
1563 viewing HTML files and the like.
1564
1565 *** New user interface for the 'A' and 'Q' commands.
1566 These keys, now bound to 'dired-do-find-regexp' and
1567 'dired-do-find-regexp-and-replace', work similarly to 'xref-find-apropos'
1568 and 'xref-query-replace-in-results': they present the matches
1569 in the '*xref*' buffer and let you move through the matches. No need
1570 to use 'tags-loop-continue' to resume the search or replace loop. The
1571 previous commands, 'dired-do-search' and
1572 'dired-do-query-replace-regexp', are still available, but not bound to
1573 keys; rebind 'A' and 'Q' to invoke them if you want the old behavior
1574 back. We intend to obsolete the old commands in a future release.
1575
1576 ** Tabulated List Mode
1577
1578 +++
1579 *** It is now safe for a mode that derives 'tabulated-list-mode' to not
1580 call 'tabulated-list-init-header', in which case it will have no
1581 header.
1582
1583 +++
1584 *** 'tabulated-list-print' takes a second optional argument, update,
1585 which specifies an alternative printing method which is faster when
1586 few or no entries have changed.
1587
1588 ** Obsolete packages
1589
1590 ---
1591 *** gulp.el
1592
1593 ---
1594 *** landmark.el (moved to elpa.gnu.org)
1595
1596 \f
1597 * New Modes and Packages in Emacs 25.1
1598
1599 ---
1600 ** pinentry.el allows GnuPG passphrase to be prompted through the
1601 minibuffer instead of a graphical dialog, depending on whether the gpg
1602 command is called from Emacs (i.e., INSIDE_EMACS environment variable
1603 is set). This feature requires newer versions of GnuPG (2.1.5 or
1604 later) and Pinentry (0.9.5 or later). To use this feature, add
1605 "allow-emacs-pinentry" to "~/.gnupg/gpg-agent.conf" and reload the
1606 configuration with "gpgconf --reload gpg-agent".
1607
1608 +++
1609 ** cl-generic.el provides CLOS-style multiple-dispatch generic functions.
1610 The main entry points are 'cl-defgeneric' and 'cl-defmethod'. See the
1611 node "Generic Functions" in the Emacs Lisp manual for more details.
1612
1613 ---
1614 ** scss-mode (a minor variant of css-mode) is a major mode for editing
1615 SCSS (Sassy CSS) files.
1616
1617 ---
1618 ** let-alist is a new macro (and a package) that allows one to easily
1619 let-bind the values stored in an alist.
1620
1621 ---
1622 ** 'tildify-mode' allows automatic insertion of hard spaces as one
1623 types the text. Breaking line after a single-character words is
1624 forbidden by Czech and Polish typography (and may be discouraged in
1625 other languages), so 'auto-tildify-mode' makes it easier to create
1626 a typographically-correct documents.
1627
1628 ---
1629 ** The 'seq' library adds sequence manipulation functions and macros
1630 that complement basic functions provided by subr.el. All functions
1631 are prefixed with 'seq-' and work on lists, strings and vectors.
1632 'pcase' accepts a new Upattern 'seq'.
1633
1634 ---
1635 ** The 'map' library provides map-manipulation functions that work on
1636 alists, hash-table and arrays. All functions are prefixed with
1637 'map-'. 'pcase' accepts a new UPattern 'map'.
1638
1639 ---
1640 ** The 'thunk' library provides functions and macros to control the
1641 evaluation of forms.
1642
1643 ---
1644 ** js-jsx-mode (a minor variant of js-mode) provides indentation
1645 support for JSX, an XML-like syntax extension to ECMAScript.
1646
1647 \f
1648 * Incompatible Lisp Changes in Emacs 25.1
1649
1650 ---
1651 ** 'setq' and 'setf' must now be called with an even number of
1652 arguments. The earlier behavior of silently supplying a nil to the
1653 last variable when there was an odd number of arguments has been
1654 eliminated.
1655
1656 +++
1657 ** 'syntax-begin-function' is declared obsolete.
1658 Removed font-lock-beginning-of-syntax-function and the SYNTAX-BEGIN
1659 slot in font-lock-defaults.
1660
1661 +++
1662 ** The new implementation of Subword mode affects word movement everywhere.
1663 When Subword mode is turned on, 'forward-word', 'backward-word', and
1664 everything that uses them will move by sub-words, effectively
1665 overriding the buffer's syntax table. Lisp programs that shouldn't be
1666 affected by Subword mode should call the new functions
1667 'forward-word-strictly' and 'backward-word-strictly' instead.
1668
1669 +++
1670 ** 'package-initialize' now sets 'package-enable-at-startup' to nil if
1671 called during startup. Users who call this function in their init
1672 file and still expect it to be run after startup should set
1673 'package-enable-at-startup' to t after the call to
1674 'package-initialize'.
1675
1676 ---
1677 ** ':global' minor mode use 'setq-default' rather than 'setq'.
1678 This means that you can't use 'make-local-variable' and expect them to
1679 "magically" become buffer-local.
1680
1681 +++
1682 ** 'track-mouse' no longer freezes the shape of the mouse pointer.
1683 The 'track-mouse' form no longer refrains from changing the shape of
1684 the mouse pointer for the entire time the body of that form is
1685 executed. Lisp programs that use 'track-mouse' for dragging across
1686 large portions of the Emacs display, and want to avoid changes in the
1687 pointer shape during dragging, should bind the variable 'track-mouse'
1688 to the special value 'dragging' in the body of the form.
1689
1690 ---
1691 ** The optional 'predicate' argument of 'lisp-complete-symbol' no longer
1692 has any effect. (This change was made in Emacs 24.4 but was not
1693 advertised at the time.)
1694
1695 +++
1696 ** 'indirect-function' does not signal 'void-function' any more.
1697 This is mostly a bug-fix, since this change was missed back in 24.4 when
1698 symbol-function was changed not to signal 'void-function' any more.
1699
1700 +++
1701 *** As a consequence, the second arg of 'indirect-function' is now obsolete.
1702
1703 +++
1704 ** Although comint, term, and compile still set the EMACS variable,
1705 this is now considered deprecated and will be removed in a future release.
1706 Use the INSIDE_EMACS environment variable instead.
1707
1708 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
1709 mode to send the same escape sequences that xterm does. This makes
1710 things like forward-word in readline work.
1711
1712 ---
1713 ** hideshow mode got four key bindings that are analogous to outline
1714 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
1715
1716 +++
1717 ** 'save-excursion' does not save&restore the mark any more.
1718 Use 'save-mark-and-excursion' if you want the old behavior.
1719
1720 +++
1721 ** 'read-buffer' and 'read-buffer-function' can now be called with a 4th
1722 argument ('predicate').
1723
1724 +++
1725 ** 'completion-table-dynamic' by default stays in the minibuffer.
1726 The minibuffer will be the current buffer when the function is called.
1727 If you want the old behavior of calling the function in the buffer
1728 from which the minibuffer was entered, use the new argument
1729 'switch-buffer' to 'completion-table-dynamic'.
1730
1731 ---
1732 ** window-configurations no longer record the buffers' marks.
1733
1734 ---
1735 ** inhibit-modification-hooks now also inhibits lock-file checks, as well as
1736 active region handling.
1737
1738 +++
1739 ** deactivate-mark is now buffer-local.
1740
1741 +++
1742 ** 'cl-the' now asserts that its argument is of the given type.
1743
1744 +++
1745 ** 'process-running-child-p' may now return a numeric process
1746 group ID instead of 't'.
1747
1748 +++
1749 ** Mouse click events on mode line or header line no longer include
1750 any reference to a buffer position. The 6th member of the mouse
1751 position list returned for such events is now nil.
1752
1753 ---
1754 ** Menu items in keymaps do not support the "key shortcut cache" any more.
1755 These slots used to hold key-shortcut data, but have been obsolete since
1756 Emacs-21.
1757
1758 ---
1759 ** Emacs no longer downcases the first letter of a system diagnostic
1760 when signaling a file error. For example, it now reports "Permission
1761 denied" instead of "permission denied". The old behavior was problematic
1762 in languages like German where downcasing rules depend on grammar.
1763
1764 +++
1765 ** New variable 'text-quoting-style' to control how Emacs translates quotes.
1766 Set it to 'curve' for curved single quotes, to 'straight' for straight
1767 apostrophes, and to 'grave' for grave accent and apostrophe. The
1768 default value nil acts like 'curve' if curved single quotes are
1769 displayable, and like 'grave' otherwise. The new variable affects
1770 display of diagnostics and help, but not of info.
1771
1772 +++
1773 ** substitute-command-keys now replaces quotes.
1774 That is, it converts documentation strings' quoting style as per the
1775 value of 'text-quoting-style'. Doc strings in source code can use
1776 either curved single quotes or grave accents and apostrophes. As
1777 before, characters preceded by \= are output as-is.
1778
1779 +++
1780 ** Message-issuing functions 'error', 'message', etc. now convert quotes.
1781 They use the new 'format-message' function instead of plain 'format',
1782 so that they now follow user preference as per 'text-quoting-style'
1783 when processing curved single quotes, grave accents, and apostrophes
1784 in their format argument.
1785
1786 +++
1787 ** The character classes [:alpha:] and [:alnum:] in regular expressions
1788 now match multibyte characters using Unicode character properties.
1789 If you want the old behavior where they matched any character with
1790 word syntax, use '\sw' instead.
1791
1792 +++
1793 ** The character classes [:graph:] and [:print:] in regular expressions
1794 no longer match every multibyte character. Instead, Emacs now
1795 consults the Unicode character properties to determine which
1796 characters are graphic or printable. In particular, surrogates and
1797 unassigned codepoints are now rejected. If you want the old behavior,
1798 use [:multibyte:] instead.
1799
1800 +++
1801 ** The 'diff' command uses the unified format now. To restore the old
1802 behavior, set 'diff-switches' to '-c'.
1803
1804 ---
1805 ** 'grep-template' and 'grep-find-template' values don't include the
1806 --color argument anymore. It's added at the <C> place holder position
1807 dynamically. Any third-party code that changes these templates should
1808 be updated accordingly.
1809
1810 ** The grep/rgrep/lgrep functions will now ask about saving files
1811 before running. This is controlled by the 'grep-save-buffers'
1812 variable.
1813
1814 +++
1815 ** '(/ N)' is now equivalent to '(/ 1 N)' rather than to '(/ N 1)'.
1816 The new behavior is compatible with Common Lisp and with XEmacs.
1817 This change does not affect Lisp code intended to be portable to
1818 Emacs 24.2 and earlier, which did not support unary '/'.
1819
1820 +++
1821 ** The 'default-directory' value doesn't have to end slash. To make
1822 that happen, 'unhandled-file-name-directory' now defaults to calling
1823 'file-name-as-directory'.
1824
1825 \f
1826 * Lisp Changes in Emacs 25.1
1827
1828 ** pcase
1829 +++
1830 *** New UPatterns 'quote', 'app'.
1831 +++
1832 *** New UPatterns can be defined with 'pcase-defmacro'.
1833 +++
1834 *** New vector QPattern.
1835
1836 ---
1837 ** syntax-propertize is now automatically called on-demand during forward
1838 parsing functions like 'forward-sexp'.
1839
1840 +++
1841 ** New hooks 'prefix-command-echo-keystrokes-functions' and
1842 'prefix-command-preserve-state-hook' allow the definition of prefix
1843 commands other than the predefined 'C-u'.
1844
1845 +++
1846 ** New functions 'filepos-to-bufferpos' and 'bufferpos-to-filepos'.
1847 These allow conversion between buffer positions and the corresponding
1848 file byte offsets, given the file's encoding.
1849
1850 +++
1851 ** The default value of 'load-read-function' is now 'read'.
1852 Previously, the default value of 'nil' implied using 'read'.
1853
1854 +++
1855 ** New hook 'pre-redisplay-functions'.
1856 It is a bit easier to use than 'pre-redisplay-function'.
1857
1858 +++
1859 ** The second arg of 'looking-back' should always be provided explicitly.
1860 Previously, it was an optional argument, now it's mandatory.
1861
1862 +++
1863 ** Text properties 'intangible', 'point-entered', and 'point-left' are obsolete.
1864 Replaced by properties 'cursor-intangible' and 'cursor-sensor-functions',
1865 implemented by the new 'cursor-intangible-mode' and
1866 'cursor-sensor-mode' minor modes.
1867
1868 +++
1869 ** 'inhibit-point-motion-hooks' now defaults to 't' and is obsolete.
1870 Use the new minor modes 'cursor-intangible-mode' and
1871 'cursor-sensor-mode' instead.
1872
1873 +++
1874 ** New process type 'pipe', which can be used in combination with the
1875 ':stderr' keyword of make-process to handle standard error output
1876 of subprocess.
1877
1878 +++
1879 ** New function 'make-process' provides an alternative interface to
1880 'start-process'. It allows programs to set process parameters such as
1881 process filter, sentinel, etc., through keyword arguments (similar to
1882 'make-network-process').
1883
1884 +++
1885 ** A new function 'directory-files-recursively' returns all matching
1886 files (recursively) under a directory.
1887
1888 +++
1889 ** New variable 'inhibit-message', when bound to non-nil, inhibits
1890 'message' and related functions from displaying messages in the echo
1891 area. The output is still logged to the *Messages* buffer.
1892
1893 +++
1894 ** A new text property 'inhibit-read-only' can be used in read-only
1895 buffers to allow certain parts of the text to be writable.
1896
1897 +++
1898 ** A new variable 'comment-end-can-be-escaped' is useful in languages
1899 such as C and C++ where line comments with escaped newlines are
1900 continued to the next line.
1901
1902 +++
1903 ** New macro 'define-advice'.
1904
1905 +++
1906 ** Emacs Lisp now supports generators.
1907 See the "Generators" section of the ELisp manual for the details.
1908
1909 +++
1910 ** New finalizer facility for running code when objects become unreachable.
1911 See the "Finalizer Type" subsection in the ELisp manual for the
1912 details.
1913
1914 ---
1915 ** lexical closures can use (:documentation FORM) to build their docstring.
1916 It should be placed right where the docstring would be, and FORM is then
1917 evaluated (and should return a string) when the closure is built.
1918
1919 ---
1920 ** The new command 'fortune-message' has been added, which displays
1921 fortunes in the echo area.
1922
1923 +++
1924 ** define-inline provides a new way to define inlinable functions.
1925
1926 +++
1927 ** New function 'macroexpand-1' to perform a single step of macro expansion.
1928
1929 +++
1930 ** Some "x-*" functions were obsoleted and/or renamed:
1931 *** x-select-text is renamed gui-select-text.
1932 *** x-selection-value is renamed gui-selection-value.
1933 *** x-get-selection is renamed gui-get-selection.
1934 *** x-get-clipboard and x-clipboard-yank are marked obsolete.
1935 *** x-get-selection-value is renamed to gui-get-primary-selection.
1936 *** x-set-selection is renamed to gui-set-selection
1937
1938 +++
1939 ** New function 'string-greaterp', which return the opposite result of
1940 'string-lessp'.
1941
1942 +++
1943 ** The new functions 'string-collate-lessp' and 'string-collate-equalp'
1944 preserve the collation order as defined by the system's locale(1)
1945 environment. For the time being this is implemented for modern POSIX
1946 systems and for MS-Windows, for other systems they fall back to their
1947 counterparts 'string-lessp' and 'string-equal'.
1948
1949 +++
1950 ** The new function 'string-version-lessp' compares strings by
1951 interpreting consecutive runs of numerical characters as numbers, and
1952 compares their numerical values. According to this predicate,
1953 "foo2.png" is smaller than "foo12.png".
1954
1955 ---
1956 *** The ls-lisp package uses 'string-collate-lessp' to sort file names.
1957 The effect is that, on systems that use ls-lisp for Dired, the default
1958 sort order of the files in Dired is now different from what it was in
1959 previous versions of Emacs. In particular, the file names are sorted
1960 disregarding punctuation, accents, and diacritics, and letter case is
1961 ignored. For example, files whose name begin with a period will no
1962 longer appear near the beginning of the directory listing. If you
1963 want the old, locale-independent sorting, customize the new option
1964 'ls-lisp-use-string-collate' to the nil value.
1965
1966 +++
1967 *** The MS-Windows specific variable 'w32-collate-ignore-punctuation',
1968 if set to a non-nil value, causes the above 2 functions to ignore
1969 symbol and punctuation characters when collating strings. This
1970 emulates the behavior of modern Posix platforms when the locale's
1971 codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because
1972 MS-Windows doesn't support UTF-8 as codeset in its locales.
1973
1974 +++
1975 ** New function 'alist-get', which is also a valid place (aka lvalue).
1976
1977 +++
1978 ** New function 'funcall-interactively', which works like 'funcall'
1979 but makes 'called-interactively-p' treat the function as (you guessed it)
1980 called interactively.
1981
1982 +++
1983 ** New function 'function-put' to use instead of 'put' for function properties.
1984
1985 +++
1986 ** The new function 'bidi-find-overridden-directionality' allows you to
1987 find characters whose directionality was, perhaps maliciously,
1988 overridden by directional override control characters. Lisp programs
1989 can use this to detect potential phishing of URLs and other links that
1990 exploits bidirectional display reordering.
1991
1992 +++
1993 ** The new function 'buffer-substring-with-bidi-context' allows you to
1994 copy a portion of a buffer into a different location while preserving
1995 the visual appearance both of the copied text and the text at
1996 destination, even when the copied text includes mixed bidirectional
1997 text and directional control characters.
1998
1999 +++
2000 ** New properties that can be specified with 'declare':
2001 *** (interactive-only INSTEAD), says to use INSTEAD for non-interactive use.
2002 *** (pure VAL), if VAL is non-nil, indicates the function is pure.
2003 *** (side-effect-free VAL), if VAL is non-nil, indicates the function does not
2004 have side effects.
2005
2006 +++
2007 ** New macro 'with-file-modes', for evaluating expressions with default file
2008 permissions set to temporary values (e.g., for creating private files).
2009
2010 +++
2011 ** You can access the slots of structures using 'cl-struct-slot-value'.
2012
2013 +++
2014 ** Function 'sort' can deal with vectors.
2015
2016 ---
2017 ** Function 'system-name' now returns an updated value if the current
2018 system's name has changed or if the Emacs process has changed systems,
2019 and to avoid long waits it no longer consults DNS to canonicalize the
2020 name. The variable 'system-name' is now obsolete.
2021
2022 +++
2023 ** Function 'write-region' no longer outputs "Wrote FILE" in batch mode.
2024
2025 ---
2026 ** If 'pwd' is called with a prefix argument, insert the current default
2027 directory at point.
2028
2029 +++
2030 ** New functions return extended information about fonts and faces.
2031
2032 +++
2033 *** The function 'font-info' now returns more details about a font.
2034 In particular, it now returns the average width of the font's
2035 characters, which can be used for geometry-related calculations.
2036
2037 +++
2038 *** A new function 'default-font-width' returns the average width of a
2039 character in the current buffer's default font. If the default face
2040 is remapped (see 'face-remapping-alist'), the value for the remapped
2041 face is returned. This function complements the existing function
2042 'default-font-height'.
2043
2044 +++
2045 *** New functions 'window-font-height' and 'window-font-width' return
2046 the height and average width of characters in a specified face and
2047 window. If FACE is remapped (see 'face-remapping-alist'), the
2048 function returns the information for the remapped face.
2049
2050 +++
2051 *** A new function 'window-max-chars-per-line' returns the maximal
2052 number of characters that can be displayed on one line. If a face
2053 and/or window are provided, these values are used for the
2054 calculation. This function is different from 'window-body-width' in
2055 that it accounts for (i) continuation glyphs, (ii) the size of the
2056 font, and (iii) the specified window.
2057
2058 ---
2059 ** New utilities in subr-x.el:
2060 *** New macros 'if-let' and 'when-let' allow defining bindings and to
2061 execute code depending whether all values are true.
2062 *** New macros 'thread-first' and 'thread-last' allow threading a form
2063 as the first or last argument of subsequent forms.
2064
2065 +++
2066 ** Documentation strings now support quoting with curved single quotes
2067 in addition to the old style with grave accent and apostrophe. The
2068 new style looks better on today's displays. In the new Electric Quote
2069 mode, you can enter curved single quotes into documentation by typing
2070 grave accent and apostrophe. Outside Electric Quote mode, you can
2071 enter them by typing 'C-x 8 [' and 'C-x 8 ]', or (if your Alt key
2072 works) by typing 'A-[' and 'A-]'. As described above under
2073 'text-quoting-style', the user can specify how to display doc string
2074 quotes.
2075
2076 +++
2077 ** New function 'format-message' is like 'format' and also converts
2078 curved single quotes, grave accents and apostrophes as per
2079 'text-quoting-style'.
2080
2081 +++
2082 ** show-help-function's arg is converted via substitute-command-keys
2083 before being passed to the function. Help strings, help-echo
2084 properties, etc. can therefore contain command key escapes and
2085 quotation marks.
2086
2087 +++
2088 ** Time-related changes:
2089
2090 *** Time conversion functions now accept an optional ZONE argument
2091 that specifies the time zone rules for conversion. ZONE is omitted or
2092 nil for Emacs local time, t for Universal Time, 'wall' for system wall
2093 clock time, or a string as in 'set-time-zone-rule' for a time zone
2094 rule. The affected functions are 'current-time-string',
2095 'current-time-zone', 'decode-time', and 'format-time-string'. The
2096 function 'encode-time', which already accepted a simple time zone rule
2097 argument, has been extended to accept all the new forms.
2098
2099 *** Time-related functions now consistently accept numbers
2100 (representing seconds since the epoch) and nil (representing the
2101 current time) as well as the usual list-of-integer representation.
2102 Affected functions include 'current-time-string', 'current-time-zone',
2103 'decode-time', 'float-time', 'format-time-string', 'seconds-to-time',
2104 'time-add', 'time-less-p', 'time-subtract', 'time-to-day-in-year',
2105 'time-to-days', and 'time-to-seconds'.
2106
2107 *** The 'encode-time-value' and 'with-decoded-time-value' macros have
2108 been obsoleted.
2109
2110 *** 'calendar-next-time-zone-transition', 'time-add', and
2111 'time-subtract' no longer return time values in the obsolete and
2112 undocumented integer-pair format. Instead, they return a list of two
2113 integers.
2114
2115 +++
2116 ** New function 'set-binary-mode' allows switching a standard stream
2117 of the Emacs process to binary I/O mode.
2118
2119 +++
2120 ** The new function 'directory-name-p' can be used to check whether a file
2121 name (as returned from, for instance, 'file-name-all-completions') is
2122 a directory file name. It returns non-nil if the last character in
2123 the name is a directory separator character (forward slash on GNU and
2124 Unix systems, forward- or backslash on MS-Windows and MS-DOS).
2125
2126 ---
2127 ** ASCII approximations to curved quotes are put in standard-display-table
2128 if the terminal cannot display curved quotes.
2129
2130 +++
2131 ** Standard output and error streams now transliterate characters via
2132 standard-display-table, and encode output using locale-coding-system.
2133 To force a specific encoding, bind 'coding-system-for-write' to the
2134 coding-system of your choice when invoking functions like 'prin1' and
2135 'message'.
2136
2137 +++
2138 ** New var 'truncate-string-ellipsis' to choose how to indicate truncation.
2139
2140 +++
2141 ** New possible value for 'system-type': 'nacl'.
2142 This is used by Google's Native Client (NaCl).
2143
2144 ---
2145 ** 'read-color' will now display the color names using the color itself
2146 as the background color.
2147
2148 ---
2149 ** There is now a new variable 'flyspell-sort-corrections-function'
2150 that allows changing the way corrections are sorted.
2151
2152 ** Miscellaneous name change
2153
2154 ---
2155 For consistency with the usual Emacs spelling, the Lisp variable
2156 'hfy-optimisations' has been renamed to 'hfy-optimizations'.
2157 The old name should still work, as an obsolescent alias.
2158
2159 ** Changes in Frame- and Window- Handling
2160
2161 +++
2162 *** Emacs can now draw horizontal scroll bars on some platforms that
2163 provide toolkit scroll bars, namely Gtk+, Lucid, Motif and Windows.
2164 Horizontal scroll bars are turned off by default.
2165
2166 **** New function 'horizontal-scroll-bars-available-p' telling whether
2167 horizontal scroll bars are available on the underlying system.
2168
2169 **** New mode 'horizontal-scroll-bar-mode' to toggle horizontal scroll
2170 bars on all existing and future frames.
2171
2172 **** New function 'toggle-horizontal-scroll-bar' to toggle horizontal
2173 scroll bars on the selected frame.
2174
2175 **** New frame parameters 'horizontal-scroll-bars' and
2176 'scroll-bar-height' to set horizontal scroll bars and their height
2177 for individual frames and in 'default-frame-alist'.
2178
2179 **** New functions 'frame-scroll-bar-height' and
2180 'window-scroll-bar-height' return the height of horizontal scroll
2181 bars on a specific frame or window.
2182
2183 **** 'set-window-scroll-bars' now accepts five parameters where the last
2184 two specify height and type of the window's horizontal scroll bar.
2185
2186 **** 'window-scroll-bars' now returns type and sizes of horizontal scroll
2187 bars too.
2188
2189 **** New buffer-local variables 'horizontal-scroll-bar' and
2190 'scroll-bar-height'.
2191
2192 +++
2193 *** New functions 'frame-geometry' and 'frame-edges' give access to a
2194 frame's geometry.
2195
2196 +++
2197 *** New functions 'mouse-absolute-pixel-position' and
2198 'set-mouse-absolute-pixel-position' get/set screen coordinates of the
2199 mouse cursor.
2200
2201 +++
2202 *** The function 'window-edges' now accepts three additional arguments to
2203 retrieve body, absolute and pixel edges of the window.
2204
2205 +++
2206 *** The functions 'window-inside-edges', 'window-inside-pixel-edges' and
2207 'window-inside-absolute-pixel-edges' have been renamed to respectively
2208 'window-body-edges', 'window-body-pixel-edges' and
2209 'window-absolute-body-pixel-edges'. The old names are kept as aliases.
2210
2211 +++
2212 *** New function 'window-absolute-pixel-position' to get the screen
2213 coordinates of a visible buffer position.
2214
2215 +++
2216 *** The height of a frame's menu and tool bar are no longer counted in the
2217 frame's text height. This means that the text height stands only for
2218 the height of the frame's root window plus that of the echo area (if
2219 present). This was already the behavior for frames with external tool
2220 and menu bars (like in the Gtk builds) but has now been extended to all
2221 builds.
2222
2223 +++
2224 *** Frames now do not necessarily preserve the number of columns or lines
2225 they display when setting default font, menu bar, fringe width, or
2226 scroll bars. In particular, maximized and fullscreen frames are
2227 conceptually never resized if such settings change. For fullheight and
2228 fullwidth frames, the behavior may depend on the toolkit used.
2229 **** New option 'frame-inhibit-implied-resize' if non-nil, means that
2230 setting default font, menu bar, fringe width, or scroll bars of a
2231 specific frame does not resize that frame in order to preserve the
2232 number of columns or lines it displays.
2233
2234 +++
2235 *** New function 'window-preserve-size' allows you to preserve the size of
2236 a window without "fixing" it. It's supported by 'fit-window-to-buffer',
2237 'temp-buffer-resize-mode' and 'display-buffer'.
2238
2239 +++
2240 *** New 'display-buffer' action function 'display-buffer-use-some-frame'.
2241 This displays the buffer in an existing frame other than the current
2242 frame, and allows the caller to specify a frame predicate to exclude
2243 frames.
2244
2245 +++
2246 *** New minor mode 'window-divider-mode' and options
2247 'window-divider-default-places', 'window-divider-default-bottom-width'
2248 and 'window-divider-default-right-width'.
2249
2250 +++
2251 *** The window displaying the '*Completions*' buffer with minibuffer
2252 completion candidates is now shown at the bottom of the selected
2253 frame. The size of that window is always as large as required to
2254 display all the candidates, except when limited by the minimum size
2255 of the other windows on that frame; those other windows are resized
2256 to provide space for the '*Completions*' display. The Emacs manual
2257 describes how to customize 'display-buffer-alist' to get back the old
2258 behavior, see the node "Temporary Displays" there.
2259
2260 ---
2261 ** Tearoff menus and detachable toolbars for Gtk+ have been removed.
2262 Those features have been deprecated in Gtk+ for a long time.
2263
2264 ** Etags
2265
2266 +++
2267 *** etags no longer qualifies class members by default.
2268
2269 By default, 'etags' will not qualify class members for Perl and C-like
2270 object-oriented languages with their class names and namespaces, and
2271 will remove qualifications used explicitly in the code from the tag
2272 names it puts in TAGS files. This is so the etags.el back-end for
2273 'xref-find-definitions' is more accurate and produces less false
2274 positives.
2275
2276 Use --class-qualify (-Q) if you want the old default behavior of
2277 qualifying class members in C++, Java, Objective C, and Perl. Note
2278 that using -Q might make some class members become "unknown" to 'M-.'
2279 ('xref-find-definitions'); if so, you can use 'C-u M-.' to specify the
2280 qualified names by hand.
2281
2282 +++
2283 *** New language Ruby
2284
2285 Names of modules, classes, methods, functions, and constants are
2286 tagged. Overloaded operators are also tagged.
2287
2288 +++
2289 *** New language Go
2290 Names of packages, functions, and types are tagged.
2291
2292 +++
2293 *** Improved support for Lua
2294
2295 Etags now tags functions even if the "function" keyword follows some
2296 whitespace at line beginning.
2297
2298 \f
2299 * Changes in Emacs 25.1 on Non-Free Operating Systems
2300
2301 ---
2302 ** MS-Windows specific Emacs build scripts are no longer in the distribution
2303 This includes the makefile.w32-in files in various subdirectories, and
2304 the support files. The file nt/configure.bat now just tells the user
2305 to use the procedure described in nt/INSTALL, by running the Posix
2306 'configure' script in the top-level directory.
2307
2308 ---
2309 ** Building Emacs for MS-Windows requires at least Windows XP
2310 or Windows Server 2003. The built binaries still run on all versions
2311 of Windows starting with Windows 9X.
2312
2313 +++
2314 ** Emacs running on MS-Windows now supports the daemon mode.
2315
2316 ---
2317 ** The byte counts in etags-generated TAGS files are now the same on
2318 MS-Windows as they are on other platforms.
2319
2320 ---
2321 ** On OS X, configure creates a Cocoa ("Nextstep") build by default.
2322 Pass '--without-ns' to configure to create an X11 build, the old default.
2323
2324 ---
2325 ** OS X 10.5 or older is no longer supported.
2326
2327 ---
2328 ** OS X on PowerPC is no longer supported.
2329
2330 ---
2331 ** New variable 'ns-use-fullscreen-animation' controls animation for
2332 non-native NS fullscreen. The default is nil. Set to t to enable
2333 animation when entering and leaving fullscreen. For native OSX fullscreen
2334 this has no effect.
2335
2336 ---
2337 ** The new function 'w32-application-type' returns the type of an
2338 MS-Windows application given the name of its executable program file.
2339
2340 ** New variable 'w32-pipe-buffer-size'.
2341 It can be used to tune the size of the buffer of pipes created for
2342 communicating with subprocesses, when the program run by a subprocess
2343 exhibits unusual buffering behavior. Default is zero, which lets the
2344 OS use its default size.
2345
2346 \f
2347 ----------------------------------------------------------------------
2348 This file is part of GNU Emacs.
2349
2350 GNU Emacs is free software: you can redistribute it and/or modify
2351 it under the terms of the GNU General Public License as published by
2352 the Free Software Foundation, either version 3 of the License, or
2353 (at your option) any later version.
2354
2355 GNU Emacs is distributed in the hope that it will be useful,
2356 but WITHOUT ANY WARRANTY; without even the implied warranty of
2357 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2358 GNU General Public License for more details.
2359
2360 You should have received a copy of the GNU General Public License
2361 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
2362
2363 \f
2364 Local variables:
2365 coding: us-ascii
2366 mode: outline
2367 paragraph-separate: "[ \f]*$"
2368 end: