* lisp/net/tramp.el: Require trampver here instead of...
[emacs.git] / etc / NEWS
blobad315536034e7b996ae8d5990a67abcee322bedf
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
53 * Changes in Emacs 27.1
55 ---
56 ** The new option 'tooltip-resize-echo-area' avoids truncating tooltip text
57 on GUI frames when tooltips are displayed in the echo area.  Instead,
58 it resizes the echo area as needed to accommodate the full tool-tip
59 text.
61 ---
62 ** Show modeline tooltips only if the corresponding action applies.
63 Customize the option 'mode-line-default-help-echo' to restore the old
64 behavior where the tooltip text is also shown when the corresponding
65 action does not apply.
67 +++
68 ** New function 'logcount' calculates an integer's Hamming weight.
70 +++
71 ** New function 'libxml-available-p'.
72 This function returns non-nil if libxml support is both compiled in
73 and available at run time.  Lisp programs should use this function to
74 detect built-in libxml support, instead of testing for that
75 indirectly, e.g., by checking that functions like
76 'libxml-parse-html-region' return nil.
78 +++
79 ** New function 'fill-polish-nobreak-p', to be used in 'fill-nobreak-predicate'.
80 It blocks line breaking after a one-letter word, also in the case when
81 this word is preceded by a non-space, but non-alphanumeric character.
84 * Editing Changes in Emacs 27.1
86 ---
87 ** New variable 'x-wait-for-event-timeout'.
88 This controls how long Emacs will wait for updates to the graphical
89 state to take effect (making a frame visible, for example).
91 +++
92 ** New user option 'electric-quote-replace-double'.
93 This option controls whether '"' is replaced in 'electric-quote-mode',
94 in addition to other quote characters.  If non-nil, ASCII double-quote
95 characters that quote text "like this" are replaced by double
96 typographic quotes, “like this”, in text modes, and in comments in
97 non-text modes.
100 * Changes in Specialized Modes and Packages in Emacs 27.1
102 ** Ecomplete
103 *** The ecomplete sorting has changed to a decay-based algorithm.
104 This can be controlled by the new `ecomplete-sort-predicate' variable.
106 *** The 'ecompleterc' file is now placed in ~/.emacs.d/ecompleterc by default
107 Of course it will still find it if you have it in ~/.ecompleterc
109 ** Smtpmail
110 Authentication mechanisms can be added via external packages, by
111 defining new cl-defmethod of smtpmail-try-auth-method.
113 ** Footnote-mode
114 *** Support Hebrew-style footnotes
115 *** Footnote text lines are now aligned.
116 Can be controlled via the new variable 'footnote-align-to-fn-text'.
118 ** CSS mode
121 *** A new command 'css-cycle-color-format' for cycling between color
122 formats (e.g. "black" => "#000000" => "rgb(0, 0, 0)") has been added,
123 bound to 'C-c C-f'.
125 ** Dired
128 *** The new user option 'dired-create-destination-dirs' controls whether
129 'dired-do-copy' and 'dired-rename-file' should create non-existent
130 directories in the destination.
132 ** Ibuffer
135 *** New filter ibuffer-filter-by-process; bound to '/E'.
137 ** Edebug
140 *** The runtime behavior of Edebug's instrumentation can be changed
141 using the new variables 'edebug-behavior-alist',
142 'edebug-after-instrumentation-function' and
143 'edebug-new-definition-function'. Edebug's behavior can be changed
144 globally or for individual definitions.
146 ** Enhanced xterm support
148 *** New variable 'xterm-set-window-title' controls whether Emacs sets
149 the XTerm window title.  This feature is experimental and is disabled
150 by default.
152 ** Gamegrid
154 ** ERT
157 *** New variable 'ert-quiet' allows to make ERT output in batch mode
158 less verbose by removing non-essential information.
161 *** Gamegrid now determines its default glyph size based on display
162 dimensions, instead of always using 16 pixels. As a result, Tetris,
163 Snake and Pong are more playable on HiDPI displays.
165 ** Filecache
168 *** Completing filenames in the minibuffer via 'C-TAB' now uses the
169 styles as configured by the variable 'completion-styles'.
171 ** New macros 'thunk-let' and 'thunk-let*'.
172 These macros are analogue to 'let' and 'let*', but create bindings that
173 are evaluated lazily.
175 ** Eshell
178 *** Expansion of history event designators is disabled by default.
179 To restore the old behavior, use
181     (add-hook 'eshell-expand-input-functions
182               #'eshell-expand-history-references)
184 ** Tramp
187 *** New connection method "owncloud", which allows to access OwnCloud
188 or NextCloud hosted files and directories.
191 * New Modes and Packages in Emacs 27.1
194 ** Emacs can now visit files in archives as if they were directories.
195 This feature uses Tramp and works only on systems which support GVFS,
196 i.e. GNU/Linux, roughly spoken.  See the chapter "(tramp) Archive file
197 names" in the Tramp manual for full documentation of these facilities.
200 * Incompatible Lisp Changes in Emacs 27.1
202 ** The FILENAME argument to 'file-name-base' is now mandatory and no
203 longer defaults to 'buffer-file-name'.
206 ** The function 'eldoc-message' now accepts a single argument.
207 Programs that called it with multiple arguments before should pass
208 them through 'format' first.  Even that is discouraged: for ElDoc
209 support, you should set 'eldoc-documentation-function' instead of
210 calling 'eldoc-message' directly.
212 ** Old-style backquotes now generate an error.  They have been
213 generating warnings for a decade.  To interpret old-style backquotes
214 as new-style, bind the new variable 'force-new-style-backquotes' to t.
217 * Lisp Changes in Emacs 27.1
219 ** 'print-quoted' now defaults to t, so if you want to see
220 (quote x) instead of 'x you will have to bind it to nil where applicable.
222 ** Internal parsing commands now use syntax-ppss and disregard
223 open-paren-in-column-0-is-defun-start.  This affects mostly things like
224 forward-comment, scan-sexps, and forward-sexp when parsing backward.
225 The new variable 'comment-use-syntax-ppss' can be set to nil to recover the old
226 behavior if needed.
229 ** The 'file-system-info' function is now available on all platforms.
230 instead of just Microsoft platforms.  This fixes a 'get-free-disk-space'
231 bug on OS X 10.8 and later (Bug#28639).
234 ** The function 'get-free-disk-space' returns now a non-nil value for
235 remote systems, which support this check.
238 ** The function 'make-string' accepts an additional optional argument.
239 If the optional third argument is non-nil, 'make-string' will produce
240 a multibyte string even if its second argument is an ASCII character.
242 ** New JSON parsing and serialization functions 'json-serialize',
243 'json-insert', 'json-parse-string', and 'json-parse-buffer'.  These
244 are implemented in C using the Jansson library.
247 ** The new function `mailcap-file-name-to-mime-type' has been added.
248 It's a simple convenience function for looking up MIME types based on
249 file name extensions.
252 ** The new function 'read-answer' accepts either long or short answers
253 depending on the new customizable variable 'read-answer-short'.
256 * Changes in Emacs 27.1 on Non-Free Operating Systems
259 ** Battery status is now supported in all Cygwin builds.
260 Previously it was supported only in the Cygwin-w32 build.
263 ----------------------------------------------------------------------
264 This file is part of GNU Emacs.
266 GNU Emacs is free software: you can redistribute it and/or modify
267 it under the terms of the GNU General Public License as published by
268 the Free Software Foundation, either version 3 of the License, or
269 (at your option) any later version.
271 GNU Emacs is distributed in the hope that it will be useful,
272 but WITHOUT ANY WARRANTY; without even the implied warranty of
273 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
274 GNU General Public License for more details.
276 You should have received a copy of the GNU General Public License
277 along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
280 Local variables:
281 coding: utf-8
282 mode: outline
283 paragraph-separate: "[  \f]*$"
284 end: