Document return value of `display-buffer-in-side-window'
[emacs.git] / etc / NEWS
blob4268a4009dcc7b7063cfcfbf9199f3da8729d54e
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2014-2016 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 --enable-gcc-warnings=warn-only' causes
34 GCC to issue warnings without stopping the build.  This behavior is
35 now the default in developer builds.  As before, use
36 '--disable-gcc-warnings' to suppress GCC's warnings, and
37 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
39 +++
40 ** The Emacs server now has socket-launching support.  This allows
41 socket based activation, where an external process like systemd can
42 invoke the Emacs server process upon a socket connection event and
43 hand the socket over to Emacs.  Emacs uses this socket to service
44 emacsclient commands.  This new functionality can be disabled with the
45 configure option '--disable-libsystemd'.
47 ** New configure option '--disable-build-details' attempts to build an
48 Emacs that is more likely to be reproducible; that is, if you build
49 and install Emacs twice, the second Emacs is a copy of the first.
50 Deterministic builds omit the build date from the output of the
51 emacs-version and erc-cmd-SV functions, and the leave the following
52 variables nil: emacs-build-system, emacs-build-time,
53 erc-emacs-build-time.
55 ** Emacs no longer works on IRIX.  We expect that Emacs users are not
56 affected by this, as SGI stopped supporting IRIX in December 2013.
59 * Startup Changes in Emacs 26.1
62 * Changes in Emacs 26.1
64 +++
65 ** The new function 'call-shell-region' executes a command in an
66 inferior shell with the buffer region as input.
68 +++
69 ** The new user option 'shell-command-dont-erase-buffer' controls
70 if the output buffer is erased between shell commands; if non-nil,
71 the output buffer is not erased; this variable also controls where
72 to set the point in the output buffer: beginning of the output,
73 end of the buffer or save the point.
74 When 'shell-command-dont-erase-buffer' is nil, the default value,
75 the behaviour of 'shell-command', 'shell-command-on-region' and
76 'async-shell-command' is as usual.
78 +++
79 ** The new user option 'mouse-select-region-move-to-beginning'
80 controls the position of point when double-clicking mouse-1 on the end
81 of a parenthetical grouping or string-delimiter: the default value nil
82 keeps point at the end of the region, setting it to non-nil moves
83 point to the beginning of the region.
85 +++
86 ** The new user option 'confirm-kill-processes' allows the user to
87 skip a confirmation prompt for killing subprocesses when exiting
88 Emacs.  When set to t (the default), Emacs will prompt for
89 confirmation before killing subprocesses on exit, which is the same
90 behavior as before.
92 ---
93 ** 'find-library-name' will now fall back on looking at 'load-history'
94 to try to locate libraries that have been loaded with an explicit path
95 outside 'load-path'.
97 +++
98 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
99 in the text in functions like 'read-from-minibuffer', but instead are
100 added to the end of the face list.  This allows users to say things
101 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
104 ** The new variable 'extended-command-suggest-shorter' has been added
105 to control whether to suggest shorter 'M-x' commands or not.
108 ** icomplete now respects 'completion-ignored-extensions'.
111 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
112 face instead of the 'escape-glyph' face.
115 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
116 part of minibuffers.
119 ** 'find-library' now takes a prefix argument to pop to a different
120 window.
122 ** 'find-library', 'help-function-def' and 'help-variable-def' now run
123 'find-function-after-hook'.
126 ** 'process-attributes' on Darwin systems now returns more information.
129 ** Several accessors for the value returned by 'file-attributes'
130 have been added.  They are: 'file-attribute-type',
131 'file-attribute-link-number', 'file-attribute-user-id',
132 'file-attribute-group-id', 'file-attribute-access-time',
133 'file-attribute-modification-time',
134 'file-attribute-status-change-time', 'file-attribute-size',
135 'file-attribute-modes', 'file-attribute-inode-number',
136 'file-attribute-device-number' and 'file-attribute-collect'.
139 ** The new function 'buffer-hash' computes a fast, non-consing hash of
140 a buffer's contents.
143 ** 'fill-paragraph' no longer marks the buffer as changed unless it
144 actually changed something.
147 ** The locale language name 'ca' is now mapped to the language
148 environment 'Catalan', which has been added.
151 ** 'align-regexp' has a separate history for its interactive argument.
152 'align-regexp' no longer shares its history with all other
153 history-less functions that use 'read-string'.
156 ** The networking code has been reworked so that it's more
157 asynchronous than it was (when specifying :nowait t in
158 'make-network-process').  How asynchronous it is varies based on the
159 capabilities of the system, but on a typical GNU/Linux system the DNS
160 resolution, the connection, and (for TLS streams) the TLS negotiation
161 are all done without blocking the main Emacs thread.  To get
162 asynchronous TLS, the TLS boot parameters have to be passed in (see
163 the manual for details).
165 Certain process oriented functions (like 'process-datagram-address')
166 will block until socket setup has been performed.  The recommended way
167 to deal with asynchronous sockets is to avoid interacting with them
168 until they have changed status to "run".  This is most easily done
169 from a process sentinel.
171 ** 'make-network-process' and 'open-network-stream' sometimes allowed
172 :service to be an integer string (e.g., :service "993") and sometimes
173 required an integer (e.g., :service 993).  This difference has been
174 eliminated, and integer strings work everywhere.
176 ** It is possible to disable attempted recovery on fatal signals.
178 Two new variables support disabling attempts to recover from stack
179 overflow and to avoid automatic auto-save when Emacs is delivered a
180 fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
181 will disable attempts to recover from C stack overflows; Emacs will
182 then crash as with any other fatal signal.
183 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
184 disable attempts to auto-save the session and shut down in an orderly
185 fashion when Emacs receives a fatal signal; instead, Emacs will
186 terminate immediately.  Both variables are non-'nil' by default.
187 These variables are for users who would like to avoid the small
188 probability of data corruption due to techniques Emacs uses to recover
189 in these situations.
192 ** File local and directory local variables are now initialized each
193 time the major mode is set, not just when the file is first visited.
194 These local variables will thus not vanish on setting a major mode.
197 ** A second dir-local file (.dir-locals-2.el) is now accepted.
198 See the variable 'dir-locals-file-2' for more information.
201 ** International domain names (IDNA) are now encoded via the new
202 puny.el library, so that one can visit web sites with non-ASCII URLs.
205 ** The new 'timer-list' command lists all active timers in a buffer,
206 where you can cancel them with the 'c' command.
209 ** The new function 'read-multiple-choice' prompts for multiple-choice
210 questions, with a handy way to display help texts.
213 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
216 ** The new variable 'debugger-stack-frame-as-list' allows displaying
217 all call stack frames in a Lisp backtrace buffer as lists.  Both
218 debug.el and edebug.el have been updated to heed to this variable.
221 * Editing Changes in Emacs 26.1
224 ** New bindings for 'query-replace-map'.
225 'undo', undo the last replacement; bound to 'u'.
226 'undo-all', undo all replacements; bound to 'U'.
228 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
229 In modes where form feed was treated as a whitespace character,
230 'delete-trailing-whitespace' would keep lines containing it unchanged.
231 It now deletes whitespace after the last form feed thus behaving the
232 same as in modes where the character is not whitespace.
234 ** No more prompt about changed file when the file's content is unchanged.
235 Instead of only checking the modification time, Emacs now also checks
236 the file's actual content before prompting the user.
239 * Changes in Specialized Modes and Packages in Emacs 26.1
241 ** Ibuffer
244 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
245 to 'B'.
248 *** New command 'ibuffer-change-marks'; bound to '* c'.
251 *** A new command 'ibuffer-mark-by-locked' to mark
252 all locked buffers;  bound to '% L'.
255 *** A new option 'ibuffer-locked-char' to indicate
256 locked buffers; Ibuffer shows a new column displaying
257 'ibuffer-locked-char' for locked buffers.
260 *** A new command 'ibuffer-unmark-all-marks' to unmark
261 all buffers without asking confirmation;  bound to
262 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
265 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
266 whose content matches a regexp; bound to '% g'.
269 *** Two new options 'ibuffer-never-search-content-name' and
270 'ibuffer-never-search-content-mode' used by
271 'ibuffer-mark-by-content-regexp'.
273 ** Compilation mode
276 *** Messages from CMake are now recognized.
278 ** Dired
281 *** A New option 'dired-always-read-filesystem' default to nil.
282 If non-nil, buffers visiting files are reverted before search them;
283 for instance, in 'dired-mark-files-containing-regexp' a non-nil value
284 of this option means the file is revisited in a temporary buffer;
285 this temporary buffer is the actual buffer searched: the original buffer
286 visiting the file is not modified.
289 *** In wdired, when editing files to contain slash characters,
290 the resulting directories are automatically created.  Whether to do
291 this is controlled by the 'wdired-create-parent-directories' variable.
294 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
295 viewing HTML files and the like.
297 ** Ediff
299 *** Ediff can be prevented from pausing 1 second after reaching a
300 breakpoint (e.g. with "f" and "o") by customizing the new option
301 'edebug-sit-on-break'.
303 ** eww
306 *** A new 's' command for switching to another eww buffer via the minibuffer.
309 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
310 with the 'o' command from 'image-map'.
313 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
314 whether to use the HTML-specified colors or not.  The user can also
315 customize the 'shr-use-colors' variable.
318 *** Images that are being loaded are now marked with gray
319 "placeholder" images of the size specified by the HTML.  They are then
320 replaced by the real images asynchronously, which will also now
321 respect width/height HTML specs (unless they specify widths/heights
322 bigger than the current window).
324 ** Images
327 *** Images are automatically scaled before displaying based on the
328 'image-scaling-factor' variable (if Emacs supports scaling the images
329 in question).
332 *** Images inserted with 'insert-image' and related functions get a
333 keymap put into the text properties (or overlays) that span the
334 image.  This keymap binds keystrokes for manipulating size and
335 rotation, as well as saving the image to a file.  These commands are
336 also available in 'image-mode'.
339 *** A new library for creating and manipulating SVG images has been
340 added.  See the "SVG Images" section in the lispref manual for
341 details.
344 *** New setf-able function to access and set image parameters is
345 provided: 'image-property'.
348 ** The default 'Info-default-directory-list' no longer checks some obsolete
349 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
350 when searching for info directories.
353 ** The commands that add ChangeLog entries now prefer a VCS root directory
354 for the ChangeLog file, if none already exists.  Customize
355 'change-log-directory-files' to nil for the old behavior.
358 ** Support for non-string values of 'time-stamp-format' has been removed.
360 ** Message
363 *** 'message-use-idna' now defaults to t (because Emacs comes with
364 built-in IDNA support now).
367 *** When sending HTML messages with embedded images, and you have
368 exiftool installed, and you rotate images with EXIF data (i.e.,
369 JPEGs), the rotational information will be inserted into the outgoing
370 image in the message.  (The original image will not have its
371 orientation affected.)
374 *** The 'message-valid-fqdn-regexp' variable has been removed, since
375 there are now top-level domains added all the time.  Message will no
376 longer warn about sending emails to top-level domains it hasn't heard
377 about.
379 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
380 In 'visual-line-mode' it will look for the true beginning of a header
381 while in non-'visual-line-mode' it will move the point to the indented
382 header's value.
384 ** Tramp
387 *** New connection method "sg", which supports editing files under a
388 different group ID.
391 *** New connection method "doas" for OpenBSD hosts.
394 *** New connection method "gdrive", which allows to access Google
395 Drive onsite repositories.
398 Setting the "ENV" environment variable in 'tramp-remote-process-environment'
399 enables reading of shell initialization files.
402 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
404 ** CSS mode
407 *** Support for completing attribute values, at-rules, bang-rules,
408 HTML tags, classes and IDs using the 'completion-at-point' command.
409 Completion candidates for HTML classes and IDs are retrieved from open
410 HTML mode buffers.
413 ** Emacs now supports character name escape sequences in character and
414 string literals.  The syntax variants \N{character name} and
415 \N{U+code} are supported.
418 ** Prog mode has some support for multi-mode indentation.
419 This allows better indentation support in modes that support multiple
420 programming languages in the same buffer, like literate programming
421 environments or ANTLR programs with embedded Python code.
423 A major mode can provide indentation context for a sub-mode through
424 the 'prog-indentation-context' variable.  To support this, modes that
425 provide indentation should use 'prog-widen' instead of 'widen' and
426 'prog-first-column' instead of a literal zero.  See the node
427 "Mode-Specific Indent" in the ELisp manual for more details.
429 ** ERC
431 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
432 servers.
434 ** URL
437 *** The new function 'url-cookie-delete-cookie' can be used to
438 programmatically delete all cookies, or cookies from a specific
439 domain.
442 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
445 *** The URL package now support HTTPS over proxies supporting CONNECT.
448 *** 'url-user-agent' now defaults to 'default', and the User-Agent
449 string is computed dynamically based on 'url-privacy-level'.
451 ** VC and related modes
454 *** The VC state indicator in the mode line now defaults to more
455 colorful faces to make it more obvious to the user what the state is.
456 See the 'vc-faces' customization group.
458 ** CC mode
460 *** Opening a .h file will turn C or C++ mode depending on language used.
461 This is done with the help of 'c-or-c++-mode' function which analyses
462 contents of the buffer to determine whether it's a C or C++ source
463 file.
466 * New Modes and Packages in Emacs 26.1
468 ** New Elisp data-structure library 'radix-tree'.
471 * Incompatible Lisp Changes in Emacs 26.1
474 ** Resizing a frame no longer runs 'window-configuration-change-hook'.
475 Put your function on 'window-size-change-functions' instead.
477 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
478 mode to send the same escape sequences that xterm does.  This makes
479 things like forward-word in readline work.
482 ** hideshow mode got four key bindings that are analogous to outline
483 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
485 ** The grep/rgrep/lgrep functions will now ask about saving files
486 before running.  This is controlled by the 'grep-save-buffers'
487 variable.
490 ** The variable 'text-quoting-style' no longer affects the treatment
491 of curved quotes in format arguments to functions like 'message' and
492 'format-message'.  In particular, when this variable's value is
493 'grave', all quotes in formats are output as-is.
495 ** Functions like 'check-declare-file' and 'check-declare-directory'
496 now generate less chatter and more-compact diagnostics.  The auxiliary
497 function 'check-declare-errmsg' has been removed.
500 * Lisp Changes in Emacs 26.1
502 ** New function undo-amalgamate-change-group to get rid of undo-boundaries
503 between two states.
505 ** New var 'definition-prefixes' is a hashtable mapping prefixes to the
506 files where corresponding definitions can be found.  This can be used
507 to fetch definitions that are not yet loaded, for example for 'C-h f'.
509 ** New var syntax-ppss-table to control the syntax-table used in syntax-ppss.
512 ** 'define-derived-mode' can now specify an :after-hook form, which
513 gets evaluated after the new mode's hook has run.  This can be used to
514 incorporate configuration changes made in the mode hook into the
515 mode's setup.
517 ** Autoload files can be generated without timestamps,
518 by setting 'autoload-timestamps' to nil.
519 FIXME As an experiment, nil is the current default.
520 If no insurmountable problems before next release, it can stay that way.
523 ** 'gnutls-boot' now takes a parameter :complete-negotiation that says
524 that negotiation should complete even on non-blocking sockets.
527 ** New functions 'window-pixel-width-before-size-change' and
528 'window-pixel-height-before-size-change' support detecting which
529 window changed size when 'window-size-change-functions' are run.
532 ** New function 'display-buffer-reuse-mode-window' is an action function
533 suitable for use in 'display-buffer-alist'. For example, to avoid creating
534 a new window when opening man pages when there's already one, use
535 (add-to-list 'display-buffer-alist
536      '("\\`\\*Man .*\\*\\'" .
537        (display-buffer-reuse-mode-window
538         (inhibit-same-window . nil)
539         (mode . Man-mode))))
542 ** There is now a new variable 'flyspell-sort-corrections-function'
543 that allows changing the way corrections are sorted.
546 ** The new command 'fortune-message' has been added, which displays
547 fortunes in the echo area.
550 ** New function 'func-arity' returns information about the argument list
551 of an arbitrary function.  This generalizes 'subr-arity' for functions
552 that are not built-in primitives.  We recommend using this new
553 function instead of 'subr-arity'.
556 ** 'parse-partial-sexp' state has a new element.  Element 10 is
557 non-nil when the last character scanned might be the first character
558 of a two character construct, i.e., a comment delimiter or escaped
559 character.  Its value is the syntax of that last character.
562 ** 'parse-partial-sexp''s state, element 9, has now been confirmed as
563 permanent and documented, and may be used by Lisp programs.  Its value
564 is a list of currently open parenthesis positions, starting with the
565 outermost parenthesis.
568 ** 'read-color' will now display the color names using the color itself
569 as the background color.
571 ** The function 'redirect-debugging-output' now works on platforms
572 other than GNU/Linux.
575 ** The new function 'string-version-lessp' compares strings by
576 interpreting consecutive runs of numerical characters as numbers, and
577 compares their numerical values.  According to this predicate,
578 "foo2.png" is smaller than "foo12.png".
581 ** The new function 'char-from-name' converts a Unicode name string
582 to the corresponding character code.
585 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
586 Lisp object suitable for use with 'eq' and 'eql' correspondingly.  If
587 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
588 ('sxhash-eql') on them will be the same.
591 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
592 consistency with the new functions.  For compatibility, 'sxhash'
593 remains as an alias to 'sxhash-equal'.
596 ** Time conversion functions that accept a time zone rule argument now
597 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
598 OFFSET is a count of seconds east of Universal Time, and the string
599 ABBR is a time zone abbreviation.  The affected functions are
600 'current-time-string', 'current-time-zone', 'decode-time',
601 'format-time-string', and 'set-time-zone-rule'.
604 *** New basic face 'fixed-pitch-serif', for a fixed-width font with serifs.
605 The Info-quoted and tex-verbatim faces now default to inheriting from it.
607 ** New built-in function 'mapcan' which avoids unnecessary consing (and garbage
608 collection).
611 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
612 can be used for creation of temporary files of remote or mounted directories.
614 ** Changes in Frame- and Window- Handling
617 *** Support for side windows is now official.  The display action
618 function `display-buffer-in-side-window' will display its buffer in a
619 side window.  Functions for toggling all side windows on a frame,
620 changing and reversing the layout of side windows and returning the main
621 (major non-side) window of a frame are provided.  For details consult
622 the section "Side Windows" in the Elisp manual.
625 *** New `display-buffer' alist entry `window-parameters' allows to
626 assign window parameters to the window used for displaying the buffer.
629 *** New window parameter `no-delete-other-window' prevents that
630 its window gets deleted by `delete-other-windows'.
633 *** New command `window-swap-states' swaps the states of two live
634 windows.
636 * Changes in Emacs 26.1 on Non-Free Operating Systems
638 ** Intercepting hotkeys on Windows 7 and later now works better.
639 The new keyboard hooking code properly grabs system hotkeys such as
640 Win-* and Alt-TAB, in a way that Emacs can get at them before the
641 system.  This makes the 'w32-register-hot-key' functionality work
642 again on all versions of MS-Windows starting with Windows 7.  On
643 Windows NT and later you can now register any hotkey combination.  (On
644 Windows 9X, the previous limitations, spelled out in the Emacs manual,
645 still apply.)
647 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
648 Previously, on MS-Windows this function converted slash characters in
649 file names into backslashes.  It no longer does that.  If your Lisp
650 program used 'convert-standard-filename' to prepare file names to be
651 passed to subprocesses (which is not the recommended usage of that
652 function), you will now have to mirror slashes in your application
653 code.  One possible way is this:
655          (let ((start 0))
656            (while (string-match "/" file-name start)
657              (aset file-name (match-beginning 0) ?\\)
658              (setq start (match-end 0))))
660 ** GUI sessions now treat SIGINT like Posix platforms do.
661 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
662 MS-Windows is now the same as on Posix platforms -- Emacs saves the
663 session and exits.  In particular, this will happen if you start
664 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
665 window.
668 ----------------------------------------------------------------------
669 This file is part of GNU Emacs.
671 GNU Emacs is free software: you can redistribute it and/or modify
672 it under the terms of the GNU General Public License as published by
673 the Free Software Foundation, either version 3 of the License, or
674 (at your option) any later version.
676 GNU Emacs is distributed in the hope that it will be useful,
677 but WITHOUT ANY WARRANTY; without even the implied warranty of
678 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
679 GNU General Public License for more details.
681 You should have received a copy of the GNU General Public License
682 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
685 Local variables:
686 coding: us-ascii
687 mode: outline
688 paragraph-separate: "[  \f]*$"
689 end: