1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2016-2019 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.18, and NEWS.1-17 for changes
13 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'.
19 * Installation Changes in Emacs 26.2
21 ** Building Emacs with the '--with-xwidgets' option now requires WebKit2.
22 To build Emacs with xwidgets support, you will need to install the
23 webkit2gtk-4.0 package; version 2.12 or later is required.
24 (This change was actually made in Emacs 26.1, but was not called out
27 ** Installing Emacs now installs the emacs-module.h file.
28 The emacs-module.h file is now installed in the system-wide include
29 directory as part of the Emacs installation. This allows to build
30 Emacs modules outside of the Emacs source tree.
33 * Startup Changes in Emacs 26.2
36 * Changes in Emacs 26.2
38 ** Emacs is now compliant with the latest version 11.0 of the Unicode Standard.
40 ** New variable 'xft-ignore-color-fonts'.
41 Default t means don't try to load color fonts when using Xft, as they
42 often cause crashes. Set it to nil if you really need those fonts.
45 * Editing Changes in Emacs 26.2
48 * Changes in Specialized Modes and Packages in Emacs 26.2
52 *** The 'Z' command on a directory name compresses all of its files.
53 It produces a compressed '.tar.gz' archive with all the files in the
54 directory and all of its subdirectories. For symmetry, 'Z' on a
55 '.tar.gz' or a '.tgz' archive extracts all the archived files into the
56 current directory; thus, typing 'Z' on a '.tar.gz' archive created by
57 a previous 'Z' command will extract the archived files into a
58 directory whose name is the archive name sans the '.tar.gz' extension.
59 (This change was actually made in Emacs 25.1 but was only
60 partially called out in its NEWS; 'tgz' handling was added in 26.1.)
64 *** New toggle 'ibuffer-do-toggle-lock', bound to 'L'.
68 *** The value for 'imenu-auto-rescan-maxout' has been increased to 600000.
72 *** Mailutils movemail will now be used if found at runtime.
73 The default value of 'mail-source-movemail-program' is now "movemail".
74 This ensures that the movemail program from GNU Mailutils will be used
75 if found in 'exec-path', even if it was not found at build time. To
76 use a different program, customize 'mail-source-movemail-program' to the
77 absolute file name of the desired executable.
81 *** shadowfile.el has been rewritten to support Tramp file names.
85 *** Shell mode buffers now have 'scroll-conservatively' set to 101.
86 This is so as to better emulate the scrolling behavior of a text
87 terminal when new output is added to the screen buffer. To get back
88 the previous behavior, reset 'scroll-conservatively' to zero (or any
89 other value you like) in a function and add it to 'shell-mode-hook'.
90 (This change was actually made in Emacs 26.1, but was not called out
95 *** VC support for Mercurial was improved.
96 Emacs now avoids invoking 'hg' as much as possible, for faster operation.
97 (This and the following changes were actually made in Emacs 26.1, but
98 were not called out in its NEWS.)
100 **** New vc-hg options.
101 The new option 'vc-hg-parse-hg-data-structures' controls whether vc-hg
102 will try parsing the Mercurial data structures directly instead of
103 running 'hg'; it defaults to t (set to nil if you want the pre-26.1
105 The new option 'vc-hg-symbolic-revision-styles' controls how versions
106 in a Mercurial repository are presented symbolically on the mode line.
107 The new option 'vc-hg-use-file-version-for-mode-line-version' controls
108 whether the version shown on the mode line is that of the visited file
109 or of the repository working copy.
111 **** Display of Mercurial revisions in the mode line has changed.
112 Previously, the mode line displayed the local number (1, 2, 3, ...) of
113 the revision. Starting with Emacs 26.1, the default has changed, and
114 it now shows the global revision number, in the form of its changeset
115 hash value. To get back the previous behavior, customize the new
116 option 'vc-hg-symbolic-revision-styles' to the value '("{rev}")'.
119 * New Modes and Packages in Emacs 26.2
122 * Incompatible Lisp Changes in Emacs 26.2
124 ** shadowfile config files have changed their syntax.
125 Existing files "~/.emacs.d/shadows" and "~/.emacs.d/shadow_todo" must
126 be removed prior using the changed 'shadow-*' commands.
128 ** 'thread-alive-p' has been renamed to 'thread-live-p'.
129 The old name is an alias of the new name. Future Emacs version will
132 ** 'while-no-input' does not return due to input from subprocesses.
133 Input that arrived from subprocesses while some code executed inside
134 the 'while-no-input' form injected an internal buffer-switch event
135 that counted as input and would cause 'while-no-input' to return,
136 perhaps prematurely. These buffer-switch events are now by default
137 ignored by 'while-no-input'; if you need to get the old behavior,
138 remove 'buffer-switch' from the list of events in
139 'while-no-input-ignore-events'.
142 * Lisp Changes in Emacs 26.2
144 ** The new function 'read-answer' accepts either long or short answers
145 depending on the new customizable variable 'read-answer-short'.
147 ** New function 'assoc-delete-all'.
148 Like 'assq-delete-all', but uses 'equal' for comparison.
150 ** The function 'thing-at-point' behaves as before Emacs 26.1.
151 The behavior of 'thing-at-point' when called with argument 'list' has
152 changed in Emacs 26.1, in that it didn't consider text inside comments
153 and strings as a potential list. This change is now reverted, and
154 'thing-at-point' behaves like it did before Emacs 26.1.
156 ** To cater to use cases where comments and strings are to be ignored
157 when looking for a list, the function 'list-at-point' now takes an
158 optional argument to do so.
161 * Changes in Emacs 26.2 on Non-Free Operating Systems
163 ** macOS features can now be detected at run-time as well as at
164 build-time. See nextstep/INSTALL for details.
165 (This change was actually made in Emacs 26.1, but was undocumented and
166 not called out in its NEWS.)
169 * Installation Changes in Emacs 26.1
171 ** By default libgnutls is now required when building Emacs.
172 Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
174 ** GnuTLS version 2.12.2 or later is now required, instead of merely
175 version 2.6.6 or later.
177 ** The new option 'configure --with-mailutils' causes Emacs to rely on
178 GNU Mailutils to retrieve email. It is recommended, and is the
179 default if GNU Mailutils is installed. When '--with-mailutils' is not
180 in effect, the Emacs build procedure by default continues to build and
181 install a limited 'movemail' substitute that retrieves POP3 email only
182 via insecure channels. To avoid this problem, use either
183 '--with-mailutils' or '--without-pop' when configuring; '--without-pop'
184 is the default on platforms other than native MS-Windows.
186 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
187 GCC to issue warnings without stopping the build. This behavior is
188 now the default in developer builds. As before, use
189 '--disable-gcc-warnings' to suppress GCC's warnings, and
190 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
192 ** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
193 now enabled by default when configuring.
195 ** The Emacs server now has socket-launching support.
196 This allows socket based activation, where an external process like
197 systemd can invoke the Emacs server process upon a socket connection
198 event and hand the socket over to Emacs. Emacs uses this socket to
199 service emacsclient commands. This new functionality can be disabled
200 with the configure option '--disable-libsystemd'.
202 ** A systemd user unit file is provided.
203 Use it in the standard way: 'systemctl --user enable emacs'. (If your
204 Emacs is installed in a non-standard location, you may need to copy
205 the emacs.service file to eg ~/.config/systemd/user/)
207 ** New configure option '--disable-build-details' attempts to build an
208 Emacs that is more likely to be reproducible; that is, if you build
209 and install Emacs twice, the second Emacs is a copy of the first.
210 Deterministic builds omit the build date from the output of the
211 'emacs-version' and 'erc-cmd-SV' functions, and the leave the
212 following variables nil: 'emacs-build-system', 'emacs-build-time',
213 'erc-emacs-build-time'.
215 ** Emacs can now be built with support for Little CMS.
216 If the lcms2 library is installed, Emacs will enable features built on
217 top of that library. The new configure option '--without-lcms2' can
218 be used to build without lcms2 support even if it is installed. Emacs
219 linked to Little CMS exposes color management functions in Lisp: the
220 color metrics 'lcms-cie-de2000' and 'lcms-cam02-ucs', as well as
221 functions for conversion to and from CIE CAM02 and CAM02-UCS.
223 ** The configure option '--with-gameuser' now defaults to 'no',
224 as this appears to be the most common configuration in practice.
225 When it is 'no', the shared game directory and the auxiliary program
226 update-game-score are no longer needed and are not installed.
228 ** Emacs no longer works on IRIX. We expect that Emacs users are not
229 affected by this, as SGI stopped supporting IRIX in December 2013.
232 * Startup Changes in Emacs 26.1
234 ** New option '--fg-daemon'. This is the same as '--daemon', except
235 it runs in the foreground and does not fork. This is intended for
236 modern init systems such as systemd, which manage many of the traditional
237 aspects of daemon behavior themselves. '--bg-daemon' is now an alias
240 ** New option '--module-assertions'.
241 When given this option, Emacs will perform expensive correctness
242 checks when dealing with dynamic modules. This is intended for module
243 authors that wish to verify that their module conforms to the module
244 requirements. The option makes Emacs abort if a module-related
247 ** Emacs now supports 24-bit colors on capable text terminals.
248 Terminal is automatically initialized to use 24-bit colors if the
249 required capabilities are found in terminfo. See the FAQ node
250 "(efaq) Colors on a TTY" for more information.
252 ** Emacs now obeys the X resource "scrollBar" at startup.
253 The effect is similar to that of "toolBar" resource on the tool bar.
256 * Changes in Emacs 26.1
258 ** Option 'buffer-offer-save' can be set to new value, 'always'.
259 When set to 'always', the command 'save-some-buffers' will always
260 offer this buffer for saving.
262 ** Security vulnerability related to Enriched Text mode is removed.
264 *** Enriched Text mode does not evaluate Lisp in 'display' properties.
265 This feature allows saving 'display' properties as part of text.
266 Emacs 'display' properties support evaluation of arbitrary Lisp forms
267 as part of processing the property for display, so displaying Enriched
268 Text could be vulnerable to executing arbitrary malicious Lisp code
269 included in the text (e.g., sent as part of an email message).
270 Therefore, execution of arbitrary Lisp forms in 'display' properties
271 decoded by Enriched Text mode is now disabled by default. Customize
272 the new option 'enriched-allow-eval-in-display-props' to a non-nil
273 value to allow Lisp evaluation in decoded 'display' properties.
275 This vulnerability was introduced in Emacs 21.1. To work around that
276 in Emacs versions before 25.3, append the following to your ~/.emacs
279 (eval-after-load "enriched"
280 '(defun enriched-decode-display-prop (start end &optional param)
283 ** Functions in 'write-contents-functions' can fully short-circuit the
284 'save-buffer' process. Previously, saving a buffer that was not
285 visiting a file would always prompt for a file name. Now it only does
286 so if 'write-contents-functions' is nil (or all its functions return
289 ** New variable 'executable-prefix-env' for inserting magic signatures.
290 This variable affects the format of the interpreter magic number
291 inserted by 'executable-set-magic'. If non-nil, the magic number now
292 takes the form "#!/usr/bin/env interpreter", otherwise the value
293 determined by 'executable-prefix', which is by default
294 "#!/path/to/interpreter". By default, 'executable-prefix-env' is nil,
295 so the default behavior is not changed.
297 ** The variable 'emacs-version' no longer includes the build number.
298 This is now stored separately in a new variable, 'emacs-build-number'.
300 ** Emacs now provides a limited form of concurrency with Lisp threads.
301 Concurrency in Emacs Lisp is "mostly cooperative", meaning that
302 Emacs will only switch execution between threads at well-defined
303 times: when Emacs waits for input, during blocking operations related
304 to threads (such as mutex locking), or when the current thread
305 explicitly yields. Global variables are shared among all threads, but
306 a 'let' binding is thread-local. Each thread also has its own current
307 buffer and its own match data.
309 See the chapter "(elisp) Threads" in the ELisp manual for full
310 documentation of these facilities.
312 ** The new user variable 'electric-quote-chars' provides a list
313 of curved quotes for 'electric-quote-mode', allowing user to choose
314 the types of quotes to be used.
316 ** The new user option 'electric-quote-context-sensitive' makes
317 'electric-quote-mode' context sensitive. If it is non-nil, you can
318 type an ASCII apostrophe to insert an opening or closing quote,
319 depending on context. Emacs will replace the apostrophe by an opening
320 quote character at the beginning of the buffer, the beginning of a
321 line, after a whitespace character, and after an opening parenthesis;
322 and it will replace the apostrophe by a closing quote character in all
325 ** The new variable 'electric-quote-inhibit-functions' controls when
326 to disable electric quoting based on context. Major modes can add
327 functions to this list; Emacs will temporarily disable
328 'electric-quote-mode' whenever any of the functions returns non-nil.
329 This can be used by major modes that derive from 'text-mode' but allow
330 inline code segments, such as 'markdown-mode'.
332 ** The new user variable 'dired-omit-case-fold' allows the user to
333 customize the case-sensitivity of dired-omit-mode. It defaults to
334 the same sensitivity as that of the filesystem for the corresponding
337 ** Emacs now uses double buffering to reduce flicker when editing and
338 resizing graphical Emacs frames on the X Window System. This support
339 requires the DOUBLE-BUFFER extension, which major X servers have
340 supported for many years. If your system has this extension, but an
341 Emacs built with double buffering misbehaves on some displays you use,
342 you can disable the feature by adding
344 '(inhibit-double-buffering . t)
346 to default-frame-alist. Or inject this parameter into the selected
347 frame by evaluating this form:
349 (modify-frame-parameters nil '((inhibit-double-buffering . t)))
351 ** The customization group 'wp', whose label was "text", is now
352 deprecated. Use the new group 'text', which inherits from 'wp',
355 ** The new function 'call-shell-region' executes a command in an
356 inferior shell with the buffer region as input.
358 ** The new user option 'shell-command-dont-erase-buffer' controls
359 if the output buffer is erased between shell commands; if non-nil,
360 the output buffer is not erased; this variable also controls where
361 to set the point in the output buffer: beginning of the output,
362 end of the buffer or save the point.
363 When 'shell-command-dont-erase-buffer' is nil, the default value,
364 the behavior of 'shell-command', 'shell-command-on-region' and
365 'async-shell-command' is as usual.
367 ** The new user option 'async-shell-command-display-buffer' controls
368 whether the output buffer of an asynchronous command is shown
369 immediately, or only when there is output.
371 ** New user option 'mouse-select-region-move-to-beginning'.
372 This option controls the position of point when double-clicking
373 mouse-1 on the end of a parenthetical grouping or string-delimiter:
374 the default value nil keeps point at the end of the region, setting it
375 to non-nil moves point to the beginning of the region.
377 ** New user option 'mouse-drag-and-drop-region'.
378 This option allows you to drag the entire region of text to another
379 place or another buffer. Its behavior is customizable via the new
380 options 'mouse-drag-and-drop-region-cut-when-buffers-differ',
381 'mouse-drag-and-drop-region-show-tooltip', and
382 'mouse-drag-and-drop-region-show-cursor'.
384 ** The new user option 'confirm-kill-processes' allows the user to
385 skip a confirmation prompt for killing subprocesses when exiting
386 Emacs. When set to t (the default), Emacs will prompt for
387 confirmation before killing subprocesses on exit, which is the same
390 ** 'find-library-name' will now fall back on looking at 'load-history'
391 to try to locate libraries that have been loaded with an explicit path
394 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
395 in the text in functions like 'read-from-minibuffer', but instead are
396 added to the end of the face list. This allows users to say things
397 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
399 ** The new variable 'extended-command-suggest-shorter' has been added
400 to control whether to suggest shorter 'M-x' commands or not.
402 ** icomplete now respects 'completion-ignored-extensions'.
404 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
405 face instead of the 'escape-glyph' face.
407 ** Approximations to quotes are now displayed with the new 'homoglyph'
408 face instead of the 'escape-glyph' face.
410 ** New face 'header-line-highlight'.
411 This face is the header-line analogue of 'mode-line-highlight'; it
412 should be the preferred mouse-face for mouse-sensitive elements in the
415 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
418 ** 'fill-paragraph' no longer marks the buffer as changed unless it
419 actually changed something.
421 ** The locale language name 'ca' is now mapped to the language
422 environment 'Catalan', which has been added.
424 ** 'align-regexp' has a separate history for its interactive argument.
425 'align-regexp' no longer shares its history with all other
426 history-less functions that use 'read-string'.
428 ** The networking code has been reworked so that it's more
429 asynchronous than it was (when specifying :nowait t in
430 'make-network-process'). How asynchronous it is varies based on the
431 capabilities of the system, but on a typical GNU/Linux system the DNS
432 resolution, the connection, and (for TLS streams) the TLS negotiation
433 are all done without blocking the main Emacs thread. To get
434 asynchronous TLS, the TLS boot parameters have to be passed in (see
435 the manual for details).
437 Certain process oriented functions (like 'process-datagram-address')
438 will block until socket setup has been performed. The recommended way
439 to deal with asynchronous sockets is to avoid interacting with them
440 until they have changed status to "run". This is most easily done
441 from a process sentinel.
443 ** 'make-network-process' and 'open-network-stream' sometimes allowed
444 :service to be an integer string (e.g., :service "993") and sometimes
445 required an integer (e.g., :service 993). This difference has been
446 eliminated, and integer strings work everywhere.
448 ** It is possible to disable attempted recovery on fatal signals.
449 Two new variables support disabling attempts to recover from stack
450 overflow and to avoid automatic auto-save when Emacs is delivered a
451 fatal signal. 'attempt-stack-overflow-recovery', if set to nil,
452 will disable attempts to recover from C stack overflows; Emacs will
453 then crash as with any other fatal signal.
454 'attempt-orderly-shutdown-on-fatal-signal', if set to nil, will
455 disable attempts to auto-save the session and shut down in an orderly
456 fashion when Emacs receives a fatal signal; instead, Emacs will
457 terminate immediately. Both variables are non-nil by default.
458 These variables are for users who would like to avoid the small
459 probability of data corruption due to techniques Emacs uses to recover
462 ** File local and directory local variables are now initialized each
463 time the major mode is set, not just when the file is first visited.
464 These local variables will thus not vanish on setting a major mode.
466 ** A second dir-local file (.dir-locals-2.el) is now accepted.
467 See the doc string of 'dir-locals-file' for more information.
469 ** Connection-local variables can be used to specify local variables
470 with a value depending on the connected remote server. For details,
471 see the node "(elisp) Connection Local Variables" in the ELisp manual.
473 ** International domain names (IDNA) are now encoded via the new
474 puny.el library, so that one can visit Web sites with non-ASCII URLs.
476 ** The new 'list-timers' command lists all active timers in a buffer,
477 where you can cancel them with the 'c' command.
479 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
480 Applications that call 'switch-to-buffer' and want to show the buffer at
481 the position of its point should use 'pop-to-buffer-same-window' in lieu
482 of 'switch-to-buffer'.
484 ** The new variable 'debugger-stack-frame-as-list' allows displaying
485 all call stack frames in a Lisp backtrace buffer as lists. Both
486 debug.el and edebug.el have been updated to heed to this variable.
488 ** Values in call stack frames are now displayed using 'cl-prin1'.
489 The old behavior of using 'prin1' can be restored by customizing the
490 new option 'debugger-print-function'.
492 ** NUL bytes in text copied to the system clipboard are now replaced with "\0".
494 ** The new variable 'x-ctrl-keysym' has been added to the existing
495 roster of X keysyms. It can be used in combination with another
496 variable of this kind to swap modifiers in Emacs.
498 ** New input methods: 'cyrillic-tuvan', 'polish-prefix', 'uzbek-cyrillic'.
500 ** The 'dutch' input method no longer attempts to support Turkish too.
501 Also, it no longer converts 'IJ' and 'ij' to the compatibility
502 characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
505 ** File name quoting by adding the prefix "/:" is now possible for the
506 local part of a remote file name. Thus, if you have a directory named
507 "/~" on the remote host "foo", you can prevent it from being
508 substituted by a home directory by writing it as "/foo:/:/~/file".
510 ** The new variable 'maximum-scroll-margin' allows having effective
511 settings of 'scroll-margin' up to half the window size, instead of
512 always restricting the margin to a quarter of the window.
514 ** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
515 You can enable this by customizing 'mouse-wheel-tilt-scroll'. If you
516 want to reverse the direction of the scroll, customize
517 'mouse-wheel-flip-direction'.
519 ** The default GnuTLS priority string now includes %DUMBFW.
520 This is to avoid bad behavior in some firewalls, which causes the
521 connection to be closed by the remote host.
523 ** Emacsclient changes
525 *** Emacsclient has a new option '-u' / '--suppress-output'.
526 This option suppresses display of return values from the server
529 *** Emacsclient has a new option '-T' / '--tramp'.
530 This helps with using a local Emacs session as the server for a remote
531 emacsclient. With appropriate setup, one can now set the EDITOR
532 environment variable on a remote machine to emacsclient, and
533 use the local Emacs to edit remote files via Tramp. See the node
534 "(emacs) emacsclient Options" in the user manual for the details.
536 *** Emacsclient now accepts command-line options in ALTERNATE_EDITOR
537 and '--alternate-editor'. For example, ALTERNATE_EDITOR="emacs -Q -nw".
538 Arguments may be quoted "like this", so that for example an absolute
539 path containing a space may be specified; quote escaping is not
542 ** New user option 'dig-program-options' and extended functionality
543 for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
544 and 'run-dig'. Each function now accepts an optional name server
545 argument interactively (with a prefix argument) and non-interactively.
547 ** 'describe-key-briefly' now ignores mouse movement events.
549 ** The new variable 'eval-expression-print-maximum-character' prevents
550 large integers from being displayed as characters by 'M-:' and similar
553 ** Two new commands for finding the source code of Emacs Lisp
554 libraries: 'find-library-other-window' and 'find-library-other-frame'.
556 ** The new variable 'display-raw-bytes-as-hex' allows you to change
557 the display of raw bytes from octal to hex.
559 ** You can now provide explicit field numbers in format specifiers.
560 For example, '(format "%2$s %1$s %2$s" "X" "Y")' produces "Y X Y".
562 ** Emacs now supports optional display of line numbers in the buffer.
563 This is similar to what 'linum-mode' provides, but much faster and
564 doesn't usurp the display margin for the line numbers. Customize the
565 buffer-local variable 'display-line-numbers' to activate this optional
566 display. Alternatively, you can use the 'display-line-numbers-mode'
567 minor mode or the global 'global-display-line-numbers-mode'. When
568 using these modes, customize 'display-line-numbers-type' with the same
569 value as you would use with 'display-line-numbers'.
571 Line numbers are not displayed at all in minibuffer windows and in
572 tooltips, as they are not useful there.
574 Lisp programs can disable line-number display for a particular screen
575 line by putting the 'display-line-numbers-disable' text property or
576 overlay property on the first character of that screen line. This is
577 intended for add-on packages that need a finer control of the display.
579 Lisp programs that need to know how much screen estate is used up for
580 line-number display in a window can use the new function
581 'line-number-display-width'.
583 'linum-mode' and all similar packages are henceforth becoming obsolete.
584 Users and developers are encouraged to switch to this new feature
587 ** The new user option 'arabic-shaper-ZWNJ-handling' controls how to
588 handle ZWNJ in Arabic text rendering.
591 * Editing Changes in Emacs 26.1
593 ** New variable 'column-number-indicator-zero-based'.
594 Traditionally, in Column Number mode, the displayed column number
595 counts from zero starting at the left margin of the window. This
596 behavior is now controlled by 'column-number-indicator-zero-based'.
597 If you would prefer for the displayed column number to count from one,
598 you may set this variable to nil. (Behind the scenes, there is now a
599 new mode line construct, '%C', which operates exactly as '%c' does
600 except that it counts from one.)
602 ** New single-line horizontal scrolling mode.
603 The 'auto-hscroll-mode' variable can now have a new special value,
604 'current-line', which causes only the line where the cursor is
605 displayed to be horizontally scrolled when lines are truncated on
606 display and point moves outside the left or right window margin.
608 ** New mode line constructs '%o' and '%q', and user option
609 'mode-line-percent-position'. '%o' displays the "degree of travel" of
610 the window through the buffer. Unlike the default '%p', this
611 percentage approaches 100% as the window approaches the end of the
612 buffer. '%q' displays the percentage offsets of both the start and
613 the end of the window, e.g. "5-17%". The new option
614 'mode-line-percent-position' makes it easier to switch between '%p',
615 '%P', and these new constructs.
617 ** Two new user options 'list-matching-lines-jump-to-current-line' and
618 'list-matching-lines-current-line-face' to show the current line
619 highlighted in *Occur* buffer.
621 ** The 'occur' command can now operate on the region.
623 ** New bindings for 'query-replace-map'.
624 'undo', undo the last replacement; bound to 'u'.
625 'undo-all', undo all replacements; bound to 'U'.
627 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
628 In modes where form feed was treated as a whitespace character,
629 'delete-trailing-whitespace' would keep lines containing it unchanged.
630 It now deletes whitespace after the last form feed thus behaving the
631 same as in modes where the character is not whitespace.
633 ** Emacs no longer prompts about editing a changed file when the file's
634 content is unchanged. Instead of only checking the modification time,
635 Emacs now also checks the file's actual content before prompting the user.
637 ** Various casing improvements.
639 *** 'upcase', 'upcase-region' et al. convert title case characters
640 (such as Dz) into their upper case form (such as DZ).
642 *** 'capitalize', 'upcase-initials' et al. make use of title-case forms
643 of initial characters (correctly producing for example Džungla instead
644 of incorrect DŽungla).
646 *** Characters which turn into multiple ones when cased are correctly handled.
647 For example, fi ligature is converted to FI when upper cased.
649 *** Greek small sigma is correctly handled when at the end of the word.
650 Strings such as ΌΣΟΣ are now correctly converted to Όσος when
651 capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
654 ** Emacs can now auto-save buffers to visited files in a more robust
655 manner via the new mode 'auto-save-visited-mode'. Unlike
656 'auto-save-visited-file-name', this mode uses the normal saving
657 procedure and therefore obeys saving hooks.
658 'auto-save-visited-file-name' is now obsolete.
660 ** New behavior of 'mark-defun'.
661 Prefix argument selects that many (or that many more) defuns.
662 Negative prefix arg flips the direction of selection. Also,
663 'mark-defun' between defuns correctly selects N following defuns (or
664 -N previous for negative arguments). Finally, comments preceding the
665 defun are selected unless they are separated from the defun by a blank
668 ** New command 'replace-buffer-contents'.
669 This command replaces the contents of the accessible portion of the
670 current buffer with the contents of the accessible portion of a
671 different buffer while keeping point, mark, markers, and text
672 properties as intact as possible.
674 ** New commands 'apropos-local-variable' and 'apropos-local-value'.
675 These are buffer-local versions of 'apropos-variable' and
676 'apropos-value', respectively. They show buffer-local variables whose
677 names and values, respectively, match a given pattern.
679 ** More user control of reordering bidirectional text for display.
680 The two new variables, 'bidi-paragraph-start-re' and
681 'bidi-paragraph-separate-re', allow customization of what exactly are
682 paragraphs, for the purposes of bidirectional display.
684 ** New variable 'x-wait-for-event-timeout'.
685 This controls how long Emacs will wait for updates to the graphical
686 state to take effect (making a frame visible, for example).
689 * Changes in Specialized Modes and Packages in Emacs 26.1
691 ** Emacs 26.1 comes with Org v9.1.6.
692 See the file ORG-NEWS for user-visible changes in Org.
694 ** New function 'cl-generic-p'.
698 *** You can answer 'all' in 'dired-do-delete' to delete recursively all
699 remaining directories without more prompts.
701 *** Dired supports wildcards in the directory part of the file names.
703 *** You can now use '`?`' in 'dired-do-shell-command'.
704 It gets replaced by the current file name, like ' ? '.
706 *** A new option 'dired-always-read-filesystem' defaulting to nil.
707 If non-nil, buffers visiting files are reverted before they are
708 searched; for instance, in 'dired-mark-files-containing-regexp' a
709 non-nil value of this option means the file is revisited in a
710 temporary buffer; this temporary buffer is the actual buffer searched:
711 the original buffer visiting the file is not modified.
713 *** Users can now customize mouse clicks in Dired in a more flexible way.
714 The new command 'dired-mouse-find-file' can be bound to a mouse click
715 and used to visit files/directories in Dired in the selected window.
716 The new command 'dired-mouse-find-file-other-frame' similarly visits
717 files/directories in another frame. You can write your own commands
718 that invoke 'dired-mouse-find-file' with non-default optional
719 arguments, to tailor the effects of mouse clicks on file names in
722 *** In wdired, when editing files to contain slash characters,
723 the resulting directories are automatically created. Whether to do
724 this is controlled by the 'wdired-create-parent-directories' variable.
726 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
727 viewing HTML files and the like.
729 *** New variable 'dired-clean-confirm-killing-deleted-buffers'
730 controls whether Dired asks to kill buffers visiting deleted files and
731 directories. The default is t, so Dired asks for confirmation, to
732 keep previous behavior.
734 ** html2text is now marked obsolete.
736 ** smerge-refine-regions can refine regions in separate buffers.
738 ** Info menu and index completion uses substring completion by default.
739 This can be customized via the 'info-menu' category in
740 'completion-category-overrides'.
742 ** The ancestor buffer is shown by default in 3-way merges.
743 A new option 'ediff-show-ancestor' and a new toggle
744 'ediff-toggle-show-ancestor'.
746 ** TeX: Add luatex and xetex as alternatives to pdftex.
748 ** Electric-Buffer-menu
750 *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
751 bound to 'Buffer-menu-unmark-all-buffers'.
753 ** hideshow mode got four key bindings that are analogous to outline
754 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e'.
758 *** Two new commands 'bs-unmark-all', bound to 'U', and
759 'bs-unmark-previous', bound to <backspace>.
763 *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
764 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
768 *** 'checkdoc-arguments-in-order-flag' now defaults to nil.
772 *** The ~/.newsrc file will now only be saved if the native select
773 method is an NNTP select method.
775 *** A new command for sorting articles by readedness marks has been
776 added: 'C-c C-s C-m C-m'.
778 *** In 'message-citation-line-format' the '%Z' format is now the time
779 zone name instead of the numeric form. The '%z' format continues to
780 be the numeric form. The new behavior is compatible with
781 'format-time-string'.
785 *** New command 'ibuffer-jump'.
787 *** New filter commands 'ibuffer-filter-by-basename',
788 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
789 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
790 and 'ibuffer-filter-by-visiting-file'; bound respectively
791 to '/b', '/.', '//', '/*', '/i' and '/v'.
793 *** Two new commands 'ibuffer-filter-chosen-by-completion'
794 and 'ibuffer-and-filter', the second bound to '/&'.
796 *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
797 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
798 bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
800 *** The data format specifying filters has been extended to allow
801 explicit logical 'and', and a more flexible form for logical 'not'.
802 See 'ibuffer-filtering-qualifiers' doc string for full details.
804 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
807 *** New command 'ibuffer-change-marks'; bound to '* c'.
809 *** A new command 'ibuffer-mark-by-locked' to mark
810 all locked buffers; bound to '% L'.
812 *** A new option 'ibuffer-locked-char' to indicate
813 locked buffers; Ibuffer shows a new column displaying
814 'ibuffer-locked-char' for locked buffers.
816 *** A new command 'ibuffer-unmark-all-marks' to unmark
817 all buffers without asking confirmation; bound to
818 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
820 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
821 whose content matches a regexp; bound to '% g'.
823 *** Two new options 'ibuffer-never-search-content-name' and
824 'ibuffer-never-search-content-mode' used by
825 'ibuffer-mark-by-content-regexp'.
829 *** Support for opening links to man pages in Man or WoMan mode.
833 *** New user option 'comint-move-point-for-matching-input' to control
834 where to place point after 'C-c M-r' and 'C-c M-s'.
836 *** New user option 'comint-terminfo-terminal'.
837 This option allows control of the value of the TERM environment
838 variable Emacs puts into the environment of the Comint mode and its
839 derivatives, such as Shell mode and Compilation Shell minor-mode. The
840 default is "dumb", for compatibility with previous behavior.
844 *** Messages from CMake are now recognized.
846 *** The number of errors, warnings, and informational messages is now
847 displayed in the mode line. These are updated as compilation
852 *** Grep commands will now use GNU grep's '--null' option if
853 available, which allows distinguishing the filename from contents if
854 they contain colons. This can be controlled by the new custom option
855 'grep-use-null-filename-separator'.
857 *** The grep/rgrep/lgrep functions will now ask about saving files
858 before running. This is controlled by the 'grep-save-buffers'
863 *** Edebug can be prevented from pausing 1 second after reaching a
864 breakpoint (e.g. with "f" and "o") by customizing the new option
865 'edebug-sit-on-break'.
867 *** New customizable option 'edebug-max-depth'.
868 This allows you to enlarge the maximum recursion depth when
871 *** 'edebug-prin1-to-string' now aliases 'cl-prin1-to-string'.
872 This means edebug output is affected by variables 'cl-print-readably'
873 and 'cl-print-compiled'. To completely restore the previous printing
876 (fset 'edebug-prin1-to-string #'prin1-to-string)
880 *** 'eshell-input-filter's value is now a named function
881 'eshell-input-filter-default', and has a new custom option
882 'eshell-input-filter-initial-space' to ignore adding commands prefixed
883 with blank space to eshell history.
887 *** Backward compatibility support for BBDB versions less than 3
888 (i.e., BBDB 2.x) is deprecated and will likely be removed in the next
889 major release of Emacs. Users of BBDB 2.x should plan to upgrade to
894 *** New 'M-RET' command for opening a link at point in a new eww buffer.
896 *** A new 's' command for switching to another eww buffer via the minibuffer.
898 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
899 with the 'o' command from 'image-map'.
901 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
902 whether to use the HTML-specified colors or not. The user can also
903 customize the 'shr-use-colors' variable.
905 *** Images that are being loaded are now marked with gray
906 "placeholder" images of the size specified by the HTML. They are then
907 replaced by the real images asynchronously, which will also now
908 respect width/height HTML specs (unless they specify widths/heights
909 bigger than the current window).
911 *** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
912 'shr-copy-url' now only copies the url at point; users who wish to
913 avoid accidentally accessing remote links may rebind 'w' and 'u' in
914 'eww-link-keymap' to it.
918 *** The commands 'find-alternate-file-other-window',
919 'dired-other-window', 'dired-other-frame', and
920 'display-buffer-other-window' are now remapped to Ido equivalents if
925 *** Images are automatically scaled before displaying based on the
926 'image-scaling-factor' variable (if Emacs supports scaling the images
929 *** It's now possible to specify aspect-ratio preserving combinations
930 of :width/:max-height and :height/:max-width keywords. In either
931 case, the "max" keywords win. (Previously some combinations would,
932 depending on the aspect ratio of the image, just be ignored and in
933 other instances this would lead to the aspect ratio not being
936 *** Images inserted with 'insert-image' and related functions get a
937 keymap put into the text properties (or overlays) that span the
938 image. This keymap binds keystrokes for manipulating size and
939 rotation, as well as saving the image to a file. These commands are
940 also available in 'image-mode'.
942 *** A new library for creating and manipulating SVG images has been
943 added. See the "(elisp) SVG Images" section in the ELisp reference
946 *** New setf-able function to access and set image parameters is
947 provided: 'image-property'.
949 *** New commands 'image-scroll-left' and 'image-scroll-right'
950 for 'image-mode' that complement 'image-scroll-up' and
951 'image-scroll-down': they have the same prefix arg behavior and stop
956 *** Now provides a minor mode 'image-dired-minor-mode' which replaces
957 the function 'image-dired-setup-dired-keybindings'.
959 *** Thumbnail generation is now asynchronous.
960 The number of concurrent processes is limited by the variable
961 'image-dired-queue-active-limit'.
963 *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
964 for generating 256x256 thumbnails according to the Thumbnail Managing
967 *** Inherits movement keys from 'image-mode' for viewing full images.
968 This includes the usual char, line, and page movement commands.
970 *** All the -options types have been changed to argument lists
971 instead of shell command strings. This change affects
972 'image-dired-cmd-create-thumbnail-options',
973 'image-dired-cmd-create-temp-image-options',
974 'image-dired-cmd-rotate-thumbnail-options',
975 'image-dired-cmd-rotate-original-options',
976 'image-dired-cmd-write-exif-data-options',
977 'image-dired-cmd-read-exif-data-options', and introduces
978 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
979 'image-dired-cmd-create-standard-thumbnail-options'.
981 *** Recognizes more tools by default, including pngnq-s9 and OptiPNG.
983 *** 'find-file' and related commands now work on thumbnails and
984 displayed images, providing a default argument of the original file name
985 via an addition to 'file-name-at-point-functions'.
987 ** The default 'Info-default-directory-list' no longer checks some obsolete
988 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
989 when searching for info directories.
991 ** The commands that add ChangeLog entries now prefer a VCS root directory
992 for the ChangeLog file, if none already exists. Customize
993 'change-log-directory-files' to nil for the old behavior.
995 ** Support for non-string values of 'time-stamp-format' has been removed.
999 *** 'message-use-idna' now defaults to t (because Emacs comes with
1000 built-in IDNA support now).
1002 *** When sending HTML messages with embedded images, and you have
1003 exiftool installed, and you rotate images with EXIF data (i.e.,
1004 JPEGs), the rotational information will be inserted into the outgoing
1005 image in the message. (The original image will not have its
1006 orientation affected.)
1008 *** The 'message-valid-fqdn-regexp' variable has been removed, since
1009 there are now top-level domains added all the time. Message will no
1010 longer warn about sending emails to top-level domains it hasn't heard
1013 *** 'message-beginning-of-line' (bound to 'C-a') understands folded headers.
1014 In 'visual-line-mode' it will look for the true beginning of a header
1015 while in non-'visual-line-mode' it will move the point to the indented
1020 *** The new variable 'package-gnupghome-dir' has been added to control
1021 where the GnuPG home directory (used for signature verification) is
1022 located and whether GnuPG's option '--homedir' is used or not.
1024 *** Deleting a package no longer respects 'delete-by-moving-to-trash'.
1028 *** The new variable 'python-indent-def-block-scale' has been added.
1029 It controls the depth of indentation of arguments inside multi-line
1030 function signatures.
1034 *** The method part of remote file names is mandatory now.
1035 A valid remote file name starts with "/method:host:" or
1036 "/method:user@host:".
1038 *** The new pseudo method "-" is a marker for the default method.
1039 "/-::" is the shortest remote file name then.
1041 *** The command 'tramp-change-syntax' allows you to choose an
1042 alternative remote file name syntax.
1044 *** New connection method "sg", which supports editing files under a
1047 *** New connection method "doas" for OpenBSD hosts.
1049 *** New connection method "gdrive", which allows access to Google
1050 Drive onsite repositories.
1052 *** Gateway methods in Tramp have been removed.
1053 Instead, the Tramp manual documents how to configure ssh and PuTTY
1056 *** Setting the "ENV" environment variable in
1057 'tramp-remote-process-environment' enables reading of shell
1058 initialization files.
1060 *** Tramp is able now to send SIGINT to remote asynchronous processes.
1062 *** Variable 'tramp-completion-mode' is obsoleted.
1064 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
1068 *** JS mode now sets 'comment-multi-line' to t.
1070 *** New variable 'js-indent-align-list-continuation', when set to nil,
1071 will not align continuations of bracketed lists, but will indent them
1072 by the fixed width 'js-indent-level'.
1076 *** Support for completing attribute values, at-rules, bang-rules,
1077 HTML tags, classes and IDs using the 'completion-at-point' command.
1078 Completion candidates for HTML classes and IDs are retrieved from open
1081 *** CSS mode now binds 'C-h S' to a function that will show
1082 information about a CSS construct (an at-rule, property, pseudo-class,
1083 pseudo-element, with the default being guessed from context). By
1084 default the information is looked up on the Mozilla Developer Network,
1085 but this can be customized using 'css-lookup-url-format'.
1087 *** CSS colors are fontified using the color they represent as the
1088 background. For instance, #ff0000 would be fontified with a red
1091 ** Emacs now supports character name escape sequences in character and
1092 string literals. The syntax variants '\N{character name}' and
1093 '\N{U+code}' are supported.
1095 ** Prog mode has some support for multi-mode indentation.
1096 This allows better indentation support in modes that support multiple
1097 programming languages in the same buffer, like literate programming
1098 environments or ANTLR programs with embedded Python code.
1100 A major mode can provide indentation context for a sub-mode. To
1101 support this, modes should use 'prog-first-column' instead of a
1102 literal zero and avoid calling 'widen' in their indentation functions.
1103 See the node "(elisp) Mode-Specific Indent" in the ELisp manual for
1108 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
1113 *** The new function 'url-cookie-delete-cookie' can be used to
1114 programmatically delete all cookies, or cookies from a specific
1117 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
1119 *** The URL package now supports HTTPS over proxies supporting CONNECT.
1121 *** 'url-user-agent' now defaults to 'default', and the User-Agent
1122 string is computed dynamically based on 'url-privacy-level'.
1124 ** VC and related modes
1126 *** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
1127 branch-related commands on a keymap bound to 'B'.
1129 *** 'vc-region-history' is now bound to 'C-x v h', replacing the older
1130 'vc-insert-headers' binding.
1132 *** New user option 'vc-git-print-log-follow' to follow renames in Git logs
1137 *** Opening a .h file will turn C or C++ mode depending on language used.
1138 This is done with the help of the 'c-or-c++-mode' function, which
1139 analyzes buffer contents to infer whether it's a C or C++ source file.
1141 ** New option 'cpp-message-min-time-interval' to allow user control
1142 of progress messages in cpp.el.
1144 ** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
1145 to a format suitable for reverse lookup zone files.
1149 *** Enchant is now supported as a spell-checker.
1150 Enchant is a meta-spell-checker that uses providers such as Hunspell
1151 to do the actual checking. With it, users can use spell-checkers not
1152 directly supported by Emacs, such as Voikko, Hspell and AppleSpell,
1153 more easily share personal word-lists with other programs, and
1154 configure different spelling-checkers for different languages.
1155 (Version 2.1.0 or later of Enchant is required.)
1159 *** Flymake has been completely redesigned.
1160 Flymake now annotates arbitrary buffer regions, not just lines. It
1161 supports arbitrary diagnostic types, not just errors and warnings (see
1162 variable 'flymake-diagnostic-types-alist').
1164 It also supports multiple simultaneous backends, meaning that you can
1165 check your buffer from different perspectives (see variable
1166 'flymake-diagnostic-functions'). Backends for Emacs Lisp mode are
1169 The old Flymake behavior is preserved in the so-called "legacy
1170 backend", which has been updated to benefit from the new UI features.
1174 *** 'term-char-mode' now makes its buffer read-only.
1175 The buffer is made read-only to prevent changes from being made by
1176 anything other than the process filter; and movements of point away
1177 from the process mark are counter-acted so that the cursor is in the
1178 correct position after each command. This is needed to avoid states
1179 which are inconsistent with the state of the terminal understood by
1180 the inferior process.
1182 New user options 'term-char-mode-buffer-read-only' and
1183 'term-char-mode-point-at-process-mark' control these behaviors, and
1184 are non-nil by default. Customize these options to nil if you want
1185 the previous behavior.
1189 *** When an *xref* buffer is needed, 'TAB' quits and jumps to an xref.
1190 A new command 'xref-quit-and-goto-xref', bound to 'TAB' in *xref*
1191 buffers, quits the window before jumping to the destination. In many
1192 situations, the intended window configuration is restored, just as if
1193 the *xref* buffer hadn't been necessary in the first place.
1196 * New Modes and Packages in Emacs 26.1
1198 ** New Elisp data-structure library 'radix-tree'.
1200 ** New library 'xdg' with utilities for some XDG standards and specs.
1204 *** A new submode of 'html-mode', 'mhtml-mode', is now the default
1205 mode for *.html files. This mode handles indentation,
1206 fontification, and commenting for embedded JavaScript and CSS.
1208 ** New mode 'conf-toml-mode' is a sub-mode of 'conf-mode', specialized
1209 for editing TOML files.
1211 ** New mode 'conf-desktop-mode' is a sub-mode of 'conf-unix-mode',
1212 specialized for editing freedesktop.org desktop entries.
1214 ** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.
1216 ** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
1219 ** New package 'auth-source-pass' integrates 'auth-source' with the
1220 password manager password-store (http://passwordstore.org).
1223 * Incompatible Lisp Changes in Emacs 26.1
1225 ** 'password-data' is now a hash-table so that 'password-read' can use
1226 any object for the 'key' argument.
1228 ** Command 'dired-mark-extension' now automatically prepends a '.' to the
1229 extension when not present. The new command 'dired-mark-suffix' behaves
1230 similarly but it doesn't prepend a '.'.
1232 ** Certain cond/pcase/cl-case forms are now compiled using a faster jump
1233 table implementation. This uses a new bytecode op 'switch', which
1234 isn't compatible with previous Emacs versions. This functionality can
1235 be disabled by setting 'byte-compile-cond-use-jump-table' to nil.
1237 ** If 'comment-auto-fill-only-comments' is non-nil, 'auto-fill-function'
1238 is now called only if either no comment syntax is defined for the
1239 current buffer or the self-insertion takes place within a comment.
1241 ** The alist 'ucs-names' is now a hash table.
1243 ** 'if-let' and 'when-let' now support binding lists as defined by the
1244 SRFI-2 (Scheme Request for Implementation 2).
1246 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
1247 mode to send the same escape sequences that xterm does. This makes
1248 things like 'forward-word' in readline work.
1250 ** Customizable variable 'query-replace-from-to-separator'
1251 now doesn't propertize the string value of the separator.
1252 Instead, text properties are added by 'query-replace-read-from'.
1253 Additionally, the new nil value restores pre-24.5 behavior
1254 of not providing replacement pairs via the history.
1256 ** Some obsolete functions, variables, and faces have been removed:
1258 *** 'make-variable-frame-local'. Variables cannot be frame-local any more.
1260 *** From subr.el: 'window-dot', 'set-window-dot', 'read-input',
1261 'show-buffer', 'eval-current-buffer', 'string-to-int'.
1263 *** 'icomplete-prospects-length'.
1265 *** All the default-FOO variables that hold the default value of the
1266 FOO variable. Use 'default-value' and 'setq-default' to access and
1267 change FOO, respectively. The exhaustive list of removed variables is:
1268 'default-mode-line-format', 'default-header-line-format',
1269 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
1270 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
1271 'default-case-fold-search', 'default-left-margin-width',
1272 'default-right-margin-width', 'default-left-fringe-width',
1273 'default-right-fringe-width', 'default-fringes-outside-margins',
1274 'default-scroll-bar-width', 'default-vertical-scroll-bar',
1275 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
1276 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
1277 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
1278 'default-fill-column', 'default-cursor-type',
1279 'default-cursor-in-non-selected-windows',
1280 'default-buffer-file-coding-system', 'default-major-mode', and
1281 'default-enable-multibyte-characters'.
1283 *** Many variables obsoleted in 22.1 referring to face symbols.
1285 ** The variable 'text-quoting-style' is now a customizable option.
1286 It controls whether to and how to translate ASCII quotes in messages
1287 and help output. Its possible values and their semantics remain
1288 unchanged from Emacs 25. In particular, when this variable's value is
1289 'grave', all quotes in formats are output as-is.
1291 ** Functions like 'check-declare-file' and 'check-declare-directory'
1292 now generate less chatter and more-compact diagnostics. The auxiliary
1293 function 'check-declare-errmsg' has been removed.
1295 ** The regular expression character class '[:blank:]' now matches
1296 Unicode horizontal whitespace as defined in the Unicode Technical
1297 Standard #18. If you only want to match space and tab, use '[ \t]'
1300 ** 'min' and 'max' no longer round their results.
1301 Formerly, they returned a floating-point value if any argument was
1302 floating-point, which was sometimes numerically incorrect. For
1303 example, on a 64-bit host (max 1e16 10000000000000001) now returns its
1304 second argument instead of its first.
1306 ** The variable 'old-style-backquotes' has been made internal and
1307 renamed to 'lread--old-style-backquotes'. No user code should use
1310 ** 'default-file-name-coding-system' now defaults to a coding system
1311 that does not process CRLF. For example, it defaults to 'utf-8-unix'
1312 instead of to 'utf-8'. Before this change, Emacs would sometimes
1313 mishandle file names containing these control characters.
1315 ** 'file-attributes', 'file-symlink-p' and 'make-symbolic-link' no
1316 longer quietly mutate the target of a local symbolic link, so that
1317 Emacs can access and copy them reliably regardless of their contents.
1318 The following changes are involved.
1320 *** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
1321 symbolic links whose targets begin with "/" and contain ":". For
1322 example, if a symbolic link "x" has a target "/y:z:", '(file-symlink-p
1323 "x")' now returns "/y:z:" rather than "/:/y:z:".
1325 *** 'make-symbolic-link' no longer looks for file name handlers of
1326 target when creating a symbolic link. For example,
1327 '(make-symbolic-link "/y:z:" "x")' now creates a symbolic link to
1328 "/y:z:" instead of failing.
1330 *** 'make-symbolic-link' removes the remote part of a link target if
1331 target and newname have the same remote part. For example,
1332 '(make-symbolic-link "/x:y:a" "/x:y:b")' creates a link with the
1333 literal string "a"; and '(make-symbolic-link "/x:y:a" "/x:z:b")'
1334 creates a link with the literal string "/x:y:a" instead of failing.
1336 *** 'make-symbolic-link' now expands a link target with leading "~"
1337 only when the optional third arg is an integer, as when invoked
1338 interactively. For example, '(make-symbolic-link "~y" "x")' now
1339 creates a link with target the literal string "~y"; to get the old
1340 behavior, use '(make-symbolic-link (expand-file-name "~y") "x")'. To
1341 avoid this expansion in interactive use, you can now prefix the link
1342 target with "/:". For example, '(make-symbolic-link "/:~y" "x" 1)'
1343 now creates a link to literal "~y".
1345 ** 'file-truename' returns a quoted file name if the target of a
1346 symbolic link has remote file name syntax.
1348 ** Module functions are now implemented slightly differently; in
1349 particular, the function 'internal--module-call' has been removed.
1350 Code that depends on undocumented internals of the module system might
1353 ** The argument LOCKNAME of 'write-region' is propagated to file name
1356 ** When built against recent versions of GTK+, Emacs always uses
1357 gtk_window_move for moving frames and ignores the value of the
1358 variable 'x-gtk-use-window-move'. The variable is now obsolete.
1360 ** Several functions that create or rename files now treat their
1361 destination argument specially only when it is a directory name, i.e.,
1362 when it ends in '/' on GNU and other POSIX-like systems. When the
1363 destination argument D of one of these functions is an existing
1364 directory and the intent is to act on an entry in that directory, D
1365 should now be a directory name. For example, (rename-file "e" "f/")
1366 renames to 'f/e'. Although this formerly happened sometimes even when
1367 D was not a directory name, as in (rename-file "e" "f") where 'f'
1368 happened to be a directory, the old behavior often contradicted the
1369 documentation and had inherent races that led to security holes. A
1370 call like (rename-file C D) that used the old, undocumented behavior
1371 can be written as (rename-file C (file-name-as-directory D)), a
1372 formulation portable to both older and newer versions of Emacs.
1373 Affected functions include 'add-name-to-file', 'copy-directory',
1374 'copy-file', 'format-write-file', 'gnus-copy-file',
1375 'make-symbolic-link', 'rename-file', 'thumbs-rename-images', and
1378 ** The list returned by 'overlays-at' is now in decreasing priority order.
1379 The documentation of this function always said the order should be
1380 that of decreasing priority, if the 2nd argument of the function is
1381 non-nil, but the code returned the list in the increasing order of
1382 priority instead. Now the code does what the documentation says it
1385 ** 'format' now avoids allocating a new string in more cases.
1386 'format' was previously documented to return a newly-allocated string,
1387 but this documentation was not correct, as (eq x (format x)) returned
1388 t when x was the empty string. 'format' is no longer documented to
1389 return a newly-allocated string, and the implementation now takes
1390 advantage of the doc change to avoid making copies of strings in
1391 common cases like (format "foo") and (format "%s" "foo").
1393 ** The function 'eldoc-message' now accepts a single argument.
1394 Programs that called it with multiple arguments before should pass
1395 them through 'format' first. Even that is discouraged: for ElDoc
1396 support, you should set 'eldoc-documentation-function' instead of
1397 calling 'eldoc-message' directly.
1399 ** Using '&rest' or '&optional' incorrectly is now an error.
1400 For example giving '&optional' without a following variable, or
1401 passing '&optional' multiple times:
1403 (defun foo (&optional &rest x))
1404 (defun bar (&optional &optional x))
1406 Previously, Emacs would just ignore the extra keyword, or give
1407 incorrect results in certain cases.
1409 ** The pinentry.el library has been removed.
1410 That package (and the corresponding change in GnuPG and pinentry)
1411 was intended to provide a way to input passphrase through Emacs with
1412 GnuPG 2.0. However, the change to support that was only implemented
1413 in GnuPG >= 2.1 and didn't get backported to GnuPG 2.0. And with
1414 GnuPG 2.1 and later, pinentry.el is not needed at all. So the
1415 library was useless, and we removed it. GnuPG 2.0 is no longer
1416 supported by the upstream project.
1418 To adapt to the change, you may need to set 'epa-pinentry-mode' to the
1419 symbol 'loopback'. Alternatively, leave 'epa-pinentry-mode' at its
1420 default value of nil, and remove the 'allow-emacs-pinentry' setting
1421 from your 'gpg-agent.conf' configuration file, usually found in the
1422 '~/.gnupg' directory.
1424 Note that previously, it was said that passphrase input through
1425 minibuffer would be much less secure than other graphical pinentry
1426 programs. However, these days the difference is insignificant: the
1427 'read-password' function sufficiently protects input from leakage to
1428 message logs. Emacs still doesn't use secure memory to protect
1429 passphrases, but it was also removed from other pinentry programs as
1430 the attack is unrealistic on modern computer systems which don't
1431 utilize swap memory usually.
1433 ** The function 'display-buffer-in-major-side-window' no longer exists.
1434 It has been renamed as internal function 'window--make-major-side-window',
1435 however applications should instead call 'display-buffer-in-side-window'
1436 (passing the SIDE and SLOT parameters as elements of ALIST). This approach
1437 is backwards-compatible with versions of Emacs in which the old function
1438 exists. See the node "Displaying Buffers in Side Windows" in the ELisp
1439 manual for more details.
1441 * Lisp Changes in Emacs 26.1
1443 ** The function 'assoc' now takes an optional third argument TESTFN.
1444 This argument, when non-nil, is used for comparison instead of
1447 ** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'.
1448 If non-nil, the argument specifies a function to use for comparison,
1449 instead of, respectively, 'assq' and 'eql'.
1451 ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2
1452 contain the same elements, regardless of the order.
1454 ** The new function 'mapbacktrace' applies a function to all frames of
1455 the current stack trace.
1457 ** The new function 'file-name-case-insensitive-p' tests whether a
1458 given file is on a case-insensitive filesystem.
1460 ** Several accessors for the value returned by 'file-attributes'
1461 have been added. They are: 'file-attribute-type',
1462 'file-attribute-link-number', 'file-attribute-user-id',
1463 'file-attribute-group-id', 'file-attribute-access-time',
1464 'file-attribute-modification-time',
1465 'file-attribute-status-change-time', 'file-attribute-size',
1466 'file-attribute-modes', 'file-attribute-inode-number',
1467 'file-attribute-device-number' and 'file-attribute-collect'.
1469 ** The new function 'buffer-hash' computes a fast, non-consing hash of
1470 a buffer's contents.
1472 ** 'interrupt-process' now consults the list 'interrupt-process-functions',
1473 to determine which function has to be called in order to deliver the
1474 SIGINT signal. This allows Tramp to send the SIGINT signal to remote
1475 asynchronous processes. The hitherto existing implementation has been
1476 moved to 'internal-default-interrupt-process'.
1478 ** The new function 'read-multiple-choice' prompts for multiple-choice
1479 questions, with a handy way to display help texts.
1481 ** 'comment-indent-function' values may now return a cons to specify a
1482 range of indentation.
1484 ** New optional argument TEXT in 'make-temp-file'.
1486 ** New function 'define-symbol-prop'.
1488 ** New function 'secure-hash-algorithms' to list the algorithms that
1489 'secure-hash' supports.
1490 See the node "(elisp) Checksum/Hash" in the ELisp manual for details.
1492 ** Emacs now exposes the GnuTLS cryptographic API with the functions
1493 'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and
1494 'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt'
1495 and 'gnutls-symmetric-decrypt'.
1496 See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details.
1498 ** The function 'gnutls-available-p' now returns a list of capabilities
1499 supported by the GnuTLS library used by Emacs.
1501 ** Emacs now supports records for user-defined types, via the new
1502 functions 'make-record', 'record', and 'recordp'. Records are now
1503 used internally to represent cl-defstruct and defclass instances, for
1506 If your program defines new record types, you should use
1507 package-naming conventions for naming those types. This is so any
1508 potential conflicts with other types are avoided.
1510 ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
1511 to decide which buffers to ask about, if the PRED argument is nil.
1512 The default value of 'save-some-buffers-default-predicate' is nil,
1513 which means ask about all file-visiting buffers.
1515 ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
1517 ** New variable 'while-no-input-ignore-events' which allow
1518 setting which special events 'while-no-input' should ignore.
1519 It is a list of symbols.
1521 ** New function 'undo-amalgamate-change-group' to get rid of
1522 undo-boundaries between two states.
1524 ** New var 'definition-prefixes' is a hash table mapping prefixes to
1525 the files where corresponding definitions can be found. This can be
1526 used to fetch definitions that are not yet loaded, for example for
1529 ** New var 'syntax-ppss-table' to control the syntax-table used in
1532 ** 'define-derived-mode' can now specify an :after-hook form, which
1533 gets evaluated after the new mode's hook has run. This can be used to
1534 incorporate configuration changes made in the mode hook into the
1537 ** Autoload files are now generated without timestamps.
1538 Set 'autoload-timestamps' to a non-nil value to get timestamps in
1541 ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
1542 says that negotiation should complete even on non-blocking sockets.
1544 ** There is now a new variable 'flyspell-sort-corrections-function'
1545 that allows changing the way corrections are sorted.
1547 ** The new command 'fortune-message' has been added, which displays
1548 fortunes in the echo area.
1550 ** New function 'func-arity' returns information about the argument list
1551 of an arbitrary function. This generalizes 'subr-arity' for functions
1552 that are not built-in primitives. We recommend using this new
1553 function instead of 'subr-arity'.
1555 ** New function 'region-bounds' can be used in the interactive spec
1556 to provide region boundaries (for rectangular regions more than one)
1557 to an interactively callable function as a single argument instead of
1558 two separate arguments 'region-beginning' and 'region-end'.
1560 ** 'parse-partial-sexp' state has a new element.
1561 Element 10 is non-nil when the last character scanned might be the
1562 first character of a two character construct, i.e., a comment
1563 delimiter or escaped character. Its value is the syntax of that last
1566 ** 'parse-partial-sexp's state, element 9, has now been confirmed as
1567 permanent and documented, and may be used by Lisp programs. Its value
1568 is a list of currently open parenthesis positions, starting with the
1569 outermost parenthesis.
1571 ** 'read-color' will now display the color names using the color itself
1572 as the background color.
1574 ** The function 'redirect-debugging-output' now works on platforms
1575 other than GNU/Linux.
1577 ** The new function 'string-version-lessp' compares strings by
1578 interpreting consecutive runs of numerical characters as numbers, and
1579 compares their numerical values. According to this predicate,
1580 "foo2.png" is smaller than "foo12.png".
1582 ** Numeric comparisons and 'logb' no longer return incorrect answers
1583 due to internal rounding errors. For example, '(< most-positive-fixnum
1584 (+ 1.0 most-positive-fixnum))' now correctly returns t on 64-bit hosts.
1586 ** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
1587 accept only floating-point arguments, as per their documentation.
1588 Formerly, they quietly accepted integer arguments and sometimes
1589 returned nonsensical answers, e.g., '(< N (ffloor N))' could return t.
1591 ** On hosts like GNU/Linux x86-64 where a 'long double' fraction
1592 contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
1593 incorrect answers due to internal rounding errors when formatting
1594 Emacs integers with '%e', '%f', or '%g' conversions. For example, on
1595 these hosts '(eql N (string-to-number (format "%.0f" N)))' now returns
1596 t for all Emacs integers N.
1598 ** Calls that accept floating-point integers (for use on hosts with
1599 limited integer range) now signal an error if arguments are not
1600 integral. For example '(decode-char 'ascii 0.5)' now signals an
1603 ** Functions 'string-trim-left', 'string-trim-right' and 'string-trim'
1604 now accept optional arguments which specify the regexp of a substring
1607 ** The new function 'char-from-name' converts a Unicode name string
1608 to the corresponding character code.
1610 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
1611 Lisp object suitable for use with 'eq' and 'eql' correspondingly. If
1612 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
1613 ('sxhash-eql') on them will be the same.
1615 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
1616 consistency with the new functions. For compatibility, 'sxhash'
1617 remains as an alias to 'sxhash-equal'.
1619 ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
1620 instead of 0.8, to avoid rounding glitches.
1622 ** New function 'add-variable-watcher' can be used to call a function
1623 when a symbol's value is changed. This is used to implement the new
1624 debugger command 'debug-on-variable-change'.
1626 ** New variable 'print-escape-control-characters' causes 'prin1' and
1627 'print' to output control characters as backslash sequences.
1629 ** Time conversion functions that accept a time zone rule argument now
1630 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
1631 OFFSET is a count of seconds east of Universal Time, and the string
1632 ABBR is a time zone abbreviation. The affected functions are
1633 'current-time-string', 'current-time-zone', 'decode-time',
1634 'format-time-string', and 'set-time-zone-rule'.
1636 ** 'format-time-string' now formats '%q' to the calendar quarter.
1638 ** New built-in function 'mapcan'.
1639 It avoids unnecessary consing (and garbage collection).
1641 ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
1643 ** 'gensym' is now part of Elisp.
1645 ** Low-level list functions like 'length' and 'member' now do a better
1646 job of signaling list cycles instead of looping indefinitely.
1648 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
1649 can be used for creation of temporary files on remote or mounted directories.
1651 ** On GNU platforms when operating on a local file, 'file-attributes'
1652 no longer suffers from a race when called while another process is
1653 altering the filesystem. On non-GNU platforms 'file-attributes'
1654 attempts to detect the race, and returns nil if it does so.
1656 ** The new function 'file-local-name' can be used to specify arguments
1657 of remote processes.
1659 ** The new functions 'file-name-quote', 'file-name-unquote' and
1660 'file-name-quoted-p' can be used to quote / unquote file names with
1663 ** The new error 'file-missing', a subcategory of 'file-error', is now
1664 signaled instead of 'file-error' if a file operation acts on a file
1665 that does not exist.
1667 ** The function 'delete-directory' no longer signals an error when
1668 operating recursively and when some other process deletes the directory
1669 or its files before 'delete-directory' gets to them.
1671 ** New error type 'user-search-failed' like 'search-failed' but
1672 avoids debugger like 'user-error'.
1674 ** The function 'line-number-at-pos' now takes a second optional
1675 argument 'absolute'. If this parameter is nil, the default, this
1676 function keeps on returning the line number taking potential narrowing
1677 into account. If this parameter is non-nil, the function ignores
1678 narrowing and returns the absolute line number.
1680 ** The function 'color-distance' now takes a second optional argument
1681 'metric'. When non-nil, it should be a function of two arguments that
1682 accepts two colors and returns a number.
1684 ** Changes in Frame and Window Handling
1686 *** Resizing a frame no longer runs 'window-configuration-change-hook'.
1687 'window-size-change-functions' should be used instead.
1689 *** The new function 'frame-size-changed-p' can tell whether a frame has
1690 been resized since the last time 'window-size-change-functions' has been
1693 *** The function 'frame-geometry' now also returns the width of a
1694 frame's outer border.
1696 *** New frame parameters and changed semantics for older ones:
1698 **** 'z-group' positions a frame above or below all others.
1700 **** 'min-width' and 'min-height' specify the absolute minimum size of a
1703 **** 'parent-frame' makes a frame the child frame of another Emacs
1704 frame. The section "(elisp) Child Frames" in the ELisp manual
1705 describes the intrinsics of that relationship.
1707 **** 'delete-before' triggers deletion of one frame before that of
1710 **** 'mouse-wheel-frame' specifies another frame whose windows shall be
1713 **** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
1716 **** 'skip-taskbar' removes a frame's icon from the taskbar and has
1717 'Alt-<TAB>' skip this frame.
1719 **** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
1721 **** 'no-accept-focus' means that a frame does not want to get input
1722 focus via the mouse.
1724 **** 'undecorated' removes the window manager decorations from a frame.
1726 **** 'override-redirect' tells the window manager to disregard this
1729 **** 'width' and 'height' now allow the specification of pixel values
1732 **** 'left' and 'top' now allow the specification of ratios.
1734 **** 'keep-ratio' preserves size and position of child frames when their
1735 parent frame is resized.
1737 **** 'no-special-glyphs' suppresses display of truncation and
1738 continuation glyphs in a frame.
1740 **** 'auto-hide-function' and 'minibuffer-exit' handle auto hiding of
1741 frames and exiting from minibuffer individually.
1743 **** 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes'
1744 handle fitting a frame to its buffer individually.
1746 **** 'drag-internal-border', 'drag-with-header-line',
1747 'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible'
1748 allow dragging and resizing frames with the mouse.
1750 **** 'minibuffer' is now set to the default minibuffer window when
1751 initially specified as nil and is not reset to nil when initially
1752 specifying a minibuffer window.
1754 *** The new function 'frame-list-z-order' returns a list of all frames
1755 in Z (stacking) order.
1757 *** The function 'x-focus-frame' optionally tries to not activate its
1760 *** The variable 'focus-follows-mouse' has a third meaningful value
1761 'auto-raise' to indicate that the window manager automatically raises a
1762 frame when the mouse pointer enters it.
1764 *** The new function 'frame-restack' puts a frame above or below
1765 another on the display.
1767 *** The new face 'internal-border' specifies the background of a frame's
1770 *** The NORECORD argument of 'select-window' now has a meaningful value
1771 'mark-for-redisplay' which is like any other non-nil value but marks
1772 WINDOW for redisplay.
1774 *** Support for side windows is now official. The display action
1775 function 'display-buffer-in-side-window' will display its buffer in a
1776 side window. Functions for toggling all side windows on a frame,
1777 changing and reversing the layout of side windows and returning the
1778 main (major non-side) window of a frame are provided. For details
1779 consult the section "(elisp) Side Windows" in the ELisp manual.
1781 *** Support for atomic windows - rectangular compositions of windows
1782 treated by 'split-window', 'delete-window' and 'delete-other-windows'
1783 like a single live window - is now official. For details consult the
1784 section "(elisp) Atomic Windows" in the ELisp manual.
1786 *** New 'display-buffer' alist entry 'window-parameters' allows the
1787 assignment of window parameters to the window used for displaying the
1790 *** New function 'display-buffer-reuse-mode-window' is an action function
1791 suitable for use in 'display-buffer-alist'. For example, to avoid
1792 creating a new window when opening man pages when there's already one,
1795 (add-to-list 'display-buffer-alist
1796 '("\\`\\*Man .*\\*\\'" .
1797 (display-buffer-reuse-mode-window
1798 (inhibit-same-window . nil)
1799 (mode . Man-mode))))
1801 *** New window parameter 'no-delete-other-windows' prevents that
1802 its window gets deleted by 'delete-other-windows'.
1804 *** New window parameters 'mode-line-format' and 'header-line-format'
1805 allow the buffer-local formats for this window to be overridden.
1807 *** New command 'window-swap-states' swaps the states of two live
1810 *** New functions 'window-pixel-width-before-size-change' and
1811 'window-pixel-height-before-size-change' support detecting which
1812 window changed size when 'window-size-change-functions' are run.
1814 *** The new function 'window-lines-pixel-dimensions' returns the pixel
1815 dimensions of a window's text lines.
1817 *** The new function 'window-largest-empty-rectangle' returns the
1818 dimensions of the largest rectangular area not occupying any text in a
1821 *** The semantics of 'mouse-autoselect-window' has changed slightly.
1822 For details see the section "(elisp) Mouse Window Auto-selection" in
1825 *** 'select-frame-by-name' now may return a frame on another display
1826 if it does not find a suitable one on the current display.
1828 ** 'tcl-auto-fill-mode' is now declared obsolete.
1829 Its functionality can be replicated simply by setting
1830 'comment-auto-fill-only-comments'.
1832 ** New pcase pattern 'rx' to match against an rx-style regular expression.
1833 For details, see the doc string of 'rx--pcase-macroexpander'.
1835 ** New functions to set region from secondary selection and vice versa.
1836 The new functions 'secondary-selection-to-region' and
1837 'secondary-selection-from-region' let you set the beginning and the
1838 end of the region from those of the secondary selection and vice
1841 ** New function 'lgstring-remove-glyph' can be used to modify a
1842 gstring returned by the underlying layout engine (e.g. m17n-flt,
1846 * Changes in Emacs 26.1 on Non-Free Operating Systems
1848 ** Intercepting hotkeys on Windows 7 and later now works better.
1849 The new keyboard hooking code properly grabs system hotkeys such as
1850 'Win-*' and 'Alt-TAB', in a way that Emacs can get at them before the
1851 system. This makes the 'w32-register-hot-key' functionality work
1852 again on all versions of MS-Windows starting with Windows 7. On
1853 Windows NT and later you can now register any hotkey combination. (On
1854 Windows 9X, the previous limitations, spelled out in the Emacs manual,
1857 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
1858 Previously, on MS-Windows this function converted slash characters in
1859 file names into backslashes. It no longer does that. If your Lisp
1860 program used 'convert-standard-filename' to prepare file names to be
1861 passed to subprocesses (which is not the recommended usage of that
1862 function), you will now have to mirror slashes in your application
1863 code. One possible way is this:
1866 (while (string-match "/" file-name start)
1867 (aset file-name (match-beginning 0) ?\\)
1868 (setq start (match-end 0))))
1870 ** GUI sessions on MS-Windows now treat SIGINT like Posix platforms do.
1871 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
1872 MS-Windows is now the same as on Posix platforms -- Emacs saves the
1873 session and exits. In particular, this will happen if you start
1874 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
1877 ** 'signal-process' supports SIGTRAP on Windows XP and later.
1878 The 'kill' emulation on Windows now maps SIGTRAP to a call to the
1879 'DebugBreakProcess' API. This causes the receiving process to break
1880 execution and return control to the debugger. If no debugger is
1881 attached to the receiving process, the call is typically ignored.
1882 This is in contrast to the default action on POSIX Systems, where it
1883 causes the receiving process to terminate with a core dump if no
1884 debugger has been attached to it.
1886 ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work
1889 ** Emacs can now be run as a GUI application from the command line on
1892 ** 'ns-appearance' and 'ns-transparent-titlebar' change the appearance
1893 of frame decorations on macOS 10.9+.
1895 ** 'ns-use-thin-smoothing' enables thin font smoothing on macOS 10.8+.
1897 ** 'process-attributes' on Darwin systems now returns more information.
1899 ** Mousewheel and trackpad scrolling on macOS 10.7+ now behaves more
1900 like the macOS default. The new variables 'ns-mwheel-line-height',
1901 'ns-use-mwheel-acceleration' and 'ns-use-mwheel-momentum' can be used
1902 to customize the behavior.
1905 ----------------------------------------------------------------------
1906 This file is part of GNU Emacs.
1908 GNU Emacs is free software: you can redistribute it and/or modify
1909 it under the terms of the GNU General Public License as published by
1910 the Free Software Foundation, either version 3 of the License, or
1911 (at your option) any later version.
1913 GNU Emacs is distributed in the hope that it will be useful,
1914 but WITHOUT ANY WARRANTY; without even the implied warranty of
1915 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1916 GNU General Public License for more details.
1918 You should have received a copy of the GNU General Public License
1919 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
1925 paragraph-separate: "[
\f]*$"