NEWS 67.7 KB
Newer Older
1
GNU Emacs NEWS -- history of user-visible changes.
2

Paul Eggert's avatar
Paul Eggert committed
3
Copyright (C) 2014-2017 Free Software Foundation, Inc.
4
See the end of the file for license conditions.
Dave Love's avatar
#  
Dave Love committed
5

6
Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 8
If possible, use M-x report-emacs-bug.

Eli Zaretskii's avatar
Eli Zaretskii committed
9
This file is about changes in Emacs version 26.
10

Paul Eggert's avatar
Paul Eggert committed
11
See file HISTORY for a list of GNU Emacs versions and release dates.
Eli Zaretskii's avatar
Eli Zaretskii committed
12 13
See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
14

Paul Eggert's avatar
Paul Eggert committed
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.
17

18 19 20 21 22
Temporary note:
+++ indicates that all necessary documentation updates are complete.
    (This means all relevant manuals in doc/ AND lisp doc-strings.)
--- means no change in the manuals is needed.
When you add a new item, use the appropriate mark if you are sure it applies,
Eli Zaretskii's avatar
Eli Zaretskii committed
23

Michael Albinus's avatar
Michael Albinus committed
24

Eli Zaretskii's avatar
Eli Zaretskii committed
25
* Installation Changes in Emacs 26.1
Michael Albinus's avatar
Michael Albinus committed
26

27 28 29
** By default libgnutls is now required when building Emacs.
Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.

Paul Eggert's avatar
Paul Eggert committed
30 31 32
** GnuTLS version 2.12.2 or later is now required, instead of merely
version 2.6.6 or later.

33
** The new option 'configure --with-mailutils' causes Emacs to rely on
34 35 36 37 38 39
GNU Mailutils to retrieve email.  It is recommended, and is the
default if GNU Mailutils is installed.  When --with-mailutils is not
in effect, the Emacs build procedure by default continues to build and
install a limited 'movemail' substitute that retrieves POP3 email only
via insecure channels; to avoid this problem, use either
--with-mailutils or --without-pop when configuring.
40

41
** The new option 'configure --enable-gcc-warnings=warn-only' causes
Paul Eggert's avatar
Paul Eggert committed
42 43
GCC to issue warnings without stopping the build.  This behavior is
now the default in developer builds.  As before, use
44 45 46
'--disable-gcc-warnings' to suppress GCC's warnings, and
'--enable-gcc-warnings' to stop the build if GCC issues warnings.

47 48 49
** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
now enabled by default when configuring.

Paul Eggert's avatar
Paul Eggert committed
50
+++
51 52 53 54 55 56
** The Emacs server now has socket-launching support.  This allows
socket based activation, where an external process like systemd can
invoke the Emacs server process upon a socket connection event and
hand the socket over to Emacs.  Emacs uses this socket to service
emacsclient commands.  This new functionality can be disabled with the
configure option '--disable-libsystemd'.
57

58 59 60 61 62 63
+++
** A systemd user unit file is provided.  Use it in the standard way:
systemctl --user enable emacs
(If your Emacs is installed in a non-standard location, you may
need to copy the emacs.service file to eg ~/.config/systemd/user/)

Paul Eggert's avatar
-  
Paul Eggert committed
64
** New configure option '--disable-build-details' attempts to build an
Paul Eggert's avatar
Paul Eggert committed
65 66 67
Emacs that is more likely to be reproducible; that is, if you build
and install Emacs twice, the second Emacs is a copy of the first.
Deterministic builds omit the build date from the output of the
Eli Zaretskii's avatar
Eli Zaretskii committed
68 69 70
'emacs-version' and 'erc-cmd-SV' functions, and the leave the
following variables nil: 'emacs-build-system', 'emacs-build-time',
'erc-emacs-build-time'.
Paul Eggert's avatar
Paul Eggert committed
71

72 73 74 75 76 77 78 79
---
** Emacs can now be built with support for Little CMS.

If the lcms2 library is installed, Emacs will enable features built on
top of that library.  The new configure option '--without-lcms2' can
be used to build without lcms2 support even if it is installed.  Emacs
linked to Little CMS exposes color management functions in Lisp: the
color metrics 'lcms-cie-de2000' and 'lcms-cam02-ucs'.
Mark Oteiza's avatar
Mark Oteiza committed
80

81 82 83 84 85
** The configure option '--with-gameuser' now defaults to 'no',
as this appears to be the most common configuration in practice.
When it is 'no', the shared game directory and the auxiliary program
update-game-score are no longer needed and are not installed.

Paul Eggert's avatar
Paul Eggert committed
86 87 88
** Emacs no longer works on IRIX.  We expect that Emacs users are not
affected by this, as SGI stopped supporting IRIX in December 2013.

89

Eli Zaretskii's avatar
Eli Zaretskii committed
90
* Startup Changes in Emacs 26.1
91

92 93
+++
** New option '--fg-daemon'.  This is the same as '--daemon', except
94 95
it runs in the foreground and does not fork.  This is intended for
modern init systems such as systemd, which manage many of the traditional
96
aspects of daemon behavior themselves.  '--bg-daemon' is now an alias
97 98
for '--daemon'.

Eli Zaretskii's avatar
Eli Zaretskii committed
99 100 101 102 103 104 105
+++
** New option '--module-assertions'.
When given this option, Emacs will perform expensive correctness
checks when dealing with dynamic modules.  This is intended for module
authors that wish to verify that their module conforms to the module
requirements.  The option makes Emacs abort if a module-related
assertion triggers.
106

107 108 109 110 111 112
+++
** Emacs now supports 24-bit colors on capable text terminals
Terminal is automatically initialized to use 24-bit colors if the
required capabilities are found in terminfo.  See the FAQ node
"Colors on a TTY" for more information.

113 114 115 116
+++
** Emacs now obeys the X resource "scrollBar" at startup.
The effect is similar to that of "toolBar" resource on the tool bar.

117

Eli Zaretskii's avatar
Eli Zaretskii committed
118
* Changes in Emacs 26.1
119

120 121 122 123 124
+++
** Option 'buffer-offer-save' can be set to new value, 'always'.  When
   set to 'always', the command `save-some-buffers' will always offer
   this buffer for saving.

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
** Security vulnerability related to Enriched Text mode is removed.

+++
*** Enriched Text mode does not evaluate Lisp in 'display' properties.
This feature allows saving 'display' properties as part of text.
Emacs 'display' properties support evaluation of arbitrary Lisp forms
as part of processing the property for display, so displaying Enriched
Text could be vulnerable to executing arbitrary malicious Lisp code
included in the text (e.g., sent as part of an email message).
Therefore, execution of arbitrary Lisp forms in 'display' properties
decoded by Enriched Text mode is now disabled by default.  Customize
the new option 'enriched-allow-eval-in-display-props' to a non-nil
value to allow Lisp evaluation in decoded 'display' properties.

This vulnerability was introduced in Emacs 21.1.  To work around that
in Emacs versions before 25.3, append the following to your ~/.emacs
init file:

  (eval-after-load "enriched"
    '(defun enriched-decode-display-prop (start end &optional param)
       (list start end)))

147 148 149 150 151
+++
** Functions in 'write-contents-functions' can fully short-circuit the
'save-buffer' process.  Previously, saving a buffer that was not
visiting a file would always prompt for a file name.  Now it only does
so if 'write-contents-functions' is nil (or all its functions return
152
nil).
153

154 155 156 157 158 159 160 161 162 163
---
** New variable 'executable-prefix-env' for inserting magic signatures.
This variable affects the format of the interpreter magic number
inserted by 'executable-set-magic'.  If non-nil, the magic number now
takes the form "#!/usr/bin/env interpreter", otherwise the value
determined by 'executable-prefix', which is by default
"#!/path/to/interpreter".  By default, 'executable-prefix-env' is nil,
so the default behavior is not changed.

+++
164 165 166
** The variable 'emacs-version' no longer includes the build number.
This is now stored separately in a new variable, 'emacs-build-number'.

Eli Zaretskii's avatar
Eli Zaretskii committed
167 168 169 170 171 172 173 174 175 176 177 178 179
+++
** Emacs now provides a limited form of concurrency with Lisp threads.
Concurrency in Emacs Lisp is "mostly cooperative", meaning that
Emacs will only switch execution between threads at well-defined
times: when Emacs waits for input, during blocking operations related
to threads (such as mutex locking), or when the current thread
explicitly yields.  Global variables are shared among all threads, but
a 'let' binding is thread-local.  Each thread also has its own current
buffer and its own match data.

See the chapter "Threads" in the ELisp manual for full documentation
of these facilities.

180 181 182 183 184
+++
** The new user variable 'electric-quote-chars' provides a list
of curved quotes for 'electric-quote-mode', allowing user to choose
the types of quotes to be used.

185
---
186 187 188 189 190 191 192 193 194
** The new user option 'electric-quote-context-sensitive' makes
'electric-quote-mode' context sensitive.  If it is non-nil, you can
type an ASCII apostrophe to insert an opening or closing quote,
depending on context.  Emacs will replace the apostrophe by an opening
quote character at the beginning of the buffer, the beginning of a
line, after a whitespace character, and after an opening parenthesis;
and it will replace the apostrophe by a closing quote character in all
other cases.

195
---
196 197 198 199 200 201
** The new variable 'electric-quote-inhibit-functions' controls when
to disable electric quoting based on context.  Major modes can add
functions to this list; Emacs will temporarily disable
'electric-quote-mode' whenever any of the functions returns non-nil.
This can be used by major modes that derive from 'text-mode' but allow
inline code segments, such as 'markdown-mode'.
202

203 204 205 206 207 208
+++
** The new user variable 'dired-omit-case-fold' allows the user to
customize the case-sensitivity of dired-omit-mode.  It defaults to
the same sensitivity as that of the filesystem for the corresponding
dired buffer.

209 210 211 212
+++
** Emacs now uses double buffering to reduce flicker when editing and
resizing graphical Emacs frames on the X Window System.  This support
requires the DOUBLE-BUFFER extension, which major X servers have
213 214 215 216 217 218
supported for many years.  If your system has this extension, but an
Emacs built with double buffering misbehaves on some displays you use,
you can disable the feature by adding

  '(inhibit-double-buffering . t)

219 220
to default-frame-alist.  Or inject this parameter into the selected
frame by evaluating this form:
221 222

  (modify-frame-parameters nil '((inhibit-double-buffering . t)))
223

224 225 226 227
---
The group 'wp', whose label was "text", is now deprecated.
Use the new group 'text', which inherits from 'wp', instead.

Tino Calancha's avatar
Tino Calancha committed
228
+++
Paul Eggert's avatar
Paul Eggert committed
229
** The new function 'call-shell-region' executes a command in an
Tino Calancha's avatar
Tino Calancha committed
230 231
inferior shell with the buffer region as input.

232
+++
233
** The new user option 'shell-command-dont-erase-buffer' controls
234 235 236 237
if the output buffer is erased between shell commands; if non-nil,
the output buffer is not erased; this variable also controls where
to set the point in the output buffer: beginning of the output,
end of the buffer or save the point.
238
When 'shell-command-dont-erase-buffer' is nil, the default value,
Paul Eggert's avatar
Paul Eggert committed
239
the behavior of 'shell-command', 'shell-command-on-region' and
240 241
'async-shell-command' is as usual.

242 243 244 245 246
+++
** The new user option 'async-shell-command-display-buffer' controls
whether the output buffer of an asynchronous command is shown
immediately, or only when there is output.

247 248 249 250 251 252 253
+++
** The new user option 'mouse-select-region-move-to-beginning'
controls the position of point when double-clicking mouse-1 on the end
of a parenthetical grouping or string-delimiter: the default value nil
keeps point at the end of the region, setting it to non-nil moves
point to the beginning of the region.

254 255 256 257
+++
** The new user option 'mouse-drag-and-drop-region' allows to drag the
entire region of text to another place or another buffer.

258 259 260 261 262 263 264
+++
** The new user option 'confirm-kill-processes' allows the user to
skip a confirmation prompt for killing subprocesses when exiting
Emacs.  When set to t (the default), Emacs will prompt for
confirmation before killing subprocesses on exit, which is the same
behavior as before.

265
---
Paul Eggert's avatar
Paul Eggert committed
266
** 'find-library-name' will now fall back on looking at 'load-history'
267
to try to locate libraries that have been loaded with an explicit path
Paul Eggert's avatar
Paul Eggert committed
268
outside 'load-path'.
269

270
+++
Paul Eggert's avatar
Paul Eggert committed
271 272
** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
in the text in functions like 'read-from-minibuffer', but instead are
273
added to the end of the face list.  This allows users to say things
Paul Eggert's avatar
Paul Eggert committed
274
like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
275

276
+++
Paul Eggert's avatar
Paul Eggert committed
277 278
** The new variable 'extended-command-suggest-shorter' has been added
to control whether to suggest shorter 'M-x' commands or not.
279

280
---
Paul Eggert's avatar
Paul Eggert committed
281
** icomplete now respects 'completion-ignored-extensions'.
282 283

+++
Paul Eggert's avatar
Paul Eggert committed
284 285
** Non-breaking hyphens are now displayed with the 'nobreak-hyphen'
face instead of the 'escape-glyph' face.
286

Paul Eggert's avatar
Paul Eggert committed
287 288 289 290
+++
** Approximations to quotes are now displayed with the new 'homoglyph'
face instead of the 'escape-glyph' face.

291 292 293 294 295 296
+++
** New face 'header-line-highlight'.
This face is the header-line analogue of 'mode-line-highlight'; it
should be the preferred mouse-face for mouse-sensitive elements in the
header line.

297
---
Paul Eggert's avatar
Paul Eggert committed
298
** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
299 300
part of minibuffers.

301
---
Paul Eggert's avatar
Paul Eggert committed
302
** 'find-library' now takes a prefix argument to pop to a different
303 304
window.

305
---
306
** 'fill-paragraph' no longer marks the buffer as changed unless it
307 308
actually changed something.

309
---
Paul Eggert's avatar
-  
Paul Eggert committed
310 311
** The locale language name 'ca' is now mapped to the language
environment 'Catalan', which has been added.
312

313
---
314
** 'align-regexp' has a separate history for its interactive argument.
Paul Eggert's avatar
-  
Paul Eggert committed
315
'align-regexp' no longer shares its history with all other
316
history-less functions that use 'read-string'.
317

318 319 320
+++
** The networking code has been reworked so that it's more
asynchronous than it was (when specifying :nowait t in
Paul Eggert's avatar
-  
Paul Eggert committed
321
'make-network-process').  How asynchronous it is varies based on the
322 323 324 325 326 327
capabilities of the system, but on a typical GNU/Linux system the DNS
resolution, the connection, and (for TLS streams) the TLS negotiation
are all done without blocking the main Emacs thread.  To get
asynchronous TLS, the TLS boot parameters have to be passed in (see
the manual for details).

Paul Eggert's avatar
-  
Paul Eggert committed
328
Certain process oriented functions (like 'process-datagram-address')
329 330 331 332 333
will block until socket setup has been performed.  The recommended way
to deal with asynchronous sockets is to avoid interacting with them
until they have changed status to "run".  This is most easily done
from a process sentinel.

334
---
Paul Eggert's avatar
-  
Paul Eggert committed
335
** 'make-network-process' and 'open-network-stream' sometimes allowed
Paul Eggert's avatar
Paul Eggert committed
336 337 338
:service to be an integer string (e.g., :service "993") and sometimes
required an integer (e.g., :service 993).  This difference has been
eliminated, and integer strings work everywhere.
339

340
---
341 342
** It is possible to disable attempted recovery on fatal signals.
Two new variables support disabling attempts to recover from stack
343
overflow and to avoid automatic auto-save when Emacs is delivered a
Paul Eggert's avatar
-  
Paul Eggert committed
344
fatal signal.  'attempt-stack-overflow-recovery', if set to 'nil',
345 346
will disable attempts to recover from C stack overflows; Emacs will
then crash as with any other fatal signal.
Paul Eggert's avatar
-  
Paul Eggert committed
347
'attempt-orderly-shutdown-on-fatal-signal', if set to 'nil', will
348 349
disable attempts to auto-save the session and shut down in an orderly
fashion when Emacs receives a fatal signal; instead, Emacs will
Paul Eggert's avatar
-  
Paul Eggert committed
350
terminate immediately.  Both variables are non-'nil' by default.
351 352 353 354
These variables are for users who would like to avoid the small
probability of data corruption due to techniques Emacs uses to recover
in these situations.

355 356 357 358 359
+++
** File local and directory local variables are now initialized each
time the major mode is set, not just when the file is first visited.
These local variables will thus not vanish on setting a major mode.

360 361 362 363
+++
** A second dir-local file (.dir-locals-2.el) is now accepted.
See the variable 'dir-locals-file-2' for more information.

364 365
+++
** Connection-local variables can be used to specify local variables
366 367
with a value depending on the connected remote server.  For details,
see the node "Connection Local Variables" in the ELisp manual.
368

369 370
---
** International domain names (IDNA) are now encoded via the new
Eli Zaretskii's avatar
Eli Zaretskii committed
371
puny.el library, so that one can visit Web sites with non-ASCII URLs.
372 373

+++
Mark Oteiza's avatar
Mark Oteiza committed
374
** The new 'list-timers' command lists all active timers in a buffer,
375 376
where you can cancel them with the 'c' command.

377 378 379
+++
** 'switch-to-buffer-preserve-window-point' now defaults to t.

380 381 382 383 384
+++
** The new variable 'debugger-stack-frame-as-list' allows displaying
all call stack frames in a Lisp backtrace buffer as lists.  Both
debug.el and edebug.el have been updated to heed to this variable.

385 386 387 388 389
---
** Values in call stack frames are now displayed using 'cl-prin1'.
The old behaviour of using 'prin1' can be restored by customizing the
new option 'debugger-print-function'.

390
+++
391
** NUL bytes in text copied to the system clipboard are now replaced with "\0".
392

393
+++
Paul Eggert's avatar
Paul Eggert committed
394
** The new variable 'x-ctrl-keysym' has been added to the existing
395 396 397
roster of X keysyms.  It can be used in combination with another
variable of this kind to swap modifiers in Emacs.

Wojciech Gac's avatar
Wojciech Gac committed
398
---
399
** New input methods: 'cyrillic-tuvan', 'polish-prefix'.
Wojciech Gac's avatar
Wojciech Gac committed
400

401 402
---
** The 'dutch' input method no longer attempts to support Turkish too.
403 404 405
Also, it no longer converts 'IJ' and 'ij' to the compatibility
characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL
LIGATURE IJ.
406

407 408 409 410 411 412
+++
** File name quoting by adding the prefix "/:" is now possible for the
local part of a remote file name.  Thus, if you have a directory named
"/~" on the remote host "foo", you can prevent it from being
substituted by a home directory by writing it as "/foo:/:/~/file".

413 414 415 416 417
+++
** The new variable 'maximum-scroll-margin' allows having effective
settings of 'scroll-margin' up to half the window size, instead of
always restricting the margin to a quarter of the window.

418 419 420 421 422 423
+++
** Emacs can scroll horizontally using mouse, touchpad, and trackbar.
You can enable this by customizing 'mwheel-tilt-scroll-p'.  If you
want to reverse the direction of the scroll, customize
'mwheel-flip-direction'.

424
+++
425 426 427
** Emacsclient has a new option -u/--suppress-output.
This option suppresses display of return values from the server
process.
428

429 430 431 432 433 434 435 436
+++
** Emacsclient has a new option -T/--tramp.
This helps with using a local Emacs session as the server for a remote
emacsclient.  With appropriate setup, one can now set the EDITOR
environment variable on a remote machine to emacsclient, and
use the local Emacs to edit remote files via Tramp.  See the node
"emacsclient Options" in the user manual for the details.

437 438 439 440 441 442
---
** New user option 'dig-program-options' and extended functionality
for DNS-querying functions 'nslookup-host', 'dns-lookup-host',
and 'run-dig'.  Each function now accepts an optional name server
argument interactively (with a prefix argument) and non-interactively.

443 444 445
+++
** 'describe-key-briefly' now ignores mouse movement events.

446 447
+++
** The new variable 'eval-expression-print-maximum-character' prevents
448 449
large integers from being displayed as characters by 'M-:' and similar
commands.
450

451
---
452 453 454
** Two new commands for finding the source code of Emacs Lisp
libraries: 'find-library-other-window' and 'find-library-other-frame'.

455 456 457 458
+++
** The new variable 'display-raw-bytes-as-hex' allows to change the
display of raw bytes from octal to hex.

459
+++
460
** You can now provide explicit field numbers in format specifiers.
461
For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X".
462

463
+++
464 465 466 467
** Emacs now supports optional display of line numbers in the buffer.
This is similar to what linum-mode provides, but much faster and
doesn't usurp the display margin for the line numbers.  Customize the
buffer-local variable 'display-line-numbers' to activate this optional
468 469 470 471 472
display.  Alternatively, you can use the `display-line-numbers-mode'
minor mode or the global `global-display-line-numbers-mode'.  When
using these modes, customize `display-line-numbers-type' with the same
value as you would use with `display-line-numbers'.

Eli Zaretskii's avatar
Eli Zaretskii committed
473 474 475
Line numbers are not displayed at all in minibuffer windows and in
tooltips, as they are not useful there.

476 477
Lisp programs can disable line-number display for a particular screen
line by putting the 'display-line-numbers-disable' text property or
Eli Zaretskii's avatar
Eli Zaretskii committed
478 479
overlay property on the first character of that screen line.  This is
intended for add-on packages that need a finer control of the display.
480

481 482 483 484
Lisp programs that need to know how much screen estate is used up for
line-number display in a window can use the new function
'line-number-display-width'.

485 486 487 488
Linum mode and all similar packages are henceforth becoming obsolete.
Users and developers are encouraged to switch to this new feature
instead.

489 490 491 492 493 494 495
+++
** emacsclient now accepts command-line options in ALTERNATE_EDITOR
and --alternate-editor. For example, ALTERNATE_EDITOR="emacs -Q -nw".
Arguments may be quoted "like this", so that for example an absolute
path containing a space may be specified; quote escaping is not
supported.

496

Eli Zaretskii's avatar
Eli Zaretskii committed
497
* Editing Changes in Emacs 26.1
498

499 500 501 502 503 504 505 506 507 508
+++
** New variable 'column-number-indicator-zero-based'.
Traditionally, in Column Number mode, the displayed column number
counts from zero starting at the left margin of the window.  This
behavior is now controlled by 'column-number-indicator-zero-based'.
If you would prefer for the displayed column number to count from one,
you may set this variable to nil.  (Behind the scenes, there is now a
new mode line construct, '%C', which operates exactly as '%c' does
except that it counts from one.)

509
+++
510 511 512 513 514 515
** New single-line horizontal scrolling mode.
The 'auto-hscroll-mode' variable can now have a new special value,
'current-line', which causes only the line where the cursor is
displayed to be horizontally scrolled when lines are truncated on
display and point moves outside the left or right window margin.

516 517 518 519 520 521 522 523 524 525
+++
** New mode line constructs '%o' and '%q', and user option
'mode-line-percent-position'.  '%o' displays the "degree of travel" of
the window through the buffer.  Unlike the default '%p', this
percentage approaches 100% as the window approaches the end of the
buffer.  '%q' displays the percentage offsets of both the start and
the end of the window, e.g. "5-17%".  The new option
'mode-line-percent-position' makes it easier to switch between '%p',
'%P', and these new constructs.

526 527 528 529 530
+++
** Two new user options 'list-matching-lines-jump-to-current-line' and
'list-matching-lines-current-line-face' to show highlighted the current
line in *Occur* buffer.

531 532 533
+++
** The 'occur' command can now operate on the region.

534 535 536 537 538
+++
** New bindings for 'query-replace-map'.
'undo', undo the last replacement; bound to 'u'.
'undo-all', undo all replacements; bound to 'U'.

539
---
540 541 542 543 544 545
** 'delete-trailing-whitespace' deletes whitespace after form feed.
In modes where form feed was treated as a whitespace character,
'delete-trailing-whitespace' would keep lines containing it unchanged.
It now deletes whitespace after the last form feed thus behaving the
same as in modes where the character is not whitespace.

546 547 548 549
---
** Emacs no longer prompts about editing a changed file when the file's
content is unchanged.  Instead of only checking the modification time,
Emacs now also checks the file's actual content before prompting the user.
550

551
---
552 553 554 555 556 557 558 559 560 561 562
** Various casing improvements.

*** 'upcase', 'upcase-region' et al. convert title case characters
(such as Dz) into their upper case form (such as DZ).

*** 'capitalize', 'upcase-initials' et al. make use of title-case forms
of initial characters (correctly producing for example Džungla instead
of incorrect DŽungla).

*** Characters which turn into multiple ones when cased are correctly handled.
For example, fi ligature is converted to FI when upper cased.
563

564 565 566 567 568
*** Greek small sigma is correctly handled when at the end of the word.
Strings such as ΌΣΟΣ are now correctly converted to Όσος when
capitalized instead of incorrect Όσοσ (compare lowercase sigma at the
end of the word).

569
+++
570 571 572 573 574 575
** Emacs can now auto-save buffers to visited files in a more robust
manner via the new mode 'auto-save-visited-mode'.  Unlike
'auto-save-visited-file-name', this mode uses the normal saving
procedure and therefore obeys saving hooks.
'auto-save-visited-file-name' is now obsolete.

576
+++
577
** New behavior of 'mark-defun'.
578 579 580 581 582 583 584
Prefix argument selects that many (or that many more) defuns.
Negative prefix arg flips the direction of selection.  Also,
'mark-defun' between defuns correctly selects N following defuns (or
-N previous for negative arguments).  Finally, comments preceding the
defun are selected unless they are separated from the defun by a blank
line.

585 586 587 588 589
** New command 'replace-buffer-contents'.
This command replaces the contents of the accessible portion of the
current buffer with the contents of the accessible portion of a
different buffer while keeping point, mark, markers, and text
properties as intact as possible.
590

591 592 593 594 595 596
+++
** New commands 'apropos-local-variable' and 'apropos-local-value.
These are buffer-local versions of 'apropos-variable' and
'apropos-value', respectively.  They show buffer-local variables whose
names and values, respectively, match a given pattern.

597 598 599 600 601 602
+++
** More user control of reordering bidirectional text for display.
The two new variables, 'bidi-paragraph-start-re' and
'bidi-paragraph-separate-re', allow customization of what exactly are
paragraphs, for the purposes of bidirectional display.

Michael Albinus's avatar
Michael Albinus committed
603

Eli Zaretskii's avatar
Eli Zaretskii committed
604
* Changes in Specialized Modes and Packages in Emacs 26.1
Michael Albinus's avatar
Michael Albinus committed
605

606
---
607 608
** New function `cl-generic-p'.

609
** Dired
610

611 612 613 614
+++
*** You can answer 'all' in 'dired-do-delete' to delete recursively all
remaining directories without more prompts.

615 616 617
+++
*** Dired supports wildcards in the directory part of the file names.

618
+++
619 620
*** You can now use '`?`' in 'dired-do-shell-command'.
It gets replaced by the current file name, like ' ? '.
621

622 623 624 625 626 627 628
+++
*** A new option 'dired-always-read-filesystem' default to nil.
If non-nil, buffers visiting files are reverted before search them;
for instance, in 'dired-mark-files-containing-regexp' a non-nil value
of this option means the file is revisited in a temporary buffer;
this temporary buffer is the actual buffer searched: the original buffer
visiting the file is not modified.
629

630 631 632 633 634 635 636 637 638 639
---
*** Users can now customize mouse clicks in Dired in a more flexible way.
The new command 'dired-mouse-find-file' can be bound to a mouse click
and used to visit files/directories in Dired in the selected window.
The new command 'dired-mouse-find-file-other-frame' similarly visits
files/directories in another frame.  You can write your own commands
that invoke 'dired-mouse-find-file' with non-default optional
arguments, to tailor the effects of mouse clicks on file names in
Dired buffers.

640 641 642 643
+++
*** In wdired, when editing files to contain slash characters,
the resulting directories are automatically created.  Whether to do
this is controlled by the 'wdired-create-parent-directories' variable.
644

645 646 647 648
+++
*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
viewing HTML files and the like.

649 650 651 652 653 654
---
*** New variable 'dired-clean-confirm-killing-deleted-buffers'
controls whether Dired asks to kill buffers visiting deleted files and
directories.  The default is t, so Dired asks for confirmation, to
keep previous behavior.

655 656 657 658 659 660 661 662
---
** html2text is now marked obsolete.

---
** smerge-refine-regions can refine regions in separate buffers

---
** Info menu and index completion uses substring completion by default.
663
This can be customized via the info-menu category in
664 665
completion-category-override.

666
+++
667
** The ancestor buffer is shown by default in 3-way merges.
668 669 670
A new option ediff-show-ancestor and a new toggle
ediff-toggle-show-ancestor.

671
---
672 673
** TeX: Add luatex and xetex as alternatives to pdftex

674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691
** Electric-Buffer-menu

+++
*** Key 'U' is bound to 'Buffer-menu-unmark-all' and key 'M-DEL' is
bound to 'Buffer-menu-unmark-all-buffers'.

** bs

---
*** Two new commands 'bs-unmark-all', bound to 'U', and
'bs-unmark-previous', bound to <backspace>.

** Buffer-menu

+++
*** Two new commands 'Buffer-menu-unmark-all', bound to 'U' and
'Buffer-menu-unmark-all-buffers', bound to 'M-DEL'.

692 693 694 695 696
---
** Checkdoc

*** 'checkdoc-arguments-in-order-flag' now defaults to nil.

697 698 699 700 701 702
** Gnus

---
*** The .newsrc file will now only be saved if the native select
method is an NNTP select method.

703 704
+++
*** A new command for sorting articles by readedness marks has been
705
added: 'C-c C-s C-m C-m'.
706

707 708 709 710 711 712
+++

*** In message-citation-line-format the %Z format is now the time zone name
instead of the numeric form.  The %z format continues to be the
numeric form.  The new behavior is compatible with format-time-string.

713 714
** Ibuffer

715 716 717
---
*** New command 'ibuffer-jump'.

718
---
719 720 721 722
*** New filter commands 'ibuffer-filter-by-basename',
'ibuffer-filter-by-file-extension', 'ibuffer-filter-by-directory',
'ibuffer-filter-by-starred-name', 'ibuffer-filter-by-modified'
and 'ibuffer-filter-by-visiting-file'; bound respectively
723 724 725 726
to '/b', '/.', '//', '/*', '/i' and '/v'.

---
*** Two new commands 'ibuffer-filter-chosen-by-completion'
727
and 'ibuffer-and-filter', the second bound to '/&'.
728 729

---
730 731
*** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
732 733 734 735 736 737 738
bindings '/<up>', '/S-<up>', '/|' and '/DEL', respectively.

---
*** The data format specifying filters has been extended to allow
explicit logical 'and', and a more flexible form for logical 'not'.
See 'ibuffer-filtering-qualifiers' doc string for full details.

Tino Calancha's avatar
Tino Calancha committed
739 740 741 742
---
*** A new command 'ibuffer-copy-buffername-as-kill'; bound
to 'B'.

Tino Calancha's avatar
Tino Calancha committed
743 744 745
---
*** New command 'ibuffer-change-marks'; bound to '* c'.

Tino Calancha's avatar
Tino Calancha committed
746 747 748 749 750 751 752 753 754
---
*** A new command 'ibuffer-mark-by-locked' to mark
all locked buffers;  bound to '% L'.

---
*** A new option 'ibuffer-locked-char' to indicate
locked buffers; Ibuffer shows a new column displaying
'ibuffer-locked-char' for locked buffers.

755 756 757 758 759
---
*** A new command 'ibuffer-unmark-all-marks' to unmark
all buffers without asking confirmation;  bound to
'U'; 'ibuffer-do-replace-regexp' bound to 'r'.

760
---
Paul Eggert's avatar
Paul Eggert committed
761
*** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
762
whose content matches a regexp; bound to '% g'.
763 764

---
Paul Eggert's avatar
Paul Eggert committed
765 766 767
*** Two new options 'ibuffer-never-search-content-name' and
'ibuffer-never-search-content-mode' used by
'ibuffer-mark-by-content-regexp'.
768

769 770
** Browse-URL

771
---
772 773
*** Support for opening links to man pages in Man or WoMan mode.

774 775 776 777 778 779
** Comint

---
*** New user option 'comint-move-point-for-matching-input' to control
where to place point after C-c M-r and C-c M-s.

Jö Fahlke's avatar
Jö Fahlke committed
780 781 782 783 784
** Compilation mode

---
*** Messages from CMake are now recognized.

785 786 787 788 789
+++
*** The number of errors, warnings, and informational messages is now
displayed in the mode line.  These are updated as compilation
proceeds.

790 791 792 793 794 795 796 797
** Grep

---
*** Grep commands will now use GNU grep's '--null' option if
available, which allows distinguishing the filename from contents if
they contain colons.  This can be controlled by the new custom option
'grep-use-null-filename-separator'.

798
---
799 800 801 802
*** The grep/rgrep/lgrep functions will now ask about saving files
before running.  This is controlled by the 'grep-save-buffers'
variable.

803
** Edebug
804

805
---
806
*** Edebug can be prevented from pausing 1 second after reaching a
807
breakpoint (e.g. with "f" and "o") by customizing the new option
808
'edebug-sit-on-break'.
809

810 811 812 813 814
+++
*** New customizable option 'edebug-max-depth'
This allows to enlarge the maximum recursion depth when instrumenting
code.

815 816
** Eshell

817
---
818 819 820 821 822
*** 'eshell-input-filter's value is now a named function
'eshell-input-filter-default', and has a new custom option
'eshell-input-filter-initial-space' to ignore adding commands prefixed
with blank space to eshell history.

823 824
** eww

825 826 827
+++
*** New 'M-RET' command for opening a link at point in a new eww buffer.

828
+++
Paul Eggert's avatar
-  
Paul Eggert committed
829
*** A new 's' command for switching to another eww buffer via the minibuffer.
830

Lars Ingebrigtsen's avatar
Lars Ingebrigtsen committed
831
---
Paul Eggert's avatar
-  
Paul Eggert committed
832 833
*** The 'o' command ('shr-save-contents') has moved to 'O' to avoid collision
with the 'o' command from 'image-map'.
Lars Ingebrigtsen's avatar
Lars Ingebrigtsen committed
834

835 836 837 838 839 840
+++
*** A new command 'C' ('eww-toggle-colors') can be used to toggle
whether to use the HTML-specified colors or not.  The user can also
customize the 'shr-use-colors' variable.

---
841
*** Images that are being loaded are now marked with gray
842 843 844 845 846
"placeholder" images of the size specified by the HTML.  They are then
replaced by the real images asynchronously, which will also now
respect width/height HTML specs (unless they specify widths/heights
bigger than the current window).

847 848 849 850 851 852 853
---
*** The 'w' command on links is now 'shr-maybe-probe-and-copy-url'.
'shr-copy-url' now only copies the url at point; users who wish to
avoid accidentally accessing remote links may rebind 'w' and 'u' in
'eww-link-keymap' to it.


854 855
** Ido

856
---
857 858 859 860 861
*** The commands 'find-alternate-file-other-window',
'dired-other-window', 'dired-other-frame', and
'display-buffer-other-window' are now remapped to Ido equivalents if
Ido mode is active.

862 863 864 865 866 867 868
** Images

+++
*** Images are automatically scaled before displaying based on the
'image-scaling-factor' variable (if Emacs supports scaling the images
in question).

869 870 871 872 873 874 875 876
+++
*** It's now possible to specify aspect-ratio preserving combinations
of :width/:max-height and :height/:max-width keywords.  In either
case, the "max" keywords win.  (Previously some combinations would,
depending on the aspect ratio of the image, just be ignored and in
other instances this would lead to the aspect ratio not being
preserved.)

877 878 879 880 881 882 883 884 885
+++
*** Images inserted with 'insert-image' and related functions get a
keymap put into the text properties (or overlays) that span the
image.  This keymap binds keystrokes for manipulating size and
rotation, as well as saving the image to a file.  These commands are
also available in 'image-mode'.

+++
*** A new library for creating and manipulating SVG images has been
Paul Eggert's avatar
Paul Eggert committed
886
added.  See the "SVG Images" section in the Lisp reference manual for
887 888 889 890 891 892
details.

+++
*** New setf-able function to access and set image parameters is
provided: 'image-property'.

893 894 895 896 897 898
---
*** New commands 'image-scroll-left' and 'image-scroll-right'
for 'image-mode' that complement 'image-scroll-up' and
'image-scroll-down': they have the same prefix arg behavior and stop
at image boundaries.

Mark Oteiza's avatar
Mark Oteiza committed
899 900
** Image-Dired

901
---
Mark Oteiza's avatar
Mark Oteiza committed
902 903 904
*** Now provides a minor mode 'image-dired-minor-mode' which replaces
the function 'image-dired-setup-dired-keybindings'.

905
---
906
*** Thumbnail generation is now asynchronous.
Mark Oteiza's avatar
Mark Oteiza committed
907 908 909
The number of concurrent processes is limited by the variable
'image-dired-thumb-job-limit'.

910
---
Mark Oteiza's avatar
Mark Oteiza committed
911 912 913 914
*** 'image-dired-thumbnail-storage' has a new option 'standard-large'
for generating 256x256 thumbnails according to the Thumbnail Managing
Standard.

915
---
Mark Oteiza's avatar
Mark Oteiza committed
916 917 918
*** Inherits movement keys from 'image-mode' for viewing full images.
This includes the usual char, line, and page movement commands.

919
---
Mark Oteiza's avatar
Mark Oteiza committed
920 921 922 923 924 925 926 927 928 929 930
*** All the -options types have been changed to argument lists
instead of shell command strings.  This change affects
'image-dired-cmd-create-thumbnail-options',
'image-dired-cmd-create-temp-image-options',
'image-dired-cmd-rotate-thumbnail-options',
'image-dired-cmd-rotate-original-options',
'image-dired-cmd-write-exif-data-options',
'image-dired-cmd-read-exif-data-options', and introduces
'image-dired-cmd-pngnq-options', 'image-dired-cmd-pngcrush-options',
'image-dired-cmd-create-standard-thumbnail-options'

931
---
Mark Oteiza's avatar
Mark Oteiza committed
932
*** Recognizes more tools by default, including pngnq-s9 and OptiPNG
Mark Oteiza's avatar
Mark Oteiza committed
933

934
---
Mark Oteiza's avatar
Mark Oteiza committed
935 936 937 938
*** 'find-file' and related commands now work on thumbnails and
displayed images, providing a default argument of the original file name
via an addition to 'file-name-at-point-functions'.

939 940 941 942 943
---
** The default 'Info-default-directory-list' no longer checks some obsolete
directory suffixes (gnu, gnu/lib, gnu/lib/emacs, emacs, lib, lib/emacs)
when searching for info directories.

944 945 946
+++
** The commands that add ChangeLog entries now prefer a VCS root directory
for the ChangeLog file, if none already exists.  Customize
Paul Eggert's avatar
-  
Paul Eggert committed
947
'change-log-directory-files' to nil for the old behavior.
948

949
---
Paul Eggert's avatar
-  
Paul Eggert committed
950
** Support for non-string values of 'time-stamp-format' has been removed.
951

952 953 954
** Message

---
955
*** 'message-use-idna' now defaults to t (because Emacs comes with
956 957
built-in IDNA support now).

958 959 960 961 962 963 964
---
*** When sending HTML messages with embedded images, and you have
exiftool installed, and you rotate images with EXIF data (i.e.,
JPEGs), the rotational information will be inserted into the outgoing
image in the message.  (The original image will not have its
orientation affected.)

965 966 967 968 969 970 971 972 973 974 975
---
*** The 'message-valid-fqdn-regexp' variable has been removed, since
there are now top-level domains added all the time.  Message will no
longer warn about sending emails to top-level domains it hasn't heard
about.

*** 'message-beginning-of-line' (bound to C-a) understands folded headers.
In 'visual-line-mode' it will look for the true beginning of a header
while in non-'visual-line-mode' it will move the point to the indented
header's value.

976 977 978 979 980 981 982
** Package

+++
*** The new variable 'package-gnupghome-dir' has been added to control
where the GnuPG home directory (used for signature verification) is
located and whether GnuPG's option "--homedir" is used or not.

983 984 985
---
*** Deleting a package no longer respects 'delete-by-moving-to-trash'.

986 987
** Tramp

988
+++
989 990 991
*** The method part of remote file names is mandatory now.
A valid remote file name starts with "/method:host:" or
"/method:user@host:".
992

993 994
+++
*** The new pseudo method "-" is a marker for the default method.
995 996
"/-::" is the shortest remote file name then.

Michael Albinus's avatar
Michael Albinus committed
997 998 999 1000
+++
*** The command 'tramp-change-syntax' allows to choose an alternative
remote file name syntax.

1001
+++
1002
*** New connection method "sg", which supports editing files under a
Michael Albinus's avatar
Michael Albinus committed
1003 1004
different group ID.

1005 1006 1007
+++
*** New connection method "doas" for OpenBSD hosts.

1008 1009 1010 1011
+++
*** New connection method "gdrive", which allows to access Google
Drive onsite repositories.

1012
+++
1013 1014 1015
*** Gateway methods in Tramp have been removed.
Instead, the Tramp manual documents how to configure ssh and PuTTY
accordingly.
1016

Michael Albinus's avatar
Michael Albinus committed
1017
+++
Michael Albinus's avatar
Michael Albinus committed
1018 1019 1020
*** Setting the "ENV" environment variable in
'tramp-remote-process-environment' enables reading of shell
initialization files.
Michael Albinus's avatar
Michael Albinus committed
1021

1022 1023 1024
---
*** Tramp is able now to send SIGINT to remote asynchronous processes.

1025 1026 1027
---
*** Variable 'tramp-completion-mode' is obsoleted.

Michael Albinus's avatar
Michael Albinus committed
1028
---
Paul Eggert's avatar
-  
Paul Eggert committed
1029
** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
Michael Albinus's avatar
Michael Albinus committed
1030

1031 1032 1033 1034 1035
** JS mode

---
*** JS mode now sets 'comment-multi-line' to t.

1036
---
1037 1038 1039
*** New variable 'js-indent-align-list-continuation', when set to nil,
will not align continuations of bracketed lists, but will indent them
by the fixed width 'js-indent-level'.
1040

1041 1042 1043
** CSS mode

---
1044 1045 1046 1047
*** Support for completing attribute values, at-rules, bang-rules,
HTML tags, classes and IDs using the 'completion-at-point' command.
Completion candidates for HTML classes and IDs are retrieved from open
HTML mode buffers.
1048

1049
---
1050
*** CSS mode now binds 'C-h S' to a function that will show
1051 1052 1053 1054 1055
information about a CSS construct (an at-rule, property, pseudo-class,
pseudo-element, with the default being guessed from context).  By
default the information is looked up on the Mozilla Developer Network,
but this can be customized using 'css-lookup-url-format'.

1056 1057 1058 1059 1060
---
*** CSS colors are fontified using the color they represent as the
background.  For instance, #ff0000 would be fontified with a red
background.

1061 1062 1063 1064 1065
+++
** Emacs now supports character name escape sequences in character and
string literals.  The syntax variants \N{character name} and
\N{U+code} are supported.

1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079
+++
** Prog mode has some support for multi-mode indentation.
This allows better indentation support in modes that support multiple
programming languages in the same buffer, like literate programming
environments or ANTLR programs with embedded Python code.

A major mode can provide indentation context for a sub-mode through
the 'prog-indentation-context' variable.  To support this, modes that
provide indentation should use 'prog-widen' instead of 'widen' and
'prog-first-column' instead of a literal zero.  See the node
"Mode-Specific Indent" in the ELisp manual for more details.

** ERC

1080
---
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
*** New variable 'erc-default-port-tls' used to connect to TLS IRC
servers.

** URL

+++
*** The new function 'url-cookie-delete-cookie' can be used to
programmatically delete all cookies, or cookies from a specific
domain.

1091
+++
Paul Eggert's avatar
Paul Eggert committed
1092
*** 'url-retrieve-synchronously' now takes an optional timeout parameter.
1093 1094

---
1095
*** The URL package now support HTTPS over proxies supporting CONNECT.
1096

1097
+++
1098 1099
*** 'url-user-agent' now defaults to 'default', and the User-Agent
string is computed dynamically based on 'url-privacy-level'.
1100

1101 1102 1103 1104 1105 1106 1107
** VC and related modes

---
*** The VC state indicator in the mode line now defaults to more
colorful faces to make it more obvious to the user what the state is.
See the 'vc-faces' customization group.

Tom Tromey's avatar
Tom Tromey committed
1108 1109 1110 1111
+++
*** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
branch-related commands on a keymap bound to 'B'.

1112 1113
** CC mode

1114
---
1115 1116 1117 1118 1119
*** Opening a .h file will turn C or C++ mode depending on language used.
This is done with the help of 'c-or-c++-mode' function which analyses
contents of the buffer to determine whether it's a C or C++ source
file.

1120 1121 1122 1123
---
** New DNS mode command 'dns-mode-ipv6-to-nibbles' to convert IPv6 addresses
to a format suitable for reverse lookup zone files.

Reuben Thomas's avatar
Reuben Thomas committed
1124 1125 1126
** Ispell

+++
1127 1128 1129
*** Enchant is now supported as a spell-checker.

Enchant is a meta-spell-checker that uses providers
Reuben Thomas's avatar
Reuben Thomas committed
1130 1131 1132 1133
such as Hunspell to do the actual checking.  With it, users can use
spell-checkers not directly supported by Emacs, such as Voikko, Hspell
and AppleSpell, more easily share personal word-lists with other
programs, and configure different spelling-checkers for different
1134
languages.  (Version 2.1.0 or later of Enchant is required.)
Reuben Thomas's avatar
Reuben Thomas committed
1135

1136 1137 1138
** Flymake

+++
1139
*** Emacs no longer prompts the user before killing Flymake processes on exit.
1140

1141

Eli Zaretskii's avatar
Eli Zaretskii committed
1142
* New Modes and Packages in Emacs 26.1
1143

Paul Eggert's avatar
Paul Eggert committed
1144
** New Elisp data-structure library 'radix-tree'.
1145

Mark Oteiza's avatar
Mark Oteiza committed
1146 1147
** New library 'xdg' with utilities for some XDG standards and specs.

Tom Tromey's avatar
Tom Tromey committed
1148 1149 1150
** HTML

+++
Paul Eggert's avatar
Paul Eggert committed
1151
*** A new submode of 'html-mode', 'mhtml-mode', is now the default
1152 1153
mode for *.html files.  This mode handles indentation,
fontification, and commenting for embedded JavaScript and CSS.
Tom Tromey's avatar
Tom Tromey committed
1154

Tom Tromey's avatar
Tom Tromey committed
1155 1156 1157
** New mode 'conf-toml-mode' is a sub-mode of conf-mode, specialized
   for editing TOML files.

1158 1159 1160
** New mode 'conf-desktop-mode' is a sub-mode of conf-unix-mode,
specialized for editing freedesktop.org desktop entries.

1161 1162
** New minor mode 'pixel-scroll-mode' provides smooth pixel-level scrolling.

1163 1164 1165
** New major mode 'less-css-mode' (a minor variant of 'css-mode') for
editing Less files.

1166

Eli Zaretskii's avatar
Eli Zaretskii committed
1167
* Incompatible Lisp Changes in Emacs 26.1
1168

1169
---