Reimplement auto-saving to visited files
[emacs.git] / etc / NEWS
blob173c4e466bcfee9a304cea32a93bb36bbbc05f03
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2014-2017 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 26.
11 See file HISTORY for a list of GNU Emacs versions and release dates.
12 See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
13 NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
15 You can narrow news to a specific version by calling 'view-emacs-news'
16 with a prefix argument or by typing C-u C-h C-n.
18 Temporary note:
19 +++ indicates that all necessary documentation updates are complete.
20     (This means all relevant manuals in doc/ AND lisp doc-strings.)
21 --- means no change in the manuals is needed.
22 When you add a new item, use the appropriate mark if you are sure it applies,
25 * Installation Changes in Emacs 26.1
27 ** By default libgnutls is now required when building Emacs.
28 Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
30 ** GnuTLS version 2.12.2 or later is now required, instead of merely
31 version 2.6.6 or later.
33 ** The new option 'configure --with-mailutils' causes Emacs to rely on
34 GNU Mailutils 'movemail' to retrieve email.  By default, the Emacs
35 build procedure continues to build and install a limited and insecure
36 'movemail' substitute.  Although --with-mailutils is recommended, it
37 is not yet the default due to backward-compatibility concerns.
39 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
40 GCC to issue warnings without stopping the build.  This behavior is
41 now the default in developer builds.  As before, use
42 '--disable-gcc-warnings' to suppress GCC's warnings, and
43 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
45 +++
46 ** The Emacs server now has socket-launching support.  This allows
47 socket based activation, where an external process like systemd can
48 invoke the Emacs server process upon a socket connection event and
49 hand the socket over to Emacs.  Emacs uses this socket to service
50 emacsclient commands.  This new functionality can be disabled with the
51 configure option '--disable-libsystemd'.
53 +++
54 ** A systemd user unit file is provided.  Use it in the standard way:
55 systemctl --user enable emacs
56 (If your Emacs is installed in a non-standard location, you may
57 need to copy the emacs.service file to eg ~/.config/systemd/user/)
59 ** New configure option '--disable-build-details' attempts to build an
60 Emacs that is more likely to be reproducible; that is, if you build
61 and install Emacs twice, the second Emacs is a copy of the first.
62 Deterministic builds omit the build date from the output of the
63 emacs-version and erc-cmd-SV functions, and the leave the following
64 variables nil: emacs-build-system, emacs-build-time,
65 erc-emacs-build-time.
67 ** The configure option '--with-gameuser' now defaults to 'no',
68 as this appears to be the most common configuration in practice.
69 When it is 'no', the shared game directory and the auxiliary program
70 update-game-score are no longer needed and are not installed.
72 ** Emacs no longer works on IRIX.  We expect that Emacs users are not
73 affected by this, as SGI stopped supporting IRIX in December 2013.
76 * Startup Changes in Emacs 26.1
78 ** New option '--new-daemon'.  This is the same as '--daemon', except
79 it runs in the foreground and does not fork.  This is intended for
80 modern init systems such as systemd, which manage many of the traditional
81 aspects of daemon behavior themselves.  '--old-daemon' is now an alias
82 for '--daemon'.
84 +++
85 ** Emacs now supports 24-bit colors on capable text terminals
86 Terminal is automatically initialized to use 24-bit colors if the
87 required capabilities are found in terminfo.  See the FAQ node
88 "Colors on a TTY" for more information.
91 * Changes in Emacs 26.1
93 +++
94 ** The functions write-region, append-to-file, and the like now output
95 the number of characters added in addition to the name of the file
96 affected.
98 ** The variable 'emacs-version' no longer includes the build number.
99 This is now stored separately in a new variable, 'emacs-build-number'.
102 ** The new function 'mapbacktrace' applies a function to all frames of
103 the current stack trace.
106 ** Emacs now provides a limited form of concurrency with Lisp threads.
107 Concurrency in Emacs Lisp is "mostly cooperative", meaning that
108 Emacs will only switch execution between threads at well-defined
109 times: when Emacs waits for input, during blocking operations related
110 to threads (such as mutex locking), or when the current thread
111 explicitly yields.  Global variables are shared among all threads, but
112 a 'let' binding is thread-local.  Each thread also has its own current
113 buffer and its own match data.
115 See the chapter "Threads" in the ELisp manual for full documentation
116 of these facilities.
119 ** The new function 'file-name-case-insensitive-p' tests whether a
120 given file is on a case-insensitive filesystem.
123 ** The new user variable 'electric-quote-chars' provides a list
124 of curved quotes for 'electric-quote-mode', allowing user to choose
125 the types of quotes to be used.
128 ** The new user variable 'dired-omit-case-fold' allows the user to
129 customize the case-sensitivity of dired-omit-mode.  It defaults to
130 the same sensitivity as that of the filesystem for the corresponding
131 dired buffer.
134 ** Emacs now uses double buffering to reduce flicker when editing and
135 resizing graphical Emacs frames on the X Window System.  This support
136 requires the DOUBLE-BUFFER extension, which major X servers have
137 supported for many years.  If your system has this extension, but an
138 Emacs built with double buffering misbehaves on some displays you use,
139 you can disable the feature by adding
141   '(inhibit-double-buffering . t)
143 to default-frame-parameters.  Or inject this parameter into the
144 selected frame by evaluating this form:
146   (modify-frame-parameters nil '((inhibit-double-buffering . t)))
149 The group 'wp', whose label was "text", is now deprecated.
150 Use the new group 'text', which inherits from 'wp', instead.
153 ** The new function 'call-shell-region' executes a command in an
154 inferior shell with the buffer region as input.
157 ** The new user option 'shell-command-dont-erase-buffer' controls
158 if the output buffer is erased between shell commands; if non-nil,
159 the output buffer is not erased; this variable also controls where
160 to set the point in the output buffer: beginning of the output,
161 end of the buffer or save the point.
162 When 'shell-command-dont-erase-buffer' is nil, the default value,
163 the behavior of 'shell-command', 'shell-command-on-region' and
164 'async-shell-command' is as usual.
167 ** The new user option 'mouse-select-region-move-to-beginning'
168 controls the position of point when double-clicking mouse-1 on the end
169 of a parenthetical grouping or string-delimiter: the default value nil
170 keeps point at the end of the region, setting it to non-nil moves
171 point to the beginning of the region.
174 ** The new user option 'confirm-kill-processes' allows the user to
175 skip a confirmation prompt for killing subprocesses when exiting
176 Emacs.  When set to t (the default), Emacs will prompt for
177 confirmation before killing subprocesses on exit, which is the same
178 behavior as before.
181 ** 'find-library-name' will now fall back on looking at 'load-history'
182 to try to locate libraries that have been loaded with an explicit path
183 outside 'load-path'.
186 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
187 in the text in functions like 'read-from-minibuffer', but instead are
188 added to the end of the face list.  This allows users to say things
189 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
192 ** The new variable 'extended-command-suggest-shorter' has been added
193 to control whether to suggest shorter 'M-x' commands or not.
196 ** icomplete now respects 'completion-ignored-extensions'.
199 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
200 face instead of the 'escape-glyph' face.
203 ** Approximations to quotes are now displayed with the new 'homoglyph'
204 face instead of the 'escape-glyph' face.
207 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
208 part of minibuffers.
211 ** 'find-library' now takes a prefix argument to pop to a different
212 window.
215 ** 'process-attributes' on Darwin systems now returns more information.
218 ** Several accessors for the value returned by 'file-attributes'
219 have been added.  They are: 'file-attribute-type',
220 'file-attribute-link-number', 'file-attribute-user-id',
221 'file-attribute-group-id', 'file-attribute-access-time',
222 'file-attribute-modification-time',
223 'file-attribute-status-change-time', 'file-attribute-size',
224 'file-attribute-modes', 'file-attribute-inode-number',
225 'file-attribute-device-number' and 'file-attribute-collect'.
228 ** The new function 'buffer-hash' computes a fast, non-consing hash of
229 a buffer's contents.
232 ** 'fill-paragraph' no longer marks the buffer as changed unless it
233 actually changed something.
236 ** The locale language name 'ca' is now mapped to the language
237 environment 'Catalan', which has been added.
240 ** 'align-regexp' has a separate history for its interactive argument.
241 'align-regexp' no longer shares its history with all other
242 history-less functions that use 'read-string'.
245 ** The networking code has been reworked so that it's more
246 asynchronous than it was (when specifying :nowait t in
247 'make-network-process').  How asynchronous it is varies based on the
248 capabilities of the system, but on a typical GNU/Linux system the DNS
249 resolution, the connection, and (for TLS streams) the TLS negotiation
250 are all done without blocking the main Emacs thread.  To get
251 asynchronous TLS, the TLS boot parameters have to be passed in (see
252 the manual for details).
254 Certain process oriented functions (like 'process-datagram-address')
255 will block until socket setup has been performed.  The recommended way
256 to deal with asynchronous sockets is to avoid interacting with them
257 until they have changed status to "run".  This is most easily done
258 from a process sentinel.
260 ** 'make-network-process' and 'open-network-stream' sometimes allowed
261 :service to be an integer string (e.g., :service "993") and sometimes
262 required an integer (e.g., :service 993).  This difference has been
263 eliminated, and integer strings work everywhere.
265 ** It is possible to disable attempted recovery on fatal signals.
267 Two new variables support disabling attempts to recover from stack
268 overflow and to avoid automatic auto-save when Emacs is delivered a
269 fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
270 will disable attempts to recover from C stack overflows; Emacs will
271 then crash as with any other fatal signal.
272 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
273 disable attempts to auto-save the session and shut down in an orderly
274 fashion when Emacs receives a fatal signal; instead, Emacs will
275 terminate immediately.  Both variables are non-'nil' by default.
276 These variables are for users who would like to avoid the small
277 probability of data corruption due to techniques Emacs uses to recover
278 in these situations.
281 ** File local and directory local variables are now initialized each
282 time the major mode is set, not just when the file is first visited.
283 These local variables will thus not vanish on setting a major mode.
286 ** A second dir-local file (.dir-locals-2.el) is now accepted.
287 See the variable 'dir-locals-file-2' for more information.
290 ** Connection-local variables can be used to specify local variables
291 with a value depending on the connected remote server.  For details,
292 see the node "Connection Local Variables" in the ELisp manual.
295 ** International domain names (IDNA) are now encoded via the new
296 puny.el library, so that one can visit web sites with non-ASCII URLs.
299 ** The new 'timer-list' command lists all active timers in a buffer,
300 where you can cancel them with the 'c' command.
303 ** The new function 'read-multiple-choice' prompts for multiple-choice
304 questions, with a handy way to display help texts.
307 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
310 ** The new variable 'debugger-stack-frame-as-list' allows displaying
311 all call stack frames in a Lisp backtrace buffer as lists.  Both
312 debug.el and edebug.el have been updated to heed to this variable.
315 ** The new variable 'x-ctrl-keysym' has been added to the existing
316 roster of X keysyms.  It can be used in combination with another
317 variable of this kind to swap modifiers in Emacs.
320 ** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
323 ** File name quoting by adding the prefix "/:" is now possible for the
324 local part of a remote file name.  Thus, if you have a directory named
325 "/~" on the remote host "foo", you can prevent it from being
326 substituted by a home directory by writing it as "/foo:/:/~/file".
329 ** The new variable 'maximum-scroll-margin' allows having effective
330 settings of 'scroll-margin' up to half the window size, instead of
331 always restricting the margin to a quarter of the window.
334 ** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
335 You can enable this by customizing 'mwheel-tilt-scroll-p'.  If you
336 want to reverse the direction of the scroll, customize
337 'mwheel-flip-direction'.
340 ** Emacsclient has a new option -u/--suppress-output.  The option
341 suppresses display of return values from the server process.
344 * Editing Changes in Emacs 26.1
347 ** Two new user options 'list-matching-lines-jump-to-current-line' and
348 'list-matching-lines-current-line-face' to show highlighted the current
349 line in *Occur* buffer.
352 ** The 'occur' command can now operate on the region.
355 ** New bindings for 'query-replace-map'.
356 'undo', undo the last replacement; bound to 'u'.
357 'undo-all', undo all replacements; bound to 'U'.
359 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
360 In modes where form feed was treated as a whitespace character,
361 'delete-trailing-whitespace' would keep lines containing it unchanged.
362 It now deletes whitespace after the last form feed thus behaving the
363 same as in modes where the character is not whitespace.
365 ** No more prompt about changed file when the file's content is unchanged.
366 Instead of only checking the modification time, Emacs now also checks
367 the file's actual content before prompting the user.
369 ** Various casing improvements.
371 *** 'upcase', 'upcase-region' et al. convert title case characters
372 (such as Dz) into their upper case form (such as DZ).
374 *** 'capitalize', 'upcase-initials' et al. make use of title-case forms
375 of initial characters (correctly producing for example Džungla instead
376 of incorrect DŽungla).
378 *** Characters which turn into multiple ones when cased are correctly handled.
379 For example, fi ligature is converted to FI when upper cased.
381 *** Greek small sigma is correctly handled when at the end of the word.
382 Strings such as ΌΣΟΣ are now correctly converted to Όσος when
383 capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
384 end of the word).
386 ** Emacs can now auto-save buffers to visited files in a more robust
387 manner via the new mode 'auto-save-visited-mode'.  Unlike
388 'auto-save-visited-file-name', this mode uses the normal saving
389 procedure and therefore obeys saving hooks.
390 'auto-save-visited-file-name' is now obsolete.
393 * Changes in Specialized Modes and Packages in Emacs 26.1
395 *** Info menu and index completion uses substring completion by default.
396 This can be customized via the `info-menu` category in
397 completion-category-override.
400 *** The ancestor buffer is shown by default in 3way merges.
401 A new option ediff-show-ancestor and a new toggle
402 ediff-toggle-show-ancestor.
404 ** TeX: Add luatex and xetex as alternatives to pdftex
406 ** Electric-Buffer-menu
409 *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
410 bound to 'Buffer-menu-unmark-all-buffers'.
412 ** bs
415 *** Two new commands 'bs-unmark-all', bound to 'U', and
416 'bs-unmark-previous', bound to <backspace>.
418 ** Buffer-menu
421 *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
422 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
424 ** Gnus
427 *** The .newsrc file will now only be saved if the native select
428 method is an NNTP select method.
431 *** A new command for sorting articles by readedness marks has been
432 added: 'C-c C-s C-m C-m'.
434 ** Ibuffer
437 *** New command 'ibuffer-jump'.
440 *** New filter commands 'ibuffer-filter-by-basename',
441 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
442 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
443 and 'ibuffer-filter-by-visiting-file'; bound respectively
444 to '/b', '/.', '//', '/*', '/i' and '/v'.
447 *** Two new commands 'ibuffer-filter-chosen-by-completion'
448 and 'ibuffer-and-filter', the second bound to '/&'.
451 *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
452 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
453 bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
456 *** The data format specifying filters has been extended to allow
457 explicit logical 'and', and a more flexible form for logical 'not'.
458 See 'ibuffer-filtering-qualifiers' doc string for full details.
461 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
462 to 'B'.
465 *** New command 'ibuffer-change-marks'; bound to '* c'.
468 *** A new command 'ibuffer-mark-by-locked' to mark
469 all locked buffers;  bound to '% L'.
472 *** A new option 'ibuffer-locked-char' to indicate
473 locked buffers; Ibuffer shows a new column displaying
474 'ibuffer-locked-char' for locked buffers.
477 *** A new command 'ibuffer-unmark-all-marks' to unmark
478 all buffers without asking confirmation;  bound to
479 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
482 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
483 whose content matches a regexp; bound to '% g'.
486 *** Two new options 'ibuffer-never-search-content-name' and
487 'ibuffer-never-search-content-mode' used by
488 'ibuffer-mark-by-content-regexp'.
490 ** Browse-URL
492 *** Support for opening links to man pages in Man or WoMan mode.
494 ** Comint
497 *** New user option 'comint-move-point-for-matching-input' to control
498 where to place point after C-c M-r and C-c M-s.
500 ** Compilation mode
503 *** Messages from CMake are now recognized.
506 *** A new option 'dired-always-read-filesystem' default to nil.
507 If non-nil, buffers visiting files are reverted before search them;
508 for instance, in 'dired-mark-files-containing-regexp' a non-nil value
509 of this option means the file is revisited in a temporary buffer;
510 this temporary buffer is the actual buffer searched: the original buffer
511 visiting the file is not modified.
514 *** In wdired, when editing files to contain slash characters,
515 the resulting directories are automatically created.  Whether to do
516 this is controlled by the 'wdired-create-parent-directories' variable.
519 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
520 viewing HTML files and the like.
522 ** Edebug
524 *** Edebug can be prevented from pausing 1 second after reaching a
525 breakpoint (e.g. with "f" and "o") by customizing the new option
526 'edebug-sit-on-break'.
529 *** New customizable option 'edebug-max-depth'
530 This allows to enlarge the maximum recursion depth when instrumenting
531 code.
533 ** Eshell
535 *** 'eshell-input-filter's value is now a named function
536 'eshell-input-filter-default', and has a new custom option
537 'eshell-input-filter-initial-space' to ignore adding commands prefixed
538 with blank space to eshell history.
540 ** eww
543 *** New 'M-RET' command for opening a link at point in a new eww buffer.
546 *** A new 's' command for switching to another eww buffer via the minibuffer.
549 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
550 with the 'o' command from 'image-map'.
553 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
554 whether to use the HTML-specified colors or not.  The user can also
555 customize the 'shr-use-colors' variable.
558 *** Images that are being loaded are now marked with gray
559 "placeholder" images of the size specified by the HTML.  They are then
560 replaced by the real images asynchronously, which will also now
561 respect width/height HTML specs (unless they specify widths/heights
562 bigger than the current window).
564 ** Ido
566 *** The commands 'find-alternate-file-other-window',
567 'dired-other-window', 'dired-other-frame', and
568 'display-buffer-other-window' are now remapped to Ido equivalents if
569 Ido mode is active.
571 ** Images
574 *** Images are automatically scaled before displaying based on the
575 'image-scaling-factor' variable (if Emacs supports scaling the images
576 in question).
579 *** Images inserted with 'insert-image' and related functions get a
580 keymap put into the text properties (or overlays) that span the
581 image.  This keymap binds keystrokes for manipulating size and
582 rotation, as well as saving the image to a file.  These commands are
583 also available in 'image-mode'.
586 *** A new library for creating and manipulating SVG images has been
587 added.  See the "SVG Images" section in the Lisp reference manual for
588 details.
591 *** New setf-able function to access and set image parameters is
592 provided: 'image-property'.
595 *** New commands 'image-scroll-left' and 'image-scroll-right'
596 for 'image-mode' that complement 'image-scroll-up' and
597 'image-scroll-down': they have the same prefix arg behavior and stop
598 at image boundaries.
600 ** Image-Dired
602 *** Now provides a minor mode 'image-dired-minor-mode' which replaces
603 the function 'image-dired-setup-dired-keybindings'.
605 *** Thumbnail generation is now asynchronous
606 The number of concurrent processes is limited by the variable
607 'image-dired-thumb-job-limit'.
609 *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
610 for generating 256x256 thumbnails according to the Thumbnail Managing
611 Standard.
613 *** Inherits movement keys from 'image-mode' for viewing full images.
614 This includes the usual char, line, and page movement commands.
616 *** All the -options types have been changed to argument lists
617 instead of shell command strings.  This change affects
618 'image-dired-cmd-create-thumbnail-options',
619 'image-dired-cmd-create-temp-image-options',
620 'image-dired-cmd-rotate-thumbnail-options',
621 'image-dired-cmd-rotate-original-options',
622 'image-dired-cmd-write-exif-data-options',
623 'image-dired-cmd-read-exif-data-options', and introduces
624 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
625 'image-dired-cmd-create-standard-thumbnail-options'
627 *** Recognizes more tools by default, including pngnq-s9 and OptiPNG
629 *** 'find-file' and related commands now work on thumbnails and
630 displayed images, providing a default argument of the original file name
631 via an addition to 'file-name-at-point-functions'.
634 ** The default 'Info-default-directory-list' no longer checks some obsolete
635 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
636 when searching for info directories.
639 ** The commands that add ChangeLog entries now prefer a VCS root directory
640 for the ChangeLog file, if none already exists.  Customize
641 'change-log-directory-files' to nil for the old behavior.
644 ** Support for non-string values of 'time-stamp-format' has been removed.
646 ** Message
649 *** 'message-use-idna' now defaults to t (because Emacs comes with
650 built-in IDNA support now).
653 *** When sending HTML messages with embedded images, and you have
654 exiftool installed, and you rotate images with EXIF data (i.e.,
655 JPEGs), the rotational information will be inserted into the outgoing
656 image in the message.  (The original image will not have its
657 orientation affected.)
660 *** The 'message-valid-fqdn-regexp' variable has been removed, since
661 there are now top-level domains added all the time.  Message will no
662 longer warn about sending emails to top-level domains it hasn't heard
663 about.
665 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
666 In 'visual-line-mode' it will look for the true beginning of a header
667 while in non-'visual-line-mode' it will move the point to the indented
668 header's value.
670 ** Package
673 *** The new variable 'package-gnupghome-dir' has been added to control
674 where the GnuPG home directory (used for signature verification) is
675 located and whether GnuPG's option "--homedir" is used or not.
677 ** Tramp
680 *** The method part of remote file names is mandatory now.  A valid
681 remote file name starts with "/method:host:" or "/method:user@host:".
684 *** The new pseudo method "-" is a marker for the default method.
685 "/-::" is the shortest remote file name then.
688 *** The command 'tramp-change-syntax' allows to choose an alternative
689 remote file name syntax.
692 *** New connection method "sg", which supports editing files under a
693 different group ID.
696 *** New connection method "doas" for OpenBSD hosts.
699 *** New connection method "gdrive", which allows to access Google
700 Drive onsite repositories.
703 *** Gateway methods in Tramp have been removed.  Instead, the Tramp
704 manual documents how to configure ssh and PuTTY accordingly.
707 *** Setting the "ENV" environment variable in
708 'tramp-remote-process-environment' enables reading of shell
709 initialization files.
712 *** Variable 'tramp-completion-mode' is obsoleted.
715 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
718 ** JS mode now sets 'comment-multi-line' to t.
720 ** CSS mode
723 *** Support for completing attribute values, at-rules, bang-rules,
724 HTML tags, classes and IDs using the 'completion-at-point' command.
725 Completion candidates for HTML classes and IDs are retrieved from open
726 HTML mode buffers.
729 *** CSS mode now binds 'C-h S' to a function that will show
730 information about a CSS construct (an at-rule, property, pseudo-class,
731 pseudo-element, with the default being guessed from context).  By
732 default the information is looked up on the Mozilla Developer Network,
733 but this can be customized using 'css-lookup-url-format'.
736 ** Emacs now supports character name escape sequences in character and
737 string literals.  The syntax variants \N{character name} and
738 \N{U+code} are supported.
741 ** Prog mode has some support for multi-mode indentation.
742 This allows better indentation support in modes that support multiple
743 programming languages in the same buffer, like literate programming
744 environments or ANTLR programs with embedded Python code.
746 A major mode can provide indentation context for a sub-mode through
747 the 'prog-indentation-context' variable.  To support this, modes that
748 provide indentation should use 'prog-widen' instead of 'widen' and
749 'prog-first-column' instead of a literal zero.  See the node
750 "Mode-Specific Indent" in the ELisp manual for more details.
752 ** ERC
754 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
755 servers.
757 ** URL
760 *** The new function 'url-cookie-delete-cookie' can be used to
761 programmatically delete all cookies, or cookies from a specific
762 domain.
765 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
768 *** The URL package now support HTTPS over proxies supporting CONNECT.
771 *** 'url-user-agent' now defaults to 'default', and the User-Agent
772 string is computed dynamically based on 'url-privacy-level'.
774 ** VC and related modes
777 *** The VC state indicator in the mode line now defaults to more
778 colorful faces to make it more obvious to the user what the state is.
779 See the 'vc-faces' customization group.
782 *** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
783 branch-related commands on a keymap bound to 'B'.
785 ** CC mode
787 *** Opening a .h file will turn C or C++ mode depending on language used.
788 This is done with the help of 'c-or-c++-mode' function which analyses
789 contents of the buffer to determine whether it's a C or C++ source
790 file.
792 ** Flymake
795 *** Emacs does no longer prompt the user before killing Flymake
796 processes on exit.
799 * New Modes and Packages in Emacs 26.1
801 ** New Elisp data-structure library 'radix-tree'.
803 ** New library 'xdg' with utilities for some XDG standards and specs.
805 ** HTML
808 *** A new submode of 'html-mode', 'mhtml-mode', is now the default
809 mode for *.html files.  This mode handles indentation,
810 fontification, and commenting for embedded JavaScript and CSS.
813 * Incompatible Lisp Changes in Emacs 26.1
816 *** Command 'dired-mark-extension' now automatically prepends a '.' to the
817 extension when not present.  The new command 'dired-mark-suffix' behaves
818 similarly but it doesn't prepend a '.'.
821 ** Certain cond/pcase/cl-case forms are now compiled using a faster jump
822 table implementation. This uses a new bytecode op 'switch', which isn't
823 compatible with previous Emacs versions. This functionality can be disabled
824 by setting 'byte-compile-cond-use-jump-table' to nil.
826 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
827 mode to send the same escape sequences that xterm does.  This makes
828 things like forward-word in readline work.
831 ** hideshow mode got four key bindings that are analogous to outline
832 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
834 ** The grep/rgrep/lgrep functions will now ask about saving files
835 before running.  This is controlled by the 'grep-save-buffers'
836 variable.
839 ** Customizable variable 'query-replace-from-to-separator'
840 now doesn't propertize the string value of the separator.
841 Instead, text properties are added by query-replace-read-from.
842 Additionally, the new nil value restores pre-24.5 behavior
843 of not providing replacement pairs via the history.
845 ** Some obsolete functions, variables, and faces have been removed:
846 *** make-variable-frame-local.  Variables cannot be frame-local any more.
847 *** From subr.el: window-dot, set-window-dot, read-input, show-buffer,
848 eval-current-buffer, string-to-int
849 *** All the default-FOO variables that hold the default value of the
850 FOO variable.  Use 'default-value' and 'setq-default' to access and
851 change FOO, respectively.  The exhaustive list of removed variables is:
852 'default-mode-line-format', 'default-header-line-format',
853 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
854 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
855 'default-case-fold-search', 'default-left-margin-width',
856 'default-right-margin-width', 'default-left-fringe-width',
857 'default-right-fringe-width', 'default-fringes-outside-margins',
858 'default-scroll-bar-width', 'default-vertical-scroll-bar',
859 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
860 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
861 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
862 'default-fill-column', 'default-cursor-type',
863 'default-cursor-in-non-selected-windows',
864 'default-buffer-file-coding-system', 'default-major-mode', and
865 'default-enable-multibyte-characters'.
866 *** Many variables obsoleted in 22.1 referring to face symbols
869 ** The variable 'text-quoting-style' no longer affects the treatment
870 of curved quotes in format arguments to functions like 'message' and
871 'format-message'.  In particular, when this variable's value is
872 'grave', all quotes in formats are output as-is.
874 ** Functions like 'check-declare-file' and 'check-declare-directory'
875 now generate less chatter and more-compact diagnostics.  The auxiliary
876 function 'check-declare-errmsg' has been removed.
879 ** The regular expression character class [:blank:] now matches
880 Unicode horizontal whitespace as defined in the Unicode Technical
881 Standard #18.  If you only want to match space and tab, use [ \t]
882 instead.
885 ** 'min' and 'max' no longer round their results.  Formerly, they
886 returned a floating-point value if any argument was floating-point,
887 which was sometimes numerically incorrect.  For example, on a 64-bit
888 host (max 1e16 10000000000000001) now returns its second argument
889 instead of its first.
892 * Lisp Changes in Emacs 26.1
895 ** Emacs now supports records for user-defined types, via the new
896 functions 'make-record', 'record', and 'recordp'.  Records are now
897 used internally to represent cl-defstruct and defclass instances, for
898 example.
901 ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
902 to decide which buffers to ask about, if the PRED argument is nil.
903 The default value of 'save-some-buffers-default-predicate' is nil,
904 which means ask about all file-visiting buffers.
906 ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
907 ** New variable 'while-no-input-ignore-events' which allow
908 setting which special events 'while-no-input' should ignore.
909 It is a list of symbols.
911 ** New function 'undo-amalgamate-change-group' to get rid of
912 undo-boundaries between two states.
914 ** New var 'definition-prefixes' is a hash table mapping prefixes to
915 the files where corresponding definitions can be found.  This can be
916 used to fetch definitions that are not yet loaded, for example for
917 'C-h f'.
919 ** New var 'syntax-ppss-table' to control the syntax-table used in
920 'syntax-ppss'.
923 ** 'define-derived-mode' can now specify an :after-hook form, which
924 gets evaluated after the new mode's hook has run.  This can be used to
925 incorporate configuration changes made in the mode hook into the
926 mode's setup.
928 ** Autoload files can be generated without timestamps,
929 by setting 'autoload-timestamps' to nil.
930 FIXME As an experiment, nil is the current default.
931 If no insurmountable problems before next release, it can stay that way.
934 ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
935 says that negotiation should complete even on non-blocking sockets.
938 ** There is now a new variable 'flyspell-sort-corrections-function'
939 that allows changing the way corrections are sorted.
942 ** The new command 'fortune-message' has been added, which displays
943 fortunes in the echo area.
946 ** New function 'func-arity' returns information about the argument list
947 of an arbitrary function.  This generalizes 'subr-arity' for functions
948 that are not built-in primitives.  We recommend using this new
949 function instead of 'subr-arity'.
951 ** New function 'region-bounds' can be used in the interactive spec
952 to provide region boundaries (for rectangular regions more than one)
953 to an interactively callable function as a single argument instead of
954 two separate arguments region-beginning and region-end.
957 ** 'parse-partial-sexp' state has a new element.  Element 10 is
958 non-nil when the last character scanned might be the first character
959 of a two character construct, i.e., a comment delimiter or escaped
960 character.  Its value is the syntax of that last character.
963 ** 'parse-partial-sexp's state, element 9, has now been confirmed as
964 permanent and documented, and may be used by Lisp programs.  Its value
965 is a list of currently open parenthesis positions, starting with the
966 outermost parenthesis.
969 ** 'read-color' will now display the color names using the color itself
970 as the background color.
972 ** The function 'redirect-debugging-output' now works on platforms
973 other than GNU/Linux.
976 ** The new function 'string-version-lessp' compares strings by
977 interpreting consecutive runs of numerical characters as numbers, and
978 compares their numerical values.  According to this predicate,
979 "foo2.png" is smaller than "foo12.png".
982 ** Numeric comparisons and 'logb' no longer return incorrect answers
983 due to internal rounding errors.  For example, (< most-positive-fixnum
984 (+ 1.0 most-positive-fixnum)) now correctly returns t on 64-bit hosts.
987 ** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
988 accept only floating-point arguments, as per their documentation.
989 Formerly, they quietly accepted integer arguments and sometimes
990 returned nonsensical answers, e.g., (< N (ffloor N)) could return t.
993 ** On hosts like GNU/Linux x86-64 where a 'long double' fraction
994 contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
995 incorrect answers due to internal rounding errors when formatting
996 Emacs integers with %e, %f, or %g conversions.  For example, on these
997 hosts (eql N (string-to-number (format "%.0f" N))) now returns t for
998 all Emacs integers N.
1001 ** Calls that accept floating-point integers (for use on hosts with
1002 limited integer range) now signal an error if arguments are not
1003 integral.  For example (decode-char 'ascii 0.5) now signals an error.
1006 ** The new function 'char-from-name' converts a Unicode name string
1007 to the corresponding character code.
1010 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
1011 Lisp object suitable for use with 'eq' and 'eql' correspondingly.  If
1012 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
1013 ('sxhash-eql') on them will be the same.
1016 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
1017 consistency with the new functions.  For compatibility, 'sxhash'
1018 remains as an alias to 'sxhash-equal'.
1021 ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
1022 instead of 0.8, to avoid rounding glitches.
1025 ** New function 'add-variable-watcher' can be used to call a function
1026 when a symbol's value is changed.  This is used to implement the new
1027 debugger command 'debug-on-variable-change'.
1030 ** Time conversion functions that accept a time zone rule argument now
1031 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
1032 OFFSET is a count of seconds east of Universal Time, and the string
1033 ABBR is a time zone abbreviation.  The affected functions are
1034 'current-time-string', 'current-time-zone', 'decode-time',
1035 'format-time-string', and 'set-time-zone-rule'.
1038 ** 'format-time-string' now formats "%q" to the calendar quarter.
1040 ** New built-in function 'mapcan' which avoids unnecessary consing (and garbage
1041 collection).
1044 ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
1047 ** 'if-let*', 'when-let*', and 'and-let*' are new in subr-x.el.
1048 The incumbent 'if-let' and 'when-let' are now aliases.
1050 ** Low-level list functions like 'length' and 'member' now do a better
1051 job of signaling list cycles instead of looping indefinitely.
1054 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
1055 can be used for creation of temporary files of remote or mounted directories.
1058 ** The new function 'file-local-name' can be used to specify arguments
1059 of remote processes.
1062 ** The new functions 'file-name-quote', 'file-name-unquote' and
1063 'file-name-quoted-p' can be used to quote / unquote file names with
1064 the prefix "/:".
1067 ** The new error 'file-missing', a subcategory of 'file-error', is now
1068 signaled instead of 'file-error' if a file operation acts on a file
1069 that does not exist.
1072 ** The function 'delete-directory' no longer signals an error when
1073 operating recursively and when some other process deletes the directory
1074 or its files before 'delete-directory' gets to them.
1077 *** New error type 'user-search-failed' like 'search-failed' but
1078 avoids debugger like 'user-error'.
1080 ** Changes in Frame- and Window- Handling
1083 *** Resizing a frame no longer runs 'window-configuration-change-hook'.
1084 'window-size-change-functions' should be used instead.
1087 *** The new function 'frame-size-changed-p' can tell whether a frame has
1088 been resized since the last time 'window-size-change-functions' has been
1089 run.
1092 *** The function 'frame-geometry' now also returns the width of a
1093 frame's outer border.
1096 *** New frame parameters
1099 **** 'z-group' positions a frame above or below all others.
1102 **** 'min-width' and 'min-height' specify the absolute minimum size of a
1103 frame.
1106 **** 'parent-frame' makes a frame the child frame of another Emacs
1107 frame.  The section "Child Frames" in the Elisp manual describes the
1108 intrinsics of that relationship.
1111 **** 'delete-before' triggers deletion of one frame before that of
1112 another.
1115 **** 'mouse-wheel-frame' specifies another frame whose windows shall be
1116 scrolled instead.
1119 **** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
1120 frame.
1123 **** 'skip-taskbar' removes a frame's icon from the taskbar and has
1124 Alt-<TAB> skip this frame.
1127 **** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
1130 **** 'no-accept-focus' means that a frame does not want to get input
1131 focus via the mouse.
1134 **** 'undecorated' removes the window manager decorations from a frame.
1137 **** 'override-redirect' tells the window manager to disregard this
1138 frame.
1141 *** The 'width' and 'height' frame parameters allow to specify pixel
1142 values now.
1145 *** The new function 'frame-list-z-order' returns a list of all frames
1146 in Z (stacking) order.
1149 *** The function 'x-focus-frame' optionally tries to not activate its
1150 frame.
1153 *** The variable 'focus-follows-mouse' has a third meaningful value
1154 'auto-raise' to indicate that the window manager automatically raises a
1155 frame when the mouse pointer enters it.
1158 *** The new function 'frame-restack' puts a frame above or below
1159 another on the display.
1162 *** The new face 'internal-border' specifies the background of a frame's
1163 internal border.
1166 *** The NORECORD argument of 'select-window' now has a meaningful value
1167 'mark-for-redisplay' which is like any other non-nil value but marks
1168 WINDOW for redisplay.
1171 *** Support for side windows is now official.  The display action
1172 function 'display-buffer-in-side-window' will display its buffer in a
1173 side window.  Functions for toggling all side windows on a frame,
1174 changing and reversing the layout of side windows and returning the main
1175 (major non-side) window of a frame are provided.  For details consult
1176 the section "Side Windows" in the Elisp manual.
1179 *** Support for atomic windows - rectangular compositions of windows
1180 treated by 'split-window', 'delete-window' and 'delete-other-windows'
1181 like a single live window - is now official.  For details consult the
1182 section "Atomic Windows" in the Elisp manual.
1185 *** New 'display-buffer' alist entry 'window-parameters' allows to
1186 assign window parameters to the window used for displaying the buffer.
1189 *** New function 'display-buffer-reuse-mode-window' is an action function
1190 suitable for use in 'display-buffer-alist'. For example, to avoid creating
1191 a new window when opening man pages when there's already one, use
1192 (add-to-list 'display-buffer-alist
1193      '("\\`\\*Man .*\\*\\'" .
1194        (display-buffer-reuse-mode-window
1195         (inhibit-same-window . nil)
1196         (mode . Man-mode))))
1199 *** New window parameter 'no-delete-other-window' prevents that
1200 its window gets deleted by 'delete-other-windows'.
1203 *** New command 'window-swap-states' swaps the states of two live
1204 windows.
1207 *** New functions 'window-pixel-width-before-size-change' and
1208 'window-pixel-height-before-size-change' support detecting which
1209 window changed size when 'window-size-change-functions' are run.
1212 *** The semantics of 'mouse-autoselect-window' has changed slightly.
1213 For details see the section "Mouse Window Auto-selection" in the Elisp
1214 manual.
1216 * Changes in Emacs 26.1 on Non-Free Operating Systems
1218 ** Intercepting hotkeys on Windows 7 and later now works better.
1219 The new keyboard hooking code properly grabs system hotkeys such as
1220 Win-* and Alt-TAB, in a way that Emacs can get at them before the
1221 system.  This makes the 'w32-register-hot-key' functionality work
1222 again on all versions of MS-Windows starting with Windows 7.  On
1223 Windows NT and later you can now register any hotkey combination.  (On
1224 Windows 9X, the previous limitations, spelled out in the Emacs manual,
1225 still apply.)
1227 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
1228 Previously, on MS-Windows this function converted slash characters in
1229 file names into backslashes.  It no longer does that.  If your Lisp
1230 program used 'convert-standard-filename' to prepare file names to be
1231 passed to subprocesses (which is not the recommended usage of that
1232 function), you will now have to mirror slashes in your application
1233 code.  One possible way is this:
1235          (let ((start 0))
1236            (while (string-match "/" file-name start)
1237              (aset file-name (match-beginning 0) ?\\)
1238              (setq start (match-end 0))))
1240 ** GUI sessions now treat SIGINT like Posix platforms do.
1241 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
1242 MS-Windows is now the same as on Posix platforms -- Emacs saves the
1243 session and exits.  In particular, this will happen if you start
1244 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
1245 window.
1248 ** 'signal-process' supports SIGTRAP on Windows XP and later.
1249 The 'kill' emulation on Windows now maps SIGTRAP to a call to the
1250 'DebugBreakProcess' API.  This causes the receiving process to break
1251 execution and return control to the debugger.  If no debugger is
1252 attached to the receiving process, the call is typically ignored.
1253 This is in contrast to the default action on POSIX Systems, where it
1254 causes the receiving process to terminate with a core dump if no
1255 debugger has been attached to it.
1258 ----------------------------------------------------------------------
1259 This file is part of GNU Emacs.
1261 GNU Emacs is free software: you can redistribute it and/or modify
1262 it under the terms of the GNU General Public License as published by
1263 the Free Software Foundation, either version 3 of the License, or
1264 (at your option) any later version.
1266 GNU Emacs is distributed in the hope that it will be useful,
1267 but WITHOUT ANY WARRANTY; without even the implied warranty of
1268 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1269 GNU General Public License for more details.
1271 You should have received a copy of the GNU General Public License
1272 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
1275 Local variables:
1276 coding: utf-8
1277 mode: outline
1278 paragraph-separate: "[  \f]*$"
1279 end: