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

Michael Albinus's avatar
Michael Albinus committed
3
Copyright (C) 2016-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.
12 13
See files NEWS.25, NEWS.24, ..., 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
Temporary note:
19 20 21
+++ indicates that all necessary documentation updates have been done.
    (This means all the relevant manuals in doc/ AND lisp doc-strings.)
--- means doc strings are updated, and no change in the manuals is needed.
22
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 30
** By default libgnutls is now required when building Emacs.
Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.

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

35
+++
36
** The new option 'configure --with-mailutils' causes Emacs to rely on
37 38 39 40
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
41 42 43
via insecure channels.  To avoid this problem, use either
--with-mailutils or --without-pop when configuring; --without-pop
is the default on platforms other than native MS-Windows.
44

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

52
---
53 54 55
** When GCC warnings are enabled, '--enable-check-lisp-object-type' is
now enabled by default when configuring.

Paul Eggert's avatar
Paul Eggert committed
56
+++
57 58 59 60 61 62
** 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'.
63

64 65
+++
** A systemd user unit file is provided.  Use it in the standard way:
Michael Albinus's avatar
Michael Albinus committed
66
'systemctl --user enable emacs'.
67 68 69
(If your Emacs is installed in a non-standard location, you may
need to copy the emacs.service file to eg ~/.config/systemd/user/)

70
---
Paul Eggert's avatar
-  
Paul Eggert committed
71
** New configure option '--disable-build-details' attempts to build an
Paul Eggert's avatar
Paul Eggert committed
72 73 74
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
75 76 77
'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
78

79 80 81 82 83 84 85
---
** 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
86 87
color metrics 'lcms-cie-de2000' and 'lcms-cam02-ucs', as well as
functions for conversion to and from CIE CAM02 and CAM02-UCS.
Mark Oteiza's avatar
Mark Oteiza committed
88

89
---
90 91 92 93 94
** 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.

95
---
Paul Eggert's avatar
Paul Eggert committed
96 97 98
** Emacs no longer works on IRIX.  We expect that Emacs users are not
affected by this, as SGI stopped supporting IRIX in December 2013.

99

Eli Zaretskii's avatar
Eli Zaretskii committed
100
* Startup Changes in Emacs 26.1
101

102 103
+++
** New option '--fg-daemon'.  This is the same as '--daemon', except
104 105
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
106
aspects of daemon behavior themselves.  '--bg-daemon' is now an alias
107 108
for '--daemon'.

Eli Zaretskii's avatar
Eli Zaretskii committed
109 110 111 112 113 114 115
+++
** 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.
116

117
+++
Michael Albinus's avatar
Michael Albinus committed
118
** Emacs now supports 24-bit colors on capable text terminals.
119 120
Terminal is automatically initialized to use 24-bit colors if the
required capabilities are found in terminfo.  See the FAQ node
Michael Albinus's avatar
Michael Albinus committed
121
"(efaq) Colors on a TTY" for more information.
122

123 124 125 126
+++
** Emacs now obeys the X resource "scrollBar" at startup.
The effect is similar to that of "toolBar" resource on the tool bar.

127

Eli Zaretskii's avatar
Eli Zaretskii committed
128
* Changes in Emacs 26.1
129

130 131
+++
** Option 'buffer-offer-save' can be set to new value, 'always'.  When
Michael Albinus's avatar
Michael Albinus committed
132 133
set to 'always', the command 'save-some-buffers' will always offer
this buffer for saving.
134

135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
** 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)))

157 158 159 160 161
+++
** 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
162
nil).
163

164 165 166 167 168 169 170 171 172 173
---
** 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.

+++
174 175 176
** 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
177 178 179 180 181 182 183 184 185 186
+++
** 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.

Michael Albinus's avatar
Michael Albinus committed
187 188
See the chapter "(elisp) Threads" in the ELisp manual for full
documentation of these facilities.
Eli Zaretskii's avatar
Eli Zaretskii committed
189

190 191 192 193 194
+++
** 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.

195
---
196 197 198 199 200 201 202 203 204
** 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.

205
---
206 207 208 209 210 211
** 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'.
212

213 214 215 216 217 218
+++
** 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.

219 220 221 222
+++
** 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
223 224 225 226 227 228
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)

229 230
to default-frame-alist.  Or inject this parameter into the selected
frame by evaluating this form:
231 232

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

234
---
Michael Albinus's avatar
Michael Albinus committed
235 236 237
** The customization group 'wp', whose label was "text", is now
deprecated.  Use the new group 'text', which inherits from 'wp',
instead.
238

Tino Calancha's avatar
Tino Calancha committed
239
+++
Paul Eggert's avatar
Paul Eggert committed
240
** The new function 'call-shell-region' executes a command in an
Tino Calancha's avatar
Tino Calancha committed
241 242
inferior shell with the buffer region as input.

243
+++
244
** The new user option 'shell-command-dont-erase-buffer' controls
245 246 247 248
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.
249
When 'shell-command-dont-erase-buffer' is nil, the default value,
Paul Eggert's avatar
Paul Eggert committed
250
the behavior of 'shell-command', 'shell-command-on-region' and
251 252
'async-shell-command' is as usual.

253 254 255 256 257
+++
** 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.

258
+++
259 260 261 262 263
** New user option 'mouse-select-region-move-to-beginning'.
This option 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.
264

265
+++
266 267 268
** New user option 'mouse-drag-and-drop-region'.
This option allows to drag the entire region of text to another place
or another buffer.  Its behavior is customizable via the new options
269
'mouse-drag-and-drop-region-cut-when-buffers-differ',
270
'mouse-drag-and-drop-region-show-tooltip', and
271
'mouse-drag-and-drop-region-show-cursor'.
272

273 274 275 276 277 278 279
+++
** 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.

280
---
Paul Eggert's avatar
Paul Eggert committed
281
** 'find-library-name' will now fall back on looking at 'load-history'
282
to try to locate libraries that have been loaded with an explicit path
Paul Eggert's avatar
Paul Eggert committed
283
outside 'load-path'.
284

285
+++
Paul Eggert's avatar
Paul Eggert committed
286 287
** Faces in 'minibuffer-prompt-properties' no longer overwrite properties
in the text in functions like 'read-from-minibuffer', but instead are
288
added to the end of the face list.  This allows users to say things
Paul Eggert's avatar
Paul Eggert committed
289
like '(read-from-minibuffer (propertize "Enter something: " 'face 'bold))'.
290

291
+++
Paul Eggert's avatar
Paul Eggert committed
292 293
** The new variable 'extended-command-suggest-shorter' has been added
to control whether to suggest shorter 'M-x' commands or not.
294

295
---
Paul Eggert's avatar
Paul Eggert committed
296
** icomplete now respects 'completion-ignored-extensions'.
297 298

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

Paul Eggert's avatar
Paul Eggert committed
302 303 304 305
+++
** Approximations to quotes are now displayed with the new 'homoglyph'
face instead of the 'escape-glyph' face.

306 307 308 309 310 311
+++
** 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.

312
---
Paul Eggert's avatar
Paul Eggert committed
313
** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
314 315
part of minibuffers.

316
---
317
** 'fill-paragraph' no longer marks the buffer as changed unless it
318 319
actually changed something.

320
---
Paul Eggert's avatar
-  
Paul Eggert committed
321 322
** The locale language name 'ca' is now mapped to the language
environment 'Catalan', which has been added.
323

324
---
325
** 'align-regexp' has a separate history for its interactive argument.
Paul Eggert's avatar
-  
Paul Eggert committed
326
'align-regexp' no longer shares its history with all other
327
history-less functions that use 'read-string'.
328

329 330 331
+++
** 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
332
'make-network-process').  How asynchronous it is varies based on the
333 334 335 336 337 338
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
339
Certain process oriented functions (like 'process-datagram-address')
340 341 342 343 344
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.

345
---
Paul Eggert's avatar
-  
Paul Eggert committed
346
** 'make-network-process' and 'open-network-stream' sometimes allowed
Paul Eggert's avatar
Paul Eggert committed
347 348 349
: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.
350

351
---
352 353
** It is possible to disable attempted recovery on fatal signals.
Two new variables support disabling attempts to recover from stack
354
overflow and to avoid automatic auto-save when Emacs is delivered a
Michael Albinus's avatar
Michael Albinus committed
355
fatal signal.  'attempt-stack-overflow-recovery', if set to nil,
356 357
will disable attempts to recover from C stack overflows; Emacs will
then crash as with any other fatal signal.
Michael Albinus's avatar
Michael Albinus committed
358
'attempt-orderly-shutdown-on-fatal-signal', if set to nil, will
359 360
disable attempts to auto-save the session and shut down in an orderly
fashion when Emacs receives a fatal signal; instead, Emacs will
Michael Albinus's avatar
Michael Albinus committed
361
terminate immediately.  Both variables are non-nil by default.
362 363 364 365
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.

366 367 368 369 370
+++
** 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.

371 372
+++
** A second dir-local file (.dir-locals-2.el) is now accepted.
373
See the doc string of 'dir-locals-file' for more information.
374

375 376
+++
** Connection-local variables can be used to specify local variables
377
with a value depending on the connected remote server.  For details,
Michael Albinus's avatar
Michael Albinus committed
378
see the node "(elisp) Connection Local Variables" in the ELisp manual.
379

380 381
---
** International domain names (IDNA) are now encoded via the new
Eli Zaretskii's avatar
Eli Zaretskii committed
382
puny.el library, so that one can visit Web sites with non-ASCII URLs.
383 384

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

388 389
+++
** 'switch-to-buffer-preserve-window-point' now defaults to t.
390 391 392
Applications that call 'switch-to-buffer' and want to show the buffer at
the position of its point should use 'pop-to-buffer-same-window' in lieu
of 'switch-to-buffer'.
393

394 395 396 397 398
+++
** 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.

399 400
---
** Values in call stack frames are now displayed using 'cl-prin1'.
Michael Albinus's avatar
Michael Albinus committed
401
The old behavior of using 'prin1' can be restored by customizing the
402 403
new option 'debugger-print-function'.

404
+++
405
** NUL bytes in text copied to the system clipboard are now replaced with "\0".
406

407
+++
Paul Eggert's avatar
Paul Eggert committed
408
** The new variable 'x-ctrl-keysym' has been added to the existing
409 410 411
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
412
---
413
** New input methods: 'cyrillic-tuvan', 'polish-prefix', 'uzbek-cyrillic'.
Wojciech Gac's avatar
Wojciech Gac committed
414

415 416
---
** The 'dutch' input method no longer attempts to support Turkish too.
417 418 419
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.
420

421 422 423 424 425 426
+++
** 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".

427 428 429 430 431
+++
** 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.

432 433 434 435 436 437
+++
** 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'.

438 439
+++
** The default GnuTLS priority string now includes %DUMBFW.
Eli Zaretskii's avatar
Eli Zaretskii committed
440 441
This is to avoid bad behavior in some firewalls, which causes the
connection to be closed by the remote host.
442

443 444
** Emacsclient changes

445
+++
446
*** Emacsclient has a new option '-u' / '--suppress-output'.
447 448
This option suppresses display of return values from the server
process.
449

450
+++
451
*** Emacsclient has a new option '-T' / '--tramp'.
452 453 454 455
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
Michael Albinus's avatar
Michael Albinus committed
456
"(emacs) emacsclient Options" in the user manual for the details.
457

458 459 460 461 462 463 464
+++
*** 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.

465 466 467 468 469 470
---
** 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.

471 472 473
+++
** 'describe-key-briefly' now ignores mouse movement events.

474 475
+++
** The new variable 'eval-expression-print-maximum-character' prevents
476 477
large integers from being displayed as characters by 'M-:' and similar
commands.
478

479
---
480 481 482
** Two new commands for finding the source code of Emacs Lisp
libraries: 'find-library-other-window' and 'find-library-other-frame'.

483 484 485 486
+++
** The new variable 'display-raw-bytes-as-hex' allows to change the
display of raw bytes from octal to hex.

487
+++
488
** You can now provide explicit field numbers in format specifiers.
Michael Albinus's avatar
Michael Albinus committed
489
For example, '(format "%2$s %1$s %2$s" "X" "Y")' produces "Y X Y".
490

491
+++
492
** Emacs now supports optional display of line numbers in the buffer.
Michael Albinus's avatar
Michael Albinus committed
493
This is similar to what 'linum-mode' provides, but much faster and
494 495
doesn't usurp the display margin for the line numbers.  Customize the
buffer-local variable 'display-line-numbers' to activate this optional
Michael Albinus's avatar
Michael Albinus committed
496 497 498 499
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'.
500

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

504 505
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
506 507
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.
508

509 510 511 512
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'.

Michael Albinus's avatar
Michael Albinus committed
513
'linum-mode' and all similar packages are henceforth becoming obsolete.
514 515 516
Users and developers are encouraged to switch to this new feature
instead.

517
---
518 519 520
** The new user option 'arabic-shaper-ZWNJ-handling' controls how to
handle ZWNJ in Arabic text rendering.

521

Eli Zaretskii's avatar
Eli Zaretskii committed
522
* Editing Changes in Emacs 26.1
523

524 525 526 527 528 529 530 531 532 533
+++
** 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.)

534
+++
535 536 537 538 539 540
** 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.

541 542 543 544 545 546 547 548 549 550
+++
** 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.

551 552
+++
** Two new user options 'list-matching-lines-jump-to-current-line' and
Michael Albinus's avatar
Michael Albinus committed
553 554
'list-matching-lines-current-line-face' to show the current line
highlighted in *Occur* buffer.
555

556 557 558
+++
** The 'occur' command can now operate on the region.

559 560 561 562 563
+++
** New bindings for 'query-replace-map'.
'undo', undo the last replacement; bound to 'u'.
'undo-all', undo all replacements; bound to 'U'.

564
---
565 566 567 568 569 570
** '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.

571 572 573 574
---
** 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.
575

576
---
577 578 579 580 581 582 583 584 585 586 587
** 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.
588

589 590 591 592 593
*** 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).

594
+++
595 596 597 598 599 600
** 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.

601
+++
602
** New behavior of 'mark-defun'.
603 604 605 606 607 608 609
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.

610
---
611 612 613 614 615
** 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.
616

617
+++
Michael Albinus's avatar
Michael Albinus committed
618
** New commands 'apropos-local-variable' and 'apropos-local-value'.
619 620 621 622
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.

623 624 625 626 627 628
+++
** 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.

629 630 631 632 633
---
** New variable 'x-wait-for-event-timeout'.
This controls how long Emacs will wait for updates to the graphical
state to take effect (making a frame visible, for example).

Michael Albinus's avatar
Michael Albinus committed
634

Eli Zaretskii's avatar
Eli Zaretskii committed
635
* Changes in Specialized Modes and Packages in Emacs 26.1
Michael Albinus's avatar
Michael Albinus committed
636

637
---
Rasmus's avatar
Rasmus committed
638
** Emacs 26.1 comes with Org v9.1.4.
639 640
See the file ORG-NEWS for user-visible changes in Org.

641
---
Michael Albinus's avatar
Michael Albinus committed
642
** New function 'cl-generic-p'.
643

644
** Dired
645

646 647 648 649
+++
*** You can answer 'all' in 'dired-do-delete' to delete recursively all
remaining directories without more prompts.

650 651 652
+++
*** Dired supports wildcards in the directory part of the file names.

653
+++
654 655
*** You can now use '`?`' in 'dired-do-shell-command'.
It gets replaced by the current file name, like ' ? '.
656

657
+++
658 659 660 661 662 663
*** A new option 'dired-always-read-filesystem' defaulting to nil.
If non-nil, buffers visiting files are reverted before they are
searched; 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.
664

665 666 667 668 669 670 671 672 673 674
---
*** 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.

675 676 677 678
+++
*** 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.
679

680 681 682 683
+++
*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
viewing HTML files and the like.

684 685 686 687 688 689
---
*** 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.

690 691 692 693
---
** html2text is now marked obsolete.

---
Michael Albinus's avatar
Michael Albinus committed
694
** smerge-refine-regions can refine regions in separate buffers.
695 696 697

---
** Info menu and index completion uses substring completion by default.
Michael Albinus's avatar
Michael Albinus committed
698 699
This can be customized via the 'info-menu' category in
'completion-category-overrides'.
700

701
+++
702
** The ancestor buffer is shown by default in 3-way merges.
Michael Albinus's avatar
Michael Albinus committed
703 704
A new option 'ediff-show-ancestor' and a new toggle
'ediff-toggle-show-ancestor'.
705

706
---
707 708
** TeX: Add luatex and xetex as alternatives to pdftex

709 710 711 712 713 714
** Electric-Buffer-menu

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

715 716 717 718
+++
** hideshow mode got four key bindings that are analogous to outline
mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e'.

719 720 721 722 723 724 725 726 727 728 729 730
** 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'.

731 732 733 734 735
---
** Checkdoc

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

736 737 738
** Gnus

---
Michael Albinus's avatar
Michael Albinus committed
739
*** The ~/.newsrc file will now only be saved if the native select
740 741
method is an NNTP select method.

742 743
+++
*** A new command for sorting articles by readedness marks has been
744
added: 'C-c C-s C-m C-m'.
745

746
+++
Michael Albinus's avatar
Michael Albinus committed
747 748 749 750
*** 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'.
751

752 753
** Ibuffer

754 755 756
---
*** New command 'ibuffer-jump'.

757
---
758 759 760 761
*** 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
762 763 764 765
to '/b', '/.', '//', '/*', '/i' and '/v'.

---
*** Two new commands 'ibuffer-filter-chosen-by-completion'
766
and 'ibuffer-and-filter', the second bound to '/&'.
767 768

---
769 770
*** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
771 772 773 774 775 776 777
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
778 779 780 781
---
*** A new command 'ibuffer-copy-buffername-as-kill'; bound
to 'B'.

Tino Calancha's avatar
Tino Calancha committed
782 783 784
---
*** New command 'ibuffer-change-marks'; bound to '* c'.

Tino Calancha's avatar
Tino Calancha committed
785 786 787 788 789 790 791 792 793
---
*** 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.

794 795 796 797 798
---
*** A new command 'ibuffer-unmark-all-marks' to unmark
all buffers without asking confirmation;  bound to
'U'; 'ibuffer-do-replace-regexp' bound to 'r'.

799
---
Paul Eggert's avatar
Paul Eggert committed
800
*** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
801
whose content matches a regexp; bound to '% g'.
802 803

---
Paul Eggert's avatar
Paul Eggert committed
804 805 806
*** Two new options 'ibuffer-never-search-content-name' and
'ibuffer-never-search-content-mode' used by
'ibuffer-mark-by-content-regexp'.
807

808 809
** Browse-URL

810
---
811 812
*** Support for opening links to man pages in Man or WoMan mode.

813 814 815 816
** Comint

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

Allen Li's avatar
Allen Li committed
819 820 821 822 823 824 825
+++
*** New user option 'comint-terminfo-terminal'.
This option allows control of the value of the TERM environment
variable Emacs puts into the environment of the Comint mode and its
derivatives, such as Shell mode and Compilation Shell minor-mode.  The
default is "dumb", for compatibility with previous behavior.

Jö Fahlke's avatar
Jö Fahlke committed
826 827 828 829 830
** Compilation mode

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

831 832 833 834 835
+++
*** The number of errors, warnings, and informational messages is now
displayed in the mode line.  These are updated as compilation
proceeds.

836 837 838 839 840 841 842 843
** 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'.

844
---
845 846 847 848
*** The grep/rgrep/lgrep functions will now ask about saving files
before running.  This is controlled by the 'grep-save-buffers'
variable.

849
** Edebug
850

851
---
852
*** Edebug can be prevented from pausing 1 second after reaching a
853
breakpoint (e.g. with "f" and "o") by customizing the new option
854
'edebug-sit-on-break'.
855

856
+++
Michael Albinus's avatar
Michael Albinus committed
857
*** New customizable option 'edebug-max-depth'.
858 859 860
This allows to enlarge the maximum recursion depth when instrumenting
code.

861 862
** Eshell

863
---
864 865 866 867 868
*** '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.

869 870
** EUDC

871
---
872 873 874 875 876
*** Backward compatibility support for BBDB versions less than 3
(i.e., BBDB 2.x) is deprecated and will likely be removed in the next
major release of Emacs.  Users of BBDB 2.x should plan to upgrade to
BBDB 3.x.

877 878
** eww

879 880 881
+++
*** New 'M-RET' command for opening a link at point in a new eww buffer.

882
+++
Paul Eggert's avatar
-  
Paul Eggert committed
883
*** A new 's' command for switching to another eww buffer via the minibuffer.
884

Lars Ingebrigtsen's avatar
Lars Ingebrigtsen committed
885
---
Paul Eggert's avatar
-  
Paul Eggert committed
886 887
*** 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
888

889 890 891 892 893 894
+++
*** 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.

---
895
*** Images that are being loaded are now marked with gray
896 897 898 899 900
"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).

901 902 903 904 905 906
---
*** 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.

907 908
** Ido

909
---
910 911 912 913 914
*** 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.

915 916 917 918 919 920 921
** Images

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

922 923 924 925 926 927 928 929
+++
*** 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.)

930 931 932 933 934 935 936 937 938
+++
*** 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
Michael Albinus's avatar
Michael Albinus committed
939 940
added.  See the "(elisp) SVG Images" section in the ELisp reference
manual for details.
941 942 943 944 945

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

946 947 948 949 950 951
---
*** 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
952 953
** Image-Dired

954
---
Mark Oteiza's avatar
Mark Oteiza committed
955 956 957
*** Now provides a minor mode 'image-dired-minor-mode' which replaces
the function 'image-dired-setup-dired-keybindings'.

958
---
959
*** Thumbnail generation is now asynchronous.
Mark Oteiza's avatar
Mark Oteiza committed
960 961 962
The number of concurrent processes is limited by the variable
'image-dired-thumb-job-limit'.

963
---
Mark Oteiza's avatar
Mark Oteiza committed
964 965 966 967
*** 'image-dired-thumbnail-storage' has a new option 'standard-large'
for generating 256x256 thumbnails according to the Thumbnail Managing
Standard.

968
---
Mark Oteiza's avatar
Mark Oteiza committed
969 970 971
*** Inherits movement keys from 'image-mode' for viewing full images.
This includes the usual char, line, and page movement commands.

972
---
Mark Oteiza's avatar
Mark Oteiza committed
973 974 975 976 977 978 979 980 981
*** 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',
Michael Albinus's avatar
Michael Albinus committed
982
'image-dired-cmd-create-standard-thumbnail-options'.
Mark Oteiza's avatar
Mark Oteiza committed
983

984
---
Michael Albinus's avatar
Michael Albinus committed
985
*** Recognizes more tools by default, including pngnq-s9 and OptiPNG.
Mark Oteiza's avatar
Mark Oteiza committed
986

987
---
Mark Oteiza's avatar
Mark Oteiza committed
988 989 990 991
*** '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'.

992 993 994 995 996
---
** 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.

997 998 999
+++
** 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
1000
'change-log-directory-files' to nil for the old behavior.
1001

1002
---
Paul Eggert's avatar
-  
Paul Eggert committed
1003
** Support for non-string values of 'time-stamp-format' has been removed.
1004

1005 1006 1007
** Message

---
1008
*** 'message-use-idna' now defaults to t (because Emacs comes with
1009 1010
built-in IDNA support now).

1011 1012 1013 1014 1015 1016 1017
---
*** 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.)

1018 1019 1020 1021 1022 1023
---
*** 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.

1024
---
Michael Albinus's avatar
Michael Albinus committed
1025
*** 'message-beginning-of-line' (bound to 'C-a') understands folded headers.
1026 1027 1028 1029
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.

1030 1031 1032 1033 1034
** Package

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

1037 1038 1039
---
*** Deleting a package no longer respects 'delete-by-moving-to-trash'.

1040 1041
** Tramp

1042
+++
1043 1044 1045
*** The method part of remote file names is mandatory now.
A valid remote file name starts with "/method:host:" or
"/method:user@host:".
1046

1047 1048
+++
*** The new pseudo method "-" is a marker for the default method.
1049 1050
"/-::" is the shortest remote file name then.

Michael Albinus's avatar
Michael Albinus committed
1051 1052 1053 1054
+++
*** The command 'tramp-change-syntax' allows to choose an alternative
remote file name syntax.

1055
+++
1056
*** New connection method "sg", which supports editing files under a
Michael Albinus's avatar
Michael Albinus committed
1057 1058
different group ID.

1059 1060 1061
+++
*** New connection method "doas" for OpenBSD hosts.

1062 1063 1064 1065
+++
*** New connection method "gdrive", which allows to access Google
Drive onsite repositories.

1066
+++
1067 1068 1069
*** Gateway methods in Tramp have been removed.
Instead, the Tramp manual documents how to configure ssh and PuTTY
accordingly.
1070

Michael Albinus's avatar
Michael Albinus committed
1071
+++