NEWS 71.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 264
+++
** 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.

265 266 267 268
+++
** The new user option 'mouse-drag-and-drop-region' allows to drag the
entire region of text to another place or another buffer.

269 270 271 272 273 274 275
+++
** 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.

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

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

287
+++
Paul Eggert's avatar
Paul Eggert committed
288 289
** The new variable 'extended-command-suggest-shorter' has been added
to control whether to suggest shorter 'M-x' commands or not.
290

291
---
Paul Eggert's avatar
Paul Eggert committed
292
** icomplete now respects 'completion-ignored-extensions'.
293 294

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

Paul Eggert's avatar
Paul Eggert committed
298 299 300 301
+++
** Approximations to quotes are now displayed with the new 'homoglyph'
face instead of the 'escape-glyph' face.

302 303 304 305 306 307
+++
** 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.

308
---
Paul Eggert's avatar
Paul Eggert committed
309
** 'C-x h' ('mark-whole-buffer') will now avoid marking the prompt
310 311
part of minibuffers.

312
---
313
** 'fill-paragraph' no longer marks the buffer as changed unless it
314 315
actually changed something.

316
---
Paul Eggert's avatar
-  
Paul Eggert committed
317 318
** The locale language name 'ca' is now mapped to the language
environment 'Catalan', which has been added.
319

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

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

341
---
Paul Eggert's avatar
-  
Paul Eggert committed
342
** 'make-network-process' and 'open-network-stream' sometimes allowed
Paul Eggert's avatar
Paul Eggert committed
343 344 345
: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.
346

347
---
348 349
** It is possible to disable attempted recovery on fatal signals.
Two new variables support disabling attempts to recover from stack
350
overflow and to avoid automatic auto-save when Emacs is delivered a
Michael Albinus's avatar
Michael Albinus committed
351
fatal signal.  'attempt-stack-overflow-recovery', if set to nil,
352 353
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
354
'attempt-orderly-shutdown-on-fatal-signal', if set to nil, will
355 356
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
357
terminate immediately.  Both variables are non-nil by default.
358 359 360 361
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.

362 363 364 365 366
+++
** 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.

367 368
+++
** A second dir-local file (.dir-locals-2.el) is now accepted.
369
See the doc string of 'dir-locals-file' for more information.
370

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

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

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

384 385
+++
** 'switch-to-buffer-preserve-window-point' now defaults to t.
386 387 388
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'.
389

390 391 392 393 394
+++
** 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.

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

400
+++
401
** NUL bytes in text copied to the system clipboard are now replaced with "\0".
402

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

411 412
---
** The 'dutch' input method no longer attempts to support Turkish too.
413 414 415
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.
416

417 418 419 420 421 422
+++
** 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".

423 424 425 426 427
+++
** 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.

428 429 430 431 432 433
+++
** 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'.

434 435
** Emacsclient changes

436
+++
437
*** Emacsclient has a new option '-u' / '--suppress-output'.
438 439
This option suppresses display of return values from the server
process.
440

441
+++
442
*** Emacsclient has a new option '-T' / '--tramp'.
443 444 445 446
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
447
"(emacs) emacsclient Options" in the user manual for the details.
448

449 450 451 452 453 454 455
+++
*** 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.

456 457 458 459 460 461
---
** 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.

462 463 464
+++
** 'describe-key-briefly' now ignores mouse movement events.

465 466
+++
** The new variable 'eval-expression-print-maximum-character' prevents
467 468
large integers from being displayed as characters by 'M-:' and similar
commands.
469

470
---
471 472 473
** Two new commands for finding the source code of Emacs Lisp
libraries: 'find-library-other-window' and 'find-library-other-frame'.

474 475 476 477
+++
** The new variable 'display-raw-bytes-as-hex' allows to change the
display of raw bytes from octal to hex.

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

482
+++
483
** Emacs now supports optional display of line numbers in the buffer.
Michael Albinus's avatar
Michael Albinus committed
484
This is similar to what 'linum-mode' provides, but much faster and
485 486
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
487 488 489 490
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'.
491

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

495 496
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
497 498
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.
499

500 501 502 503
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
504
'linum-mode' and all similar packages are henceforth becoming obsolete.
505 506 507
Users and developers are encouraged to switch to this new feature
instead.

508
---
509 510 511
** The new user option 'arabic-shaper-ZWNJ-handling' controls how to
handle ZWNJ in Arabic text rendering.

512

Eli Zaretskii's avatar
Eli Zaretskii committed
513
* Editing Changes in Emacs 26.1
514

515 516 517 518 519 520 521 522 523 524
+++
** 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.)

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

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

542 543
+++
** Two new user options 'list-matching-lines-jump-to-current-line' and
Michael Albinus's avatar
Michael Albinus committed
544 545
'list-matching-lines-current-line-face' to show the current line
highlighted in *Occur* buffer.
546

547 548 549
+++
** The 'occur' command can now operate on the region.

550 551 552 553 554
+++
** New bindings for 'query-replace-map'.
'undo', undo the last replacement; bound to 'u'.
'undo-all', undo all replacements; bound to 'U'.

555
---
556 557 558 559 560 561
** '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.

562 563 564 565
---
** 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.
566

567
---
568 569 570 571 572 573 574 575 576 577 578
** 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.
579

580 581 582 583 584
*** 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).

585
+++
586 587 588 589 590 591
** 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.

592
+++
593
** New behavior of 'mark-defun'.
594 595 596 597 598 599 600
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.

601
---
602 603 604 605 606
** 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.
607

608
+++
Michael Albinus's avatar
Michael Albinus committed
609
** New commands 'apropos-local-variable' and 'apropos-local-value'.
610 611 612 613
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.

614 615 616 617 618 619
+++
** 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.

620 621 622 623 624
---
** 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
625

Eli Zaretskii's avatar
Eli Zaretskii committed
626
* Changes in Specialized Modes and Packages in Emacs 26.1
Michael Albinus's avatar
Michael Albinus committed
627

628 629 630 631
---
** Emacs 26.1 comes with Org v9.1.2.
See the file ORG-NEWS for user-visible changes in Org.

632
---
Michael Albinus's avatar
Michael Albinus committed
633
** New function 'cl-generic-p'.
634

635
** Dired
636

637 638 639 640
+++
*** You can answer 'all' in 'dired-do-delete' to delete recursively all
remaining directories without more prompts.

641 642 643
+++
*** Dired supports wildcards in the directory part of the file names.

644
+++
645 646
*** You can now use '`?`' in 'dired-do-shell-command'.
It gets replaced by the current file name, like ' ? '.
647

648
+++
649 650 651 652 653 654
*** 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.
655

656 657 658 659 660 661 662 663 664 665
---
*** 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.

666 667 668 669
+++
*** 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.
670

671 672 673 674
+++
*** 'W' is now bound to 'browse-url-of-dired-file', and is useful for
viewing HTML files and the like.

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

681 682 683 684
---
** html2text is now marked obsolete.

---
Michael Albinus's avatar
Michael Albinus committed
685
** smerge-refine-regions can refine regions in separate buffers.
686 687 688

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

692
+++
693
** The ancestor buffer is shown by default in 3-way merges.
Michael Albinus's avatar
Michael Albinus committed
694 695
A new option 'ediff-show-ancestor' and a new toggle
'ediff-toggle-show-ancestor'.
696

697
---
698 699
** TeX: Add luatex and xetex as alternatives to pdftex

700 701 702 703 704 705
** Electric-Buffer-menu

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

706 707 708 709
+++
** 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'.

710 711 712 713 714 715 716 717 718 719 720 721
** 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'.

722 723 724 725 726
---
** Checkdoc

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

727 728 729
** Gnus

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

733 734
+++
*** A new command for sorting articles by readedness marks has been
735
added: 'C-c C-s C-m C-m'.
736

737
+++
Michael Albinus's avatar
Michael Albinus committed
738 739 740 741
*** 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'.
742

743 744
** Ibuffer

745 746 747
---
*** New command 'ibuffer-jump'.

748
---
749 750 751 752
*** 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
753 754 755 756
to '/b', '/.', '//', '/*', '/i' and '/v'.

---
*** Two new commands 'ibuffer-filter-chosen-by-completion'
757
and 'ibuffer-and-filter', the second bound to '/&'.
758 759

---
760 761
*** The commands 'ibuffer-pop-filter', 'ibuffer-pop-filter-group',
'ibuffer-or-filter' and 'ibuffer-filter-disable' have the alternative
762 763 764 765 766 767 768
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
769 770 771 772
---
*** A new command 'ibuffer-copy-buffername-as-kill'; bound
to 'B'.

Tino Calancha's avatar
Tino Calancha committed
773 774 775
---
*** New command 'ibuffer-change-marks'; bound to '* c'.

Tino Calancha's avatar
Tino Calancha committed
776 777 778 779 780 781 782 783 784
---
*** 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.

785 786 787 788 789
---
*** A new command 'ibuffer-unmark-all-marks' to unmark
all buffers without asking confirmation;  bound to
'U'; 'ibuffer-do-replace-regexp' bound to 'r'.

790
---
Paul Eggert's avatar
Paul Eggert committed
791
*** A new command 'ibuffer-mark-by-content-regexp' to mark buffers
792
whose content matches a regexp; bound to '% g'.
793 794

---
Paul Eggert's avatar
Paul Eggert committed
795 796 797
*** Two new options 'ibuffer-never-search-content-name' and
'ibuffer-never-search-content-mode' used by
'ibuffer-mark-by-content-regexp'.
798

799 800
** Browse-URL

801
---
802 803
*** Support for opening links to man pages in Man or WoMan mode.

804 805 806 807
** Comint

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

Jö Fahlke's avatar
Jö Fahlke committed
810 811 812 813 814
** Compilation mode

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

815 816 817 818 819
+++
*** The number of errors, warnings, and informational messages is now
displayed in the mode line.  These are updated as compilation
proceeds.

820 821 822 823 824 825 826 827
** 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'.

828
---
829 830 831 832
*** The grep/rgrep/lgrep functions will now ask about saving files
before running.  This is controlled by the 'grep-save-buffers'
variable.

833
** Edebug
834

835
---
836
*** Edebug can be prevented from pausing 1 second after reaching a
837
breakpoint (e.g. with "f" and "o") by customizing the new option
838
'edebug-sit-on-break'.
839

840
+++
Michael Albinus's avatar
Michael Albinus committed
841
*** New customizable option 'edebug-max-depth'.
842 843 844
This allows to enlarge the maximum recursion depth when instrumenting
code.

845 846
** Eshell

847
---
848 849 850 851 852
*** '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.

853 854
** EUDC

855
---
856 857 858 859 860
*** 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.

861 862
** eww

863 864 865
+++
*** New 'M-RET' command for opening a link at point in a new eww buffer.

866
+++
Paul Eggert's avatar
-  
Paul Eggert committed
867
*** A new 's' command for switching to another eww buffer via the minibuffer.
868

Lars Ingebrigtsen's avatar
Lars Ingebrigtsen committed
869
---
Paul Eggert's avatar
-  
Paul Eggert committed
870 871
*** 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
872

873 874 875 876 877 878
+++
*** 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.

---
879
*** Images that are being loaded are now marked with gray
880 881 882 883 884
"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).

885 886 887 888 889 890
---
*** 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.

891 892
** Ido

893
---
894 895 896 897 898
*** 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.

899 900 901 902 903 904 905
** Images

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

906 907 908 909 910 911 912 913
+++
*** 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.)

914 915 916 917 918 919 920 921 922
+++
*** 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
923 924
added.  See the "(elisp) SVG Images" section in the ELisp reference
manual for details.
925 926 927 928 929

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

930 931 932 933 934 935
---
*** 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
936 937
** Image-Dired

938
---
Mark Oteiza's avatar
Mark Oteiza committed
939 940 941
*** Now provides a minor mode 'image-dired-minor-mode' which replaces
the function 'image-dired-setup-dired-keybindings'.

942
---
943
*** Thumbnail generation is now asynchronous.
Mark Oteiza's avatar
Mark Oteiza committed
944 945 946
The number of concurrent processes is limited by the variable
'image-dired-thumb-job-limit'.

947
---
Mark Oteiza's avatar
Mark Oteiza committed
948 949 950 951
*** 'image-dired-thumbnail-storage' has a new option 'standard-large'
for generating 256x256 thumbnails according to the Thumbnail Managing
Standard.

952
---
Mark Oteiza's avatar
Mark Oteiza committed
953 954 955
*** Inherits movement keys from 'image-mode' for viewing full images.
This includes the usual char, line, and page movement commands.

956
---
Mark Oteiza's avatar
Mark Oteiza committed
957 958 959 960 961 962 963 964 965
*** 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
966
'image-dired-cmd-create-standard-thumbnail-options'.
Mark Oteiza's avatar
Mark Oteiza committed
967

968
---
Michael Albinus's avatar
Michael Albinus committed
969
*** Recognizes more tools by default, including pngnq-s9 and OptiPNG.
Mark Oteiza's avatar
Mark Oteiza committed
970

971
---
Mark Oteiza's avatar
Mark Oteiza committed
972 973 974 975
*** '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'.

976 977 978 979 980
---
** 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.

981 982 983
+++
** 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
984
'change-log-directory-files' to nil for the old behavior.
985

986
---
Paul Eggert's avatar
-  
Paul Eggert committed
987
** Support for non-string values of 'time-stamp-format' has been removed.
988

989 990 991
** Message

---
992
*** 'message-use-idna' now defaults to t (because Emacs comes with
993 994
built-in IDNA support now).

995 996 997 998 999 1000 1001
---
*** 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.)

1002 1003