Avoid 64-bit compilation warnings in unexw32.c
[emacs.git] / etc / NEWS
blob315af5addc6e4d16866d3a62d2d52e99c674dd6d
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2014-2017 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 26.
11 See file HISTORY for a list of GNU Emacs versions and release dates.
12 See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
13 NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
15 You can narrow news to a specific version by calling 'view-emacs-news'
16 with a prefix argument or by typing C-u C-h C-n.
18 Temporary note:
19 +++ indicates that all necessary documentation updates are complete.
20     (This means all relevant manuals in doc/ AND lisp doc-strings.)
21 --- means no change in the manuals is needed.
22 When you add a new item, use the appropriate mark if you are sure it applies,
25 * Installation Changes in Emacs 26.1
27 ** By default libgnutls is now required when building Emacs.
28 Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
30 ** GnuTLS version 2.12.2 or later is now required, instead of merely
31 version 2.6.6 or later.
33 ** The new option 'configure --with-mailutils' causes Emacs to rely on
34 GNU Mailutils to retrieve email.  It is recommended, and is the
35 default if GNU Mailutils is installed.  When --with-mailutils is not
36 in effect, the Emacs build procedure by default continues to build and
37 install a limited 'movemail' substitute that retrieves POP3 email only
38 via insecure channels; to avoid this problem, use either
39 --with-mailutils or --without-pop when configuring.
41 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
42 GCC to issue warnings without stopping the build.  This behavior is
43 now the default in developer builds.  As before, use
44 '--disable-gcc-warnings' to suppress GCC's warnings, and
45 '--enable-gcc-warnings' to stop the build if GCC issues warnings.
47 ** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
48 now enabled by default when configuring.
50 +++
51 ** The Emacs server now has socket-launching support.  This allows
52 socket based activation, where an external process like systemd can
53 invoke the Emacs server process upon a socket connection event and
54 hand the socket over to Emacs.  Emacs uses this socket to service
55 emacsclient commands.  This new functionality can be disabled with the
56 configure option '--disable-libsystemd'.
58 +++
59 ** A systemd user unit file is provided.  Use it in the standard way:
60 systemctl --user enable emacs
61 (If your Emacs is installed in a non-standard location, you may
62 need to copy the emacs.service file to eg ~/.config/systemd/user/)
64 ** New configure option '--disable-build-details' attempts to build an
65 Emacs that is more likely to be reproducible; that is, if you build
66 and install Emacs twice, the second Emacs is a copy of the first.
67 Deterministic builds omit the build date from the output of the
68 'emacs-version' and 'erc-cmd-SV' functions, and the leave the
69 following variables nil: 'emacs-build-system', 'emacs-build-time',
70 'erc-emacs-build-time'.
72 ** New configure option '--with-lcms2' attempts to build an Emacs
73 linked to Little CMS, exposing color management functions in Lisp.
74 Implemented functions include the color metrics 'lcms-cie-de2000' and
75 'lcms-cam02-ucs'.
77 ** The configure option '--with-gameuser' now defaults to 'no',
78 as this appears to be the most common configuration in practice.
79 When it is 'no', the shared game directory and the auxiliary program
80 update-game-score are no longer needed and are not installed.
82 ** Emacs no longer works on IRIX.  We expect that Emacs users are not
83 affected by this, as SGI stopped supporting IRIX in December 2013.
86 * Startup Changes in Emacs 26.1
88 +++
89 ** New option '--fg-daemon'.  This is the same as '--daemon', except
90 it runs in the foreground and does not fork.  This is intended for
91 modern init systems such as systemd, which manage many of the traditional
92 aspects of daemon behavior themselves.  '--bg-daemon' is now an alias
93 for '--daemon'.
95 +++
96 ** New option '--module-assertions'.
97 When given this option, Emacs will perform expensive correctness
98 checks when dealing with dynamic modules.  This is intended for module
99 authors that wish to verify that their module conforms to the module
100 requirements.  The option makes Emacs abort if a module-related
101 assertion triggers.
104 ** Emacs now supports 24-bit colors on capable text terminals
105 Terminal is automatically initialized to use 24-bit colors if the
106 required capabilities are found in terminfo.  See the FAQ node
107 "Colors on a TTY" for more information.
110 ** Emacs now obeys the X resource "scrollBar" at startup.
111 The effect is similar to that of "toolBar" resource on the tool bar.
114 * Changes in Emacs 26.1
117 ** Functions in 'write-contents-functions' can fully short-circuit the
118 'save-buffer' process.  Previously, saving a buffer that was not
119 visiting a file would always prompt for a file name.  Now it only does
120 so if 'write-contents-functions' is nil (or all its functions return
121 nil).  A non-nil buffer-local value for this variable is sufficient
122 for 'save-some-buffers' to consider the buffer for saving.
125 ** New variable 'executable-prefix-env' for inserting magic signatures.
126 This variable affects the format of the interpreter magic number
127 inserted by 'executable-set-magic'.  If non-nil, the magic number now
128 takes the form "#!/usr/bin/env interpreter", otherwise the value
129 determined by 'executable-prefix', which is by default
130 "#!/path/to/interpreter".  By default, 'executable-prefix-env' is nil,
131 so the default behavior is not changed.
134 ** The variable 'emacs-version' no longer includes the build number.
135 This is now stored separately in a new variable, 'emacs-build-number'.
138 ** Emacs now provides a limited form of concurrency with Lisp threads.
139 Concurrency in Emacs Lisp is "mostly cooperative", meaning that
140 Emacs will only switch execution between threads at well-defined
141 times: when Emacs waits for input, during blocking operations related
142 to threads (such as mutex locking), or when the current thread
143 explicitly yields.  Global variables are shared among all threads, but
144 a 'let' binding is thread-local.  Each thread also has its own current
145 buffer and its own match data.
147 See the chapter "Threads" in the ELisp manual for full documentation
148 of these facilities.
151 ** The new user variable 'electric-quote-chars' provides a list
152 of curved quotes for 'electric-quote-mode', allowing user to choose
153 the types of quotes to be used.
156 ** The new user option 'electric-quote-context-sensitive' makes
157 'electric-quote-mode' context sensitive.  If it is non-nil, you can
158 type an ASCII apostrophe to insert an opening or closing quote,
159 depending on context.  Emacs will replace the apostrophe by an opening
160 quote character at the beginning of the buffer, the beginning of a
161 line, after a whitespace character, and after an opening parenthesis;
162 and it will replace the apostrophe by a closing quote character in all
163 other cases.
166 ** The new variable 'electric-quote-inhibit-functions' controls when
167 to disable electric quoting based on context.  Major modes can add
168 functions to this list; Emacs will temporarily disable
169 'electric-quote-mode' whenever any of the functions returns non-nil.
170 This can be used by major modes that derive from 'text-mode' but allow
171 inline code segments, such as 'markdown-mode'.
174 ** The new user variable 'dired-omit-case-fold' allows the user to
175 customize the case-sensitivity of dired-omit-mode.  It defaults to
176 the same sensitivity as that of the filesystem for the corresponding
177 dired buffer.
180 ** Emacs now uses double buffering to reduce flicker when editing and
181 resizing graphical Emacs frames on the X Window System.  This support
182 requires the DOUBLE-BUFFER extension, which major X servers have
183 supported for many years.  If your system has this extension, but an
184 Emacs built with double buffering misbehaves on some displays you use,
185 you can disable the feature by adding
187   '(inhibit-double-buffering . t)
189 to default-frame-alist.  Or inject this parameter into the selected
190 frame by evaluating this form:
192   (modify-frame-parameters nil '((inhibit-double-buffering . t)))
195 The group 'wp', whose label was "text", is now deprecated.
196 Use the new group 'text', which inherits from 'wp', instead.
199 ** The new function 'call-shell-region' executes a command in an
200 inferior shell with the buffer region as input.
203 ** The new user option 'shell-command-dont-erase-buffer' controls
204 if the output buffer is erased between shell commands; if non-nil,
205 the output buffer is not erased; this variable also controls where
206 to set the point in the output buffer: beginning of the output,
207 end of the buffer or save the point.
208 When 'shell-command-dont-erase-buffer' is nil, the default value,
209 the behavior of 'shell-command', 'shell-command-on-region' and
210 'async-shell-command' is as usual.
213 ** The new user option 'async-shell-command-display-buffer' controls
214 whether the output buffer of an asynchronous command is shown
215 immediately, or only when there is output.
218 ** The new user option 'mouse-select-region-move-to-beginning'
219 controls the position of point when double-clicking mouse-1 on the end
220 of a parenthetical grouping or string-delimiter: the default value nil
221 keeps point at the end of the region, setting it to non-nil moves
222 point to the beginning of the region.
225 ** The new user option 'mouse-drag-and-drop-region' allows to drag the
226 entire region of text to another place or another buffer.
229 ** The new user option 'confirm-kill-processes' allows the user to
230 skip a confirmation prompt for killing subprocesses when exiting
231 Emacs.  When set to t (the default), Emacs will prompt for
232 confirmation before killing subprocesses on exit, which is the same
233 behavior as before.
236 ** 'find-library-name' will now fall back on looking at 'load-history'
237 to try to locate libraries that have been loaded with an explicit path
238 outside 'load-path'.
241 ** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
242 in the text in functions like 'read-from-minibuffer', but instead are
243 added to the end of the face list.  This allows users to say things
244 like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
247 ** The new variable 'extended-command-suggest-shorter' has been added
248 to control whether to suggest shorter 'M-x' commands or not.
251 ** icomplete now respects 'completion-ignored-extensions'.
254 ** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
255 face instead of the 'escape-glyph' face.
258 ** Approximations to quotes are now displayed with the new 'homoglyph'
259 face instead of the 'escape-glyph' face.
262 ** New face 'header-line-highlight'.
263 This face is the header-line analogue of 'mode-line-highlight'; it
264 should be the preferred mouse-face for mouse-sensitive elements in the
265 header line.
268 ** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
269 part of minibuffers.
272 ** 'find-library' now takes a prefix argument to pop to a different
273 window.
276 ** 'fill-paragraph' no longer marks the buffer as changed unless it
277 actually changed something.
280 ** The locale language name 'ca' is now mapped to the language
281 environment 'Catalan', which has been added.
284 ** 'align-regexp' has a separate history for its interactive argument.
285 'align-regexp' no longer shares its history with all other
286 history-less functions that use 'read-string'.
289 ** The networking code has been reworked so that it's more
290 asynchronous than it was (when specifying :nowait t in
291 'make-network-process').  How asynchronous it is varies based on the
292 capabilities of the system, but on a typical GNU/Linux system the DNS
293 resolution, the connection, and (for TLS streams) the TLS negotiation
294 are all done without blocking the main Emacs thread.  To get
295 asynchronous TLS, the TLS boot parameters have to be passed in (see
296 the manual for details).
298 Certain process oriented functions (like 'process-datagram-address')
299 will block until socket setup has been performed.  The recommended way
300 to deal with asynchronous sockets is to avoid interacting with them
301 until they have changed status to "run".  This is most easily done
302 from a process sentinel.
305 ** 'make-network-process' and 'open-network-stream' sometimes allowed
306 :service to be an integer string (e.g., :service "993") and sometimes
307 required an integer (e.g., :service 993).  This difference has been
308 eliminated, and integer strings work everywhere.
311 ** It is possible to disable attempted recovery on fatal signals.
312 Two new variables support disabling attempts to recover from stack
313 overflow and to avoid automatic auto-save when Emacs is delivered a
314 fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
315 will disable attempts to recover from C stack overflows; Emacs will
316 then crash as with any other fatal signal.
317 'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
318 disable attempts to auto-save the session and shut down in an orderly
319 fashion when Emacs receives a fatal signal; instead, Emacs will
320 terminate immediately.  Both variables are non-'nil' by default.
321 These variables are for users who would like to avoid the small
322 probability of data corruption due to techniques Emacs uses to recover
323 in these situations.
326 ** File local and directory local variables are now initialized each
327 time the major mode is set, not just when the file is first visited.
328 These local variables will thus not vanish on setting a major mode.
331 ** A second dir-local file (.dir-locals-2.el) is now accepted.
332 See the variable 'dir-locals-file-2' for more information.
335 ** Connection-local variables can be used to specify local variables
336 with a value depending on the connected remote server.  For details,
337 see the node "Connection Local Variables" in the ELisp manual.
340 ** International domain names (IDNA) are now encoded via the new
341 puny.el library, so that one can visit Web sites with non-ASCII URLs.
344 ** The new 'timer-list' command lists all active timers in a buffer,
345 where you can cancel them with the 'c' command.
348 ** 'switch-to-buffer-preserve-window-point' now defaults to t.
351 ** The new variable 'debugger-stack-frame-as-list' allows displaying
352 all call stack frames in a Lisp backtrace buffer as lists.  Both
353 debug.el and edebug.el have been updated to heed to this variable.
356 ** Values in call stack frames are now displayed using 'cl-prin1'.
357 The old behaviour of using 'prin1' can be restored by customizing the
358 new option 'debugger-print-function'.
361 ** NUL bytes in text copied to the system clipboard are now replaced with "\0".
364 ** The new variable 'x-ctrl-keysym' has been added to the existing
365 roster of X keysyms.  It can be used in combination with another
366 variable of this kind to swap modifiers in Emacs.
369 ** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
372 ** The 'dutch' input method no longer attempts to support Turkish too.
373 Also, it no longer converts 'IJ' and 'ij' to the compatibility
374 characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
375 LIGATURE IJ.
378 ** File name quoting by adding the prefix "/:" is now possible for the
379 local part of a remote file name.  Thus, if you have a directory named
380 "/~" on the remote host "foo", you can prevent it from being
381 substituted by a home directory by writing it as "/foo:/:/~/file".
384 ** The new variable 'maximum-scroll-margin' allows having effective
385 settings of 'scroll-margin' up to half the window size, instead of
386 always restricting the margin to a quarter of the window.
389 ** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
390 You can enable this by customizing 'mwheel-tilt-scroll-p'.  If you
391 want to reverse the direction of the scroll, customize
392 'mwheel-flip-direction'.
395 ** Emacsclient has a new option -u/--suppress-output.
396 This option suppresses display of return values from the server
397 process.
400 ** Emacsclient has a new option -T/--tramp.
401 This helps with using a local Emacs session as the server for a remote
402 emacsclient.  With appropriate setup, one can now set the EDITOR
403 environment variable on a remote machine to emacsclient, and
404 use the local Emacs to edit remote files via Tramp.  See the node
405 "emacsclient Options" in the user manual for the details.
408 ** New user option 'dig-program-options' and extended functionality
409 for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
410 and 'run-dig'.  Each function now accepts an optional name server
411 argument interactively (with a prefix argument) and non-interactively.
414 ** 'describe-key-briefly' now ignores mouse movement events.
417 ** The new variable 'eval-expression-print-maximum-character' prevents
418 large integers from being displayed as characters by 'M-:' and similar
419 commands.
422 ** Two new commands for finding the source code of Emacs Lisp
423 libraries: 'find-library-other-window' and 'find-library-other-frame'.
426 ** The new variable 'display-raw-bytes-as-hex' allows to change the
427 display of raw bytes from octal to hex.
430 ** You can now provide explicit field numbers in format specifiers.
431 For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X".
434 ** Emacs now supports optional display of line numbers in the buffer.
435 This is similar to what linum-mode provides, but much faster and
436 doesn't usurp the display margin for the line numbers.  Customize the
437 buffer-local variable 'display-line-numbers' to activate this optional
438 display.  Alternatively, you can use the `display-line-numbers-mode'
439 minor mode or the global `global-display-line-numbers-mode'.  When
440 using these modes, customize `display-line-numbers-type' with the same
441 value as you would use with `display-line-numbers'.
443 Line numbers are not displayed at all in minibuffer windows and in
444 tooltips, as they are not useful there.
446 Lisp programs can disable line-number display for a particular screen
447 line by putting the 'display-line-numbers-disable' text property or
448 overlay property on the first character of that screen line.  This is
449 intended for add-on packages that need a finer control of the display.
451 Lisp programs that need to know how much screen estate is used up for
452 line-number display in a window can use the new function
453 'line-number-display-width'.
455 Linum mode and all similar packages are henceforth becoming obsolete.
456 Users and developers are encouraged to switch to this new feature
457 instead.
460 ** emacsclient now accepts command-line options in ALTERNATE_EDITOR
461 and --alternate-editor. For example, ALTERNATE_EDITOR="emacs -Q -nw".
462 Arguments may be quoted "like this", so that for example an absolute
463 path containing a space may be specified; quote escaping is not
464 supported.
467 * Editing Changes in Emacs 26.1
470 ** New variable 'column-number-indicator-zero-based'.
471 Traditionally, in Column Number mode, the displayed column number
472 counts from zero starting at the left margin of the window.  This
473 behavior is now controlled by 'column-number-indicator-zero-based'.
474 If you would prefer for the displayed column number to count from one,
475 you may set this variable to nil.  (Behind the scenes, there is now a
476 new mode line construct, '%C', which operates exactly as '%c' does
477 except that it counts from one.)
480 ** New single-line horizontal scrolling mode.
481 The 'auto-hscroll-mode' variable can now have a new special value,
482 'current-line', which causes only the line where the cursor is
483 displayed to be horizontally scrolled when lines are truncated on
484 display and point moves outside the left or right window margin.
487 ** New mode line constructs '%o' and '%q', and user option
488 'mode-line-percent-position'.  '%o' displays the "degree of travel" of
489 the window through the buffer.  Unlike the default '%p', this
490 percentage approaches 100% as the window approaches the end of the
491 buffer.  '%q' displays the percentage offsets of both the start and
492 the end of the window, e.g. "5-17%".  The new option
493 'mode-line-percent-position' makes it easier to switch between '%p',
494 '%P', and these new constructs.
497 ** Two new user options 'list-matching-lines-jump-to-current-line' and
498 'list-matching-lines-current-line-face' to show highlighted the current
499 line in *Occur* buffer.
502 ** The 'occur' command can now operate on the region.
505 ** New bindings for 'query-replace-map'.
506 'undo', undo the last replacement; bound to 'u'.
507 'undo-all', undo all replacements; bound to 'U'.
510 ** 'delete-trailing-whitespace' deletes whitespace after form feed.
511 In modes where form feed was treated as a whitespace character,
512 'delete-trailing-whitespace' would keep lines containing it unchanged.
513 It now deletes whitespace after the last form feed thus behaving the
514 same as in modes where the character is not whitespace.
517 ** Emacs no longer prompts about editing a changed file when the file's
518 content is unchanged.  Instead of only checking the modification time,
519 Emacs now also checks the file's actual content before prompting the user.
522 ** Various casing improvements.
524 *** 'upcase', 'upcase-region' et al. convert title case characters
525 (such as Dz) into their upper case form (such as DZ).
527 *** 'capitalize', 'upcase-initials' et al. make use of title-case forms
528 of initial characters (correctly producing for example Džungla instead
529 of incorrect DŽungla).
531 *** Characters which turn into multiple ones when cased are correctly handled.
532 For example, fi ligature is converted to FI when upper cased.
534 *** Greek small sigma is correctly handled when at the end of the word.
535 Strings such as ΌΣΟΣ are now correctly converted to Όσος when
536 capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
537 end of the word).
540 ** Emacs can now auto-save buffers to visited files in a more robust
541 manner via the new mode 'auto-save-visited-mode'.  Unlike
542 'auto-save-visited-file-name', this mode uses the normal saving
543 procedure and therefore obeys saving hooks.
544 'auto-save-visited-file-name' is now obsolete.
547 ** New behavior of 'mark-defun'.
548 Prefix argument selects that many (or that many more) defuns.
549 Negative prefix arg flips the direction of selection.  Also,
550 'mark-defun' between defuns correctly selects N following defuns (or
551 -N previous for negative arguments).  Finally, comments preceding the
552 defun are selected unless they are separated from the defun by a blank
553 line.
556 ** New command 'replace-buffer-contents'.
557 This command replaces the contents of the accessible portion of the
558 current buffer with the contents of the accessible portion of a
559 different buffer while keeping point, mark, markers, and text
560 properties as intact as possible.
563 ** New commands 'apropos-local-variable' and 'apropos-local-value.
564 These are buffer-local versions of 'apropos-variable' and
565 'apropos-value', respectively.  They show buffer-local variables whose
566 names and values, respectively, match a given pattern.
569 ** More user control of reordering bidirectional text for display.
570 The two new variables, 'bidi-paragraph-start-re' and
571 'bidi-paragraph-separate-re', allow customization of what exactly are
572 paragraphs, for the purposes of bidirectional display.
575 * Changes in Specialized Modes and Packages in Emacs 26.1
578 ** New function `cl-generic-p'.
580 ** Dired
583 *** You can answer 'all' in 'dired-do-delete' to delete recursively all
584 remaining directories without more prompts.
587 *** Dired supports wildcards in the directory part of the file names.
590 *** You can now use '`?`' in 'dired-do-shell-command'.
591 It gets replaced by the current file name, like ' ? '.
594 *** A new option 'dired-always-read-filesystem' default to nil.
595 If non-nil, buffers visiting files are reverted before search them;
596 for instance, in 'dired-mark-files-containing-regexp' a non-nil value
597 of this option means the file is revisited in a temporary buffer;
598 this temporary buffer is the actual buffer searched: the original buffer
599 visiting the file is not modified.
602 *** Users can now customize mouse clicks in Dired in a more flexible way.
603 The new command 'dired-mouse-find-file' can be bound to a mouse click
604 and used to visit files/directories in Dired in the selected window.
605 The new command 'dired-mouse-find-file-other-frame' similarly visits
606 files/directories in another frame.  You can write your own commands
607 that invoke 'dired-mouse-find-file' with non-default optional
608 arguments, to tailor the effects of mouse clicks on file names in
609 Dired buffers.
612 *** In wdired, when editing files to contain slash characters,
613 the resulting directories are automatically created.  Whether to do
614 this is controlled by the 'wdired-create-parent-directories' variable.
617 *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
618 viewing HTML files and the like.
621 *** New variable 'dired-clean-confirm-killing-deleted-buffers'
622 controls whether Dired asks to kill buffers visiting deleted files and
623 directories.  The default is t, so Dired asks for confirmation, to
624 keep previous behavior.
627 ** html2text is now marked obsolete.
630 ** smerge-refine-regions can refine regions in separate buffers
633 ** Info menu and index completion uses substring completion by default.
634 This can be customized via the info-menu category in
635 completion-category-override.
638 ** The ancestor buffer is shown by default in 3-way merges.
639 A new option ediff-show-ancestor and a new toggle
640 ediff-toggle-show-ancestor.
643 ** TeX: Add luatex and xetex as alternatives to pdftex
645 ** Electric-Buffer-menu
648 *** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
649 bound to 'Buffer-menu-unmark-all-buffers'.
651 ** bs
654 *** Two new commands 'bs-unmark-all', bound to 'U', and
655 'bs-unmark-previous', bound to <backspace>.
657 ** Buffer-menu
660 *** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
661 'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.
664 ** Checkdoc
666 *** 'checkdoc-arguments-in-order-flag' now defaults to nil.
668 ** Gnus
671 *** The .newsrc file will now only be saved if the native select
672 method is an NNTP select method.
675 *** A new command for sorting articles by readedness marks has been
676 added: 'C-c C-s C-m C-m'.
678 ** Ibuffer
681 *** New command 'ibuffer-jump'.
684 *** New filter commands 'ibuffer-filter-by-basename',
685 'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
686 'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
687 and 'ibuffer-filter-by-visiting-file'; bound respectively
688 to '/b', '/.', '//', '/*', '/i' and '/v'.
691 *** Two new commands 'ibuffer-filter-chosen-by-completion'
692 and 'ibuffer-and-filter', the second bound to '/&'.
695 *** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
696 'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
697 bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.
700 *** The data format specifying filters has been extended to allow
701 explicit logical 'and', and a more flexible form for logical 'not'.
702 See 'ibuffer-filtering-qualifiers' doc string for full details.
705 *** A new command 'ibuffer-copy-buffername-as-kill'; bound
706 to 'B'.
709 *** New command 'ibuffer-change-marks'; bound to '* c'.
712 *** A new command 'ibuffer-mark-by-locked' to mark
713 all locked buffers;  bound to '% L'.
716 *** A new option 'ibuffer-locked-char' to indicate
717 locked buffers; Ibuffer shows a new column displaying
718 'ibuffer-locked-char' for locked buffers.
721 *** A new command 'ibuffer-unmark-all-marks' to unmark
722 all buffers without asking confirmation;  bound to
723 'U'; 'ibuffer-do-replace-regexp' bound to 'r'.
726 *** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
727 whose content matches a regexp; bound to '% g'.
730 *** Two new options 'ibuffer-never-search-content-name' and
731 'ibuffer-never-search-content-mode' used by
732 'ibuffer-mark-by-content-regexp'.
734 ** Browse-URL
737 *** Support for opening links to man pages in Man or WoMan mode.
739 ** Comint
742 *** New user option 'comint-move-point-for-matching-input' to control
743 where to place point after C-c M-r and C-c M-s.
745 ** Compilation mode
748 *** Messages from CMake are now recognized.
751 *** The number of errors, warnings, and informational messages is now
752 displayed in the mode line.  These are updated as compilation
753 proceeds.
755 ** Grep
758 *** Grep commands will now use GNU grep's '--null' option if
759 available, which allows distinguishing the filename from contents if
760 they contain colons.  This can be controlled by the new custom option
761 'grep-use-null-filename-separator'.
764 *** The grep/rgrep/lgrep functions will now ask about saving files
765 before running.  This is controlled by the 'grep-save-buffers'
766 variable.
768 ** Edebug
771 *** Edebug can be prevented from pausing 1 second after reaching a
772 breakpoint (e.g. with "f" and "o") by customizing the new option
773 'edebug-sit-on-break'.
776 *** New customizable option 'edebug-max-depth'
777 This allows to enlarge the maximum recursion depth when instrumenting
778 code.
780 ** Eshell
783 *** 'eshell-input-filter's value is now a named function
784 'eshell-input-filter-default', and has a new custom option
785 'eshell-input-filter-initial-space' to ignore adding commands prefixed
786 with blank space to eshell history.
788 ** eww
791 *** New 'M-RET' command for opening a link at point in a new eww buffer.
794 *** A new 's' command for switching to another eww buffer via the minibuffer.
797 *** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
798 with the 'o' command from 'image-map'.
801 *** A new command 'C' ('eww-toggle-colors') can be used to toggle
802 whether to use the HTML-specified colors or not.  The user can also
803 customize the 'shr-use-colors' variable.
806 *** Images that are being loaded are now marked with gray
807 "placeholder" images of the size specified by the HTML.  They are then
808 replaced by the real images asynchronously, which will also now
809 respect width/height HTML specs (unless they specify widths/heights
810 bigger than the current window).
813 *** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
814 'shr-copy-url' now only copies the url at point; users who wish to
815 avoid accidentally accessing remote links may rebind 'w' and 'u' in
816 'eww-link-keymap' to it.
819 ** Ido
822 *** The commands 'find-alternate-file-other-window',
823 'dired-other-window', 'dired-other-frame', and
824 'display-buffer-other-window' are now remapped to Ido equivalents if
825 Ido mode is active.
827 ** Images
830 *** Images are automatically scaled before displaying based on the
831 'image-scaling-factor' variable (if Emacs supports scaling the images
832 in question).
835 *** It's now possible to specify aspect-ratio preserving combinations
836 of :width/:max-height and :height/:max-width keywords.  In either
837 case, the "max" keywords win.  (Previously some combinations would,
838 depending on the aspect ratio of the image, just be ignored and in
839 other instances this would lead to the aspect ratio not being
840 preserved.)
843 *** Images inserted with 'insert-image' and related functions get a
844 keymap put into the text properties (or overlays) that span the
845 image.  This keymap binds keystrokes for manipulating size and
846 rotation, as well as saving the image to a file.  These commands are
847 also available in 'image-mode'.
850 *** A new library for creating and manipulating SVG images has been
851 added.  See the "SVG Images" section in the Lisp reference manual for
852 details.
855 *** New setf-able function to access and set image parameters is
856 provided: 'image-property'.
859 *** New commands 'image-scroll-left' and 'image-scroll-right'
860 for 'image-mode' that complement 'image-scroll-up' and
861 'image-scroll-down': they have the same prefix arg behavior and stop
862 at image boundaries.
864 ** Image-Dired
867 *** Now provides a minor mode 'image-dired-minor-mode' which replaces
868 the function 'image-dired-setup-dired-keybindings'.
871 *** Thumbnail generation is now asynchronous.
872 The number of concurrent processes is limited by the variable
873 'image-dired-thumb-job-limit'.
876 *** 'image-dired-thumbnail-storage' has a new option 'standard-large'
877 for generating 256x256 thumbnails according to the Thumbnail Managing
878 Standard.
881 *** Inherits movement keys from 'image-mode' for viewing full images.
882 This includes the usual char, line, and page movement commands.
885 *** All the -options types have been changed to argument lists
886 instead of shell command strings.  This change affects
887 'image-dired-cmd-create-thumbnail-options',
888 'image-dired-cmd-create-temp-image-options',
889 'image-dired-cmd-rotate-thumbnail-options',
890 'image-dired-cmd-rotate-original-options',
891 'image-dired-cmd-write-exif-data-options',
892 'image-dired-cmd-read-exif-data-options', and introduces
893 'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
894 'image-dired-cmd-create-standard-thumbnail-options'
897 *** Recognizes more tools by default, including pngnq-s9 and OptiPNG
900 *** 'find-file' and related commands now work on thumbnails and
901 displayed images, providing a default argument of the original file name
902 via an addition to 'file-name-at-point-functions'.
905 ** The default 'Info-default-directory-list' no longer checks some obsolete
906 directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
907 when searching for info directories.
910 ** The commands that add ChangeLog entries now prefer a VCS root directory
911 for the ChangeLog file, if none already exists.  Customize
912 'change-log-directory-files' to nil for the old behavior.
915 ** Support for non-string values of 'time-stamp-format' has been removed.
917 ** Message
920 *** 'message-use-idna' now defaults to t (because Emacs comes with
921 built-in IDNA support now).
924 *** When sending HTML messages with embedded images, and you have
925 exiftool installed, and you rotate images with EXIF data (i.e.,
926 JPEGs), the rotational information will be inserted into the outgoing
927 image in the message.  (The original image will not have its
928 orientation affected.)
931 *** The 'message-valid-fqdn-regexp' variable has been removed, since
932 there are now top-level domains added all the time.  Message will no
933 longer warn about sending emails to top-level domains it hasn't heard
934 about.
936 *** 'message-beginning-of-line' (bound to C-a) understands folded headers.
937 In 'visual-line-mode' it will look for the true beginning of a header
938 while in non-'visual-line-mode' it will move the point to the indented
939 header's value.
941 ** Package
944 *** The new variable 'package-gnupghome-dir' has been added to control
945 where the GnuPG home directory (used for signature verification) is
946 located and whether GnuPG's option "--homedir" is used or not.
949 *** Deleting a package no longer respects 'delete-by-moving-to-trash'.
951 ** Tramp
954 *** The method part of remote file names is mandatory now.
955 A valid remote file name starts with "/method:host:" or
956 "/method:user@host:".
959 *** The new pseudo method "-" is a marker for the default method.
960 "/-::" is the shortest remote file name then.
963 *** The command 'tramp-change-syntax' allows to choose an alternative
964 remote file name syntax.
967 *** New connection method "sg", which supports editing files under a
968 different group ID.
971 *** New connection method "doas" for OpenBSD hosts.
974 *** New connection method "gdrive", which allows to access Google
975 Drive onsite repositories.
978 *** Gateway methods in Tramp have been removed.
979 Instead, the Tramp manual documents how to configure ssh and PuTTY
980 accordingly.
983 *** Setting the "ENV" environment variable in
984 'tramp-remote-process-environment' enables reading of shell
985 initialization files.
988 *** Tramp is able now to send SIGINT to remote asynchronous processes.
991 *** Variable 'tramp-completion-mode' is obsoleted.
994 ** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
996 ** JS mode
999 *** JS mode now sets 'comment-multi-line' to t.
1002 *** New variable 'js-indent-align-list-continuation', when set to nil,
1003 will not align continuations of bracketed lists, but will indent them
1004 by the fixed width 'js-indent-level'.
1006 ** CSS mode
1009 *** Support for completing attribute values, at-rules, bang-rules,
1010 HTML tags, classes and IDs using the 'completion-at-point' command.
1011 Completion candidates for HTML classes and IDs are retrieved from open
1012 HTML mode buffers.
1015 *** CSS mode now binds 'C-h S' to a function that will show
1016 information about a CSS construct (an at-rule, property, pseudo-class,
1017 pseudo-element, with the default being guessed from context).  By
1018 default the information is looked up on the Mozilla Developer Network,
1019 but this can be customized using 'css-lookup-url-format'.
1022 *** CSS colors are fontified using the color they represent as the
1023 background.  For instance, #ff0000 would be fontified with a red
1024 background.
1027 ** Emacs now supports character name escape sequences in character and
1028 string literals.  The syntax variants \N{character name} and
1029 \N{U+code} are supported.
1032 ** Prog mode has some support for multi-mode indentation.
1033 This allows better indentation support in modes that support multiple
1034 programming languages in the same buffer, like literate programming
1035 environments or ANTLR programs with embedded Python code.
1037 A major mode can provide indentation context for a sub-mode through
1038 the 'prog-indentation-context' variable.  To support this, modes that
1039 provide indentation should use 'prog-widen' instead of 'widen' and
1040 'prog-first-column' instead of a literal zero.  See the node
1041 "Mode-Specific Indent" in the ELisp manual for more details.
1043 ** ERC
1046 *** New variable 'erc-default-port-tls' used to connect to TLS IRC
1047 servers.
1049 ** URL
1052 *** The new function 'url-cookie-delete-cookie' can be used to
1053 programmatically delete all cookies, or cookies from a specific
1054 domain.
1057 *** 'url-retrieve-synchronously' now takes an optional timeout parameter.
1060 *** The URL package now support HTTPS over proxies supporting CONNECT.
1063 *** 'url-user-agent' now defaults to 'default', and the User-Agent
1064 string is computed dynamically based on 'url-privacy-level'.
1066 ** VC and related modes
1069 *** The VC state indicator in the mode line now defaults to more
1070 colorful faces to make it more obvious to the user what the state is.
1071 See the 'vc-faces' customization group.
1074 *** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
1075 branch-related commands on a keymap bound to 'B'.
1077 ** CC mode
1080 *** Opening a .h file will turn C or C++ mode depending on language used.
1081 This is done with the help of 'c-or-c++-mode' function which analyses
1082 contents of the buffer to determine whether it's a C or C++ source
1083 file.
1086 ** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
1087 to a format suitable for reverse lookup zone files.
1089 ** Ispell
1092 *** Enchant is now supported as a spell-checker.
1094 Enchant is a meta-spell-checker that uses providers
1095 such as Hunspell to do the actual checking.  With it, users can use
1096 spell-checkers not directly supported by Emacs, such as Voikko, Hspell
1097 and AppleSpell, more easily share personal word-lists with other
1098 programs, and configure different spelling-checkers for different
1099 languages.  (Version 2.1.0 or later of Enchant is required.)
1101 ** Flymake
1104 *** Emacs no longer prompts the user before killing Flymake processes on exit.
1107 * New Modes and Packages in Emacs 26.1
1109 ** New Elisp data-structure library 'radix-tree'.
1111 ** New library 'xdg' with utilities for some XDG standards and specs.
1113 ** HTML
1116 *** A new submode of 'html-mode', 'mhtml-mode', is now the default
1117 mode for *.html files.  This mode handles indentation,
1118 fontification, and commenting for embedded JavaScript and CSS.
1120 ** New mode 'conf-toml-mode' is a sub-mode of conf-mode, specialized
1121    for editing TOML files.
1123 ** New mode 'conf-desktop-mode' is a sub-mode of conf-unix-mode,
1124 specialized for editing freedesktop.org desktop entries.
1126 ** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.
1128 ** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
1129 editing Less files.
1132 * Incompatible Lisp Changes in Emacs 26.1
1135 *** password-data is now a hash-table
1136 so that `password-read' can use any object for the `key' argument.
1139 *** Command 'dired-mark-extension' now automatically prepends a '.' to the
1140 extension when not present.  The new command 'dired-mark-suffix' behaves
1141 similarly but it doesn't prepend a '.'.
1144 ** Certain cond/pcase/cl-case forms are now compiled using a faster jump
1145 table implementation.  This uses a new bytecode op 'switch', which
1146 isn't compatible with previous Emacs versions.  This functionality can
1147 be disabled by setting 'byte-compile-cond-use-jump-table' to nil.
1150 ** The alist 'ucs-names' is now a hash table.
1153 ** 'if-let' and 'when-let' are subsumed by 'if-let*' and 'when-let*'.
1154 The incumbent 'if-let' and 'when-let' are now marked obsolete.
1155 'if-let*' and 'when-let*' do not accept the single tuple special case.
1156 New macro 'and-let*' is an implementation of the Scheme SRFI-2 syntax
1157 of the same name.  'if-let*' and 'when-let*' now accept the same
1158 binding syntax as 'and-let*'.
1161 ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term
1162 mode to send the same escape sequences that xterm does.  This makes
1163 things like forward-word in readline work.
1166 ** hideshow mode got four key bindings that are analogous to outline
1167 mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.'
1170 ** Customizable variable 'query-replace-from-to-separator'
1171 now doesn't propertize the string value of the separator.
1172 Instead, text properties are added by query-replace-read-from.
1173 Additionally, the new nil value restores pre-24.5 behavior
1174 of not providing replacement pairs via the history.
1177 ** Some obsolete functions, variables, and faces have been removed:
1178 *** make-variable-frame-local.  Variables cannot be frame-local any more.
1179 *** From subr.el: window-dot, set-window-dot, read-input, show-buffer,
1180 eval-current-buffer, string-to-int
1181 *** icomplete-prospects-length.
1182 *** All the default-FOO variables that hold the default value of the
1183 FOO variable.  Use 'default-value' and 'setq-default' to access and
1184 change FOO, respectively.  The exhaustive list of removed variables is:
1185 'default-mode-line-format', 'default-header-line-format',
1186 'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
1187 'default-truncate-lines', 'default-left-margin', 'default-tab-width',
1188 'default-case-fold-search', 'default-left-margin-width',
1189 'default-right-margin-width', 'default-left-fringe-width',
1190 'default-right-fringe-width', 'default-fringes-outside-margins',
1191 'default-scroll-bar-width', 'default-vertical-scroll-bar',
1192 'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
1193 'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
1194 'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
1195 'default-fill-column', 'default-cursor-type',
1196 'default-cursor-in-non-selected-windows',
1197 'default-buffer-file-coding-system', 'default-major-mode', and
1198 'default-enable-multibyte-characters'.
1199 *** Many variables obsoleted in 22.1 referring to face symbols
1202 ** The variable 'text-quoting-style' no longer affects the treatment
1203 of curved quotes in format arguments to functions like 'message' and
1204 'format-message'.  In particular, when this variable's value is
1205 'grave', all quotes in formats are output as-is.
1208 ** Functions like 'check-declare-file' and 'check-declare-directory'
1209 now generate less chatter and more-compact diagnostics.  The auxiliary
1210 function 'check-declare-errmsg' has been removed.
1213 ** The regular expression character class [:blank:] now matches
1214 Unicode horizontal whitespace as defined in the Unicode Technical
1215 Standard #18.  If you only want to match space and tab, use [ \t]
1216 instead.
1219 ** 'min' and 'max' no longer round their results.
1220 Formerly, they returned a floating-point value if any argument was
1221 floating-point, which was sometimes numerically incorrect.  For
1222 example, on a 64-bit host (max 1e16 10000000000000001) now returns its
1223 second argument instead of its first.
1226 ** The variable 'old-style-backquotes' has been made internal and
1227 renamed to 'lread--old-style-backquotes'.  No user code should use
1228 this variable.
1231 ** To avoid confusion caused by "smart quotes", the reader no longer
1232 accepts Lisp symbols which begin with the following quotation
1233 characters: ‘’‛“”‟〞"', unless they are escaped with backslash.
1236 ** 'default-file-name-coding-system' now defaults to a coding system
1237 that does not process CRLF.  For example, it defaults to utf-8-unix
1238 instead of to utf-8.  Before this change, Emacs would sometimes
1239 mishandle file names containing these control characters.
1242 ** 'file-attributes', 'file-symlink-p' and 'make-symbolic-link' no
1243 longer quietly mutate the target of a local symbolic link, so that
1244 Emacs can access and copy them reliably regardless of their contents.
1245 The following changes are involved.
1248 *** 'file-attributes' and 'file-symlink-p' no longer prepend "/:" to
1249 symbolic links whose targets begin with "/" and contain ":".  For
1250 example, if a symbolic link "x" has a target "/y:z:", '(file-symlink-p
1251 "x")' now returns "/y:z:" rather than "/:/y:z:".
1254 *** 'make-symbolic-link' no longer looks for file name handlers of
1255 target when creating a symbolic link.  For example,
1256 '(make-symbolic-link "/y:z:" "x")' now creates a symbolic link to
1257 "/y:z:" instead of failing.
1260 *** 'make-symbolic-link' removes the remote part of a link target if
1261 target and newname have the same remote part.  For example,
1262 '(make-symbolic-link "/x:y:a" "/x:y:b")' creates a link with the
1263 literal string "a"; and '(make-symbolic-link "/x:y:a" "/x:z:b")'
1264 creates a link with the literal string "/x:y:a" instead of failing.
1267 *** 'make-symbolic-link' now expands a link target with leading "~"
1268 only when the optional third arg is an integer, as when invoked
1269 interactively.  For example, '(make-symbolic-link "~y" "x")' now
1270 creates a link with target the literal string "~y"; to get the old
1271 behavior, use '(make-symbolic-link (expand-file-name "~y") "x")'.  To
1272 avoid this expansion in interactive use, you can now prefix the link
1273 target with "/:".  For example, '(make-symbolic-link "/:~y" "x" 1)'
1274 now creates a link to literal "~y".
1277 ** 'file-truename' returns a quoted file name if the target of a
1278 symbolic link has remote file name syntax.
1281 ** Module functions are now implemented slightly differently; in
1282 particular, the function 'internal--module-call' has been removed.
1283 Code that depends on undocumented internals of the module system might
1284 break.
1287 ** The argument LOCKNAME of 'write-region' is propagated to file name
1288 handlers now.
1291 ** When built against recent versions of GTK+, Emacs always uses
1292 gtk_window_move for moving frames and ignores the value of the
1293 variable 'x-gtk-use-window-move'.  The variable is now obsolete.
1296 ** Several functions that create or rename files now treat their
1297 destination argument specially only when it is a directory name, i.e.,
1298 when it ends in '/' on GNU and other POSIX-like systems.  When the
1299 destination argument D of one of these functions is an existing
1300 directory and the intent is to act on an entry in that directory, D
1301 should now be a directory name.  For example, (rename-file "e" "f/")
1302 renames to 'f/e'.  Although this formerly happened sometimes even when
1303 D was not a directory name, as in (rename-file "e" "f") where 'f'
1304 happened to be a directory, the old behavior often contradicted the
1305 documentation and had inherent races that led to security holes.  A
1306 call like (rename-file C D) that used the old, undocumented behavior
1307 can be written as (rename-file C (file-name-as-directory D)), a
1308 formulation portable to both older and newer versions of Emacs.
1309 Affected functions include add-name-to-file, copy-directory,
1310 copy-file, format-write-file, gnus-copy-file, make-symbolic-link,
1311 rename-file, thumbs-rename-images, and write-file.
1314 * Lisp Changes in Emacs 26.1
1317 ** The function 'assoc' now takes an optional third argument TESTFN.
1318 This argument, when non-nil, is used for comparison instead of
1319 'equal'.
1322 ** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'.
1323 If non-nil, the argument specifies a function to use for comparison,
1324 instead of, respectively, 'assq' and 'eql'.
1327 ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2
1328 contain the same elements, regardless of the order.
1331 ** The new function 'mapbacktrace' applies a function to all frames of
1332 the current stack trace.
1335 ** The new function 'file-name-case-insensitive-p' tests whether a
1336 given file is on a case-insensitive filesystem.
1339 ** Several accessors for the value returned by 'file-attributes'
1340 have been added.  They are: 'file-attribute-type',
1341 'file-attribute-link-number', 'file-attribute-user-id',
1342 'file-attribute-group-id', 'file-attribute-access-time',
1343 'file-attribute-modification-time',
1344 'file-attribute-status-change-time', 'file-attribute-size',
1345 'file-attribute-modes', 'file-attribute-inode-number',
1346 'file-attribute-device-number' and 'file-attribute-collect'.
1349 ** The new function 'buffer-hash' computes a fast, non-consing hash of
1350 a buffer's contents.
1353 ** 'interrupt-process' now consults the list 'interrupt-process-functions',
1354 to determine which function has to be called in order to deliver the
1355 SIGINT signal.  This allows Tramp to send the SIGINT signal to remote
1356 asynchronous processes.  The hitherto existing implementation has been
1357 moved to 'internal-default-interrupt-process'.
1360 ** The new function 'read-multiple-choice' prompts for multiple-choice
1361 questions, with a handy way to display help texts.
1364 ** 'comment-indent-function' values may now return a cons to specify a
1365 range of indentation.
1368 ** New optional argument TEXT in 'make-temp-file'.
1371 ** New function `define-symbol-prop'.
1373 ** Checksum/Hash
1376 ** New function 'secure-hash-algorithms' to list the algorithms that
1377 'secure-hash' supports.
1378 See the node "(elisp) Checksum/Hash" in the ELisp manual for details.
1381 ** Emacs now exposes the GnuTLS cryptographic API with the functions
1382 'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and
1383 'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt'
1384 and 'gnutls-symmetric-decrypt'.
1385 See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details.
1388 ** Emacs now supports records for user-defined types, via the new
1389 functions 'make-record', 'record', and 'recordp'.  Records are now
1390 used internally to represent cl-defstruct and defclass instances, for
1391 example.
1394 ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate'
1395 to decide which buffers to ask about, if the PRED argument is nil.
1396 The default value of 'save-some-buffers-default-predicate' is nil,
1397 which means ask about all file-visiting buffers.
1400 ** string-(to|as|make)-(uni|multi)byte are now declared obsolete.
1403 ** New variable 'while-no-input-ignore-events' which allow
1404 setting which special events 'while-no-input' should ignore.
1405 It is a list of symbols.
1408 ** New function 'undo-amalgamate-change-group' to get rid of
1409 undo-boundaries between two states.
1412 ** New var 'definition-prefixes' is a hash table mapping prefixes to
1413 the files where corresponding definitions can be found.  This can be
1414 used to fetch definitions that are not yet loaded, for example for
1415 'C-h f'.
1418 ** New var 'syntax-ppss-table' to control the syntax-table used in
1419 'syntax-ppss'.
1422 ** 'define-derived-mode' can now specify an :after-hook form, which
1423 gets evaluated after the new mode's hook has run.  This can be used to
1424 incorporate configuration changes made in the mode hook into the
1425 mode's setup.
1428 ** Autoload files can be generated without timestamps,
1429 by setting 'autoload-timestamps' to nil.
1430 FIXME As an experiment, nil is the current default.
1431 If no insurmountable problems before next release, it can stay that way.
1434 ** 'gnutls-boot' now takes a parameter ':complete-negotiation' that
1435 says that negotiation should complete even on non-blocking sockets.
1438 ** There is now a new variable 'flyspell-sort-corrections-function'
1439 that allows changing the way corrections are sorted.
1442 ** The new command 'fortune-message' has been added, which displays
1443 fortunes in the echo area.
1446 ** New function 'func-arity' returns information about the argument list
1447 of an arbitrary function.  This generalizes 'subr-arity' for functions
1448 that are not built-in primitives.  We recommend using this new
1449 function instead of 'subr-arity'.
1452 ** New function 'region-bounds' can be used in the interactive spec
1453 to provide region boundaries (for rectangular regions more than one)
1454 to an interactively callable function as a single argument instead of
1455 two separate arguments region-beginning and region-end.
1458 ** 'parse-partial-sexp' state has a new element.  Element 10 is
1459 non-nil when the last character scanned might be the first character
1460 of a two character construct, i.e., a comment delimiter or escaped
1461 character.  Its value is the syntax of that last character.
1464 ** 'parse-partial-sexp's state, element 9, has now been confirmed as
1465 permanent and documented, and may be used by Lisp programs.  Its value
1466 is a list of currently open parenthesis positions, starting with the
1467 outermost parenthesis.
1470 ** 'read-color' will now display the color names using the color itself
1471 as the background color.
1474 ** The function 'redirect-debugging-output' now works on platforms
1475 other than GNU/Linux.
1478 ** The new function 'string-version-lessp' compares strings by
1479 interpreting consecutive runs of numerical characters as numbers, and
1480 compares their numerical values.  According to this predicate,
1481 "foo2.png" is smaller than "foo12.png".
1484 ** Numeric comparisons and 'logb' no longer return incorrect answers
1485 due to internal rounding errors.  For example, (< most-positive-fixnum
1486 (+ 1.0 most-positive-fixnum)) now correctly returns t on 64-bit hosts.
1489 ** The functions 'ffloor', 'fceiling', 'ftruncate' and 'fround' now
1490 accept only floating-point arguments, as per their documentation.
1491 Formerly, they quietly accepted integer arguments and sometimes
1492 returned nonsensical answers, e.g., (< N (ffloor N)) could return t.
1495 ** On hosts like GNU/Linux x86-64 where a 'long double' fraction
1496 contains at least EMACS_INT_WIDTH - 3 bits, 'format' no longer returns
1497 incorrect answers due to internal rounding errors when formatting
1498 Emacs integers with %e, %f, or %g conversions.  For example, on these
1499 hosts (eql N (string-to-number (format "%.0f" N))) now returns t for
1500 all Emacs integers N.
1503 ** Calls that accept floating-point integers (for use on hosts with
1504 limited integer range) now signal an error if arguments are not
1505 integral.  For example (decode-char 'ascii 0.5) now signals an error.
1508 ** The new function 'char-from-name' converts a Unicode name string
1509 to the corresponding character code.
1512 ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
1513 Lisp object suitable for use with 'eq' and 'eql' correspondingly.  If
1514 two objects are 'eq' ('eql'), then the result of 'sxhash-eq'
1515 ('sxhash-eql') on them will be the same.
1518 ** Function 'sxhash' has been renamed to 'sxhash-equal' for
1519 consistency with the new functions.  For compatibility, 'sxhash'
1520 remains as an alias to 'sxhash-equal'.
1523 ** 'make-hash-table' now defaults to a rehash threshold of 0.8125
1524 instead of 0.8, to avoid rounding glitches.
1527 ** New function 'add-variable-watcher' can be used to call a function
1528 when a symbol's value is changed.  This is used to implement the new
1529 debugger command 'debug-on-variable-change'.
1532 ** Time conversion functions that accept a time zone rule argument now
1533 allow it to be OFFSET or a list (OFFSET ABBR), where the integer
1534 OFFSET is a count of seconds east of Universal Time, and the string
1535 ABBR is a time zone abbreviation.  The affected functions are
1536 'current-time-string', 'current-time-zone', 'decode-time',
1537 'format-time-string', and 'set-time-zone-rule'.
1540 ** 'format-time-string' now formats "%q" to the calendar quarter.
1543 ** New built-in function 'mapcan'.
1544 It avoids unnecessary consing (and garbage collection).
1547 ** 'car' and 'cdr' compositions 'cXXXr' and 'cXXXXr' are now part of Elisp.
1550 ** 'gensym' is now part of Elisp.
1553 ** Low-level list functions like 'length' and 'member' now do a better
1554 job of signaling list cycles instead of looping indefinitely.
1557 ** The new functions 'make-nearby-temp-file' and 'temporary-file-directory'
1558 can be used for creation of temporary files of remote or mounted directories.
1561 ** On GNU platforms when operating on a local file, 'file-attributes'
1562 no longer suffers from a race when called while another process is
1563 altering the filesystem.  On non-GNU platforms 'file-attributes'
1564 attempts to detect the race, and returns nil if it does so.
1567 ** The new function 'file-local-name' can be used to specify arguments
1568 of remote processes.
1571 ** The new functions 'file-name-quote', 'file-name-unquote' and
1572 'file-name-quoted-p' can be used to quote / unquote file names with
1573 the prefix "/:".
1576 ** The new error 'file-missing', a subcategory of 'file-error', is now
1577 signaled instead of 'file-error' if a file operation acts on a file
1578 that does not exist.
1581 ** The function 'delete-directory' no longer signals an error when
1582 operating recursively and when some other process deletes the directory
1583 or its files before 'delete-directory' gets to them.
1586 *** New error type 'user-search-failed' like 'search-failed' but
1587 avoids debugger like 'user-error'.
1590 ** The function 'line-number-at-pos' now takes a second optional
1591 argument 'absolute'.  If this parameter is nil, the default, this
1592 function keeps on returning the line number taking potential narrowing
1593 into account.  If this parameter is non-nil, the function ignores
1594 narrowing and returns the absolute line number.
1597 ** The function 'color-distance' now takes a second optional argument
1598 'metric'.  When non-nil, it should be a function of two arguments that
1599 accepts two colors and returns a number.
1601 ** Changes in Frame and Window Handling
1604 *** Resizing a frame no longer runs 'window-configuration-change-hook'.
1605 'window-size-change-functions' should be used instead.
1608 *** The new function 'frame-size-changed-p' can tell whether a frame has
1609 been resized since the last time 'window-size-change-functions' has been
1610 run.
1613 *** The function 'frame-geometry' now also returns the width of a
1614 frame's outer border.
1617 *** New frame parameters and changed semantics for older ones
1620 **** 'z-group' positions a frame above or below all others.
1623 **** 'min-width' and 'min-height' specify the absolute minimum size of a
1624 frame.
1627 **** 'parent-frame' makes a frame the child frame of another Emacs
1628 frame.  The section "Child Frames" in the Elisp manual describes the
1629 intrinsics of that relationship.
1632 **** 'delete-before' triggers deletion of one frame before that of
1633 another.
1636 **** 'mouse-wheel-frame' specifies another frame whose windows shall be
1637 scrolled instead.
1640 **** 'no-other-frame' has 'next-frame' and 'previous-frame' skip this
1641 frame.
1644 **** 'skip-taskbar' removes a frame's icon from the taskbar and has
1645 Alt-<TAB> skip this frame.
1648 **** 'no-focus-on-map' avoids that a frame gets input focus when mapped.
1651 **** 'no-accept-focus' means that a frame does not want to get input
1652 focus via the mouse.
1655 **** 'undecorated' removes the window manager decorations from a frame.
1658 **** 'override-redirect' tells the window manager to disregard this
1659 frame.
1662 **** 'width' and 'height' allow to specify pixel values and ratios now.
1665 **** 'left' and 'top' allow to specify ratios now.
1668 **** 'keep-ratio' preserves size and position of child frames when their
1669 parent frame is resized.
1672 **** 'no-special-glyphs' suppresses display of truncation and
1673 continuation glyphs in a frame.
1676 **** 'auto-hide-function' and 'minibuffer-exit' handle auto hiding of
1677 frames and exiting from minibuffer individually.
1680 **** 'fit-frame-to-buffer-margins' and 'fit-frame-to-buffer-sizes'
1681 handle fitting a frame to its buffer individually.
1684 **** 'drag-internal-border', 'drag-with-header-line',
1685 'drag-with-mode-line', 'snap-width', 'top-visible' and 'bottom-visible'
1686 allow to drag and resize frames with the mouse.
1688 *** The new function 'frame-list-z-order' returns a list of all frames
1689 in Z (stacking) order.
1692 *** The function 'x-focus-frame' optionally tries to not activate its
1693 frame.
1696 *** The variable 'focus-follows-mouse' has a third meaningful value
1697 'auto-raise' to indicate that the window manager automatically raises a
1698 frame when the mouse pointer enters it.
1701 *** The new function 'frame-restack' puts a frame above or below
1702 another on the display.
1705 *** The new face 'internal-border' specifies the background of a frame's
1706 internal border.
1709 *** The NORECORD argument of 'select-window' now has a meaningful value
1710 'mark-for-redisplay' which is like any other non-nil value but marks
1711 WINDOW for redisplay.
1714 *** Support for side windows is now official.
1715 The display action function 'display-buffer-in-side-window' will
1716 display its buffer in a side window.  Functions for toggling all side
1717 windows on a frame, changing and reversing the layout of side windows
1718 and returning the main (major non-side) window of a frame are
1719 provided.  For details consult the section "Side Windows" in the Elisp
1720 manual.
1723 *** Support for atomic windows - rectangular compositions of windows
1724 treated by 'split-window', 'delete-window' and 'delete-other-windows'
1725 like a single live window - is now official.  For details consult the
1726 section "Atomic Windows" in the Elisp manual.
1729 *** New 'display-buffer' alist entry 'window-parameters' allows to
1730 assign window parameters to the window used for displaying the buffer.
1733 *** New function 'display-buffer-reuse-mode-window' is an action function
1734 suitable for use in 'display-buffer-alist'.  For example, to avoid
1735 creating a new window when opening man pages when there's already one,
1738 (add-to-list 'display-buffer-alist
1739      '("\\`\\*Man .*\\*\\'" .
1740        (display-buffer-reuse-mode-window
1741         (inhibit-same-window . nil)
1742         (mode . Man-mode))))
1745 *** New window parameter 'no-delete-other-windows' prevents that
1746 its window gets deleted by 'delete-other-windows'.
1749 *** New window parameters 'mode-line-format' and 'header-line-format'
1750 allow to override the buffer-local formats for this window.
1753 *** New command 'window-swap-states' swaps the states of two live
1754 windows.
1757 *** New functions 'window-pixel-width-before-size-change' and
1758 'window-pixel-height-before-size-change' support detecting which
1759 window changed size when 'window-size-change-functions' are run.
1762 *** The new function 'window-lines-pixel-dimensions' returns the pixel
1763 dimensions of a window's text lines.
1766 *** The new function 'window-largest-empty-rectangle' returns the
1767 dimensions of the largest rectangular area not occupying any text in a
1768 window's body.
1771 *** The semantics of 'mouse-autoselect-window' has changed slightly.
1772 For details see the section "Mouse Window Auto-selection" in the Elisp
1773 manual.
1776 ** 'tcl-auto-fill-mode' is now declared obsolete.  Its functionality
1777 can be replicated simply by setting 'comment-auto-fill-only-comments'.
1779 ** New pcase pattern 'rx' to match against a rx-style regular expression.
1780 For details, see the doc string of 'rx--pcase-macroexpander'.
1783 * Changes in Emacs 26.1 on Non-Free Operating Systems
1786 ** Intercepting hotkeys on Windows 7 and later now works better.
1787 The new keyboard hooking code properly grabs system hotkeys such as
1788 Win-* and Alt-TAB, in a way that Emacs can get at them before the
1789 system.  This makes the 'w32-register-hot-key' functionality work
1790 again on all versions of MS-Windows starting with Windows 7.  On
1791 Windows NT and later you can now register any hotkey combination.  (On
1792 Windows 9X, the previous limitations, spelled out in the Emacs manual,
1793 still apply.)
1796 ** 'convert-standard-filename' no longer mirrors slashes on MS-Windows.
1797 Previously, on MS-Windows this function converted slash characters in
1798 file names into backslashes.  It no longer does that.  If your Lisp
1799 program used 'convert-standard-filename' to prepare file names to be
1800 passed to subprocesses (which is not the recommended usage of that
1801 function), you will now have to mirror slashes in your application
1802 code.  One possible way is this:
1804          (let ((start 0))
1805            (while (string-match "/" file-name start)
1806              (aset file-name (match-beginning 0) ?\\)
1807              (setq start (match-end 0))))
1810 ** GUI sessions on MS-Windows now treat SIGINT like Posix platforms do.
1811 The effect of delivering a Ctrl-C (SIGINT) signal to a GUI Emacs on
1812 MS-Windows is now the same as on Posix platforms -- Emacs saves the
1813 session and exits.  In particular, this will happen if you start
1814 emacs.exe from the Windows shell, then type Ctrl-C into that shell's
1815 window.
1818 ** 'signal-process' supports SIGTRAP on Windows XP and later.
1819 The 'kill' emulation on Windows now maps SIGTRAP to a call to the
1820 'DebugBreakProcess' API.  This causes the receiving process to break
1821 execution and return control to the debugger.  If no debugger is
1822 attached to the receiving process, the call is typically ignored.
1823 This is in contrast to the default action on POSIX Systems, where it
1824 causes the receiving process to terminate with a core dump if no
1825 debugger has been attached to it.
1828 ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work
1829 on macOS.
1832 ** Emacs can now be run as a GUI application from the command line on
1833 macOS.
1836 ** 'ns-appearance' and 'ns-transparent-titlebar' change the appearance
1837 of frame decorations on macOS 10.9+.
1840 ** 'ns-use-thin-smoothing' enables thin font smoothing on macOS 10.8+.
1843 ** 'process-attributes' on Darwin systems now returns more information.
1846 ----------------------------------------------------------------------
1847 This file is part of GNU Emacs.
1849 GNU Emacs is free software: you can redistribute it and/or modify
1850 it under the terms of the GNU General Public License as published by
1851 the Free Software Foundation, either version 3 of the License, or
1852 (at your option) any later version.
1854 GNU Emacs is distributed in the hope that it will be useful,
1855 but WITHOUT ANY WARRANTY; without even the implied warranty of
1856 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1857 GNU General Public License for more details.
1859 You should have received a copy of the GNU General Public License
1860 along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
1863 Local variables:
1864 coding: utf-8
1865 mode: outline
1866 paragraph-separate: "[  \f]*$"
1867 end: