Avoid leaving garbage on screen when using 'raise' display property
[emacs.git] / etc / NEWS
blob5d14e122a202859ae010207e7d1acd5ffec81177
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,
24 +++
25 ** The version number of CC Mode has been changed from 5.33 to
26 5.32.99, although the software itself hasn't changed.  This aims to
27 reduce confusion with the standalone CC Mode 5.33 (available from
28 http://cc-mode.sourceforge.net), which is a more mature version than
29 the one in Emacs 25.2.
32 * Installation Changes in Emacs 26.1
34 ** By default libgnutls is now required when building Emacs.
35 Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
37 ** GnuTLS version 2.12.2 or later is now required, instead of merely
38 version 2.6.6 or later.
40 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
41 GCC to issue warnings without stopping the build.  This behavior is
42 now the default in developer builds.  As before, use
43 '--disable-gcc-warnings' to suppress GCC's warnings, and
44 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
46 +++
47 ** The Emacs server now has socket-launching support.  This allows
48 socket based activation, where an external process like systemd can
49 invoke the Emacs server process upon a socket connection event and
50 hand the socket over to Emacs.  Emacs uses this socket to service
51 emacsclient commands.  This new functionality can be disabled with the
52 configure option '--disable-libsystemd'.
54 +++
55 ** A systemd user unit file is provided.  Use it in the standard way:
56 systemctl --user enable emacs
57 (If your Emacs is installed in a non-standard location, you may
58 need to copy the emacs.service file to eg ~/.config/systemd/user/)
60 ** New configure option '--disable-build-details' attempts to build an
61 Emacs that is more likely to be reproducible; that is, if you build
62 and install Emacs twice, the second Emacs is a copy of the first.
63 Deterministic builds omit the build date from the output of the
64 emacs-version and erc-cmd-SV functions, and the leave the following
65 variables nil: emacs-build-system, emacs-build-time,
66 erc-emacs-build-time.
68 ** Emacs no longer works on IRIX.  We expect that Emacs users are not
69 affected by this, as SGI stopped supporting IRIX in December 2013.
72 * Startup Changes in Emacs 26.1
74 ** New option '--new-daemon'.  This is the same as '--daemon', except
75 it runs in the foreground and does not fork.  This is intended for
76 modern init systems such as systemd, which manage many of the traditional
77 aspects of daemon behavior themselves.  '--old-daemon' is now an alias
78 for '--daemon'.
80 +++
81 ** Emacs now supports 24-bit colors on capable text terminals
82 Terminal is automatically initialized to use 24-bit colors if the
83 required capabilities are found in terminfo.  See the FAQ node
84 "Colors on a TTY" for more information.
87 * Changes in Emacs 26.1
89 ** The variable 'emacs-version' no longer includes the build number.
90 This is now stored separately in a new variable, 'emacs-build-number'.
92 +++
93 ** The new function 'mapbacktrace' applies a function to all frames of
94 the current stack trace.
96 +++
97 ** Emacs now provides a limited form of concurrency with Lisp threads.
98 Concurrency in Emacs Lisp is "mostly cooperative", meaning that
99 Emacs will only switch execution between threads at well-defined
100 times: when Emacs waits for input, during blocking operations related
101 to threads (such as mutex locking), or when the current thread
102 explicitly yields.  Global variables are shared among all threads, but
103 a 'let' binding is thread-local.  Each thread also has its own current
104 buffer and its own match data.
106 See the chapter "Threads" in the ELisp manual for full documentation
107 of these facilities.
110 ** The new function 'file-name-case-insensitive-p' tests whether a
111 given file is on a case-insensitive filesystem.
114 ** The new user variable 'electric-quote-chars' provides a list
115 of curved quotes for 'electric-quote-mode', allowing user to choose
116 the types of quotes to be used.
119 ** The new user variable 'dired-omit-case-fold' allows the user to
120 customize the case-sensitivity of dired-omit-mode.  It defaults to
121 the same sensitivity as that of the filesystem for the corresponding
122 dired buffer.
125 ** Emacs now uses double buffering to reduce flicker when editing and
126 resizing graphical Emacs frames on the X Window System.  This support
127 requires the DOUBLE-BUFFER extension, which major X servers have
128 supported for many years.  If your system has this extension, but an
129 Emacs built with double buffering misbehaves on some displays you use,
130 you can disable the feature by adding
132   '(inhibit-double-buffering . t)
134 to default-frame-parameters.  Or inject this parameter into the
135 selected frame by evaluating this form:
137   (modify-frame-parameters nil '((inhibit-double-buffering . t)))
140 The group 'wp', whose label was "text", is now deprecated.
141 Use the new group 'text', which inherits from 'wp', instead.
144 ** The new function 'call-shell-region' executes a command in an
145 inferior shell with the buffer region as input.
148 ** The new user option 'shell-command-dont-erase-buffer' controls
149 if the output buffer is erased between shell commands; if non-nil,
150 the output buffer is not erased; this variable also controls where
151 to set the point in the output buffer: beginning of the output,
152 end of the buffer or save the point.
153 When 'shell-command-dont-erase-buffer' is nil, the default value,
154 the behavior of 'shell-command', 'shell-command-on-region' and
155 'async-shell-command' is as usual.
158 ** The new user option 'mouse-select-region-move-to-beginning'
159 controls the position of point when double-clicking mouse-1 on the end
160 of a parenthetical grouping or string-delimiter: the default value nil
161 keeps point at the end of the region, setting it to non-nil moves
162 point to the beginning of the region.
165 ** The new user option 'confirm-kill-processes' allows the user to
166 skip a confirmation prompt for killing subprocesses when exiting
167 Emacs.  When set to t (the default), Emacs will prompt for
168 confirmation before killing subprocesses on exit, which is the same
169 behavior as before.
172 ** 'find-library-name' will now fall back on looking at 'load-history'
173 to try to locate libraries that have been loaded with an explicit path
174 outside 'load-path'.
177 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
178 in the text in functions like 'read-from-minibuffer', but instead are
179 added to the end of the face list.  This allows users to say things
180 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
183 ** The new variable 'extended-command-suggest-shorter' has been added
184 to control whether to suggest shorter 'M-x' commands or not.
187 ** icomplete now respects 'completion-ignored-extensions'.
190 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
191 face instead of the 'escape-glyph' face.
194 ** Approximations to quotes are now displayed with the new 'homoglyph'
195 face instead of the 'escape-glyph' face.
198 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
199 part of minibuffers.
202 ** 'find-library' now takes a prefix argument to pop to a different
203 window.
206 ** 'process-attributes' on Darwin systems now returns more information.
209 ** Several accessors for the value returned by 'file-attributes'
210 have been added.  They are: 'file-attribute-type',
211 'file-attribute-link-number', 'file-attribute-user-id',
212 'file-attribute-group-id', 'file-attribute-access-time',
213 'file-attribute-modification-time',
214 'file-attribute-status-change-time', 'file-attribute-size',
215 'file-attribute-modes', 'file-attribute-inode-number',
216 'file-attribute-device-number' and 'file-attribute-collect'.
219 ** The new function 'buffer-hash' computes a fast, non-consing hash of
220 a buffer's contents.
223 ** 'fill-paragraph' no longer marks the buffer as changed unless it
224 actually changed something.
227 ** The locale language name 'ca' is now mapped to the language
228 environment 'Catalan', which has been added.
231 ** 'align-regexp' has a separate history for its interactive argument.
232 'align-regexp' no longer shares its history with all other
233 history-less functions that use 'read-string'.
236 ** The networking code has been reworked so that it's more
237 asynchronous than it was (when specifying :nowait t in
238 'make-network-process').  How asynchronous it is varies based on the
239 capabilities of the system, but on a typical GNU/Linux system the DNS
240 resolution, the connection, and (for TLS streams) the TLS negotiation
241 are all done without blocking the main Emacs thread.  To get
242 asynchronous TLS, the TLS boot parameters have to be passed in (see
243 the manual for details).
245 Certain process oriented functions (like 'process-datagram-address')
246 will block until socket setup has been performed.  The recommended way
247 to deal with asynchronous sockets is to avoid interacting with them
248 until they have changed status to "run".  This is most easily done
249 from a process sentinel.
251 ** 'make-network-process' and 'open-network-stream' sometimes allowed
252 :service to be an integer string (e.g., :service "993") and sometimes
253 required an integer (e.g., :service 993).  This difference has been
254 eliminated, and integer strings work everywhere.
256 ** It is possible to disable attempted recovery on fatal signals.
258 Two new variables support disabling attempts to recover from stack
259 overflow and to avoid automatic auto-save when Emacs is delivered a
260 fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
261 will disable attempts to recover from C stack overflows; Emacs will
262 then crash as with any other fatal signal.
263 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
264 disable attempts to auto-save the session and shut down in an orderly
265 fashion when Emacs receives a fatal signal; instead, Emacs will
266 terminate immediately.  Both variables are non-'nil' by default.
267 These variables are for users who would like to avoid the small
268 probability of data corruption due to techniques Emacs uses to recover
269 in these situations.
272 ** File local and directory local variables are now initialized each
273 time the major mode is set, not just when the file is first visited.
274 These local variables will thus not vanish on setting a major mode.
277 ** A second dir-local file (.dir-locals-2.el) is now accepted.
278 See the variable 'dir-locals-file-2' for more information.
281 ** Connection-local variables can be used to specify local variables
282 with a value depending on the connected remote server.  For details,
283 see the node "Connection Local Variables" in the ELisp manual.
286 ** International domain names (IDNA) are now encoded via the new
287 puny.el library, so that one can visit web sites with non-ASCII URLs.
290 ** The new 'timer-list' command lists all active timers in a buffer,
291 where you can cancel them with the 'c' command.
294 ** The new function 'read-multiple-choice' prompts for multiple-choice
295 questions, with a handy way to display help texts.
298 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
301 ** The new variable 'debugger-stack-frame-as-list' allows displaying
302 all call stack frames in a Lisp backtrace buffer as lists.  Both
303 debug.el and edebug.el have been updated to heed to this variable.
306 ** The new variable 'x-ctrl-keysym' has been added to the existing
307 roster of X keysyms.  It can be used in combination with another
308 variable of this kind to swap modifiers in Emacs.
311 ** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
314 ** File name quoting by adding the prefix "/:" is now possible for the
315 local part of a remote file name.  Thus, if you have a directory named
316 "/~" on the remote host "foo", you can prevent it from being
317 substituted by a home directory by writing it as "/foo:/:/~/file".
320 ** The new variable 'maximum-scroll-margin' allows having effective
321 settings of 'scroll-margin' up to half the window size, instead of
322 always restricting the margin to a quarter of the window.
325 ** Emacsclient has a new option -u/--suppress-output.  The option
326 suppresses display of return values from the server process.
329 * Editing Changes in Emacs 26.1
332 ** Two new user options 'list-matching-lines-jump-to-current-line' and
333 'list-matching-lines-current-line-face' to show highlighted the current
334 line in *Occur* buffer.
337 ** The 'occur' command can now operate on the region.
340 ** New bindings for 'query-replace-map'.
341 'undo', undo the last replacement; bound to 'u'.
342 'undo-all', undo all replacements; bound to 'U'.
344 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
345 In modes where form feed was treated as a whitespace character,
346 'delete-trailing-whitespace' would keep lines containing it unchanged.
347 It now deletes whitespace after the last form feed thus behaving the
348 same as in modes where the character is not whitespace.
350 ** No more prompt about changed file when the file's content is unchanged.
351 Instead of only checking the modification time, Emacs now also checks
352 the file's actual content before prompting the user.
354 ** Title case characters are properly converted to upper case.
355 'upcase', 'upcase-region' et al. convert title case characters (such
356 as the single character "Dz") into their upper case form (such as "DZ").
357 As a downside, 'capitalize' and 'upcase-initials' produce awkward
358 words where first character is upper rather than title case, e.g.,
359 "Ç„ungla" instead of "Ç…ungla".
362 * Changes in Specialized Modes and Packages in Emacs 26.1
364 ** TeX: Add luatex and xetex as alternatives to pdftex
366 ** Electric-Buffer-menu
369 *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
370 bound to 'Buffer-menu-unmark-all-buffers'.
372 ** bs
375 *** Two new commands 'bs-unmark-all', bound to 'U', and
376 'bs-unmark-previous', bound to <backspace>.
378 ** Buffer-menu
381 *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
382 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
384 ** Gnus
387 *** The .newsrc file will now only be saved if the native select
388 method is an NNTP select method.
391 *** A new command for sorting articles by readedness marks has been
392 added: 'C-c C-s C-m C-m'.
394 ** Ibuffer
397 *** New filter commands 'ibuffer-filter-by-basename',
398 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
399 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
400 and 'ibuffer-filter-by-visiting-file'; bound respectively
401 to '/b', '/.', '//', '/*', '/i' and '/v'.
404 *** Two new commands 'ibuffer-filter-chosen-by-completion'
405 and 'ibuffer-and-filter', the second bound to '/&'.
408 *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
409 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
410 bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
413 *** The data format specifying filters has been extended to allow
414 explicit logical 'and', and a more flexible form for logical 'not'.
415 See 'ibuffer-filtering-qualifiers' doc string for full details.
418 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
419 to 'B'.
422 *** New command 'ibuffer-change-marks'; bound to '* c'.
425 *** A new command 'ibuffer-mark-by-locked' to mark
426 all locked buffers;  bound to '% L'.
429 *** A new option 'ibuffer-locked-char' to indicate
430 locked buffers; Ibuffer shows a new column displaying
431 'ibuffer-locked-char' for locked buffers.
434 *** A new command 'ibuffer-unmark-all-marks' to unmark
435 all buffers without asking confirmation;  bound to
436 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
439 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
440 whose content matches a regexp; bound to '% g'.
443 *** Two new options 'ibuffer-never-search-content-name' and
444 'ibuffer-never-search-content-mode' used by
445 'ibuffer-mark-by-content-regexp'.
447 ** Browse-URL
449 *** Support for opening links to man pages in Man or WoMan mode.
451 ** Comint
454 *** New user option 'comint-move-point-for-matching-input' to control
455 where to place point after C-c M-r and C-c M-s.
457 ** Compilation mode
460 *** Messages from CMake are now recognized.
462 ** Dired
465 *** A new option 'dired-always-read-filesystem' default to nil.
466 If non-nil, buffers visiting files are reverted before search them;
467 for instance, in 'dired-mark-files-containing-regexp' a non-nil value
468 of this option means the file is revisited in a temporary buffer;
469 this temporary buffer is the actual buffer searched: the original buffer
470 visiting the file is not modified.
473 *** In wdired, when editing files to contain slash characters,
474 the resulting directories are automatically created.  Whether to do
475 this is controlled by the 'wdired-create-parent-directories' variable.
478 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
479 viewing HTML files and the like.
481 ** Edebug
483 *** Edebug can be prevented from pausing 1 second after reaching a
484 breakpoint (e.g. with "f" and "o") by customizing the new option
485 'edebug-sit-on-break'.
488 *** New customizable option 'edebug-max-depth'
489 This allows to enlarge the maximum recursion depth when instrumenting
490 code.
492 ** Eshell
494 *** 'eshell-input-filter's value is now a named function
495 'eshell-input-filter-default', and has a new custom option
496 'eshell-input-filter-initial-space' to ignore adding commands prefixed
497 with blank space to eshell history.
499 ** eww
502 *** New 'M-RET' command for opening a link at point in a new eww buffer.
505 *** A new 's' command for switching to another eww buffer via the minibuffer.
508 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
509 with the 'o' command from 'image-map'.
512 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
513 whether to use the HTML-specified colors or not.  The user can also
514 customize the 'shr-use-colors' variable.
517 *** Images that are being loaded are now marked with gray
518 "placeholder" images of the size specified by the HTML.  They are then
519 replaced by the real images asynchronously, which will also now
520 respect width/height HTML specs (unless they specify widths/heights
521 bigger than the current window).
523 ** Images
526 *** Images are automatically scaled before displaying based on the
527 'image-scaling-factor' variable (if Emacs supports scaling the images
528 in question).
531 *** Images inserted with 'insert-image' and related functions get a
532 keymap put into the text properties (or overlays) that span the
533 image.  This keymap binds keystrokes for manipulating size and
534 rotation, as well as saving the image to a file.  These commands are
535 also available in 'image-mode'.
538 *** A new library for creating and manipulating SVG images has been
539 added.  See the "SVG Images" section in the Lisp reference manual for
540 details.
543 *** New setf-able function to access and set image parameters is
544 provided: 'image-property'.
547 *** New commands 'image-scroll-left' and 'image-scroll-right'
548 for 'image-mode' that complement 'image-scroll-up' and
549 'image-scroll-down': they have the same prefix arg behavior and stop
550 at image boundaries.
552 ** Image-Dired
554 *** Now provides a minor mode 'image-dired-minor-mode' which replaces
555 the function 'image-dired-setup-dired-keybindings'.
557 *** Thumbnail generation is now asynchronous
558 The number of concurrent processes is limited by the variable
559 'image-dired-thumb-job-limit'.
561 *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
562 for generating 256x256 thumbnails according to the Thumbnail Managing
563 Standard.
565 *** Inherits movement keys from 'image-mode' for viewing full images.
566 This includes the usual char, line, and page movement commands.
568 *** All the -options types have been changed to argument lists
569 instead of shell command strings.  This change affects
570 'image-dired-cmd-create-thumbnail-options',
571 'image-dired-cmd-create-temp-image-options',
572 'image-dired-cmd-rotate-thumbnail-options',
573 'image-dired-cmd-rotate-original-options',
574 'image-dired-cmd-write-exif-data-options',
575 'image-dired-cmd-read-exif-data-options', and introduces
576 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
577 'image-dired-cmd-create-standard-thumbnail-options'
579 *** Recognizes more tools by default, including pngnq-s9 and OptiPNG
581 *** 'find-file' and related commands now work on thumbnails and
582 displayed images, providing a default argument of the original file name
583 via an addition to 'file-name-at-point-functions'.
586 ** The default 'Info-default-directory-list' no longer checks some obsolete
587 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
588 when searching for info directories.
591 ** The commands that add ChangeLog entries now prefer a VCS root directory
592 for the ChangeLog file, if none already exists.  Customize
593 'change-log-directory-files' to nil for the old behavior.
596 ** Support for non-string values of 'time-stamp-format' has been removed.
598 ** Message
601 *** 'message-use-idna' now defaults to t (because Emacs comes with
602 built-in IDNA support now).
605 *** When sending HTML messages with embedded images, and you have
606 exiftool installed, and you rotate images with EXIF data (i.e.,
607 JPEGs), the rotational information will be inserted into the outgoing
608 image in the message.  (The original image will not have its
609 orientation affected.)
612 *** The 'message-valid-fqdn-regexp' variable has been removed, since
613 there are now top-level domains added all the time.  Message will no
614 longer warn about sending emails to top-level domains it hasn't heard
615 about.
617 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
618 In 'visual-line-mode' it will look for the true beginning of a header
619 while in non-'visual-line-mode' it will move the point to the indented
620 header's value.
622 ** Tramp
625 *** New connection method "sg", which supports editing files under a
626 different group ID.
629 *** New connection method "doas" for OpenBSD hosts.
632 *** New connection method "gdrive", which allows to access Google
633 Drive onsite repositories.
636 *** Gateway methods in Tramp have been removed.  Instead, the Tramp
637 manual documents how to configure ssh and PuTTY accordingly.
640 *** Setting the "ENV" environment variable in
641 'tramp-remote-process-environment' enables reading of shell
642 initialization files.
645 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
648 ** JS mode now sets 'comment-multi-line' to t.
650 ** CSS mode
653 *** Support for completing attribute values, at-rules, bang-rules,
654 HTML tags, classes and IDs using the 'completion-at-point' command.
655 Completion candidates for HTML classes and IDs are retrieved from open
656 HTML mode buffers.
659 *** CSS mode now binds 'C-h S' to a function that will show
660 information about a CSS construct (an at-rule, property, pseudo-class,
661 pseudo-element, with the default being guessed from context).  By
662 default the information is looked up on the Mozilla Developer Network,
663 but this can be customized using 'css-lookup-url-format'.
666 ** Emacs now supports character name escape sequences in character and
667 string literals.  The syntax variants \N{character name} and
668 \N{U+code} are supported.
671 ** Prog mode has some support for multi-mode indentation.
672 This allows better indentation support in modes that support multiple
673 programming languages in the same buffer, like literate programming
674 environments or ANTLR programs with embedded Python code.
676 A major mode can provide indentation context for a sub-mode through
677 the 'prog-indentation-context' variable.  To support this, modes that
678 provide indentation should use 'prog-widen' instead of 'widen' and
679 'prog-first-column' instead of a literal zero.  See the node
680 "Mode-Specific Indent" in the ELisp manual for more details.
682 ** ERC
684 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
685 servers.
687 ** URL
690 *** The new function 'url-cookie-delete-cookie' can be used to
691 programmatically delete all cookies, or cookies from a specific
692 domain.
695 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
698 *** The URL package now support HTTPS over proxies supporting CONNECT.
701 *** 'url-user-agent' now defaults to 'default', and the User-Agent
702 string is computed dynamically based on 'url-privacy-level'.
704 ** VC and related modes
707 *** The VC state indicator in the mode line now defaults to more
708 colorful faces to make it more obvious to the user what the state is.
709 See the 'vc-faces' customization group.
711 ** CC mode
713 *** Opening a .h file will turn C or C++ mode depending on language used.
714 This is done with the help of 'c-or-c++-mode' function which analyses
715 contents of the buffer to determine whether it's a C or C++ source
716 file.
718 ** Flymake
721 *** Emacs does no longer prompt the user before killing Flymake
722 processes on exit.
725 * New Modes and Packages in Emacs 26.1
727 ** New Elisp data-structure library 'radix-tree'.
729 ** New library 'xdg' with utilities for some XDG standards and specs.
732 * Incompatible Lisp Changes in Emacs 26.1
735 ** Resizing a frame no longer runs 'window-configuration-change-hook'.
736 Put your function on 'window-size-change-functions' instead.
738 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
739 mode to send the same escape sequences that xterm does.  This makes
740 things like forward-word in readline work.
743 ** hideshow mode got four key bindings that are analogous to outline
744 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
746 ** The grep/rgrep/lgrep functions will now ask about saving files
747 before running.  This is controlled by the 'grep-save-buffers'
748 variable.
751 ** Customizable variable 'query-replace-from-to-separator'
752 now doesn't propertize the string value of the separator.
753 Instead, text properties are added by query-replace-read-from.
754 Additionally, the new nil value restores pre-24.5 behavior
755 of not providing replacement pairs via the history.
757 ** Some obsolete functions, variables, and faces have been removed:
758 *** make-variable-frame-local.  Variables cannot be frame-local any more.
759 *** From subr.el: window-dot, set-window-dot, read-input, show-buffer,
760 eval-current-buffer, string-to-int
761 *** All the default-FOO variables that hold the default value of the
762 FOO variable.  Use 'default-value' and 'setq-default' to access and
763 change FOO, respectively.  The exhaustive list of removed variables is:
764 'default-mode-line-format', 'default-header-line-format',
765 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
766 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
767 'default-case-fold-search', 'default-left-margin-width',
768 'default-right-margin-width', 'default-left-fringe-width',
769 'default-right-fringe-width', 'default-fringes-outside-margins',
770 'default-scroll-bar-width', 'default-vertical-scroll-bar',
771 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
772 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
773 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
774 'default-fill-column', 'default-cursor-type',
775 'default-cursor-in-non-selected-windows',
776 'default-buffer-file-coding-system', 'default-major-mode', and
777 'default-enable-multibyte-characters'.
778 *** Many variables obsoleted in 22.1 referring to face symbols
781 ** The variable 'text-quoting-style' no longer affects the treatment
782 of curved quotes in format arguments to functions like 'message' and
783 'format-message'.  In particular, when this variable's value is
784 'grave', all quotes in formats are output as-is.
786 ** Functions like 'check-declare-file' and 'check-declare-directory'
787 now generate less chatter and more-compact diagnostics.  The auxiliary
788 function 'check-declare-errmsg' has been removed.
791 ** The regular expression character class [:blank:] now matches
792 Unicode horizontal whitespace as defined in the Unicode Technical
793 Standard #18.  If you only want to match space and tab, use [ \t]
794 instead.
797 * Lisp Changes in Emacs 26.1
800 ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
801 to decide which buffers to ask about, if the PRED argument is nil.
802 The default value of 'save-some-buffers-default-predicate' is nil,
803 which means ask about all file-visiting buffers.
805 ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
806 ** New variable 'while-no-input-ignore-events' which allow
807 setting which special events 'while-no-input' should ignore.
808 It is a list of symbols.
810 ** New function 'undo-amalgamate-change-group' to get rid of
811 undo-boundaries between two states.
813 ** New var 'definition-prefixes' is a hash table mapping prefixes to
814 the files where corresponding definitions can be found.  This can be
815 used to fetch definitions that are not yet loaded, for example for
816 'C-h f'.
818 ** New var 'syntax-ppss-table' to control the syntax-table used in
819 'syntax-ppss'.
822 ** 'define-derived-mode' can now specify an :after-hook form, which
823 gets evaluated after the new mode's hook has run.  This can be used to
824 incorporate configuration changes made in the mode hook into the
825 mode's setup.
827 ** Autoload files can be generated without timestamps,
828 by setting 'autoload-timestamps' to nil.
829 FIXME As an experiment, nil is the current default.
830 If no insurmountable problems before next release, it can stay that way.
833 ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
834 says that negotiation should complete even on non-blocking sockets.
837 ** New functions 'window-pixel-width-before-size-change' and
838 'window-pixel-height-before-size-change' support detecting which
839 window changed size when 'window-size-change-functions' are run.
842 ** New function 'display-buffer-reuse-mode-window' is an action function
843 suitable for use in 'display-buffer-alist'. For example, to avoid creating
844 a new window when opening man pages when there's already one, use
845 (add-to-list 'display-buffer-alist
846      '("\\`\\*Man .*\\*\\'" .
847        (display-buffer-reuse-mode-window
848         (inhibit-same-window . nil)
849         (mode . Man-mode))))
852 ** There is now a new variable 'flyspell-sort-corrections-function'
853 that allows changing the way corrections are sorted.
856 ** The new command 'fortune-message' has been added, which displays
857 fortunes in the echo area.
860 ** New function 'func-arity' returns information about the argument list
861 of an arbitrary function.  This generalizes 'subr-arity' for functions
862 that are not built-in primitives.  We recommend using this new
863 function instead of 'subr-arity'.
865 ** New function 'region-bounds' can be used in the interactive spec
866 to provide region boundaries (for rectangular regions more than one)
867 to an interactively callable function as a single argument instead of
868 two separate arguments region-beginning and region-end.
871 ** 'parse-partial-sexp' state has a new element.  Element 10 is
872 non-nil when the last character scanned might be the first character
873 of a two character construct, i.e., a comment delimiter or escaped
874 character.  Its value is the syntax of that last character.
877 ** 'parse-partial-sexp's state, element 9, has now been confirmed as
878 permanent and documented, and may be used by Lisp programs.  Its value
879 is a list of currently open parenthesis positions, starting with the
880 outermost parenthesis.
883 ** 'read-color' will now display the color names using the color itself
884 as the background color.
886 ** The function 'redirect-debugging-output' now works on platforms
887 other than GNU/Linux.
890 ** The new function 'string-version-lessp' compares strings by
891 interpreting consecutive runs of numerical characters as numbers, and
892 compares their numerical values.  According to this predicate,
893 "foo2.png" is smaller than "foo12.png".
896 ** The new function 'char-from-name' converts a Unicode name string
897 to the corresponding character code.
900 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
901 Lisp object suitable for use with 'eq' and 'eql' correspondingly.  If
902 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
903 ('sxhash-eql') on them will be the same.
906 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
907 consistency with the new functions.  For compatibility, 'sxhash'
908 remains as an alias to 'sxhash-equal'.
911 ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
912 instead of 0.8, to avoid rounding glitches.
915 ** New function 'add-variable-watcher' can be used to call a function
916 when a symbol's value is changed.  This is used to implement the new
917 debugger command 'debug-on-variable-change'.
920 ** Time conversion functions that accept a time zone rule argument now
921 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
922 OFFSET is a count of seconds east of Universal Time, and the string
923 ABBR is a time zone abbreviation.  The affected functions are
924 'current-time-string', 'current-time-zone', 'decode-time',
925 'format-time-string', and 'set-time-zone-rule'.
928 ** 'format-time-string' now formats "%q" to the calendar quarter.
930 ** New built-in function 'mapcan' which avoids unnecessary consing (and garbage
931 collection).
934 ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
937 ** 'if-let*', 'when-let*', and 'and-let*' are new in subr-x.el.
938 The incumbent 'if-let' and 'when-let' are now aliases.
940 ** Low-level list functions like 'length' and 'member' now do a better
941 job of signaling list cycles instead of looping indefinitely.
944 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
945 can be used for creation of temporary files of remote or mounted directories.
948 ** The new function 'file-local-name' can be used to specify arguments
949 of remote processes.
952 ** The new functions 'file-name-quote', 'file-name-unquote' and
953 'file-name-quoted-p' can be used to quote / unquote file names with
954 the prefix "/:".
957 ** The new error 'file-missing', a subcategory of 'file-error', is now
958 signaled instead of 'file-error' if a file operation acts on a file
959 that does not exist.
962 ** The function 'delete-directory' no longer signals an error when
963 operating recursively and when some other process deletes the directory
964 or its files before 'delete-directory' gets to them.
966 ** Changes in Frame- and Window- Handling
969 *** Support for side windows is now official.  The display action
970 function 'display-buffer-in-side-window' will display its buffer in a
971 side window.  Functions for toggling all side windows on a frame,
972 changing and reversing the layout of side windows and returning the main
973 (major non-side) window of a frame are provided.  For details consult
974 the section "Side Windows" in the Elisp manual.
977 *** Support for atomic windows - rectangular compositions of windows
978 treated by 'split-window', 'delete-window' and 'delete-other-windows'
979 like a single live window - is now official.  For details consult the
980 section "Atomic Windows" in the Elisp manual.
983 *** New 'display-buffer' alist entry 'window-parameters' allows to
984 assign window parameters to the window used for displaying the buffer.
987 *** New window parameter 'no-delete-other-window' prevents that
988 its window gets deleted by 'delete-other-windows'.
991 *** New command 'window-swap-states' swaps the states of two live
992 windows.
995 * Changes in Emacs 26.1 on Non-Free Operating Systems
997 ** Intercepting hotkeys on Windows 7 and later now works better.
998 The new keyboard hooking code properly grabs system hotkeys such as
999 Win-* and Alt-TAB, in a way that Emacs can get at them before the
1000 system.  This makes the 'w32-register-hot-key' functionality work
1001 again on all versions of MS-Windows starting with Windows 7.  On
1002 Windows NT and later you can now register any hotkey combination.  (On
1003 Windows 9X, the previous limitations, spelled out in the Emacs manual,
1004 still apply.)
1006 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
1007 Previously, on MS-Windows this function converted slash characters in
1008 file names into backslashes.  It no longer does that.  If your Lisp
1009 program used 'convert-standard-filename' to prepare file names to be
1010 passed to subprocesses (which is not the recommended usage of that
1011 function), you will now have to mirror slashes in your application
1012 code.  One possible way is this:
1014          (let ((start 0))
1015            (while (string-match "/" file-name start)
1016              (aset file-name (match-beginning 0) ?\\)
1017              (setq start (match-end 0))))
1019 ** GUI sessions now treat SIGINT like Posix platforms do.
1020 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
1021 MS-Windows is now the same as on Posix platforms -- Emacs saves the
1022 session and exits.  In particular, this will happen if you start
1023 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
1024 window.
1027 ** 'signal-process' supports SIGTRAP on Windows XP and later.
1028 The 'kill' emulation on Windows now maps SIGTRAP to a call to the
1029 'DebugBreakProcess' API.  This causes the receiving process to break
1030 execution and return control to the debugger.  If no debugger is
1031 attached to the receiving process, the call is typically ignored.
1032 This is in contrast to the default action on POSIX Systems, where it
1033 causes the receiving process to terminate with a core dump if no
1034 debugger has been attached to it.
1037 ----------------------------------------------------------------------
1038 This file is part of GNU Emacs.
1040 GNU Emacs is free software: you can redistribute it and/or modify
1041 it under the terms of the GNU General Public License as published by
1042 the Free Software Foundation, either version 3 of the License, or
1043 (at your option) any later version.
1045 GNU Emacs is distributed in the hope that it will be useful,
1046 but WITHOUT ANY WARRANTY; without even the implied warranty of
1047 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1048 GNU General Public License for more details.
1050 You should have received a copy of the GNU General Public License
1051 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
1054 Local variables:
1055 coding: utf-8
1056 mode: outline
1057 paragraph-separate: "[  \f]*$"
1058 end: