Fix unlikely overflows with wd length
[emacs.git] / etc / NEWS
bloba9a4bc618723b671071def477a79699c8fa1e39b
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2014-2017 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 26.
11 See file HISTORY for a list of GNU Emacs versions and release dates.
12 See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
13 NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
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.
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,
25 * Installation Changes in Emacs 26.1
27 ** By default libgnutls is now required when building Emacs.
28 Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
30 ** GnuTLS version 2.12.2 or later is now required, instead of merely
31 version 2.6.6 or later.
33 ** The new option 'configure --with-mailutils' causes Emacs to rely on
34 GNU Mailutils to retrieve email.  It is recommended, and is the
35 default if GNU Mailutils is installed.  When --with-mailutils is not
36 in effect, the Emacs build procedure by default continues to build and
37 install a limited 'movemail' substitute that retrieves POP3 email only
38 via insecure channels.  To avoid this problem, use either
39 --with-mailutils or --without-pop when configuring; --without-pop
40 is the default on platforms other than native MS-Windows.
42 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
43 GCC to issue warnings without stopping the build.  This behavior is
44 now the default in developer builds.  As before, use
45 '--disable-gcc-warnings' to suppress GCC's warnings, and
46 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
48 ** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
49 now enabled by default when configuring.
51 +++
52 ** The Emacs server now has socket-launching support.  This allows
53 socket based activation, where an external process like systemd can
54 invoke the Emacs server process upon a socket connection event and
55 hand the socket over to Emacs.  Emacs uses this socket to service
56 emacsclient commands.  This new functionality can be disabled with the
57 configure option '--disable-libsystemd'.
59 +++
60 ** A systemd user unit file is provided.  Use it in the standard way:
61 systemctl --user enable emacs
62 (If your Emacs is installed in a non-standard location, you may
63 need to copy the emacs.service file to eg ~/.config/systemd/user/)
65 ** New configure option '--disable-build-details' attempts to build an
66 Emacs that is more likely to be reproducible; that is, if you build
67 and install Emacs twice, the second Emacs is a copy of the first.
68 Deterministic builds omit the build date from the output of the
69 'emacs-version' and 'erc-cmd-SV' functions, and the leave the
70 following variables nil: 'emacs-build-system', 'emacs-build-time',
71 'erc-emacs-build-time'.
73 ---
74 ** Emacs can now be built with support for Little CMS.
76 If the lcms2 library is installed, Emacs will enable features built on
77 top of that library.  The new configure option '--without-lcms2' can
78 be used to build without lcms2 support even if it is installed.  Emacs
79 linked to Little CMS exposes color management functions in Lisp: the
80 color metrics 'lcms-cie-de2000' and 'lcms-cam02-ucs', as well as
81 functions for conversion to and from CIE CAM02 and CAM02-UCS.
83 ** The configure option '--with-gameuser' now defaults to 'no',
84 as this appears to be the most common configuration in practice.
85 When it is 'no', the shared game directory and the auxiliary program
86 update-game-score are no longer needed and are not installed.
88 ** Emacs no longer works on IRIX.  We expect that Emacs users are not
89 affected by this, as SGI stopped supporting IRIX in December 2013.
92 * Startup Changes in Emacs 26.1
94 +++
95 ** New option '--fg-daemon'.  This is the same as '--daemon', except
96 it runs in the foreground and does not fork.  This is intended for
97 modern init systems such as systemd, which manage many of the traditional
98 aspects of daemon behavior themselves.  '--bg-daemon' is now an alias
99 for '--daemon'.
102 ** New option '--module-assertions'.
103 When given this option, Emacs will perform expensive correctness
104 checks when dealing with dynamic modules.  This is intended for module
105 authors that wish to verify that their module conforms to the module
106 requirements.  The option makes Emacs abort if a module-related
107 assertion triggers.
110 ** Emacs now supports 24-bit colors on capable text terminals
111 Terminal is automatically initialized to use 24-bit colors if the
112 required capabilities are found in terminfo.  See the FAQ node
113 "Colors on a TTY" for more information.
116 ** Emacs now obeys the X resource "scrollBar" at startup.
117 The effect is similar to that of "toolBar" resource on the tool bar.
120 * Changes in Emacs 26.1
123 ** Option 'buffer-offer-save' can be set to new value, 'always'.  When
124    set to 'always', the command `save-some-buffers' will always offer
125    this buffer for saving.
127 ** Security vulnerability related to Enriched Text mode is removed.
130 *** Enriched Text mode does not evaluate Lisp in 'display' properties.
131 This feature allows saving 'display' properties as part of text.
132 Emacs 'display' properties support evaluation of arbitrary Lisp forms
133 as part of processing the property for display, so displaying Enriched
134 Text could be vulnerable to executing arbitrary malicious Lisp code
135 included in the text (e.g., sent as part of an email message).
136 Therefore, execution of arbitrary Lisp forms in 'display' properties
137 decoded by Enriched Text mode is now disabled by default.  Customize
138 the new option 'enriched-allow-eval-in-display-props' to a non-nil
139 value to allow Lisp evaluation in decoded 'display' properties.
141 This vulnerability was introduced in Emacs 21.1.  To work around that
142 in Emacs versions before 25.3, append the following to your ~/.emacs
143 init file:
145   (eval-after-load "enriched"
146     '(defun enriched-decode-display-prop (start end &optional param)
147        (list start end)))
150 ** Functions in 'write-contents-functions' can fully short-circuit the
151 'save-buffer' process.  Previously, saving a buffer that was not
152 visiting a file would always prompt for a file name.  Now it only does
153 so if 'write-contents-functions' is nil (or all its functions return
154 nil).
157 ** New variable 'executable-prefix-env' for inserting magic signatures.
158 This variable affects the format of the interpreter magic number
159 inserted by 'executable-set-magic'.  If non-nil, the magic number now
160 takes the form "#!/usr/bin/env interpreter", otherwise the value
161 determined by 'executable-prefix', which is by default
162 "#!/path/to/interpreter".  By default, 'executable-prefix-env' is nil,
163 so the default behavior is not changed.
166 ** The variable 'emacs-version' no longer includes the build number.
167 This is now stored separately in a new variable, 'emacs-build-number'.
170 ** Emacs now provides a limited form of concurrency with Lisp threads.
171 Concurrency in Emacs Lisp is "mostly cooperative", meaning that
172 Emacs will only switch execution between threads at well-defined
173 times: when Emacs waits for input, during blocking operations related
174 to threads (such as mutex locking), or when the current thread
175 explicitly yields.  Global variables are shared among all threads, but
176 a 'let' binding is thread-local.  Each thread also has its own current
177 buffer and its own match data.
179 See the chapter "Threads" in the ELisp manual for full documentation
180 of these facilities.
183 ** The new user variable 'electric-quote-chars' provides a list
184 of curved quotes for 'electric-quote-mode', allowing user to choose
185 the types of quotes to be used.
188 ** The new user option 'electric-quote-context-sensitive' makes
189 'electric-quote-mode' context sensitive.  If it is non-nil, you can
190 type an ASCII apostrophe to insert an opening or closing quote,
191 depending on context.  Emacs will replace the apostrophe by an opening
192 quote character at the beginning of the buffer, the beginning of a
193 line, after a whitespace character, and after an opening parenthesis;
194 and it will replace the apostrophe by a closing quote character in all
195 other cases.
198 ** The new variable 'electric-quote-inhibit-functions' controls when
199 to disable electric quoting based on context.  Major modes can add
200 functions to this list; Emacs will temporarily disable
201 'electric-quote-mode' whenever any of the functions returns non-nil.
202 This can be used by major modes that derive from 'text-mode' but allow
203 inline code segments, such as 'markdown-mode'.
206 ** The new user variable 'dired-omit-case-fold' allows the user to
207 customize the case-sensitivity of dired-omit-mode.  It defaults to
208 the same sensitivity as that of the filesystem for the corresponding
209 dired buffer.
212 ** Emacs now uses double buffering to reduce flicker when editing and
213 resizing graphical Emacs frames on the X Window System.  This support
214 requires the DOUBLE-BUFFER extension, which major X servers have
215 supported for many years.  If your system has this extension, but an
216 Emacs built with double buffering misbehaves on some displays you use,
217 you can disable the feature by adding
219   '(inhibit-double-buffering . t)
221 to default-frame-alist.  Or inject this parameter into the selected
222 frame by evaluating this form:
224   (modify-frame-parameters nil '((inhibit-double-buffering . t)))
227 The group 'wp', whose label was "text", is now deprecated.
228 Use the new group 'text', which inherits from 'wp', instead.
231 ** The new function 'call-shell-region' executes a command in an
232 inferior shell with the buffer region as input.
235 ** The new user option 'shell-command-dont-erase-buffer' controls
236 if the output buffer is erased between shell commands; if non-nil,
237 the output buffer is not erased; this variable also controls where
238 to set the point in the output buffer: beginning of the output,
239 end of the buffer or save the point.
240 When 'shell-command-dont-erase-buffer' is nil, the default value,
241 the behavior of 'shell-command', 'shell-command-on-region' and
242 'async-shell-command' is as usual.
245 ** The new user option 'async-shell-command-display-buffer' controls
246 whether the output buffer of an asynchronous command is shown
247 immediately, or only when there is output.
250 ** The new user option 'mouse-select-region-move-to-beginning'
251 controls the position of point when double-clicking mouse-1 on the end
252 of a parenthetical grouping or string-delimiter: the default value nil
253 keeps point at the end of the region, setting it to non-nil moves
254 point to the beginning of the region.
257 ** The new user option 'mouse-drag-and-drop-region' allows to drag the
258 entire region of text to another place or another buffer.
261 ** The new user option 'confirm-kill-processes' allows the user to
262 skip a confirmation prompt for killing subprocesses when exiting
263 Emacs.  When set to t (the default), Emacs will prompt for
264 confirmation before killing subprocesses on exit, which is the same
265 behavior as before.
268 ** 'find-library-name' will now fall back on looking at 'load-history'
269 to try to locate libraries that have been loaded with an explicit path
270 outside 'load-path'.
273 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
274 in the text in functions like 'read-from-minibuffer', but instead are
275 added to the end of the face list.  This allows users to say things
276 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
279 ** The new variable 'extended-command-suggest-shorter' has been added
280 to control whether to suggest shorter 'M-x' commands or not.
283 ** icomplete now respects 'completion-ignored-extensions'.
286 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
287 face instead of the 'escape-glyph' face.
290 ** Approximations to quotes are now displayed with the new 'homoglyph'
291 face instead of the 'escape-glyph' face.
294 ** New face 'header-line-highlight'.
295 This face is the header-line analogue of 'mode-line-highlight'; it
296 should be the preferred mouse-face for mouse-sensitive elements in the
297 header line.
300 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
301 part of minibuffers.
304 ** 'fill-paragraph' no longer marks the buffer as changed unless it
305 actually changed something.
308 ** The locale language name 'ca' is now mapped to the language
309 environment 'Catalan', which has been added.
312 ** 'align-regexp' has a separate history for its interactive argument.
313 'align-regexp' no longer shares its history with all other
314 history-less functions that use 'read-string'.
317 ** The networking code has been reworked so that it's more
318 asynchronous than it was (when specifying :nowait t in
319 'make-network-process').  How asynchronous it is varies based on the
320 capabilities of the system, but on a typical GNU/Linux system the DNS
321 resolution, the connection, and (for TLS streams) the TLS negotiation
322 are all done without blocking the main Emacs thread.  To get
323 asynchronous TLS, the TLS boot parameters have to be passed in (see
324 the manual for details).
326 Certain process oriented functions (like 'process-datagram-address')
327 will block until socket setup has been performed.  The recommended way
328 to deal with asynchronous sockets is to avoid interacting with them
329 until they have changed status to "run".  This is most easily done
330 from a process sentinel.
333 ** 'make-network-process' and 'open-network-stream' sometimes allowed
334 :service to be an integer string (e.g., :service "993") and sometimes
335 required an integer (e.g., :service 993).  This difference has been
336 eliminated, and integer strings work everywhere.
339 ** It is possible to disable attempted recovery on fatal signals.
340 Two new variables support disabling attempts to recover from stack
341 overflow and to avoid automatic auto-save when Emacs is delivered a
342 fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
343 will disable attempts to recover from C stack overflows; Emacs will
344 then crash as with any other fatal signal.
345 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
346 disable attempts to auto-save the session and shut down in an orderly
347 fashion when Emacs receives a fatal signal; instead, Emacs will
348 terminate immediately.  Both variables are non-'nil' by default.
349 These variables are for users who would like to avoid the small
350 probability of data corruption due to techniques Emacs uses to recover
351 in these situations.
354 ** File local and directory local variables are now initialized each
355 time the major mode is set, not just when the file is first visited.
356 These local variables will thus not vanish on setting a major mode.
359 ** A second dir-local file (.dir-locals-2.el) is now accepted.
360 See the variable 'dir-locals-file-2' for more information.
363 ** Connection-local variables can be used to specify local variables
364 with a value depending on the connected remote server.  For details,
365 see the node "Connection Local Variables" in the ELisp manual.
368 ** International domain names (IDNA) are now encoded via the new
369 puny.el library, so that one can visit Web sites with non-ASCII URLs.
372 ** The new 'list-timers' command lists all active timers in a buffer,
373 where you can cancel them with the 'c' command.
376 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
379 ** The new variable 'debugger-stack-frame-as-list' allows displaying
380 all call stack frames in a Lisp backtrace buffer as lists.  Both
381 debug.el and edebug.el have been updated to heed to this variable.
384 ** Values in call stack frames are now displayed using 'cl-prin1'.
385 The old behaviour of using 'prin1' can be restored by customizing the
386 new option 'debugger-print-function'.
389 ** NUL bytes in text copied to the system clipboard are now replaced with "\0".
392 ** The new variable 'x-ctrl-keysym' has been added to the existing
393 roster of X keysyms.  It can be used in combination with another
394 variable of this kind to swap modifiers in Emacs.
397 ** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
400 ** The 'dutch' input method no longer attempts to support Turkish too.
401 Also, it no longer converts 'IJ' and 'ij' to the compatibility
402 characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
403 LIGATURE IJ.
406 ** File name quoting by adding the prefix "/:" is now possible for the
407 local part of a remote file name.  Thus, if you have a directory named
408 "/~" on the remote host "foo", you can prevent it from being
409 substituted by a home directory by writing it as "/foo:/:/~/file".
412 ** The new variable 'maximum-scroll-margin' allows having effective
413 settings of 'scroll-margin' up to half the window size, instead of
414 always restricting the margin to a quarter of the window.
417 ** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
418 You can enable this by customizing 'mwheel-tilt-scroll-p'.  If you
419 want to reverse the direction of the scroll, customize
420 'mwheel-flip-direction'.
423 ** Emacsclient has a new option -u/--suppress-output.
424 This option suppresses display of return values from the server
425 process.
428 ** Emacsclient has a new option -T/--tramp.
429 This helps with using a local Emacs session as the server for a remote
430 emacsclient.  With appropriate setup, one can now set the EDITOR
431 environment variable on a remote machine to emacsclient, and
432 use the local Emacs to edit remote files via Tramp.  See the node
433 "emacsclient Options" in the user manual for the details.
436 ** New user option 'dig-program-options' and extended functionality
437 for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
438 and 'run-dig'.  Each function now accepts an optional name server
439 argument interactively (with a prefix argument) and non-interactively.
442 ** 'describe-key-briefly' now ignores mouse movement events.
445 ** The new variable 'eval-expression-print-maximum-character' prevents
446 large integers from being displayed as characters by 'M-:' and similar
447 commands.
450 ** Two new commands for finding the source code of Emacs Lisp
451 libraries: 'find-library-other-window' and 'find-library-other-frame'.
454 ** The new variable 'display-raw-bytes-as-hex' allows to change the
455 display of raw bytes from octal to hex.
458 ** You can now provide explicit field numbers in format specifiers.
459 For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X".
462 ** Emacs now supports optional display of line numbers in the buffer.
463 This is similar to what linum-mode provides, but much faster and
464 doesn't usurp the display margin for the line numbers.  Customize the
465 buffer-local variable 'display-line-numbers' to activate this optional
466 display.  Alternatively, you can use the `display-line-numbers-mode'
467 minor mode or the global `global-display-line-numbers-mode'.  When
468 using these modes, customize `display-line-numbers-type' with the same
469 value as you would use with `display-line-numbers'.
471 Line numbers are not displayed at all in minibuffer windows and in
472 tooltips, as they are not useful there.
474 Lisp programs can disable line-number display for a particular screen
475 line by putting the 'display-line-numbers-disable' text property or
476 overlay property on the first character of that screen line.  This is
477 intended for add-on packages that need a finer control of the display.
479 Lisp programs that need to know how much screen estate is used up for
480 line-number display in a window can use the new function
481 'line-number-display-width'.
483 Linum mode and all similar packages are henceforth becoming obsolete.
484 Users and developers are encouraged to switch to this new feature
485 instead.
488 ** emacsclient now accepts command-line options in ALTERNATE_EDITOR
489 and --alternate-editor. For example, ALTERNATE_EDITOR="emacs -Q -nw".
490 Arguments may be quoted "like this", so that for example an absolute
491 path containing a space may be specified; quote escaping is not
492 supported.
494 ** The new user option 'arabic-shaper-ZWNJ-handling' controls how to
495 handle ZWNJ in Arabic text rendering.
498 * Editing Changes in Emacs 26.1
501 ** New variable 'column-number-indicator-zero-based'.
502 Traditionally, in Column Number mode, the displayed column number
503 counts from zero starting at the left margin of the window.  This
504 behavior is now controlled by 'column-number-indicator-zero-based'.
505 If you would prefer for the displayed column number to count from one,
506 you may set this variable to nil.  (Behind the scenes, there is now a
507 new mode line construct, '%C', which operates exactly as '%c' does
508 except that it counts from one.)
511 ** New single-line horizontal scrolling mode.
512 The 'auto-hscroll-mode' variable can now have a new special value,
513 'current-line', which causes only the line where the cursor is
514 displayed to be horizontally scrolled when lines are truncated on
515 display and point moves outside the left or right window margin.
518 ** New mode line constructs '%o' and '%q', and user option
519 'mode-line-percent-position'.  '%o' displays the "degree of travel" of
520 the window through the buffer.  Unlike the default '%p', this
521 percentage approaches 100% as the window approaches the end of the
522 buffer.  '%q' displays the percentage offsets of both the start and
523 the end of the window, e.g. "5-17%".  The new option
524 'mode-line-percent-position' makes it easier to switch between '%p',
525 '%P', and these new constructs.
528 ** Two new user options 'list-matching-lines-jump-to-current-line' and
529 'list-matching-lines-current-line-face' to show highlighted the current
530 line in *Occur* buffer.
533 ** The 'occur' command can now operate on the region.
536 ** New bindings for 'query-replace-map'.
537 'undo', undo the last replacement; bound to 'u'.
538 'undo-all', undo all replacements; bound to 'U'.
541 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
542 In modes where form feed was treated as a whitespace character,
543 'delete-trailing-whitespace' would keep lines containing it unchanged.
544 It now deletes whitespace after the last form feed thus behaving the
545 same as in modes where the character is not whitespace.
548 ** Emacs no longer prompts about editing a changed file when the file's
549 content is unchanged.  Instead of only checking the modification time,
550 Emacs now also checks the file's actual content before prompting the user.
553 ** Various casing improvements.
555 *** 'upcase', 'upcase-region' et al. convert title case characters
556 (such as Dz) into their upper case form (such as DZ).
558 *** 'capitalize', 'upcase-initials' et al. make use of title-case forms
559 of initial characters (correctly producing for example Džungla instead
560 of incorrect DŽungla).
562 *** Characters which turn into multiple ones when cased are correctly handled.
563 For example, fi ligature is converted to FI when upper cased.
565 *** Greek small sigma is correctly handled when at the end of the word.
566 Strings such as ΌΣΟΣ are now correctly converted to Όσος when
567 capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
568 end of the word).
571 ** Emacs can now auto-save buffers to visited files in a more robust
572 manner via the new mode 'auto-save-visited-mode'.  Unlike
573 'auto-save-visited-file-name', this mode uses the normal saving
574 procedure and therefore obeys saving hooks.
575 'auto-save-visited-file-name' is now obsolete.
578 ** New behavior of 'mark-defun'.
579 Prefix argument selects that many (or that many more) defuns.
580 Negative prefix arg flips the direction of selection.  Also,
581 'mark-defun' between defuns correctly selects N following defuns (or
582 -N previous for negative arguments).  Finally, comments preceding the
583 defun are selected unless they are separated from the defun by a blank
584 line.
586 ** New command 'replace-buffer-contents'.
587 This command replaces the contents of the accessible portion of the
588 current buffer with the contents of the accessible portion of a
589 different buffer while keeping point, mark, markers, and text
590 properties as intact as possible.
593 ** New commands 'apropos-local-variable' and 'apropos-local-value.
594 These are buffer-local versions of 'apropos-variable' and
595 'apropos-value', respectively.  They show buffer-local variables whose
596 names and values, respectively, match a given pattern.
599 ** More user control of reordering bidirectional text for display.
600 The two new variables, 'bidi-paragraph-start-re' and
601 'bidi-paragraph-separate-re', allow customization of what exactly are
602 paragraphs, for the purposes of bidirectional display.
605 ** New variable 'x-wait-for-event-timeout'.
606 This controls how long Emacs will wait for updates to the graphical
607 state to take effect (making a frame visible, for example).
610 * Changes in Specialized Modes and Packages in Emacs 26.1
613 ** New function `cl-generic-p'.
615 ** Dired
618 *** You can answer 'all' in 'dired-do-delete' to delete recursively all
619 remaining directories without more prompts.
622 *** Dired supports wildcards in the directory part of the file names.
625 *** You can now use '`?`' in 'dired-do-shell-command'.
626 It gets replaced by the current file name, like ' ? '.
629 *** A new option 'dired-always-read-filesystem' default to nil.
630 If non-nil, buffers visiting files are reverted before search them;
631 for instance, in 'dired-mark-files-containing-regexp' a non-nil value
632 of this option means the file is revisited in a temporary buffer;
633 this temporary buffer is the actual buffer searched: the original buffer
634 visiting the file is not modified.
637 *** Users can now customize mouse clicks in Dired in a more flexible way.
638 The new command 'dired-mouse-find-file' can be bound to a mouse click
639 and used to visit files/directories in Dired in the selected window.
640 The new command 'dired-mouse-find-file-other-frame' similarly visits
641 files/directories in another frame.  You can write your own commands
642 that invoke 'dired-mouse-find-file' with non-default optional
643 arguments, to tailor the effects of mouse clicks on file names in
644 Dired buffers.
647 *** In wdired, when editing files to contain slash characters,
648 the resulting directories are automatically created.  Whether to do
649 this is controlled by the 'wdired-create-parent-directories' variable.
652 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
653 viewing HTML files and the like.
656 *** New variable 'dired-clean-confirm-killing-deleted-buffers'
657 controls whether Dired asks to kill buffers visiting deleted files and
658 directories.  The default is t, so Dired asks for confirmation, to
659 keep previous behavior.
662 ** html2text is now marked obsolete.
665 ** smerge-refine-regions can refine regions in separate buffers
668 ** Info menu and index completion uses substring completion by default.
669 This can be customized via the info-menu category in
670 completion-category-override.
673 ** The ancestor buffer is shown by default in 3-way merges.
674 A new option ediff-show-ancestor and a new toggle
675 ediff-toggle-show-ancestor.
678 ** TeX: Add luatex and xetex as alternatives to pdftex
680 ** Electric-Buffer-menu
683 *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
684 bound to 'Buffer-menu-unmark-all-buffers'.
686 ** bs
689 *** Two new commands 'bs-unmark-all', bound to 'U', and
690 'bs-unmark-previous', bound to <backspace>.
692 ** Buffer-menu
695 *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
696 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
699 ** Checkdoc
701 *** 'checkdoc-arguments-in-order-flag' now defaults to nil.
703 ** Gnus
706 *** The .newsrc file will now only be saved if the native select
707 method is an NNTP select method.
710 *** A new command for sorting articles by readedness marks has been
711 added: 'C-c C-s C-m C-m'.
715 *** In message-citation-line-format the %Z format is now the time zone name
716 instead of the numeric form.  The %z format continues to be the
717 numeric form.  The new behavior is compatible with format-time-string.
719 ** Ibuffer
722 *** New command 'ibuffer-jump'.
725 *** New filter commands 'ibuffer-filter-by-basename',
726 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
727 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
728 and 'ibuffer-filter-by-visiting-file'; bound respectively
729 to '/b', '/.', '//', '/*', '/i' and '/v'.
732 *** Two new commands 'ibuffer-filter-chosen-by-completion'
733 and 'ibuffer-and-filter', the second bound to '/&'.
736 *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
737 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
738 bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
741 *** The data format specifying filters has been extended to allow
742 explicit logical 'and', and a more flexible form for logical 'not'.
743 See 'ibuffer-filtering-qualifiers' doc string for full details.
746 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
747 to 'B'.
750 *** New command 'ibuffer-change-marks'; bound to '* c'.
753 *** A new command 'ibuffer-mark-by-locked' to mark
754 all locked buffers;  bound to '% L'.
757 *** A new option 'ibuffer-locked-char' to indicate
758 locked buffers; Ibuffer shows a new column displaying
759 'ibuffer-locked-char' for locked buffers.
762 *** A new command 'ibuffer-unmark-all-marks' to unmark
763 all buffers without asking confirmation;  bound to
764 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
767 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
768 whose content matches a regexp; bound to '% g'.
771 *** Two new options 'ibuffer-never-search-content-name' and
772 'ibuffer-never-search-content-mode' used by
773 'ibuffer-mark-by-content-regexp'.
775 ** Browse-URL
778 *** Support for opening links to man pages in Man or WoMan mode.
780 ** Comint
783 *** New user option 'comint-move-point-for-matching-input' to control
784 where to place point after C-c M-r and C-c M-s.
786 ** Compilation mode
789 *** Messages from CMake are now recognized.
792 *** The number of errors, warnings, and informational messages is now
793 displayed in the mode line.  These are updated as compilation
794 proceeds.
796 ** Grep
799 *** Grep commands will now use GNU grep's '--null' option if
800 available, which allows distinguishing the filename from contents if
801 they contain colons.  This can be controlled by the new custom option
802 'grep-use-null-filename-separator'.
805 *** The grep/rgrep/lgrep functions will now ask about saving files
806 before running.  This is controlled by the 'grep-save-buffers'
807 variable.
809 ** Edebug
812 *** Edebug can be prevented from pausing 1 second after reaching a
813 breakpoint (e.g. with "f" and "o") by customizing the new option
814 'edebug-sit-on-break'.
817 *** New customizable option 'edebug-max-depth'
818 This allows to enlarge the maximum recursion depth when instrumenting
819 code.
821 ** Eshell
824 *** 'eshell-input-filter's value is now a named function
825 'eshell-input-filter-default', and has a new custom option
826 'eshell-input-filter-initial-space' to ignore adding commands prefixed
827 with blank space to eshell history.
829 ** eww
832 *** New 'M-RET' command for opening a link at point in a new eww buffer.
835 *** A new 's' command for switching to another eww buffer via the minibuffer.
838 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
839 with the 'o' command from 'image-map'.
842 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
843 whether to use the HTML-specified colors or not.  The user can also
844 customize the 'shr-use-colors' variable.
847 *** Images that are being loaded are now marked with gray
848 "placeholder" images of the size specified by the HTML.  They are then
849 replaced by the real images asynchronously, which will also now
850 respect width/height HTML specs (unless they specify widths/heights
851 bigger than the current window).
854 *** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
855 'shr-copy-url' now only copies the url at point; users who wish to
856 avoid accidentally accessing remote links may rebind 'w' and 'u' in
857 'eww-link-keymap' to it.
860 ** Ido
863 *** The commands 'find-alternate-file-other-window',
864 'dired-other-window', 'dired-other-frame', and
865 'display-buffer-other-window' are now remapped to Ido equivalents if
866 Ido mode is active.
868 ** Images
871 *** Images are automatically scaled before displaying based on the
872 'image-scaling-factor' variable (if Emacs supports scaling the images
873 in question).
876 *** It's now possible to specify aspect-ratio preserving combinations
877 of :width/:max-height and :height/:max-width keywords.  In either
878 case, the "max" keywords win.  (Previously some combinations would,
879 depending on the aspect ratio of the image, just be ignored and in
880 other instances this would lead to the aspect ratio not being
881 preserved.)
884 *** Images inserted with 'insert-image' and related functions get a
885 keymap put into the text properties (or overlays) that span the
886 image.  This keymap binds keystrokes for manipulating size and
887 rotation, as well as saving the image to a file.  These commands are
888 also available in 'image-mode'.
891 *** A new library for creating and manipulating SVG images has been
892 added.  See the "SVG Images" section in the Lisp reference manual for
893 details.
896 *** New setf-able function to access and set image parameters is
897 provided: 'image-property'.
900 *** New commands 'image-scroll-left' and 'image-scroll-right'
901 for 'image-mode' that complement 'image-scroll-up' and
902 'image-scroll-down': they have the same prefix arg behavior and stop
903 at image boundaries.
905 ** Image-Dired
908 *** Now provides a minor mode 'image-dired-minor-mode' which replaces
909 the function 'image-dired-setup-dired-keybindings'.
912 *** Thumbnail generation is now asynchronous.
913 The number of concurrent processes is limited by the variable
914 'image-dired-thumb-job-limit'.
917 *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
918 for generating 256x256 thumbnails according to the Thumbnail Managing
919 Standard.
922 *** Inherits movement keys from 'image-mode' for viewing full images.
923 This includes the usual char, line, and page movement commands.
926 *** All the -options types have been changed to argument lists
927 instead of shell command strings.  This change affects
928 'image-dired-cmd-create-thumbnail-options',
929 'image-dired-cmd-create-temp-image-options',
930 'image-dired-cmd-rotate-thumbnail-options',
931 'image-dired-cmd-rotate-original-options',
932 'image-dired-cmd-write-exif-data-options',
933 'image-dired-cmd-read-exif-data-options', and introduces
934 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
935 'image-dired-cmd-create-standard-thumbnail-options'
938 *** Recognizes more tools by default, including pngnq-s9 and OptiPNG
941 *** 'find-file' and related commands now work on thumbnails and
942 displayed images, providing a default argument of the original file name
943 via an addition to 'file-name-at-point-functions'.
946 ** The default 'Info-default-directory-list' no longer checks some obsolete
947 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
948 when searching for info directories.
951 ** The commands that add ChangeLog entries now prefer a VCS root directory
952 for the ChangeLog file, if none already exists.  Customize
953 'change-log-directory-files' to nil for the old behavior.
956 ** Support for non-string values of 'time-stamp-format' has been removed.
958 ** Message
961 *** 'message-use-idna' now defaults to t (because Emacs comes with
962 built-in IDNA support now).
965 *** When sending HTML messages with embedded images, and you have
966 exiftool installed, and you rotate images with EXIF data (i.e.,
967 JPEGs), the rotational information will be inserted into the outgoing
968 image in the message.  (The original image will not have its
969 orientation affected.)
972 *** The 'message-valid-fqdn-regexp' variable has been removed, since
973 there are now top-level domains added all the time.  Message will no
974 longer warn about sending emails to top-level domains it hasn't heard
975 about.
977 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
978 In 'visual-line-mode' it will look for the true beginning of a header
979 while in non-'visual-line-mode' it will move the point to the indented
980 header's value.
982 ** Package
985 *** The new variable 'package-gnupghome-dir' has been added to control
986 where the GnuPG home directory (used for signature verification) is
987 located and whether GnuPG's option "--homedir" is used or not.
990 *** Deleting a package no longer respects 'delete-by-moving-to-trash'.
992 ** Tramp
995 *** The method part of remote file names is mandatory now.
996 A valid remote file name starts with "/method:host:" or
997 "/method:user@host:".
1000 *** The new pseudo method "-" is a marker for the default method.
1001 "/-::" is the shortest remote file name then.
1004 *** The command 'tramp-change-syntax' allows to choose an alternative
1005 remote file name syntax.
1008 *** New connection method "sg", which supports editing files under a
1009 different group ID.
1012 *** New connection method "doas" for OpenBSD hosts.
1015 *** New connection method "gdrive", which allows to access Google
1016 Drive onsite repositories.
1019 *** Gateway methods in Tramp have been removed.
1020 Instead, the Tramp manual documents how to configure ssh and PuTTY
1021 accordingly.
1024 *** Setting the "ENV" environment variable in
1025 'tramp-remote-process-environment' enables reading of shell
1026 initialization files.
1029 *** Tramp is able now to send SIGINT to remote asynchronous processes.
1032 *** Variable 'tramp-completion-mode' is obsoleted.
1035 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
1037 ** JS mode
1040 *** JS mode now sets 'comment-multi-line' to t.
1043 *** New variable 'js-indent-align-list-continuation', when set to nil,
1044 will not align continuations of bracketed lists, but will indent them
1045 by the fixed width 'js-indent-level'.
1047 ** CSS mode
1050 *** Support for completing attribute values, at-rules, bang-rules,
1051 HTML tags, classes and IDs using the 'completion-at-point' command.
1052 Completion candidates for HTML classes and IDs are retrieved from open
1053 HTML mode buffers.
1056 *** CSS mode now binds 'C-h S' to a function that will show
1057 information about a CSS construct (an at-rule, property, pseudo-class,
1058 pseudo-element, with the default being guessed from context).  By
1059 default the information is looked up on the Mozilla Developer Network,
1060 but this can be customized using 'css-lookup-url-format'.
1063 *** CSS colors are fontified using the color they represent as the
1064 background.  For instance, #ff0000 would be fontified with a red
1065 background.
1068 ** Emacs now supports character name escape sequences in character and
1069 string literals.  The syntax variants \N{character name} and
1070 \N{U+code} are supported.
1073 ** Prog mode has some support for multi-mode indentation.
1074 This allows better indentation support in modes that support multiple
1075 programming languages in the same buffer, like literate programming
1076 environments or ANTLR programs with embedded Python code.
1078 A major mode can provide indentation context for a sub-mode through
1079 the 'prog-indentation-context' variable.  To support this, modes that
1080 provide indentation should use 'prog-widen' instead of 'widen' and
1081 'prog-first-column' instead of a literal zero.  See the node
1082 "Mode-Specific Indent" in the ELisp manual for more details.
1084 ** ERC
1087 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
1088 servers.
1090 ** URL
1093 *** The new function 'url-cookie-delete-cookie' can be used to
1094 programmatically delete all cookies, or cookies from a specific
1095 domain.
1098 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
1101 *** The URL package now support HTTPS over proxies supporting CONNECT.
1104 *** 'url-user-agent' now defaults to 'default', and the User-Agent
1105 string is computed dynamically based on 'url-privacy-level'.
1107 ** VC and related modes
1110 *** The VC state indicator in the mode line now defaults to more
1111 colorful faces to make it more obvious to the user what the state is.
1112 See the 'vc-faces' customization group.
1115 *** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
1116 branch-related commands on a keymap bound to 'B'.
1119 *** 'vc-region-history' is now bound to 'C-x v h', replacing the older
1120 'vc-insert-headers' binding.
1122 ** CC mode
1125 *** Opening a .h file will turn C or C++ mode depending on language used.
1126 This is done with the help of 'c-or-c++-mode' function which analyses
1127 contents of the buffer to determine whether it's a C or C++ source
1128 file.
1131 ** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
1132 to a format suitable for reverse lookup zone files.
1134 ** Ispell
1137 *** Enchant is now supported as a spell-checker.
1139 Enchant is a meta-spell-checker that uses providers
1140 such as Hunspell to do the actual checking.  With it, users can use
1141 spell-checkers not directly supported by Emacs, such as Voikko, Hspell
1142 and AppleSpell, more easily share personal word-lists with other
1143 programs, and configure different spelling-checkers for different
1144 languages.  (Version 2.1.0 or later of Enchant is required.)
1146 ** Flymake
1149 *** Emacs no longer prompts the user before killing Flymake processes on exit.
1152 * New Modes and Packages in Emacs 26.1
1154 ** New Elisp data-structure library 'radix-tree'.
1156 ** New library 'xdg' with utilities for some XDG standards and specs.
1158 ** HTML
1161 *** A new submode of 'html-mode', 'mhtml-mode', is now the default
1162 mode for *.html files.  This mode handles indentation,
1163 fontification, and commenting for embedded JavaScript and CSS.
1165 ** New mode 'conf-toml-mode' is a sub-mode of conf-mode, specialized
1166    for editing TOML files.
1168 ** New mode 'conf-desktop-mode' is a sub-mode of conf-unix-mode,
1169 specialized for editing freedesktop.org desktop entries.
1171 ** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.
1173 ** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
1174 editing Less files.
1177 * Incompatible Lisp Changes in Emacs 26.1
1180 *** password-data is now a hash-table
1181 so that `password-read' can use any object for the `key' argument.
1184 *** Command 'dired-mark-extension' now automatically prepends a '.' to the
1185 extension when not present.  The new command 'dired-mark-suffix' behaves
1186 similarly but it doesn't prepend a '.'.
1189 ** Certain cond/pcase/cl-case forms are now compiled using a faster jump
1190 table implementation.  This uses a new bytecode op 'switch', which
1191 isn't compatible with previous Emacs versions.  This functionality can
1192 be disabled by setting 'byte-compile-cond-use-jump-table' to nil.
1195 ** The alist 'ucs-names' is now a hash table.
1198 ** 'if-let' and 'when-let' are subsumed by 'if-let*' and 'when-let*'.
1199 The incumbent 'if-let' and 'when-let' are now marked obsolete.
1200 'if-let*' and 'when-let*' do not accept the single tuple special case.
1201 New macro 'and-let*' is an implementation of the Scheme SRFI-2 syntax
1202 of the same name.  'if-let*' and 'when-let*' now accept the same
1203 binding syntax as 'and-let*'.
1206 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
1207 mode to send the same escape sequences that xterm does.  This makes
1208 things like forward-word in readline work.
1211 ** hideshow mode got four key bindings that are analogous to outline
1212 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
1215 ** Customizable variable 'query-replace-from-to-separator'
1216 now doesn't propertize the string value of the separator.
1217 Instead, text properties are added by query-replace-read-from.
1218 Additionally, the new nil value restores pre-24.5 behavior
1219 of not providing replacement pairs via the history.
1222 ** Some obsolete functions, variables, and faces have been removed:
1223 *** make-variable-frame-local.  Variables cannot be frame-local any more.
1224 *** From subr.el: window-dot, set-window-dot, read-input, show-buffer,
1225 eval-current-buffer, string-to-int
1226 *** icomplete-prospects-length.
1227 *** All the default-FOO variables that hold the default value of the
1228 FOO variable.  Use 'default-value' and 'setq-default' to access and
1229 change FOO, respectively.  The exhaustive list of removed variables is:
1230 'default-mode-line-format', 'default-header-line-format',
1231 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
1232 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
1233 'default-case-fold-search', 'default-left-margin-width',
1234 'default-right-margin-width', 'default-left-fringe-width',
1235 'default-right-fringe-width', 'default-fringes-outside-margins',
1236 'default-scroll-bar-width', 'default-vertical-scroll-bar',
1237 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
1238 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
1239 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
1240 'default-fill-column', 'default-cursor-type',
1241 'default-cursor-in-non-selected-windows',
1242 'default-buffer-file-coding-system', 'default-major-mode', and
1243 'default-enable-multibyte-characters'.
1244 *** Many variables obsoleted in 22.1 referring to face symbols
1247 ** The variable 'text-quoting-style' is now a customizable option.  It
1248 controls whether to and how to translate ASCII quotes in messages and
1249 help output.  Its possible values and their semantics remain unchanged
1250 from Emacs 25.  In particular, when this variable's value is 'grave',
1251 all quotes in formats are output as-is.
1254 ** Functions like 'check-declare-file' and 'check-declare-directory'
1255 now generate less chatter and more-compact diagnostics.  The auxiliary
1256 function 'check-declare-errmsg' has been removed.
1259 ** The regular expression character class [:blank:] now matches
1260 Unicode horizontal whitespace as defined in the Unicode Technical
1261 Standard #18.  If you only want to match space and tab, use [ \t]
1262 instead.
1265 ** 'min' and 'max' no longer round their results.
1266 Formerly, they returned a floating-point value if any argument was
1267 floating-point, which was sometimes numerically incorrect.  For
1268 example, on a 64-bit host (max 1e16 10000000000000001) now returns its
1269 second argument instead of its first.
1272 ** The variable 'old-style-backquotes' has been made internal and
1273 renamed to 'lread--old-style-backquotes'.  No user code should use
1274 this variable.
1277 ** To avoid confusion caused by "smart quotes", the reader no longer
1278 accepts Lisp symbols which begin with the following quotation
1279 characters: ‘’‛“”‟〞"', unless they are escaped with backslash.
1282 ** 'default-file-name-coding-system' now defaults to a coding system
1283 that does not process CRLF.  For example, it defaults to utf-8-unix
1284 instead of to utf-8.  Before this change, Emacs would sometimes
1285 mishandle file names containing these control characters.
1288 ** 'file-attributes', 'file-symlink-p' and 'make-symbolic-link' no
1289 longer quietly mutate the target of a local symbolic link, so that
1290 Emacs can access and copy them reliably regardless of their contents.
1291 The following changes are involved.
1294 *** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
1295 symbolic links whose targets begin with "/" and contain ":".  For
1296 example, if a symbolic link "x" has a target "/y:z:", '(file-symlink-p
1297 "x")' now returns "/y:z:" rather than "/:/y:z:".
1300 *** 'make-symbolic-link' no longer looks for file name handlers of
1301 target when creating a symbolic link.  For example,
1302 '(make-symbolic-link "/y:z:" "x")' now creates a symbolic link to
1303 "/y:z:" instead of failing.
1306 *** 'make-symbolic-link' removes the remote part of a link target if
1307 target and newname have the same remote part.  For example,
1308 '(make-symbolic-link "/x:y:a" "/x:y:b")' creates a link with the
1309 literal string "a"; and '(make-symbolic-link "/x:y:a" "/x:z:b")'
1310 creates a link with the literal string "/x:y:a" instead of failing.
1313 *** 'make-symbolic-link' now expands a link target with leading "~"
1314 only when the optional third arg is an integer, as when invoked
1315 interactively.  For example, '(make-symbolic-link "~y" "x")' now
1316 creates a link with target the literal string "~y"; to get the old
1317 behavior, use '(make-symbolic-link (expand-file-name "~y") "x")'.  To
1318 avoid this expansion in interactive use, you can now prefix the link
1319 target with "/:".  For example, '(make-symbolic-link "/:~y" "x" 1)'
1320 now creates a link to literal "~y".
1323 ** 'file-truename' returns a quoted file name if the target of a
1324 symbolic link has remote file name syntax.
1327 ** Module functions are now implemented slightly differently; in
1328 particular, the function 'internal--module-call' has been removed.
1329 Code that depends on undocumented internals of the module system might
1330 break.
1333 ** The argument LOCKNAME of 'write-region' is propagated to file name
1334 handlers now.
1337 ** When built against recent versions of GTK+, Emacs always uses
1338 gtk_window_move for moving frames and ignores the value of the
1339 variable 'x-gtk-use-window-move'.  The variable is now obsolete.
1342 ** Several functions that create or rename files now treat their
1343 destination argument specially only when it is a directory name, i.e.,
1344 when it ends in '/' on GNU and other POSIX-like systems.  When the
1345 destination argument D of one of these functions is an existing
1346 directory and the intent is to act on an entry in that directory, D
1347 should now be a directory name.  For example, (rename-file "e" "f/")
1348 renames to 'f/e'.  Although this formerly happened sometimes even when
1349 D was not a directory name, as in (rename-file "e" "f") where 'f'
1350 happened to be a directory, the old behavior often contradicted the
1351 documentation and had inherent races that led to security holes.  A
1352 call like (rename-file C D) that used the old, undocumented behavior
1353 can be written as (rename-file C (file-name-as-directory D)), a
1354 formulation portable to both older and newer versions of Emacs.
1355 Affected functions include add-name-to-file, copy-directory,
1356 copy-file, format-write-file, gnus-copy-file, make-symbolic-link,
1357 rename-file, thumbs-rename-images, and write-file.
1360 ** The list returned by 'overlays-at' is now in decreasing priority order.
1361 The documentation of this function always said the order should be
1362 that of decreasing priority, if the 2nd argument of the function is
1363 non-nil, but the code returned the list in the increasing order of
1364 priority instead.  Now the code does what the documentation says it
1365 should do.
1368 ** 'format' now avoids allocating a new string in more cases.
1369 'format' was previously documented to return a newly-allocated string,
1370 but this documentation was not correct, as (eq x (format x)) returned
1371 t when x was the empty string.  'format' is no longer documented to
1372 return a newly-allocated string, and the implementation now takes
1373 advantage of the doc change to avoid making copies of strings in
1374 common cases like (format "foo") and (format "%s" "foo").
1377 ** The function 'eldoc-message' now accepts a single argument.
1378 Programs that called it with multiple arguments before should pass
1379 them through 'format' first.  Even that is discouraged: for ElDoc
1380 support, you should set 'eldoc-documentation-function' instead of
1381 calling 'eldoc-message' directly.
1383 * Lisp Changes in Emacs 26.1
1386 ** The function 'assoc' now takes an optional third argument TESTFN.
1387 This argument, when non-nil, is used for comparison instead of
1388 'equal'.
1391 ** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'.
1392 If non-nil, the argument specifies a function to use for comparison,
1393 instead of, respectively, 'assq' and 'eql'.
1396 ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2
1397 contain the same elements, regardless of the order.
1400 ** The new function 'mapbacktrace' applies a function to all frames of
1401 the current stack trace.
1404 ** The new function 'file-name-case-insensitive-p' tests whether a
1405 given file is on a case-insensitive filesystem.
1408 ** Several accessors for the value returned by 'file-attributes'
1409 have been added.  They are: 'file-attribute-type',
1410 'file-attribute-link-number', 'file-attribute-user-id',
1411 'file-attribute-group-id', 'file-attribute-access-time',
1412 'file-attribute-modification-time',
1413 'file-attribute-status-change-time', 'file-attribute-size',
1414 'file-attribute-modes', 'file-attribute-inode-number',
1415 'file-attribute-device-number' and 'file-attribute-collect'.
1418 ** The new function 'buffer-hash' computes a fast, non-consing hash of
1419 a buffer's contents.
1422 ** 'interrupt-process' now consults the list 'interrupt-process-functions',
1423 to determine which function has to be called in order to deliver the
1424 SIGINT signal.  This allows Tramp to send the SIGINT signal to remote
1425 asynchronous processes.  The hitherto existing implementation has been
1426 moved to 'internal-default-interrupt-process'.
1429 ** The new function 'read-multiple-choice' prompts for multiple-choice
1430 questions, with a handy way to display help texts.
1433 ** 'comment-indent-function' values may now return a cons to specify a
1434 range of indentation.
1437 ** New optional argument TEXT in 'make-temp-file'.
1440 ** New function `define-symbol-prop'.
1442 ** Checksum/Hash
1445 ** New function 'secure-hash-algorithms' to list the algorithms that
1446 'secure-hash' supports.
1447 See the node "(elisp) Checksum/Hash" in the ELisp manual for details.
1450 ** Emacs now exposes the GnuTLS cryptographic API with the functions
1451 'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and
1452 'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt'
1453 and 'gnutls-symmetric-decrypt'.
1454 See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details.
1457 ** Emacs now supports records for user-defined types, via the new
1458 functions 'make-record', 'record', and 'recordp'.  Records are now
1459 used internally to represent cl-defstruct and defclass instances, for
1460 example.
1463 ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
1464 to decide which buffers to ask about, if the PRED argument is nil.
1465 The default value of 'save-some-buffers-default-predicate' is nil,
1466 which means ask about all file-visiting buffers.
1469 ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
1472 ** New variable 'while-no-input-ignore-events' which allow
1473 setting which special events 'while-no-input' should ignore.
1474 It is a list of symbols.
1477 ** New function 'undo-amalgamate-change-group' to get rid of
1478 undo-boundaries between two states.
1481 ** New var 'definition-prefixes' is a hash table mapping prefixes to
1482 the files where corresponding definitions can be found.  This can be
1483 used to fetch definitions that are not yet loaded, for example for
1484 'C-h f'.
1487 ** New var 'syntax-ppss-table' to control the syntax-table used in
1488 'syntax-ppss'.
1491 ** 'define-derived-mode' can now specify an :after-hook form, which
1492 gets evaluated after the new mode's hook has run.  This can be used to
1493 incorporate configuration changes made in the mode hook into the
1494 mode's setup.
1497 ** Autoload files can be generated without timestamps,
1498 by setting 'autoload-timestamps' to nil.
1499 FIXME As an experiment, nil is the current default.
1500 If no insurmountable problems before next release, it can stay that way.
1503 ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
1504 says that negotiation should complete even on non-blocking sockets.
1507 ** There is now a new variable 'flyspell-sort-corrections-function'
1508 that allows changing the way corrections are sorted.
1511 ** The new command 'fortune-message' has been added, which displays
1512 fortunes in the echo area.
1515 ** New function 'func-arity' returns information about the argument list
1516 of an arbitrary function.  This generalizes 'subr-arity' for functions
1517 that are not built-in primitives.  We recommend using this new
1518 function instead of 'subr-arity'.
1521 ** New function 'region-bounds' can be used in the interactive spec
1522 to provide region boundaries (for rectangular regions more than one)
1523 to an interactively callable function as a single argument instead of
1524 two separate arguments region-beginning and region-end.
1527 ** 'parse-partial-sexp' state has a new element.  Element 10 is
1528 non-nil when the last character scanned might be the first character
1529 of a two character construct, i.e., a comment delimiter or escaped
1530 character.  Its value is the syntax of that last character.
1533 ** 'parse-partial-sexp's state, element 9, has now been confirmed as
1534 permanent and documented, and may be used by Lisp programs.  Its value
1535 is a list of currently open parenthesis positions, starting with the
1536 outermost parenthesis.
1539 ** 'read-color' will now display the color names using the color itself
1540 as the background color.
1543 ** The function 'redirect-debugging-output' now works on platforms
1544 other than GNU/Linux.
1547 ** The new function 'string-version-lessp' compares strings by
1548 interpreting consecutive runs of numerical characters as numbers, and
1549 compares their numerical values.  According to this predicate,
1550 "foo2.png" is smaller than "foo12.png".
1553 ** Numeric comparisons and 'logb' no longer return incorrect answers
1554 due to internal rounding errors.  For example, (< most-positive-fixnum
1555 (+ 1.0 most-positive-fixnum)) now correctly returns t on 64-bit hosts.
1558 ** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
1559 accept only floating-point arguments, as per their documentation.
1560 Formerly, they quietly accepted integer arguments and sometimes
1561 returned nonsensical answers, e.g., (< N (ffloor N)) could return t.
1564 ** On hosts like GNU/Linux x86-64 where a 'long double' fraction
1565 contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
1566 incorrect answers due to internal rounding errors when formatting
1567 Emacs integers with %e, %f, or %g conversions.  For example, on these
1568 hosts (eql N (string-to-number (format "%.0f" N))) now returns t for
1569 all Emacs integers N.
1572 ** Calls that accept floating-point integers (for use on hosts with
1573 limited integer range) now signal an error if arguments are not
1574 integral.  For example (decode-char 'ascii 0.5) now signals an error.
1577 ** The new function 'char-from-name' converts a Unicode name string
1578 to the corresponding character code.
1581 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
1582 Lisp object suitable for use with 'eq' and 'eql' correspondingly.  If
1583 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
1584 ('sxhash-eql') on them will be the same.
1587 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
1588 consistency with the new functions.  For compatibility, 'sxhash'
1589 remains as an alias to 'sxhash-equal'.
1592 ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
1593 instead of 0.8, to avoid rounding glitches.
1596 ** New function 'add-variable-watcher' can be used to call a function
1597 when a symbol's value is changed.  This is used to implement the new
1598 debugger command 'debug-on-variable-change'.
1601 ** Time conversion functions that accept a time zone rule argument now
1602 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
1603 OFFSET is a count of seconds east of Universal Time, and the string
1604 ABBR is a time zone abbreviation.  The affected functions are
1605 'current-time-string', 'current-time-zone', 'decode-time',
1606 'format-time-string', and 'set-time-zone-rule'.
1609 ** 'format-time-string' now formats "%q" to the calendar quarter.
1612 ** New built-in function 'mapcan'.
1613 It avoids unnecessary consing (and garbage collection).
1616 ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
1619 ** 'gensym' is now part of Elisp.
1622 ** Low-level list functions like 'length' and 'member' now do a better
1623 job of signaling list cycles instead of looping indefinitely.
1626 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
1627 can be used for creation of temporary files of remote or mounted directories.
1630 ** On GNU platforms when operating on a local file, 'file-attributes'
1631 no longer suffers from a race when called while another process is
1632 altering the filesystem.  On non-GNU platforms 'file-attributes'
1633 attempts to detect the race, and returns nil if it does so.
1636 ** The new function 'file-local-name' can be used to specify arguments
1637 of remote processes.
1640 ** The new functions 'file-name-quote', 'file-name-unquote' and
1641 'file-name-quoted-p' can be used to quote / unquote file names with
1642 the prefix "/:".
1645 ** The new error 'file-missing', a subcategory of 'file-error', is now
1646 signaled instead of 'file-error' if a file operation acts on a file
1647 that does not exist.
1650 ** The function 'delete-directory' no longer signals an error when
1651 operating recursively and when some other process deletes the directory
1652 or its files before 'delete-directory' gets to them.
1655 *** New error type 'user-search-failed' like 'search-failed' but
1656 avoids debugger like 'user-error'.
1659 ** The function 'line-number-at-pos' now takes a second optional
1660 argument 'absolute'.  If this parameter is nil, the default, this
1661 function keeps on returning the line number taking potential narrowing
1662 into account.  If this parameter is non-nil, the function ignores
1663 narrowing and returns the absolute line number.
1666 ** The function 'color-distance' now takes a second optional argument
1667 'metric'.  When non-nil, it should be a function of two arguments that
1668 accepts two colors and returns a number.
1670 ** Changes in Frame and Window Handling
1673 *** Resizing a frame no longer runs 'window-configuration-change-hook'.
1674 'window-size-change-functions' should be used instead.
1677 *** The new function 'frame-size-changed-p' can tell whether a frame has
1678 been resized since the last time 'window-size-change-functions' has been
1679 run.
1682 *** The function 'frame-geometry' now also returns the width of a
1683 frame's outer border.
1686 *** New frame parameters and changed semantics for older ones
1689 **** 'z-group' positions a frame above or below all others.
1692 **** 'min-width' and 'min-height' specify the absolute minimum size of a
1693 frame.
1696 **** 'parent-frame' makes a frame the child frame of another Emacs
1697 frame.  The section "Child Frames" in the Elisp manual describes the
1698 intrinsics of that relationship.
1701 **** 'delete-before' triggers deletion of one frame before that of
1702 another.
1705 **** 'mouse-wheel-frame' specifies another frame whose windows shall be
1706 scrolled instead.
1709 **** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
1710 frame.
1713 **** 'skip-taskbar' removes a frame's icon from the taskbar and has
1714 Alt-<TAB> skip this frame.
1717 **** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
1720 **** 'no-accept-focus' means that a frame does not want to get input
1721 focus via the mouse.
1724 **** 'undecorated' removes the window manager decorations from a frame.
1727 **** 'override-redirect' tells the window manager to disregard this
1728 frame.
1731 **** 'width' and 'height' allow to specify pixel values and ratios now.
1734 **** 'left' and 'top' allow to specify ratios now.
1737 **** 'keep-ratio' preserves size and position of child frames when their
1738 parent frame is resized.
1741 **** 'no-special-glyphs' suppresses display of truncation and
1742 continuation glyphs in a frame.
1745 **** 'auto-hide-function' and 'minibuffer-exit' handle auto hiding of
1746 frames and exiting from minibuffer individually.
1749 **** 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes'
1750 handle fitting a frame to its buffer individually.
1753 **** 'drag-internal-border', 'drag-with-header-line',
1754 'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible'
1755 allow to drag and resize frames with the mouse.
1757 *** The new function 'frame-list-z-order' returns a list of all frames
1758 in Z (stacking) order.
1761 *** The function 'x-focus-frame' optionally tries to not activate its
1762 frame.
1765 *** The variable 'focus-follows-mouse' has a third meaningful value
1766 'auto-raise' to indicate that the window manager automatically raises a
1767 frame when the mouse pointer enters it.
1770 *** The new function 'frame-restack' puts a frame above or below
1771 another on the display.
1774 *** The new face 'internal-border' specifies the background of a frame's
1775 internal border.
1778 *** The NORECORD argument of 'select-window' now has a meaningful value
1779 'mark-for-redisplay' which is like any other non-nil value but marks
1780 WINDOW for redisplay.
1783 *** Support for side windows is now official.
1784 The display action function 'display-buffer-in-side-window' will
1785 display its buffer in a side window.  Functions for toggling all side
1786 windows on a frame, changing and reversing the layout of side windows
1787 and returning the main (major non-side) window of a frame are
1788 provided.  For details consult the section "Side Windows" in the Elisp
1789 manual.
1792 *** Support for atomic windows - rectangular compositions of windows
1793 treated by 'split-window', 'delete-window' and 'delete-other-windows'
1794 like a single live window - is now official.  For details consult the
1795 section "Atomic Windows" in the Elisp manual.
1798 *** New 'display-buffer' alist entry 'window-parameters' allows to
1799 assign window parameters to the window used for displaying the buffer.
1802 *** New function 'display-buffer-reuse-mode-window' is an action function
1803 suitable for use in 'display-buffer-alist'.  For example, to avoid
1804 creating a new window when opening man pages when there's already one,
1807 (add-to-list 'display-buffer-alist
1808      '("\\`\\*Man .*\\*\\'" .
1809        (display-buffer-reuse-mode-window
1810         (inhibit-same-window . nil)
1811         (mode . Man-mode))))
1814 *** New window parameter 'no-delete-other-windows' prevents that
1815 its window gets deleted by 'delete-other-windows'.
1818 *** New window parameters 'mode-line-format' and 'header-line-format'
1819 allow to override the buffer-local formats for this window.
1822 *** New command 'window-swap-states' swaps the states of two live
1823 windows.
1826 *** New functions 'window-pixel-width-before-size-change' and
1827 'window-pixel-height-before-size-change' support detecting which
1828 window changed size when 'window-size-change-functions' are run.
1831 *** The new function 'window-lines-pixel-dimensions' returns the pixel
1832 dimensions of a window's text lines.
1835 *** The new function 'window-largest-empty-rectangle' returns the
1836 dimensions of the largest rectangular area not occupying any text in a
1837 window's body.
1840 *** The semantics of 'mouse-autoselect-window' has changed slightly.
1841 For details see the section "Mouse Window Auto-selection" in the Elisp
1842 manual.
1845 ** 'tcl-auto-fill-mode' is now declared obsolete.  Its functionality
1846 can be replicated simply by setting 'comment-auto-fill-only-comments'.
1848 ** New pcase pattern 'rx' to match against a rx-style regular expression.
1849 For details, see the doc string of 'rx--pcase-macroexpander'.
1852 ** New functions to set region from secondary selection and vice versa.
1853 The new functions 'secondary-selection-to-region' and
1854 'secondary-selection-from-region' let you set the beginning and the
1855 end of the region from those of the secondary selection and vise
1856 versa.
1858 ** New function 'lgstring-remove-glyph' can be used to modify a
1859 gstring returned by the underlying layout engine (e.g. m17n-flt,
1860 uniscribe).
1863 * Changes in Emacs 26.1 on Non-Free Operating Systems
1866 ** Intercepting hotkeys on Windows 7 and later now works better.
1867 The new keyboard hooking code properly grabs system hotkeys such as
1868 Win-* and Alt-TAB, in a way that Emacs can get at them before the
1869 system.  This makes the 'w32-register-hot-key' functionality work
1870 again on all versions of MS-Windows starting with Windows 7.  On
1871 Windows NT and later you can now register any hotkey combination.  (On
1872 Windows 9X, the previous limitations, spelled out in the Emacs manual,
1873 still apply.)
1876 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
1877 Previously, on MS-Windows this function converted slash characters in
1878 file names into backslashes.  It no longer does that.  If your Lisp
1879 program used 'convert-standard-filename' to prepare file names to be
1880 passed to subprocesses (which is not the recommended usage of that
1881 function), you will now have to mirror slashes in your application
1882 code.  One possible way is this:
1884          (let ((start 0))
1885            (while (string-match "/" file-name start)
1886              (aset file-name (match-beginning 0) ?\\)
1887              (setq start (match-end 0))))
1890 ** GUI sessions on MS-Windows now treat SIGINT like Posix platforms do.
1891 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
1892 MS-Windows is now the same as on Posix platforms -- Emacs saves the
1893 session and exits.  In particular, this will happen if you start
1894 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
1895 window.
1898 ** 'signal-process' supports SIGTRAP on Windows XP and later.
1899 The 'kill' emulation on Windows now maps SIGTRAP to a call to the
1900 'DebugBreakProcess' API.  This causes the receiving process to break
1901 execution and return control to the debugger.  If no debugger is
1902 attached to the receiving process, the call is typically ignored.
1903 This is in contrast to the default action on POSIX Systems, where it
1904 causes the receiving process to terminate with a core dump if no
1905 debugger has been attached to it.
1908 ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work
1909 on macOS.
1912 ** Emacs can now be run as a GUI application from the command line on
1913 macOS.
1916 ** 'ns-appearance' and 'ns-transparent-titlebar' change the appearance
1917 of frame decorations on macOS 10.9+.
1920 ** 'ns-use-thin-smoothing' enables thin font smoothing on macOS 10.8+.
1923 ** 'process-attributes' on Darwin systems now returns more information.
1926 ** Mousewheel and trackpad scrolling on macOS 10.7+ now behaves more
1927 like the macOS default.  The new variables 'ns-mwheel-line-height',
1928 'ns-use-mwheel-acceleration' and 'ns-use-mwheel-momentum' can be used
1929 to customize the behavior.
1932 ----------------------------------------------------------------------
1933 This file is part of GNU Emacs.
1935 GNU Emacs is free software: you can redistribute it and/or modify
1936 it under the terms of the GNU General Public License as published by
1937 the Free Software Foundation, either version 3 of the License, or
1938 (at your option) any later version.
1940 GNU Emacs is distributed in the hope that it will be useful,
1941 but WITHOUT ANY WARRANTY; without even the implied warranty of
1942 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1943 GNU General Public License for more details.
1945 You should have received a copy of the GNU General Public License
1946 along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
1949 Local variables:
1950 coding: utf-8
1951 mode: outline
1952 paragraph-separate: "[  \f]*$"
1953 end: