]> 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 ** 'configure' detects the kqueue file notification library on *BSD
29 and Mac OS X machines.
30
31 \f
32 * Startup Changes in Emacs 25.2
33
34 \f
35 * Changes in Emacs 25.2
36
37 ** It is possible to disable attempted recovery on fatal signals
38
39 Two new variables allow to disable attempts to recover from stack
40 overflow and to avoid automatic auto-save when Emacs is delivered a
41 fatal signal. `attempt-stack-overflow-recovery', if set to `nil',
42 will disable attempts to recover from C stack overflows; Emacs will
43 then crash as with any other fatal signal.
44 `attempt-orderly-shutdown-on-fatal-signal', if set to `nil', will
45 disable attempts to auto-save the session and shut down in an orderly
46 fashion when Emacs receives a fatal signal; instead, Emacs will
47 terminate immediately. Both variables are non-`nil' by default.
48 These variables are for users who would like to avoid the small
49 probability of data corruption due to techniques Emacs uses to recover
50 in these situations.
51
52 \f
53 * Editing Changes in Emacs 25.2
54
55 \f
56 * Changes in Specialized Modes and Packages in Emacs 25.2
57
58 ** File Notifications
59
60 *** The kqueue library is integrated for *BSD and Mac OS X machines.
61
62 \f
63 * New Modes and Packages in Emacs 25.2
64
65 \f
66 * Incompatible Lisp Changes in Emacs 25.2
67
68 \f
69 * Lisp Changes in Emacs 25.2
70
71 ** Autoload files can be generated without timestamps,
72 by setting `autoload-timestamps' to nil.
73
74 \f
75 * Changes in Emacs 25.2 on Non-Free Operating Systems
76
77 \f
78 * Installation Changes in Emacs 25.1
79
80 +++
81 ** Building Emacs now requires C99 or later.
82
83 +++
84 ** Building Emacs now requires GNU make, version 3.81 or later.
85
86 +++
87 ** New configure option --with-cairo.
88 This builds Emacs with Cairo drawing. As a side effect, it provides
89 support for built-in printing, when Emacs was built with GTK+.
90
91 ** New configure option --with-modules.
92 This enables support for loading dynamic modules; see below.
93
94 ---
95 ** By default, Emacs no longer works on IRIX. We expect that Emacs
96 users are not affected by this, as SGI stopped supporting IRIX in
97 December 2013. If you are affected, please send a bug report. You
98 should be able to work around the problem either by porting the Emacs
99 undumping code to GCC under IRIX, or by configuring --with-wide-int,
100 or by sticking with Emacs 24.4.
101
102 ---
103 ** The Emacs garbage collector assumes GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
104 The GC_MAKE_GCPROS_NOOPS stack-marking variant has been the default
105 since Emacs 24.4, and the other variants were undocumented and were
106 obstacles to maintenance and development. GC_MARK_STACK and its
107 related symbols have been removed from the C internals.
108
109 ---
110 ** 'configure' now prefers gnustep-config when configuring GNUstep.
111 If gnustep-config is not available, the old heuristics are used.
112
113 ---
114 ** 'configure' now prefers inotify to gfile for file notification,
115 unless gfile is explicitly requested via --with-file-notification='gfile'.
116
117 ---
118 ** The configure option '--with-pkg-config-prog' has been removed.
119 Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to.
120
121 ---
122 ** The configure option '--with-mmdf' has been removed.
123 It was no longer useful, as it relied on libraries that are no longer
124 supported, and its presence led to confusion during configuration.
125 This affects only the 'movemail' utility; Emacs itself can still
126 process MMDF-format files as before.
127
128 +++
129 ** The configure option '--enable-silent-rules' is now the default,
130 and silent rules are now quieter. To get the old behavior where
131 'make' chatters a lot, configure with '--disable-silent-rules' or
132 build with 'make V=1'.
133
134 ---
135 ** The configure option '--with-gameuser' now allows to specify a
136 group instead of a user if its argument is prefixed by ':' (a colon).
137 This will cause the game score files in ${localstatedir}/games/emacs
138 to be owned by that group, and the helper program for updating them to
139 be installed setgid. The option now defaults to the 'games' group.
140
141 ---
142 ** The `grep-changelog' script (and its manual page) are no longer included.
143 It has no particular connection to Emacs and has not changed in years,
144 so if you want to use it, you can always take a copy from an older Emacs.
145
146 ---
147 ** Emacs 25 comes with a new set of icons.
148 Various resolutions are available as etc/images/icons/hicolor/*/apps/emacs.png.
149 The old Emacs logo icons are available as `emacs23.png' in the same location.
150
151 ** New make target `check-expensive' to run additional tests.
152 This includes all tests which run via "make check", plus additional
153 tests which take more time to perform.
154
155 \f
156 * Startup Changes in Emacs 25.1
157
158 +++
159 ** When Emacs is given a file as a command line argument and
160 `initial-buffer-choice' is non-nil, display both the file and
161 `initial-buffer-choice'. When Emacs is given more than one file and
162 `initial-buffer-choice' is non-nil, show `initial-buffer-choice'
163 and *Buffer List*. This makes Emacs convenient to use from the
164 command line when `initial-buffer-choice' is non-nil.
165
166 +++
167 ** The value of ‘initial-scratch-message’ is now treated as a doc string
168 and can contain escape sequences for command keys, quotes, and the like.
169
170 \f
171 * Changes in Emacs 25.1
172
173 ** Emacs can now load shared/dynamic libraries (modules).
174 A dynamic Emacs module is a shared library that provides additional
175 functionality for use in Emacs Lisp programs, just like a package
176 written in Emacs Lisp would. The functions `load', `require',
177 `load-file', etc. were extended to load such modules, as they do with
178 Emacs Lisp packages. The new variable `module-file-suffix' holds the
179 system-dependent value of the file-name extension (`.so' on Posix
180 hosts) of the module files.
181
182 A module should export a C-callable function named
183 `emacs_module_init', which Emacs will call as part of the call to
184 `load' or `require' which loads the module. It should also export a
185 symbol named `plugin_is_GPL_compatible' to indicate that its code is
186 released under the GPL or compatible license; Emacs will refuse to
187 load modules that don't export such a symbol.
188
189 If a module needs to call Emacs functions, it should do so through the
190 API defined and documented in the header file `emacs-module.h'. Note
191 that any module that provides Lisp-callable functions will have to use
192 Emacs functions such as `fset' and `funcall', in order to register its
193 functions with the Emacs Lisp interpreter.
194
195 Modules can create `user-ptr' Lisp objects that embed pointers to C
196 struct's defined by the module. This is useful for keeping around
197 complex data structures created by a module, to be passed back to the
198 module's functions. User-ptr objects can also have associated
199 "finalizers" -- functions to be run when the object is GC'ed; this is
200 useful for freeing any resources allocated for the underlying data
201 structure, such as memory, open file descriptors, etc. A new
202 predicate `user-ptrp' returns non-nil if its argument is a `user-ptr'
203 object.
204
205 Loadable modules in Emacs are an experimental feature, and subject to
206 change in future releases. For that reason, their support is disabled
207 by default, and must be enabled by using the `--with-modules' option
208 at configure time.
209
210 +++
211 ** Any file of the form .dir-locals*.el is now considered a dir-local
212 file, and multiple such files can be used in the same directory. See
213 the variable `dir-locals-file' for more information.
214
215 +++
216 ** Network security (TLS/SSL certificate validity and the like) is
217 added via the new Network Security Manager (NSM) and controlled via
218 the `network-security-level' variable.
219
220 ---
221 ** International domain names (IDNA) are now encoded via the new
222 puny.el library, so that one can visit web sites like
223 "http://méxico.icom.museum".
224
225 ** If Emacs isn't built with TLS support, an external TLS-capable
226 program is used instead. This program used to be run in --insecure
227 mode by default, but has now changed to be secure instead, and will
228 fail if you try to connect to non-verifiable hosts. This is
229 controlled by the `tls-program' variable.
230
231 +++
232 ** C-h l now also lists the commands that were run.
233
234 ** The new M-s M-w key binding uses eww to search the web for the
235 text in the region.
236
237 ** M-x suggests shorthands and ignores obsolete commands for completion.
238 ** x-select-enable-clipboard is renamed select-enable-clipboard.
239 x-select-enable-primary and renamed select-enable-primary.
240 Additionally they both now apply to all systems (OSX, GNUstep, Windows, you
241 name it), with the proviso that on some systems (e.g. Windows)
242 select-enable-primary is ineffective since the system doesn't
243 have the equivalent of a primary selection.
244
245 +++
246 ** New option `switch-to-buffer-in-dedicated-window' allows to customize
247 how `switch-to-buffer' proceeds interactively when the selected window
248 is strongly dedicated to its buffer.
249
250 +++
251 ** The option `even-window-heights' has been renamed to
252 `even-window-sizes' and now handles window widths as well.
253
254 +++
255 ** terpri gets an optional arg ENSURE to conditionally output a newline.
256
257 +++
258 ** `insert-register' now leaves point after the inserted text
259 when called interactively. A prefix argument toggles this behavior.
260
261 +++
262 ** The new variable `term-file-aliases' replaces some files from lisp/term.
263 The function `tty-run-terminal-initialization' consults this variable
264 when deciding what terminal-specific initialization code to run.
265
266 ---
267 ** New variable `system-configuration-features', listing some of the
268 main features that Emacs was compiled with. This is mainly intended
269 for use in Emacs bug reports.
270
271 +++
272 ** A password is now hidden also when typed in batch mode. Another
273 hiding character but the default `.' can be used by let-binding the
274 variable `read-hide-char'.
275
276 ---
277 ** New input methods: `tamil-dvorak' and `programmer-dvorak'.
278
279 \f
280 * Editing Changes in Emacs 25.1
281
282 +++
283 ** M-x suggests shorthands and ignores obsolete commands for completion.
284
285 ** Changes in undo
286
287 +++
288 *** Successive single-char deletions are collapsed in the undo-log just like
289 successive char insertions. Which commands invoke this behavior is
290 controlled by the new `undo-auto-amalgamate' function. See the node
291 "Undo" in the ELisp manual for more details.
292
293 +++
294 *** The heuristic used to insert `undo-boundary' after each command
295 has changed, so that if a command causes changes in more than just the
296 current buffer, Emacs now calls `undo-boundary' in every buffer
297 affected by the command.
298
299 +++
300 ** New command `comment-line' bound to `C-x C-;'.
301
302 ** New and improved facilities for inserting Unicode characters
303
304 ---
305 *** Unicode names entered via C-x 8 RET now use substring completion by default.
306
307 +++
308 *** C-x 8 now has shorthands for these chars: ‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″
309 € № ← → ↔ − ≈ ≠ ≤ ≥. As before, you can type C-x 8 C-h to list shorthands.
310
311 +++
312 *** New minor mode electric-quote-mode for quoting ‘like this’ and “like this”
313 as you type. See also the new variable ‘text-quoting-style’.
314
315 ---
316 ** New minor mode global-eldoc-mode is enabled by default.
317
318 ---
319 ** Emacs now supports "bracketed paste mode" when running on a terminal
320 that supports it. This facility allows Emacs to understand pasted
321 chunks of text as strings to be inserted, instead of interpreting each
322 character in the pasted text as actual user input. This results in a
323 paste experience similar to that under a window system, and significant
324 performance improvements when pasting large amounts of text.
325
326 +++
327 ** Emacs now supports the latest version of the UBA.
328 The Emacs implementation of the Unicode Bidirectional Algorithm (UBA)
329 was updated to support all the latest additions and changes introduced
330 in Unicode Standard versions 6.3, 7.0, and the latest Unicode 8.0.
331 This includes full support for directional isolates and the
332 Bidirectional Parentheses Algorithm (BPA) specified by these Unicode
333 standards.
334
335 +++
336 ** You can access `mouse-buffer-menu' (C-down-mouse-1) using C-f10.
337
338 +++
339 ** New buffer-local `electric-pair-local-mode'.
340
341 +++
342 ** New variable `fast-but-imprecise-scrolling' inhibits
343 fontification during full screen scrolling operations, giving less
344 hesitant operation during auto-repeat of C-v, M-v at the cost of
345 possible inaccuracies in the end position.
346
347 +++
348 ** New documentation command `describe-symbol'.
349 Works for functions, variables, faces, etc. It is bound to `C-h o' by
350 default.
351
352 +++
353 ** New function `custom-prompt-customize-unsaved-options' checks for
354 unsaved customizations and prompts user to customize (if found). It
355 is intended for adding to 'kill-emacs-query-functions'.
356
357 \f
358 * Changes in Specialized Modes and Packages in Emacs 25.1
359
360 ** Checkdoc
361
362 +++
363 *** New command `checkdoc-package-keywords' checks if the
364 current package keywords are recognized. Set the new option
365 `checkdoc-package-keywords-flag' to non-nil to make
366 `checkdoc-current-buffer' call this function automatically.
367
368 +++
369 *** New function `checkdoc-file' checks for style errors.
370 It's meant for use together with `compile':
371 emacs -batch --eval "(checkdoc-file \"subr.el\")"
372
373 +++
374 ** New function `bookmark-set-no-overwrite' bound to C-x r M.
375 It raises an error if a bookmark of that name already exists,
376 unlike `bookmark-set' which silently updates an existing bookmark.
377
378 ** IMAP
379
380 ---
381 *** `imap-ssl-program' has been removed, and imap.el uses the internal
382 GnuTLS encryption functions if possible.
383
384 ** JSON
385
386 ---
387 *** `json-pretty-print' and `json-pretty-print-buffer' now maintain
388 the ordering of object keys by default.
389
390 ---
391 *** New commands `json-pretty-print-ordered' and
392 `json-pretty-print-buffer-ordered' pretty prints JSON objects with
393 object keys sorted alphabetically.
394
395 +++
396 ** Prog mode has some support for multi-mode indentation.
397 This allows better indentation support in modes that support multiple
398 programming languages in the same buffer, like literate programming
399 environments or ANTLR programs with embedded Python code.
400
401 A major mode can provide indentation context for a sub-mode through
402 the `prog-indentation-context' variable. To support this, modes that
403 provide indentation should use `prog-widen' instead of `widen' and
404 `prog-first-column' instead of a literal zero. See the node
405 "Mode-Specific Indent" in the ELisp manual for more details.
406
407 ** Prettify Symbols mode
408
409 +++
410 *** Prettify Symbols mode supports custom composition predicates. By
411 overriding the default `prettify-symbols-compose-predicate', modes can
412 specify in which contexts a symbol may be displayed as some Unicode
413 character. `prettify-symbols-default-compose-p' is the default which
414 is suitable for most programming languages such as C or Lisp (but not
415 (La)TeX).
416
417 +++
418 *** Symbols can be unprettified while point is inside them.
419 New variable `prettify-symbols-unprettify-at-point' configures this.
420
421 ** Enhanced xterm support
422
423 ---
424 *** The new variable `xterm-screen-extra-capabilities' for configuring xterm.
425 This variable tells Emacs which advanced capabilities are available in
426 the xterm terminal emulator used to display Emacs text-mode frames.
427 The default is to check each capability, and use it if available.
428 (This variable was introduced in Emacs 24.1, but was not announced in
429 its NEWS.)
430
431 ---
432 *** Killing text now also sets the CLIPBOARD/PRIMARY selection
433 in the surrounding GUI (using the OSC-52 escape sequence). This only works
434 if your xterm supports it and enables the `allowWindowOps' options (disabled
435 by default at least in Debian, for security reasons).
436
437 Similarly, you can yank the CLIPBOARD/PRIMARY selection (using the OSC-52
438 escape sequence) if your xterm has the feature enabled but for that you
439 additionally need to add `getSelection' to `xterm-extra-capabilities'.
440
441 +++
442 *** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
443
444 ---
445 ** The `save-place' variable is replaced by `save-place-mode'.
446
447 ** ERC
448
449 +++
450 *** ERC can now hide message types by network or channel.
451 `erc-hide-list' will hide all messages of the specified type, while
452 `erc-network-hide-list' and `erc-channel-hide-list' will only hide the
453 specified message types for the respective specified targets.
454
455 *** New variable `erc-default-port-tls' used to connect to TLS IRC
456 servers.
457
458 ** Midnight-mode
459
460 ---
461 *** `midnight-mode' is now a proper minor mode.
462
463 ---
464 *** clean-buffer-*-regexps can now specify buffers via predicate functions.
465
466 ** package.el
467
468 +++
469 *** New "external" package status.
470 An external package is any installed package that's not built-in and
471 not from `package-user-dir', which usually means it's from an entry in
472 `package-directory-list'. They are treated much like built-in
473 packages, in that they cannot be deleted through the package menu and
474 are not considered for upgrades.
475
476 The effect is that a user can manually place a specific version of a
477 package inside `package-directory-list' and the package menu will
478 always respect that.
479
480 +++
481 *** If a package is available on multiple archives and one has higher
482 priority (as per `package-archive-priorities') only that one is
483 listed. This can be configured with `package-menu-hide-low-priority'.
484
485 +++
486 *** `package-menu-toggle-hiding' now toggles the hiding of packages.
487 This includes the above-mentioned low-priority packages, as well as
488 available packages whose version is lower than the currently installed
489 version (which were previously impossible to display).
490 This allows users to downgrade a package if a lower version is
491 available.
492
493 ---
494 *** When filtering the package menu, keywords starting with "arc:" or
495 "status:" represent package archive or status, respectively, instead
496 of actual keywords.
497
498 ---
499 *** Most functions which involve downloading information now take an
500 ASYNC argument. If it is non-nil, package.el performs the download(s)
501 asynchronously.
502
503 ---
504 *** New variable `package-menu-async' controls whether the
505 package-menu uses asynchronous downloads.
506
507 ---
508 *** `package-install-from-buffer' and `package-install-file' work on directories.
509 This follows the same rules as installing from a .tar file, except the
510 -pkg file is optional.
511
512 ---
513 *** Packages which are dependencies of other packages cannot be deleted.
514 The FORCE argument to `package-delete' overrides this.
515
516 ---
517 *** New custom variable `package-selected-packages' tracks packages
518 which were installed by the user (as opposed to installed as
519 dependencies). This variable can also be manually customized.
520
521 ---
522 *** New command `package-install-user-selected-packages' installs all
523 packages from `package-selected-packages' which are currently missing.
524
525 ---
526 *** New command `package-autoremove' removes all packages which were
527 installed strictly as dependencies but are no longer needed.
528
529 +++
530 ** Shell
531
532 When you invoke `shell' interactively, the *shell* buffer will now
533 display in a new window. However, you can customize this behavior via
534 the `display-buffer-alist' variable. For example, to get
535 the old behavior -- *shell* buffer displays in current window -- use
536 (add-to-list 'display-buffer-alist
537 '("^\\*shell\\*$" . (display-buffer-same-window))).
538
539 ** EIEIO
540 +++
541 *** The `:protection' slot option is not obeyed any more.
542 +++
543 *** The `newname' argument to constructors is optional&deprecated.
544 If you need your objects to be named, do it by inheriting from `eieio-named'.
545 +++
546 *** The <class>-list-p and <class>-child-p functions are declared obsolete.
547 +++
548 *** The <class> variables are declared obsolete.
549 +++
550 *** The <initarg> variables are declared obsolete.
551 *** defgeneric and defmethod are declared obsolete.
552 +++
553 *** `constructor' is now an obsolete alias for `make-instance'.
554
555 ** ido
556
557 +++
558 *** New command `ido-bury-buffer-at-head' bound to C-S-b
559 Bury the buffer at the head of `ido-matches', analogous to how C-k
560 kills the buffer at head.
561
562 ---
563 *** A prefix argument to `ido-restrict-to-matches' will reverse its
564 meaning, and the list is restricted to those elements that do not
565 match the current input.
566
567 ** Minibuffer
568
569 +++
570 *** You can use <UP> and <DOWN> arrow keys to move through history by lines.
571 The new commands `next-line-or-history-element' and
572 `previous-line-or-history-element', bound to <UP> and <DOWN> in the
573 minibuffer, allow by-line movement through minibuffer history,
574 similarly to an ordinary buffer. Only when point moves over
575 the bottom/top of the minibuffer it goes to the next/previous history
576 element. `M-p' and `M-n' still move directly to previous/next history
577 item as before.
578
579 ** Search and Replace
580
581 +++
582 *** New user option `search-default-regexp-mode'
583 specifies the default mode for I-search.
584
585 +++
586 *** `isearch' and `query-replace' can now perform character folding in matches.
587 Isearch does that by default, while `query-replace' will do that if
588 the new variable `replace-character-fold' is customized to a non-nil
589 value. This is analogous to case folding, but instead of disregarding
590 case variants, it disregards wider classes of distinctions between
591 similar characters. (Case folding is a special case of character
592 folding.) This means many characters in the search string will match
593 entire groups of characters instead of just themselves.
594
595 For instance, the " will match all variants of double quotes (like “
596 and ”), and the letter a will match all of its accented cousins, even
597 those composed of multiple characters, as well as many other symbols
598 like ℀, ℁, ⒜, and ⓐ.
599
600 +++
601 *** New function `character-fold-to-regexp' can be used
602 by searching commands to produce a regexp matching anything that
603 character-folds into STRING.
604
605 +++
606 *** The new M-s M-w key binding uses eww to search the web for the
607 text in the region. The search engine to use for this is specified by
608 the customizable variable `eww-search-prefix'.
609
610 +++
611 *** Query-replace history is enhanced.
612 When query-replace reads the FROM string from the minibuffer, typing
613 `M-p' will now show previous replacements as "FROM SEP TO", where FROM
614 and TO are the original text and its replacement, and SEP is an arrow
615 string defined by the new variable `query-replace-from-to-separator'.
616 To select a prior replacement, type `M-p' until the desired
617 replacement appears in the minibuffer, and then exit the minibuffer by
618 typing RET.
619
620 ** Calc
621 +++
622 *** If `quick-calc' is called with a prefix argument, insert the
623 result of the calculation into the current buffer.
624
625 +++
626 ** In Edebug, you can now set the initial mode with C-x C-a C-m. With
627 this you can tell Edebug not to stop at the start of the first
628 instrumented function.
629
630 ** ElDoc
631
632 +++
633 *** New minor mode `global-eldoc-mode'
634 It is turned on by default, and affects `*scratch*' and other buffers
635 whose major mode supports Emacs Lisp.
636
637 ---
638 *** `eldoc-documentation-function' now defaults to `ignore'
639
640 ---
641 *** `describe-char-eldoc' displays information about character at point,
642 and can be used as a default value of `eldoc-documentation-function'. It is
643 useful when, for example, one needs to distinguish various spaces (e.g. ] [,
644 ] [, ] [, etc.) while using mono-spaced font.
645
646 ** eww
647
648 ---
649 *** HTML can now be rendered using variable-width fonts.
650
651 +++
652 *** A new command `F' (`eww-toggle-fonts') can be used to toggle
653 whether to use variable-pitch fonts or not. The user can also
654 customize the `shr-use-fonts' variable.
655
656 +++
657 *** A new command `C' (`eww-toggle-colors') can be used to toggle
658 whether to use the HTML-specified colors or not. The user can also
659 customize the `shr-use-colors' variable.
660
661 +++
662 *** A new command `R' (`eww-readable') will try do identify the main
663 textual parts of a web page and display only that, leaving menus and
664 the like off the page.
665
666 ---
667 *** You can now use several eww buffers in parallel by renaming eww
668 buffers you want to keep separate.
669
670 +++
671 *** Partial state of the eww buffers (the URIs and the titles of the
672 pages visited) is now preserved in the desktop file.
673
674 +++
675 *** `eww-after-render-hook' is now called after eww has rendered
676 the data in the buffer.
677
678 ---
679 *** The `eww-reload' command now takes a prefix to not reload via
680 the net, but just use the local copy of the HTML.
681
682 +++
683 *** The DOM shr and eww uses has been changed to the general Emacs
684 xml.el/libxml2 DOM, and a new package dom.el has been added to
685 interact with this DOM. See the Emacs Lisp manual for interface
686 details.
687
688 +++
689 *** `mailcap-mime-data' is now consulted when displaying PDF files.
690
691 +++
692 *** The new `S' command will list all eww buffers, and allow managing
693 them.
694
695 ---
696 *** https pages with valid certificates have headers marked in green, while
697 invalid certificates are marked in red.
698
699 ** Message mode
700
701 ---
702 *** text/html messages that contain inline image parts will be
703 transformed into multipart/related messages before sending.
704
705 +++
706 ** In Show Paren Mode, a parenthesis can be highlighted when point
707 stands inside it, and certain parens can be highlighted when point is
708 at BOL or EOL, or in whitespace there. To enable these, customize,
709 respectively, `show-paren-when-point-inside-paren' or
710 `show-paren-when-point-in-periphery'.
711
712 ** Lisp mode
713
714 ---
715 *** Strings after `:documentation' are highlighted as docstrings.
716 This enhances Lisp mode fontification to handle documentation of the
717 form `(:documentation "the doc string")' used in Common Lisp code for
718 CLOS class and slot documentation.
719
720 ** Rectangle editing
721
722 +++
723 *** Rectangle Mark mode can have corners past EOL or in the middle of a TAB.
724
725 +++
726 *** C-x C-x in rectangle-mark-mode now cycles through the four corners.
727 *** `string-rectangle' provides on-the-fly preview of the result.
728
729 +++
730 ** New font-lock functions `font-lock-ensure' and `font-lock-flush'.
731 These should be used in preference to `font-lock-fontify-buffer' when
732 called from Lisp.
733
734 ---
735 ** Macro `minibuffer-with-setup-hook' can optionally append a function
736 to `minibuffer-setup-hook'.
737
738 If the first argument of the macro is of the form `(:append FUN)',
739 then FUN will be appended to `minibuffer-setup-hook', instead of
740 prepending it.
741
742 ** cl-lib
743 +++
744 *** New functions `cl-fresh-line', `cl-digit-char-p', and `cl-parse-integer'.
745
746 ** Calendar and diary
747
748 +++
749 *** The default `diary-file' is now located in .emacs.d.
750
751 +++
752 *** New commands to insert diary entries with Chinese dates:
753 `diary-chinese-insert-anniversary-entry' `diary-chinese-insert-entry'
754 `diary-chinese-insert-monthly-entry', `diary-chinese-insert-yearly-entry'.
755
756 +++
757 *** The calendar can now list and mark diary entries with Chinese dates.
758 See `diary-chinese-list-entries' and `diary-chinese-mark-entries'.
759
760 ---
761 *** The option `calendar-mode-line-format' can now be nil,
762 which means to do nothing special with the mode line in calendars.
763
764 +++
765 *** New option `calendar-weekend-days'.
766 The option customizes which day headers receive the
767 `calendar-weekend-header' face.
768
769 ---
770 *** New optional args N and STRING for ‘holiday-greek-orthodox-easter’.
771
772 ---
773 *** Many items obsolete since at least version 23.1 have been removed.
774 The majority were function/variable/face aliases, too numerous to list here.
775 The remainder were:
776
777 **** Functions `calendar-one-frame-setup', `calendar-only-one-frame-setup',
778 `calendar-two-frame-setup', `european-calendar', `american-calendar'.
779
780 **** Hooks `cal-menu-load-hook', `cal-x-load-hook'.
781
782 **** Macro `calendar-for-loop'.
783
784 **** Variables `european-calendar-style', `diary-face', `hebrew-holidays-{1,4}'.
785
786 **** The nil and list forms of `diary-display-function'.
787
788 +++
789 ** New ERT function `ert-summarize-tests-batch-and-exit'.
790 If the output of ERT tests in batch mode execution can be saved to a
791 log file, then it can be passed as an argument to the above function
792 to produce a neat summary.
793
794 ** New js.el option `js-indent-first-init'.
795
796 ** Info
797
798 ---
799 ** Info mode now displays symbol names in fixed-pitch font.
800 If you want to get the old behavior back, customize the `Info-quoted'
801 face to use the same definitions as the default face.
802
803 ---
804 *** `Info-fontify-maximum-menu-size' can be t for no limit.
805
806 +++
807 *** `info-display-manual' can now be given a prefix argument which (any
808 non-nil value) directs the command to limit the completion
809 alternatives to currently visited manuals.
810
811 ---
812 ** ntlm.el has support for NTLM2.
813
814 ** Rmail
815
816 +++
817 *** The Rmail commands `d', `C-d' and `u' take optional repeat counts
818 to delete or undelete multiple messages.
819
820 +++
821 *** Rmail can now render HTML mail messages if your Emacs was built with
822 libxml2 or if you have the Lynx browser installed. By default, Rmail
823 will display the HTML version of a mail message that has both HTML and
824 plain text parts, if display of HTML email is possible; customize the
825 `rmail-mime-prefer-html' option to `nil' if you don't want that.
826
827 +++
828 *** In the commands that make summaries by subject, recipients, or senders,
829 you can no longer use commas to separate regular expressions.
830
831 +++
832 ** SES now supports local printer functions; see `ses-define-local-printer'.
833
834 ** Shell-script Mode
835 ---
836 *** In sh-mode you can now use `sh-shell' as a file-local variable to
837 specify the type of shell in use (bash, csh, etc).
838
839 ---
840 *** New value `always' for `sh-indent-after-continuation'.
841 This provides old-style ("dumb") indentation of continued lines.
842 See the doc string of `sh-indent-after-continuation' for details.
843
844 ** TLS
845 ---
846 *** Fatal TLS errors are now silent by default.
847
848 ** URL
849
850 +++
851 *** The URL package accepts now the protocols "ssh", "scp" and "rsync".
852 When `url-handler-mode' is enabled, file operations for these
853 protocols as well as for "telnet" and "ftp" are passed to Tramp.
854
855 +++
856 *** The URL package allows customizing the `url-user-agent' string.
857 The new `url-user-agent' variable can be customized to be a string or
858 a function.
859
860 ---
861 *** The new interface variable `url-request-noninteractive' can be used
862 to specify that we're running in a noninteractive context, and that
863 we should not be queried about things like TLS certificate validity.
864
865 ---
866 *** If URL is used with a https connection, the first callback argument
867 plist will contain a :peer element that has the output of
868 `gnutls-peer-status' (if Emacs is built with GnuTLS support).
869
870 ** Tramp
871
872 +++
873 *** New connection method "afp", which allows to access Mac OS X
874 volumes via the Apple Filing Protocol.
875
876 +++
877 *** New connection method "nc", which allows to access dumb busyboxes.
878
879 +++
880 *** Method-specific parameters can be overwritten now with variable
881 `tramp-connection-properties'.
882
883 ---
884 *** Handler for `file-notify-valid-p' for remote machines that support
885 filesystem notifications.
886
887 ** SQL mode
888
889 ---
890 *** New user variable `sql-default-directory' enables remote
891 connections using Tramp.
892
893 ---
894 *** New command `sql-send-line-and-next'.
895 This command, bound to `C-c C-n' by default, sends the current line to
896 the SQL process and advances to the next line, skipping whitespace and
897 comments.
898
899 ---
900 *** Added support for Vertica SQL.
901
902 ** VC and related modes
903
904 +++
905 *** Basic push support, via `vc-push', bound to `C-x v P'.
906 Implemented for Bzr, Git, Hg. As part of this change, the pre-existing
907 (undocumented) command vc-hg-push now behaves slightly differently.
908
909 +++
910 *** The new command vc-region-history shows the log+diff of the active region.
911
912 +++
913 *** You can refresh the VC state of a file buffer with `M-x vc-refresh-state'.
914 This command is useful when you perform version control commands
915 outside Emacs (e.g., from the shell prompt), or if you switch the VC
916 back-end for the buffer's file, or remove it from version control.
917
918 +++
919 *** New option `vc-annotate-background-mode' controls whether
920 the color range from `vc-annotate-color-map' is applied to the
921 background or to the foreground.
922
923 +++
924 *** `compare-windows' now compares text with the most recently selected window
925 instead of the next window. If you want the previous behavior of
926 comparing with the next window, customize the new option
927 `compare-windows-get-window-function' to the value
928 `compare-windows-get-next-window'.
929
930 ---
931 *** Two new faces `compare-windows-removed' and `compare-windows-added'
932 replace the face `compare-windows', which is now an obsolete alias for
933 `compare-windows-added'.
934
935 ---
936 *** `log-edit-insert-changelog' converts "(tiny change)" to
937 "Copyright-paperwork-exempt: yes". Set `log-edit-rewrite-tiny-change'
938 nil to disable this.
939
940 ---
941 ** VHDL mode now supports VHDL'08.
942
943 ** Calculator
944
945 ---
946 *** Decimal display mode uses "," groups, so it's more
947 fitting for use in money calculations
948
949 ---
950 *** Factorial works with non-integer inputs.
951
952 ** Hide-IfDef mode
953
954 ---
955 *** Hide-IfDef mode now support full C/C++ expressions in macros,
956 macro argument expansion, interactive macro evaluation and automatic
957 scanning of #define'd symbols.
958
959 ---
960 *** New command `hif-evaluate-macro', bound to `C-c @ e', displays the
961 result of evaluating a macro.
962
963 ---
964 *** New command `hif-clear-all-ifdef-define', bound to `C-c @ C', clears
965 all defined symbols in `hide-ifdef-env'.
966
967 ---
968 *** New custom variable `hide-ifdef-header-regexp' to define C/C++ header
969 file name patterns. Defaults to files whose extension is one of `.h',
970 `.hh', `.hpp', `.hxx', or `.h++', matched case-insensitively.
971
972 ---
973 *** New custom variable `hide-ifdef-expand-reinclusion-protection' to prevent
974 reinclusion protected (a.k.a. "idempotent") header files from being hidden.
975 (This could happen when an idempotent header file is visited again,
976 when its guard symbol is already defined.) Defaults to `t'.
977
978 ---
979 *** New custom variable `hide-ifdef-exclude-define-regexp' to define symbol
980 name patterns (e.g. all "FOR_DOXYGEN_ONLY_*") to be ignored when
981 looking for macro definitions. By default, no symbols are ignored.
982
983 ** TeX mode
984
985 +++
986 *** New custom variable `tex-print-file-extension' to help users who
987 use PDF instead of DVI.
988
989 +++
990 *** TeX mode now supports Prettify Symbols mode. When enabling
991 `prettify-symbols-mode' in a tex-mode buffer, \alpha ... \omega, and
992 many other math macros are displayed using unicode characters.
993
994 +++
995 ** New `big-indent' style in `whitespace-mode' highlights deep indentation.
996 By default, 32 consecutive spaces or four consecutive TABs are
997 considered to be too deep, but the new variable
998 `whitespace-big-indent-regexp' can be customized to change that.
999
1000 ---
1001 ** New options in `tildify-mode'.
1002 New options `tildify-space-string', `tildify-pattern', and
1003 `tildify-foreach-region-function' variables make
1004 `tildify-string-alist', `tildify-pattern-alist', and
1005 `tildify-ignored-environments-alist' variables (as well as a few
1006 helper functions) obsolete.
1007
1008 ** New package Xref replaces Etags's front-end and UI
1009
1010 The new package Xref provides a generic framework and new commands to
1011 find and move to definitions of functions, macros, data structures
1012 etc., as well as go back to the location where you were before moving
1013 to a definition. It supersedes and obsoletes many Etags commands,
1014 while still using the etags.el code that reads the TAGS tables as one
1015 of its back-ends.
1016
1017 The command `xref-find-definitions' replaces `find-tag' and provides
1018 an interface to pick one definition among several.
1019 `tags-loop-continue' is now unbound. `xref-pop-marker-stack' replaces
1020 `pop-tag-mark', but has a keybinding (`M-,'), unlike `pop-tag-mark'.
1021
1022 `xref-find-definitions-other-window' replaces `find-tag-other-window'.
1023 `xref-find-definitions-other-frame' replaces `find-tag-other-frame'.
1024 `xref-find-apropos' replaces `find-tag-regexp'.
1025
1026 As a result of this, the following commands are now obsolete:
1027 `find-tag-other-window', `find-tag-other-frame', `find-tag-regexp',
1028 `tags-apropos', and `tags-loop-continue'.
1029
1030 The framework's API is still experimental and can change in major,
1031 backward-incompatible ways.
1032
1033 *** New variables
1034
1035 `find-tag-marker-ring-length' is now an obsolete alias for
1036 `xref-marker-ring-length'. `find-tag-marker-ring' is now an obsolete
1037 alias for a private variable. `xref-push-marker-stack' and
1038 `xref-pop-marker-stack' should be used to mutate it instead.
1039
1040 ---
1041 *** `xref-find-definitions' and `describe-function' now display
1042 information about mode local overrides (defined by cedet/mode-local.el
1043 `define-overloadable-function' `define-mode-local-overrides').
1044
1045 ** EUDC
1046 EUDC's LDAP backend has been improved.
1047
1048 *** EUDC supports LDAP-over-SSL URLs (ldaps://).
1049
1050 *** EUDC passes LDAP passwords through a pipe to the ldapsearch
1051 subprocess instead of on the command line.
1052
1053 *** EUDC handles LDAP wildcards automatically so the user shouldn't
1054 need to configure this manually anymore.
1055
1056 *** The LDAP configuration section of EUDC's manual has been
1057 rewritten.
1058
1059 There have also been customization changes.
1060
1061 *** New custom variable `eudc-server-hotlist' to allow specifying
1062 multiple EUDC servers in init file.
1063
1064 *** Custom variable `eudc-inline-query-format' defaults to completing
1065 on email and firstname instead of surname.
1066
1067 *** Custom variable `eudc-expansion-overwrites-query' defaults to nil
1068 to avoid interfering with the kill ring.
1069
1070 *** Custom variable `eudc-inline-expansion-format' defaults to
1071 "Firstname Surname <mail-address>".
1072
1073 *** Custom variable `eudc-options-file' defaults to
1074 "~/.emacs.d/eudc-options".
1075
1076 *** New custom variable `ldap-ldapsearch-password-prompt-regexp' to
1077 allow overriding the regular expression that recognizes the ldapsearch
1078 command line's password prompt.
1079
1080 EUDC's BBDB backend now supports BBDB 3.
1081
1082 EUDC's PH backend (eudcb-ph.el) is obsolete.
1083
1084 ** Eshell
1085
1086 +++
1087 *** The new built-in command `clear' can scroll window contents out of sight.
1088 If provided with an optional non-nil argument, the scrollback contents will be cleared.
1089
1090 *** New buffer syntax '#<buffer-name>', which is equivalent to
1091 '#<buffer buffer-name>'. This shorthand makes interacting with
1092 buffers from eshell more convenient. Custom variable
1093 `eshell-buffer-shorthand', which has been broken for a while, has been
1094 removed.
1095
1096 *** By default, eshell "visual" program buffers (created by
1097 `eshell-visual-commands' and similar custom vars) are no longer killed
1098 when their processes die. This fixes issues with short-lived commands
1099 and makes visual programs more useful in general. For example, if
1100 "git log" is a visual command, it will always show the visual command
1101 buffer, even if the "git log" process dies. For the old behavior,
1102 make the new option `eshell-destroy-buffer-when-process-dies' non-nil.
1103
1104 ** Browse-url
1105
1106 *** Support for the Conkeror web browser.
1107
1108 ---
1109 *** Support for several ancient browsers is now officially obsolete.
1110
1111 +++
1112 ** tar-mode: new `tar-new-entry' command, allowing for new members to
1113 be added to the archive.
1114
1115 ---
1116 ** Autorevert: dired buffers are also auto-reverted via file
1117 notifications, if Emacs is compiled with file notification support.
1118
1119 ** File Notifications
1120
1121 +++
1122 *** The new event `stopped' signals, that a file notification watch is
1123 not active any longer.
1124
1125 +++
1126 *** The new function `file-notify-valid-p' checks, whether a file
1127 notification descriptor still corresponds to an activate watch.
1128
1129 ** Dired
1130
1131 +++
1132 *** The command `dired-do-compress' bound to `Z' now can compress
1133 directories and decompress zip files.
1134
1135 +++
1136 *** New command `dired-do-compress-to' bound to `c' can be used to
1137 compress many marked files into a single named archive. The
1138 compression command is determined from the new
1139 `dired-compress-files-alist' variable.
1140
1141 +++
1142 *** `W' is now bound to `browse-url-of-dired-file', and is useful for
1143 viewing HTML files and the like.
1144
1145 ** Tabulated List Mode
1146
1147 +++
1148 *** It is now safe for a mode that derives `tabulated-list-mode' to not
1149 call `tabulated-list-init-header', in which case it will have no
1150 header.
1151
1152 +++
1153 *** `tabulated-list-print' takes a second optional argument, update,
1154 which specifies an alternative printing method which is faster when
1155 few or no entries have changed.
1156
1157 ** Obsolete packages
1158
1159 ---
1160 *** gulp.el
1161
1162 *** landmark.el (moved to elpa.gnu.org)
1163
1164 \f
1165 * New Modes and Packages in Emacs 25.1
1166
1167 ** pinentry.el allows GnuPG passphrase to be prompted through the
1168 minibuffer instead of a graphical dialog, depending on whether the gpg
1169 command is called from Emacs (i.e., INSIDE_EMACS environment variable
1170 is set). This feature requires newer versions of GnuPG (2.1.5 or
1171 later) and Pinentry (0.9.5 or later).
1172
1173 ** cl-generic.el provides CLOS-style multiple-dispatch generic functions.
1174
1175 ** scss-mode (a minor variant of css-mode)
1176
1177 ** let-alist is a new macro (and a package) that allows one to easily
1178 let-bind the values stored in an alist.
1179
1180 ** `tildify-mode' allows to automatically insert hard spaces as one
1181 types the text. Breaking line after a single-character words is
1182 forbidden by Czech and Polish typography (and may be discouraged in
1183 other languages), so `auto-tildify-mode' makes it easier to create
1184 a typographically-correct documents.
1185
1186 ** The `seq' library adds sequence manipulation functions and macros
1187 that complement basic functions provided by subr.el. All functions
1188 are prefixed with `seq-' and work on lists, strings and vectors.
1189
1190 ** The `map' library provides map-manipulation functions that work on
1191 alists, hash-table and arrays. All functions are prefixed with
1192 `map-'.
1193
1194 ** The `thunk' library provides functions and macros to control the
1195 evaluation of forms.
1196
1197 ** js-jsx-mode (a minor variant of js-mode) provides indentation
1198 support for JSX, an XML-like syntax extension to ECMAScript.
1199
1200 \f
1201 * Incompatible Lisp Changes in Emacs 25.1
1202
1203 ---
1204 ** `setq' and `setf' must now be called with an even number of
1205 arguments. The earlier behavior of silently supplying a nil to the
1206 last variable when there was an odd number of arguments has been
1207 eliminated.
1208
1209 ** `syntax-begin-function' is declared obsolete.
1210 Removed font-lock-beginning-of-syntax-function and the SYNTAX-BEGIN
1211 slot in font-lock-defaults.
1212
1213 +++
1214 ** `package-initialize' now sets `package-enable-at-startup' to nil if
1215 called during startup. Users who call this function in their init
1216 file and still expect it to be run after startup should set
1217 `package-enable-at-startup' to t after the call to
1218 `package-initialize'.
1219
1220 ** `:global' minor mode use `setq-default' rather than `setq'.
1221 This means that you can't use `make-local-variable' and expect them to
1222 "magically" become buffer-local.
1223
1224 ** `inhibit-point-motion-hooks' now defaults to t and is obsolete.
1225
1226 +++
1227 ** `track-mouse' no longer freezes the shape of the mouse pointer.
1228 The `track-mouse' form no longer refrains from changing the shape of
1229 the mouse pointer for the entire time the body of that form is
1230 executed. Lisp programs that use `track-mouse' for dragging across
1231 large portions of the Emacs display, and want to avoid changes in the
1232 pointer shape during dragging, should bind the variable `track-mouse'
1233 to the special value `dragging' in the body of the form.
1234
1235 ---
1236 ** The optional `predicate' argument of `lisp-complete-symbol' no longer
1237 has any effect. (This change was made in Emacs 24.4 but was not
1238 advertised at the time.)
1239
1240 ** `indirect-function' does not signal `void-function' any more.
1241 This is mostly a bug-fix, since this change was missed back in 24.4 when
1242 symbol-function was changed not to signal `void-function' any more.
1243
1244 *** As a consequence, the second arg of `indirect-function' is now obsolete.
1245
1246 ** Comint, term, and compile do not set the EMACS env var any more.
1247 Use the INSIDE_EMACS environment variable instead.
1248
1249 ** `save-excursion' does not save&restore the mark any more.
1250
1251 ** read-buffer-function can now be called with a 4th argument (`predicate').
1252
1253 ** completion-table-dynamic stays in the minibuffer.
1254 If you want the old behavior of calling the function in the buffer
1255 from which the minibuffer was entered, call it with the new argument
1256 `switch-buffer'.
1257
1258 ** window-configurations no longer record the buffers' marks.
1259
1260 ** inhibit-modification-hooks now also inhibits lock-file checks, as well as
1261 active region handling.
1262
1263 ** deactivate-mark is now buffer-local.
1264
1265 ** `cl-the' now asserts that its argument is of the given type.
1266
1267 ** `process-running-child-p` may now return a numeric process
1268 group ID instead of `t'.
1269
1270 +++
1271 ** Mouse click events on mode line or header line no longer include
1272 any reference to a buffer position. The 6th member of the mouse
1273 position list returned for such events is now nil.
1274
1275 ** Menu items in keymaps do not support the "key shortcut cache" any more.
1276 These slots used to hold key-shortcut data, but have been obsolete since
1277 Emacs-21.
1278
1279 ** Emacs no longer downcases the first letter of a system diagnostic
1280 when signaling a file error. For example, it now reports "Permission
1281 denied" instead of "permission denied". The old behavior was problematic
1282 in languages like German where downcasing rules depend on grammar.
1283
1284 +++
1285 ** New variable ‘text-quoting-style’ to control how Emacs translates quotes.
1286 Set it to ‘curve’ for curved single quotes ‘like this’, to ‘straight’
1287 for straight apostrophes 'like this', and to ‘grave’ for grave accent
1288 and apostrophe `like this'. The default value nil acts like ‘curve’
1289 if curved single quotes are displayable, and like ‘grave’ otherwise.
1290 The new variable affects display of diagnostics and help, but not of info.
1291
1292 +++
1293 ** substitute-command-keys now replaces quotes.
1294 That is, it converts documentation strings’ quoting style as per the
1295 value of ‘text-quoting-style’. Doc strings in source code can use
1296 either curved single quotes or grave accents and apostrophes. As
1297 before, characters preceded by \= are output as-is.
1298
1299 +++
1300 ** Message-issuing functions ‘error’, ‘message’, etc. now convert quotes.
1301 They use the new ‘format-message’ function instead of plain ‘format’,
1302 so that they now follow user preference as per ‘text-quoting-style’
1303 when processing curved single quotes, grave accents, and apostrophes
1304 in their format argument.
1305
1306 +++
1307 ** The character classes [:alpha:] and [:alnum:] in regular expressions
1308 now match multibyte characters using Unicode character properties.
1309 If you want the old behavior where they matched any character with
1310 word syntax, use `\sw' instead.
1311
1312 +++
1313 ** The character classes [:graph:] and [:print:] in regular expressions
1314 no longer match every multibyte character. Instead, Emacs now
1315 consults the Unicode character properties to determine which
1316 characters are graphic or printable. In particular, surrogates and
1317 unassigned codepoints are now rejected. If you want the old behavior,
1318 use [:multibyte:] instead.
1319
1320 +++
1321 ** The `diff' command uses the unified format now. To restore the old
1322 behavior, set `diff-switches' to `-c'.
1323
1324 ** `grep-template' and `grep-find-template' values don't include the
1325 --color argument anymore. It's added at the <C> place holder position
1326 dynamically. Any third-party code that changes these templates should
1327 be updated accordingly.
1328
1329 +++
1330 ** ‘(/ N)’ is now equivalent to ‘(/ 1 N)’ rather than to ‘(/ N 1)’.
1331 The new behavior is compatible with Common Lisp and with XEmacs.
1332 This change does not affect Lisp code intended to be portable to
1333 Emacs 24.2 and earlier, which did not support unary ‘/’.
1334
1335 +++
1336 ** The `default-directory' value doesn't have to end slash. To make
1337 that happen, `unhandled-file-name-directory' now defaults to calling
1338 `file-name-as-directory'.
1339
1340 \f
1341 * Lisp Changes in Emacs 25.1
1342
1343 ** pcase
1344 *** New UPatterns `quote', `app', `cl-struct', `eieio', `seq', and `map'.
1345 *** New UPatterns can be defined with `pcase-defmacro'.
1346 +++
1347 *** New vector QPattern.
1348
1349 ** syntax-propertize is now automatically called on-demand during forward
1350 parsing functions like `forward-sexp'.
1351
1352 ** New hooks prefix-command-echo-keystrokes-functions and
1353 prefix-command-preserve-state-hook, to allow the definition of prefix
1354 commands other than the predefined C-u.
1355
1356 ** New functions `filepos-to-bufferpos' and `bufferpos-to-filepos'.
1357
1358 ** The default value of `load-read-function' is now `read'.
1359
1360 ** New hook `pre-redisplay-functions', a bit easier to use than pre-redisplay-function.
1361
1362 ** The second arg of `looking-back' should always be provided explicitly.
1363
1364 ** Obsolete text properties `intangible', `point-entered', and `point-left'.
1365 Replaced by properties `cursor-intangible' and `cursor-sensor-functions',
1366 implemented by the new `cursor-intangible-mode' and
1367 `cursor-sensor-mode' minor modes.
1368
1369 ** New process type `pipe', which can be used in combination with the
1370 `:stderr' keyword of make-process to handle standard error output
1371 of subprocess.
1372
1373 ** New function `make-process' provides an alternative interface to
1374 `start-process'. It allows programs to set process parameters such as
1375 process filter, sentinel, etc., through keyword arguments (similar to
1376 `make-network-process').
1377
1378 +++
1379 ** A new function `directory-files-recursively' returns all matching
1380 files (recursively) under a directory.
1381
1382 +++
1383 ** New variable `inhibit-message', when bound to non-nil, inhibits
1384 `message' and related functions from displaying messages in the echo
1385 area. The output is still logged to the *Messages* buffer.
1386
1387 +++
1388 ** A new text property `inhibit-read-only' can be used in read-only
1389 buffers to allow certain parts of the text to be writable.
1390
1391 +++
1392 ** A new variable `comment-end-can-be-escaped' is useful in languages
1393 such as C and C++ where line comments with escaped newlines are
1394 continued to the next line.
1395
1396 +++
1397 ** New macro `define-advice'.
1398
1399 ** `read-buffer' takes a new `predicate' argument.
1400
1401 ** Emacs Lisp now supports generators.
1402
1403 ** New finalizer facility for running code when objects
1404 become unreachable.
1405
1406 ** lexical closures can use (:documentation <form>) to build their docstring.
1407 It should be placed right where the docstring would be, and <form> is then
1408 evaluated (and should return a string) when the closure is built.
1409
1410 ** define-inline provides a new way to define inlinable functions.
1411
1412 ** New function `macroexpand-1' to perform a single step of macroexpansion.
1413
1414 ** Some "x-*" were obsoleted:
1415 *** x-select-text is renamed gui-select-text.
1416 *** x-selection-value is renamed gui-selection-value.
1417 *** x-get-selection is renamed gui-get-selection.
1418 *** x-get-clipboard and x-clipboard-yank are marked obsolete.
1419 *** x-get-selection-value is renamed to gui-get-primary-selection.
1420 *** x-set-selection is renamed to gui-set-selection
1421
1422 ** New function `string-greaterp', which return the opposite result of
1423 `string-lessp'.
1424
1425 +++
1426 ** The new functions `string-collate-lessp' and `string-collate-equalp'
1427 preserve the collation order as defined by the system's locale(1)
1428 environment. For the time being this is implemented for modern POSIX
1429 systems and for MS-Windows, for other systems they fall back to their
1430 counterparts `string-lessp' and `string-equal'.
1431
1432 ---
1433 *** The ls-lisp package uses `string-collate-lessp' to sort file names.
1434 If you want the old, locale-independent sorting, customize the new
1435 option `ls-lisp-use-string-collate' to a nil value.
1436
1437 +++
1438 *** The MS-Windows specific variable `w32-collate-ignore-punctuation',
1439 if set to a non-nil value, causes the above 2 functions to ignore
1440 symbol and punctuation characters when collating strings. This
1441 emulates the behavior of modern Posix platforms when the locale's
1442 codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because
1443 MS-Windows doesn't support UTF-8 as codeset in its locales.
1444
1445 ** New function `alist-get', which is also a valid place (aka lvalue).
1446
1447 ** New function `funcall-interactively', which works like `funcall'
1448 but makes `called-interactively-p' treat the function as (you guessed it)
1449 called interactively.
1450
1451 ** New function `function-put' to use instead of `put' for function properties.
1452
1453 +++
1454 ** The new function `bidi-find-overridden-directionality' allows to
1455 find characters whose directionality was, perhaps maliciously,
1456 overridden by directional override control characters. Lisp programs
1457 can use this to detect potential phishing of URLs and other links that
1458 exploits bidirectional display reordering.
1459
1460 +++
1461 ** The new function `buffer-substring-with-bidi-context' allows to
1462 copy a portion of a buffer into a different location while preserving
1463 the visual appearance both of the copied text and the text at
1464 destination, even when the copied text includes mixed bidirectional
1465 text and directional control characters.
1466
1467 +++
1468 ** New properties that can be specified with `declare':
1469 *** (interactive-only INSTEAD), says to use INSTEAD for non-interactive use.
1470 *** (pure VAL), if VAL is non-nil, indicates the function is pure.
1471 *** (side-effect-free VAL), if VAL is non-nil, indicates the function does not
1472 have side effects.
1473
1474 +++
1475 ** New macro `with-file-modes', for evaluating expressions with default file
1476 permissions set to temporary values (e.g., for creating private files).
1477
1478 ** You can access the slots of structures using `cl-struct-slot-value'.
1479
1480 ** Function `sort' can deal with vectors.
1481
1482 ** Function `system-name' now returns an updated value if the current
1483 system's name has changed or if the Emacs process has changed systems,
1484 and to avoid long waits it no longer consults DNS to canonicalize the
1485 name. The variable `system-name' is now obsolete.
1486
1487 +++
1488 ** Function `write-region' no longer outputs "Wrote FILE" in batch mode.
1489
1490 ** If `pwd' is called with a prefix argument, insert the current default
1491 directory at point.
1492
1493 +++
1494 ** New functions return extended information about fonts and faces.
1495
1496 +++
1497 *** The function `font-info' now returns more details about a font.
1498 In particular, it now returns the average width of the font's
1499 characters, which can be used for geometry-related calculations.
1500
1501 +++
1502 *** A new function `default-font-width' returns the average width of a
1503 character in the current buffer's default font. If the default face
1504 is remapped (see `face-remapping-alist'), the value for the remapped
1505 face is returned. This function complements the existing function
1506 `default-font-height'.
1507
1508 +++
1509 *** New functions `window-font-height' and `window-font-width' return
1510 the height and average width of characters in a specified face and
1511 window. If FACE is remapped (see `face-remapping-alist'), the
1512 function returns the information for the remapped face.
1513
1514 +++
1515 *** A new function `window-max-chars-per-line' returns the maximal
1516 number of characters that can be displayed on one line. If a face
1517 and/or window are provided, these values are used for the
1518 calculation. This function is different from `window-body-width' in
1519 that it accounts for (i) continuation glyphs, (ii) the size of the
1520 font, and (iii) the specified window.
1521
1522 ---
1523 ** New utilities in subr-x.el:
1524 *** New macros `if-let' and `when-let' allow defining bindings and to
1525 execute code depending whether all values are true.
1526 *** New macros `thread-first' and `thread-last' allow threading a form
1527 as the first or last argument of subsequent forms.
1528
1529 +++
1530 ** Documentation strings now support quoting with curved single quotes
1531 ‘like-this’ in addition to the old style with grave accent and
1532 apostrophe `like-this'. The new style looks better on today's displays.
1533 In the new Electric Quote mode, you can enter curved single quotes
1534 into documentation by typing ` and '. Outside Electric Quote mode,
1535 you can enter them by typing ‘C-x 8 [’ and ‘C-x 8 ]’, or (if your Alt
1536 key works) by typing ‘A-[’ and ‘A-]’. As described above under
1537 ‘text-quoting-style’, the user can specify how to display doc string
1538 quotes.
1539
1540 +++
1541 ** New function ‘format-message’ is like ‘format’ and also converts
1542 curved single quotes, grave accents and apostrophes as per
1543 ‘text-quoting-style’.
1544
1545 +++
1546 ** show-help-function's arg is converted via substitute-command-keys
1547 before being passed to the function. Help strings, help-echo
1548 properties, etc. can therefore contain command key escapes and
1549 quotation marks.
1550
1551 +++
1552 ** Time-related changes:
1553
1554 *** Time conversion functions now accept an optional ZONE argument
1555 that specifies the time zone rules for conversion. ZONE is omitted or
1556 nil for Emacs local time, t for Universal Time, ‘wall’ for system wall
1557 clock time, or a string as in ‘set-time-zone-rule’ for a time zone
1558 rule. The affected functions are ‘current-time-string’,
1559 ‘current-time-zone’, ‘decode-time’, and ‘format-time-string’. The
1560 function ‘encode-time’, which already accepted a simple time zone rule
1561 argument, has been extended to accept all the new forms.
1562
1563 *** Time-related functions now consistently accept numbers
1564 (representing seconds since the epoch) and nil (representing the
1565 current time) as well as the usual list-of-integer representation.
1566 Affected functions include `current-time-string', `current-time-zone',
1567 `decode-time', `float-time', `format-time-string', `seconds-to-time',
1568 `time-add', `time-less-p', `time-subtract', `time-to-day-in-year',
1569 `time-to-days', and `time-to-seconds'.
1570
1571 *** The `encode-time-value' and `with-decoded-time-value' macros have
1572 been obsoleted.
1573
1574 *** `calendar-next-time-zone-transition', `time-add', and
1575 `time-subtract' no longer return time values in the obsolete and
1576 undocumented integer-pair format. Instead, they return a list of two
1577 integers.
1578
1579 +++
1580 ** New function `set-binary-mode' allows to switch a standard stream
1581 of the Emacs process to binary I/O mode.
1582
1583 +++
1584 ** The new function `directory-name-p' can be used to check whether a file
1585 name (as returned from, for instance, `file-name-all-completions') is
1586 a directory file name. It returns non-nil if the last character in
1587 the name is a directory separator character (forward slash on GNU and
1588 Unix systems, forward- or backslash on MS-Windows and MS-DOS).
1589
1590 ** ASCII approximations to curved quotes are put in standard-display-table
1591 if the terminal cannot display curved quotes.
1592
1593 ** Standard output and error streams now transliterate characters via
1594 standard-display-table, and encode output using locale-coding-system.
1595
1596 +++
1597 ** New var `truncate-string-ellipsis' to choose how to indicate truncation.
1598
1599 +++
1600 ** New possible value for `system-type': `nacl'.
1601 This is used by Google's Native Client (NaCl).
1602
1603 ** Miscellaneous name change
1604
1605 For consistency with the usual Emacs spelling, the Lisp variable
1606 `hfy-optimisations' has been renamed to `hfy-optimizations'.
1607 The old name should still work, as an obsolescent alias.
1608
1609 ** Changes in Frame- and Window- Handling
1610
1611 +++
1612 *** Emacs can now draw horizontal scroll bars on some platforms that
1613 provide toolkit scroll bars, namely Gtk+, Lucid, Motif and Windows.
1614 Horizontal scroll bars are turned off by default.
1615 **** New function `horizontal-scroll-bars-available-p' telling whether
1616 horizontal scroll bars are available on the underlying system.
1617 **** New mode `horizontal-scroll-bar-mode' to toggle horizontal scroll
1618 bars on all existing and future frames.
1619 **** New function `toggle-horizontal-scroll-bar' to toggle horizontal
1620 scroll bars on the selected frame.
1621 **** New frame parameters `horizontal-scroll-bars' and
1622 `scroll-bar-height' to set horizontal scroll bars and their height
1623 for individual frames and in `default-frame-alist'.
1624 **** New functions `frame-scroll-bar-height' and
1625 `window-scroll-bar-height' return the height of horizontal scroll
1626 bars on a specific frame or window.
1627 **** `set-window-scroll-bars' now accepts five parameters where the last
1628 two specify height and type of the window's horizontal scroll bar.
1629 **** `window-scroll-bars' now returns type and sizes of horizontal scroll
1630 bars too.
1631 **** New buffer-local variables `horizontal-scroll-bar' and
1632 `scroll-bar-height'.
1633
1634 +++
1635 *** New functions `frame-geometry' and `frame-edges' give access to a
1636 frame's geometry.
1637
1638 +++
1639 *** New functions `mouse-absolute-pixel-position' and
1640 `set-mouse-absolute-pixel-position' get/set screen coordinates of the
1641 mouse cursor.
1642
1643 +++
1644 *** The function `window-edges' now accepts three additional arguments to
1645 retrieve body, absolute and pixel edges of the window.
1646
1647 +++
1648 *** The functions `window-inside-edges', `window-inside-pixel-edges' and
1649 `window-inside-absolute-pixel-edges' have been renamed to respectively
1650 `window-body-edges', `window-body-pixel-edges' and
1651 `window-absolute-body-pixel-edges'. The old names are kept as aliases.
1652
1653 +++
1654 *** New function `window-absolute-pixel-position' to get the screen
1655 coordinates of a visible buffer position.
1656
1657 +++
1658 *** The height of a frame's menu and tool bar are no longer counted in the
1659 frame's text height. This means that the text height stands only for
1660 the height of the frame's root window plus that of the echo area (if
1661 present). This was already the behavior for frames with external tool
1662 and menu bars (like in the Gtk builds) but has now been extended to all
1663 builds.
1664
1665 +++
1666 *** Frames now do not necessarily preserve the number of columns or lines
1667 they display when setting default font, menu bar, fringe width, or
1668 scroll bars. In particular, maximized and fullscreen frames are
1669 conceptually never resized if such settings change. For fullheight and
1670 fullwidth frames, the behavior may depend on the toolkit used.
1671 **** New option `frame-inhibit-implied-resize' if non-nil, means that
1672 setting default font, menu bar, fringe width, or scroll bars of a
1673 specific frame does not resize that frame in order to preserve the
1674 number of columns or lines it displays.
1675
1676 +++
1677 *** New function `window-preserve-size' allows to preserve the size of
1678 windows without "fixing" it. It's supported by `fit-window-to-buffer',
1679 `temp-buffer-resize-mode' and `display-buffer'.
1680
1681 +++
1682 *** New `display-buffer' action function `display-buffer-use-some-frame'.
1683 This displays the buffer in an existing frame other than the current
1684 frame, and allows the caller to specify a frame predicate to exclude
1685 frames.
1686
1687 +++
1688 *** New minor mode `window-divider-mode' and options
1689 `window-divider-default-places', `window-divider-default-bottom-width'
1690 and `window-divider-default-right-width'.
1691
1692 ** Tearoff menus and detachable toolbars for Gtk+ have been removed.
1693 Those features have been deprecated in Gtk+ for a long time.
1694
1695 ** Etags
1696
1697 *** etags no longer qualifies class members by default.
1698
1699 By default, `etags' will not qualify class members for C-like
1700 object-oriented languages with their class names and namespaces, and
1701 will remove qualifications used explicitly in the code from the tag
1702 names it puts in TAGS files. This is so the etags.el back-end for
1703 `xref-find-definitions' is more accurate and produces less false
1704 positives.
1705
1706 Use --class-qualify (-Q) if you want the old default behavior of
1707 qualifying class members in C++, Java, and Objective C. Note that
1708 using -Q might make some class members become "unknown" to `M-.'
1709 (`xref-find-definitions'); if so, you can use `C-u M-.' to specify the
1710 qualified names by hand.
1711
1712 *** New language Ruby
1713
1714 Names of modules, classes, methods, and functions are tagged.
1715 Overloaded operators are also tagged.
1716
1717 *** Improved support for Lua
1718
1719 Etags now tags functions even if the "function" keyword follows some
1720 whitespace at line beginning.
1721
1722 \f
1723 * Changes in Emacs 25.1 on Non-Free Operating Systems
1724
1725 ---
1726 ** MS-Windows specific Emacs build scripts are no longer in the distribution
1727 This includes the makefile.w32-in files in various subdirectories, and
1728 the support files. The file nt/configure.bat now just tells the user
1729 to use the procedure described in nt/INSTALL, by running the Posix
1730 `configure' script in the top-level directory.
1731
1732 ---
1733 ** Building Emacs for MS-Windows requires at least Windows XP
1734 or Windows Server 2003. The built binaries still run on all versions
1735 of Windows starting with Windows 9X.
1736
1737 +++
1738 ** Emacs running on MS-Windows now supports the daemon mode.
1739
1740 ** The byte counts in etags-generated TAGS files are now the same on
1741 MS-Windows as they are on other platforms.
1742
1743 ---
1744 ** On OS X, configure creates a Cocoa ("Nextstep") build by default.
1745 Pass '--without-ns' to configure to create an X11 build, the old default.
1746
1747 ** OS X 10.5 or older is no longer supported.
1748
1749 ** OS X on PowerPC is no longer supported.
1750
1751 ---
1752 ** New variable `ns-use-fullscreen-animation' controls animation for
1753 non-native NS fullscreen. The default is nil. Set to t to enable
1754 animation when entering and leaving fullscreen. For native OSX fullscreen
1755 this has no effect.
1756
1757 ---
1758 ** The new function 'w32-application-type' returns the type of an
1759 MS-Windows application given the name of its executable program file.
1760
1761 \f
1762 ----------------------------------------------------------------------
1763 This file is part of GNU Emacs.
1764
1765 GNU Emacs is free software: you can redistribute it and/or modify
1766 it under the terms of the GNU General Public License as published by
1767 the Free Software Foundation, either version 3 of the License, or
1768 (at your option) any later version.
1769
1770 GNU Emacs is distributed in the hope that it will be useful,
1771 but WITHOUT ANY WARRANTY; without even the implied warranty of
1772 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1773 GNU General Public License for more details.
1774
1775 You should have received a copy of the GNU General Public License
1776 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
1777
1778 \f
1779 Local variables:
1780 coding: utf-8
1781 mode: outline
1782 paragraph-separate: "[ \f]*$"
1783 end: