Allow 'browse-url-emacs' to fetch URL in the selected window
[emacs.git] / etc / NEWS
blobb6c4157384c34a51dff42c9bfc048b76de0edc3d
1 GNU Emacs NEWS -- history of user-visible changes.
3 Copyright (C) 2017-2018 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
6 Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
7 If possible, use M-x report-emacs-bug.
9 This file is about changes in Emacs version 27.
11 See file HISTORY for a list of GNU Emacs versions and release dates.
12 See files NEWS.26, NEWS.25, ..., NEWS.18, and NEWS.1-17 for changes
13 in older Emacs versions.
15 You can narrow news to a specific version by calling 'view-emacs-news'
16 with a prefix argument or by typing C-u C-h C-n.
18 Temporary note:
19 +++ indicates that all necessary documentation updates are complete.
20     (This means all relevant manuals in doc/ AND lisp doc-strings.)
21 --- means no change in the manuals is needed.
22 When you add a new item, use the appropriate mark if you are sure it applies,
25 * Installation Changes in Emacs 27.1
27 ** The new configure option '--with-json' adds support for JSON using
28 the Jansson library.  It is on by default; use 'configure
29 --with-json=no' to build without Jansson support.  The new JSON
30 functions 'json-serialize', 'json-insert', 'json-parse-string', and
31 'json-parse-buffer' are typically much faster than their Lisp
32 counterparts from json.el.
34 ** Emacs has been ported to the -fcheck-pointer-bounds option of GCC.
35 This causes Emacs to check bounds of some arrays addressed by its
36 internal pointers, which can be helpful when debugging the Emacs
37 interpreter or modules that it uses.  If your platform supports it you
38 can enable it when configuring, e.g., './configure CFLAGS="-g3 -O2
39 -mmpx -fcheck-pointer-bounds"' on Intel MPX platforms.
41 ** Emacs now normally uses a C pointer type instead of a C integer
42 type to implement Lisp_Object, which is the fundamental machine word
43 type internal to the Emacs Lisp interpreter.  This change aims to
44 catch typos and support -fcheck-pointer-bounds.  The 'configure'
45 option --enable-check-lisp-object-type is therefore no longer as
46 useful and so is no longer enabled by default in developer builds,
47 to reduce differences between developer and production builds.
50 * Startup Changes in Emacs 27.1
52 +++
53 ** Emacs can now be configured using an early init file.
54 The file is called 'early-init.el', in 'user-emacs-directory'.  It is
55 loaded very early in the startup process: before graphical elements
56 such as the tool bar are initialized, and before the package manager
57 is initialized.  The primary purpose is to allow customizing how the
58 package system is initialized given that initialization now happens
59 before loading the regular init file (see below).
61 +++
62 ** Emacs now calls 'package-initialize' before loading the init file.
63 This is part of a change intended to eliminate the behavior of
64 package.el inserting a call to 'package-initialize' into the init
65 file, which was previously done when Emacs was started.  As a result
66 of this change, it is no longer necessary to call 'package-initialize'
67 in your init file.  However, if your init file changes the values of
68 'package-load-list' or 'package-user-dir', then that code needs to be
69 moved to the early init file (see above).
72 * Changes in Emacs 27.1
74 ---
75 ** The new option 'tooltip-resize-echo-area' avoids truncating tooltip text
76 on GUI frames when tooltips are displayed in the echo area.  Instead,
77 it resizes the echo area as needed to accommodate the full tool-tip
78 text.
80 ---
81 ** Show modeline tooltips only if the corresponding action applies.
82 Customize the option 'mode-line-default-help-echo' to restore the old
83 behavior where the tooltip text is also shown when the corresponding
84 action does not apply.
86 +++
87 ** New hook 'server-after-make-frame-hook'.
88 This hook is a convenient place to perform initializations in daemon
89 mode which require GUI features to be available.  One example is
90 restoration of the previous session using the desktop.el package: put
91 the call to 'desktop-read' in this hook, if you want the GUI settings
92 to be restored, or if desktop.el needs to interact with you during
93 restoration of the session.
95 +++
96 ** New function 'logcount' calculates an integer's Hamming weight.
98 +++
99 ** New function 'libxml-available-p'.
100 This function returns non-nil if libxml support is both compiled in
101 and available at run time.  Lisp programs should use this function to
102 detect built-in libxml support, instead of testing for that
103 indirectly, e.g., by checking that functions like
104 'libxml-parse-html-region' return nil.
107 ** New function 'fill-polish-nobreak-p', to be used in 'fill-nobreak-predicate'.
108 It blocks line breaking after a one-letter word, also in the case when
109 this word is preceded by a non-space, but non-alphanumeric character.
112 ** The limit on repetitions in regexps has been raised to 2^16-1.
113 It was previously limited to 2^15-1.  For example, the following
114 regular expression was previously invalid, but is now accepted:
116    x\{32768\}
119 * Editing Changes in Emacs 27.1
122 ** New isearch bindings.
123 'C-M-w' in isearch changed from isearch-del-char to the new function
124 isearch-yank-symbol-or-char. isearch-del-char is now bound to 'C-M-d'.
127 ** New variable 'x-wait-for-event-timeout'.
128 This controls how long Emacs will wait for updates to the graphical
129 state to take effect (making a frame visible, for example).
132 ** New user option 'electric-quote-replace-double'.
133 This option controls whether '"' is replaced in 'electric-quote-mode',
134 in addition to other quote characters.  If non-nil, ASCII double-quote
135 characters that quote text "like this" are replaced by double
136 typographic quotes, “like this”, in text modes, and in comments in
137 non-text modes.
140 ** 'write-abbrev-file' now includes special properties.
141 'write-abbrev-file' now writes special properties like ':case-fixed'
142 for abbrevs that have them.
145 * Changes in Specialized Modes and Packages in Emacs 27.1
147 ** Ecomplete
148 *** The ecomplete sorting has changed to a decay-based algorithm.
149 This can be controlled by the new `ecomplete-sort-predicate' variable.
151 *** The 'ecompleterc' file is now placed in ~/.emacs.d/ecompleterc by default
152 Of course it will still find it if you have it in ~/.ecompleterc
154 ** Gnus
155 *** The function 'gnus-score-find-favorite-words' has been renamed
156 from 'gnus-score-find-favourite-words'.
158 ** Htmlfontify
159 *** The functions 'hfy-color', 'hfy-color-vals' and
160 'hfy-fallback-color-values' and the variables 'hfy-fallback-color-map'
161 and 'hfy-rgb-txt-color-map' have been renamed from names that used
162 'colour' instead of 'color'.
164 ** Smtpmail
165 Authentication mechanisms can be added via external packages, by
166 defining new cl-defmethod of smtpmail-try-auth-method.
168 ** Footnote-mode
169 *** Support Hebrew-style footnotes
170 *** Footnote text lines are now aligned.
171 Can be controlled via the new variable 'footnote-align-to-fn-text'.
173 ** CSS mode
176 *** A new command 'css-cycle-color-format' for cycling between color
177 formats (e.g. "black" => "#000000" => "rgb(0, 0, 0)") has been added,
178 bound to 'C-c C-f'.
180 ** Dired
183 *** The new user option 'dired-create-destination-dirs' controls whether
184 'dired-do-copy' and 'dired-rename-file' should create non-existent
185 directories in the destination.
187 ** Help
190 *** Output format of 'C-h l' (view-lossage) has changed.
191 For convenience, 'view-lossage' now displays the last keystrokes
192 and commands in the same format as the edit buffer of
193 'edit-last-kbd-macro'.  This makes it possible to copy the lines from
194 the buffer generated by 'view-lossage' to the "*Edit Macro*" buffer
195 created by 'edit-last-kbd-macro', and to save the macro by 'C-c C-c'.
197 ** Ibuffer
200 *** New filter ibuffer-filter-by-process; bound to '/E'.
202 ** Search and Replace
204 *** 'search-exit-option' provides new options 'move' and 'shift-move'
205 to extend the search string by yanking text that ends at the new
206 position after moving point in the current buffer.  'shift-move'
207 extends the search string by motion commands while holding down
208 the shift key.
210 ** Edebug
213 *** The runtime behavior of Edebug's instrumentation can be changed
214 using the new variables 'edebug-behavior-alist',
215 'edebug-after-instrumentation-function' and
216 'edebug-new-definition-function'. Edebug's behavior can be changed
217 globally or for individual definitions.
219 ** Enhanced xterm support
221 *** New variable 'xterm-set-window-title' controls whether Emacs sets
222 the XTerm window title.  This feature is experimental and is disabled
223 by default.
225 ** Gamegrid
227 ** grep
229 *** rgrep, lgrep and zrgrep now hide part of the command line
230 that contains a list of ignored directories and files.
231 Clicking on the button with ellipsis unhides it.
232 The abbreviation can be disabled by the new option
233 'grep-find-abbreviate'.  The new command
234 'grep-find-toggle-abbreviation' toggles it interactively.
236 ** ERT
239 *** New variable 'ert-quiet' allows to make ERT output in batch mode
240 less verbose by removing non-essential information.
243 *** Gamegrid now determines its default glyph size based on display
244 dimensions, instead of always using 16 pixels. As a result, Tetris,
245 Snake and Pong are more playable on HiDPI displays.
247 ** Filecache
250 *** Completing filenames in the minibuffer via 'C-TAB' now uses the
251 styles as configured by the variable 'completion-styles'.
253 ** New macros 'thunk-let' and 'thunk-let*'.
254 These macros are analogue to 'let' and 'let*', but create bindings that
255 are evaluated lazily.
257 ** next-error
259 *** New customizable variable next-error-find-buffer-function
260 defines the logic of finding a next-error capable buffer.
261 It has an option to use a single such buffer on selected frame, or
262 by default use the last buffer that navigated to the current buffer.
264 ** Eshell
267 *** Expansion of history event designators is disabled by default.
268 To restore the old behavior, use
270     (add-hook 'eshell-expand-input-functions
271               #'eshell-expand-history-references)
273 *** The function 'shell-uniquify-list' has been renamed from
274 'eshell-uniqify-list'.
276 ** Pcomplete
277 *** The function 'pcomplete-uniquify-list' has been renamed from
278 'pcomplete-uniqify-list'.
280 ** Tramp
283 *** New connection method "owncloud", which allows to access OwnCloud
284 or NextCloud hosted files and directories.
287 ** The options.el library has been removed.
288 It was obsolete since Emacs 22.1, replaced by customize.
291 * New Modes and Packages in Emacs 27.1
294 ** Emacs can now visit files in archives as if they were directories.
295 This feature uses Tramp and works only on systems which support GVFS,
296 i.e. GNU/Linux, roughly spoken.  See the chapter "(tramp) Archive file
297 names" in the Tramp manual for full documentation of these facilities.
300 * Incompatible Lisp Changes in Emacs 27.1
302 ** The FILENAME argument to 'file-name-base' is now mandatory and no
303 longer defaults to 'buffer-file-name'.
306 ** The function 'eldoc-message' now accepts a single argument.
307 Programs that called it with multiple arguments before should pass
308 them through 'format' first.  Even that is discouraged: for ElDoc
309 support, you should set 'eldoc-documentation-function' instead of
310 calling 'eldoc-message' directly.
312 ** Old-style backquotes now generate an error.  They have been
313 generating warnings for a decade.  To interpret old-style backquotes
314 as new-style, bind the new variable 'force-new-style-backquotes' to t.
316 ** Defining a Common Lisp structure using 'cl-defstruct' or
317 'cl-struct-define' whose name clashes with a builtin type (e.g.,
318 'integer' or 'hash-table') now signals an error.
320 ** When formatting a floating-point number as an octal or hexadecimal
321 integer, Emacs now signals an error if the number is too large for the
322 implementation to format (Bug#30408).
325 ** Some functions and variables obsolete since Emacs 22 have been removed:
326 archive-mouse-extract, assoc-ignore-case, assoc-ignore-representation,
327 backward-text-line, blink-cursor, bookmark-exit-hooks,
328 comint-use-prompt-regexp-instead-of-fields, compilation-finish-function,
329 count-text-lines, cperl-vc-header-alist, custom-face-save-command,
330 cvs-display-full-path, cvs-fileinfo->full-path, delete-frame-hook,
331 derived-mode-class, describe-char-after, describe-project,
332 desktop-basefilename, desktop-buffer-handlers,
333 desktop-buffer-misc-functions, desktop-buffer-modes-to-save,
334 desktop-enable, desktop-load-default, dired-omit-files-p,
335 disabled-command-hook, dungeon-mode-map, electric-nroff-mode,
336 electric-nroff-newline, electric-perl-terminator, focus-frame,
337 forward-text-line, generic-define-mswindows-modes, generic-define-unix-modes,
338 generic-font-lock-defaults, goto-address-at-mouse,
339 highlight-changes-colours, ibuffer-elide-long-columns, ibuffer-hooks,
340 ibuffer-mode-hooks, icalendar-convert-diary-to-ical,
341 icalendar-extract-ical-from-buffer, imenu-always-use-completion-buffer-p,
342 ipconfig-program, ipconfig-program-options, isearch-lazy-highlight-cleanup,
343 isearch-lazy-highlight-cleanup, isearch-lazy-highlight-initial-delay,
344 isearch-lazy-highlight-interval, isearch-lazy-highlight-max-at-a-time,
345 iswitchb-use-fonts, latin1-char-displayable-p, mouse-wheel-click-button,
346 mouse-wheel-down-button, mouse-wheel-up-button, new-frame, pascal-outline,
347 process-kill-without-query, recentf-menu-append-commands-p,
348 rmail-pop-password, rmail-pop-password-required, savehist-load,
349 set-default-font, spam-list-of-processors,
350 speedbar-add-ignored-path-regexp, speedbar-buffers-line-path,
351 speedbar-buffers-line-path, speedbar-ignored-path-expressions,
352 speedbar-ignored-path-regexp, speedbar-line-path, speedbar-path-line,
353 timer-set-time-with-usecs, tooltip-gud-display, tooltip-gud-modes,
354 tooltip-gud-toggle-dereference, unfocus-frame, unload-hook-features-list,
355 update-autoloads-from-directories, vc-comment-ring, vc-comment-ring-index,
356 vc-comment-search-forward, vc-comment-search-reverse, vc-comment-to-change-log,
357 vc-diff-switches-list, vc-next-comment, vc-previous-comment, view-todo,
358 x-lost-selection-hooks, x-sent-selection-hooks
361 * Lisp Changes in Emacs 27.1
364 ** New function assoc-delete-all.
366 ** 'print-quoted' now defaults to t, so if you want to see
367 (quote x) instead of 'x you will have to bind it to nil where applicable.
369 ** To avoid confusion caused by "smart quotes", the reader signals an
370 error when reading Lisp symbols which begin with one of the following
371 quotation characters: ‘’‛“”‟〞"'.  A symbol beginning with such a
372 character can be written by escaping the quotation character with a
373 backslash.  For example:
375     (read "‘smart") => (invalid-read-syntax "strange quote" "‘")
376     (read "\\‘smart") == (intern "‘smart")
378 ** Internal parsing commands now use syntax-ppss and disregard
379 open-paren-in-column-0-is-defun-start.  This affects mostly things like
380 forward-comment, scan-sexps, and forward-sexp when parsing backward.
381 The new variable 'comment-use-syntax-ppss' can be set to nil to recover the old
382 behavior if needed.
384 ** The `server-name' and `server-socket-dir' variables are set when a
385 socket has been pased to Emacs (Bug#24218).
388 ** The 'file-system-info' function is now available on all platforms.
389 instead of just Microsoft platforms.  This fixes a 'get-free-disk-space'
390 bug on OS X 10.8 and later (Bug#28639).
393 ** The function 'get-free-disk-space' returns now a non-nil value for
394 remote systems, which support this check.
397 ** The function 'make-string' accepts an additional optional argument.
398 If the optional third argument is non-nil, 'make-string' will produce
399 a multibyte string even if its second argument is an ASCII character.
401 ** (format "%d" X) no longer mishandles a floating-point number X that
402 does not fit in a machine integer (Bug#30408).
404 ** New JSON parsing and serialization functions 'json-serialize',
405 'json-insert', 'json-parse-string', and 'json-parse-buffer'.  These
406 are implemented in C using the Jansson library.
409 ** The new function `mailcap-file-name-to-mime-type' has been added.
410 It's a simple convenience function for looking up MIME types based on
411 file name extensions.
414 ** The new function 'read-answer' accepts either long or short answers
415 depending on the new customizable variable 'read-answer-short'.
417 ** The function 'load' now behaves correctly when loading modules.
418 Specifically, it puts the module name into 'load-history', prints
419 loading messages if requested, and protects against recursive loads.
422 * Changes in Emacs 27.1 on Non-Free Operating Systems
425 ** Battery status is now supported in all Cygwin builds.
426 Previously it was supported only in the Cygwin-w32 build.
428 ** Emacs now handles key combinations involving the macOS "command"
429 and "option" modifier keys more correctly.
431 ** The special handling of `frame-title-format' on NS where setting it
432 to `t' would enable the macOS proxy icon has been replaced with a
433 separate variable, `ns-use-proxy-icon'. `frame-title-format' will now
434 work as on other platforms.
437 ----------------------------------------------------------------------
438 This file is part of GNU Emacs.
440 GNU Emacs is free software: you can redistribute it and/or modify
441 it under the terms of the GNU General Public License as published by
442 the Free Software Foundation, either version 3 of the License, or
443 (at your option) any later version.
445 GNU Emacs is distributed in the hope that it will be useful,
446 but WITHOUT ANY WARRANTY; without even the implied warranty of
447 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
448 GNU General Public License for more details.
450 You should have received a copy of the GNU General Public License
451 along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
454 Local variables:
455 coding: utf-8
456 mode: outline
457 paragraph-separate: "[  \f]*$"
458 end: