aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStephen Leake2019-04-11 14:00:02 -0700
committerStephen Leake2019-04-11 14:00:02 -0700
commit7ba7def5caf7ec9d9bebffff489f0a658229fbda (patch)
treee0cfcb59937ca0528fb81769d7d48a904a91f5dc /etc
parent7768581172e11be52b1fcd8224f4594e126bbdb7 (diff)
parentde238b39e335c6814283faa171b35145f124edf2 (diff)
downloademacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.tar.gz
emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.zip
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS94
1 files changed, 94 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3ad508aca34..9e3d993cab0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -84,6 +84,11 @@ The new command-line argument '--dump-file=FILE' allows to specify a
84non-default '.pdmp' file to load the state from; see the node "Initial 84non-default '.pdmp' file to load the state from; see the node "Initial
85Options" in the Emacs manual for more information. 85Options" in the Emacs manual for more information.
86 86
87+++
88** The new configure option '--enable-checking=structs' attempts to
89check that the portable dumper code has been updated to match the last
90change to one of the data structures that it relies on.
91
87 92
88* Startup Changes in Emacs 27.1 93* Startup Changes in Emacs 27.1
89 94
@@ -1234,6 +1239,12 @@ the 128...255 range, as expected.
1234This allows to create and parent immediately a minibuffer-only child 1239This allows to create and parent immediately a minibuffer-only child
1235frame when making a frame. 1240frame when making a frame.
1236 1241
1242---
1243*** New predicates 'display-blink-cursor-p' and 'display-symbol-keys-p'.
1244These predicates are to be preferred over 'display-graphic-p' when
1245testing for blinking cursor capability and the capability to have
1246symbols (e.g., [return], [tab], [backspace]) as keys respectively.
1247
1237** Tabulated List mode 1248** Tabulated List mode
1238 1249
1239+++ 1250+++
@@ -1250,6 +1261,89 @@ near the current column in Tabulated Lists (see variables
1250+++ 1261+++
1251*** 'text-mode-variant' is now obsolete, use 'derived-mode-p' instead. 1262*** 'text-mode-variant' is now obsolete, use 'derived-mode-p' instead.
1252 1263
1264** CUA mode
1265
1266---
1267*** New defcustom 'cua-rectangle-terminal-modifier-key'.
1268This defcustom allows for the customization of the modifier key used
1269in a terminal frame.
1270
1271** JS mode
1272
1273---
1274*** JSX syntax is now automatically detected and enabled.
1275If a file imports Facebook's 'React' library, or if the file uses the
1276extension '.jsx', then various features supporting XML-like syntax
1277will be supported in 'js-mode' and derivative modes. ('js-jsx-mode'
1278no longer needs to be enabled.)
1279
1280---
1281*** New defcustom 'js-jsx-detect-syntax' disables automatic detection.
1282This is turned on by default.
1283
1284---
1285*** New defcustom 'js-jsx-syntax' enables JSX syntax unconditionally.
1286This is off by default.
1287
1288---
1289*** New variable 'js-jsx-regexps' controls JSX detection.
1290
1291---
1292*** JSX syntax is now highlighted like SGML.
1293
1294---
1295*** JSX code is properly indented in many more scenarios.
1296Previously, JSX indentation usually only worked when an element was
1297wrapped in parenthesis (e.g. in a 'return' statement or a function
1298call). It would also fail in many intricate cases. Now, indentation
1299should work anywhere without parenthesis; many more intricacies are
1300supported; and, indentation conventions align more closely with those
1301of the React developer community (see 'js-jsx-align->-with-<'),
1302otherwise still adhering to SGML conventions.
1303
1304---
1305*** New defcustom 'js-jsx-align->-with-<' controls '>' indents.
1306Commonly in JSX code, a '>' on its own line is indented at the same
1307level as its opening '<'. This is the new default for JSX. This
1308behavior is slightly different than that used by SGML in Emacs, where
1309'>' is indented at the same level as attributes, which was also the
1310old default for JSX.
1311
1312This is turned on by default. To get back the old default indentation
1313behavior of aligning '>' with attributes, set 'js-jsx-align->-with-<'
1314to nil.
1315
1316---
1317*** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'.
1318Since JSX is a syntax extension of JavaScript, it makes the most sense
1319for JSX expressions to be indented the same number of spaces as other
1320JS expressions. This is a breaking change, but it probably aligns
1321with how you'd expect this indentation to behave. If you want JSX to
1322be indented like JS, you won't need to change your config.
1323
1324The old behavior can be emulated by controlling JSX indentation
1325independently of JS, by setting 'js-jsx-indent-level'.
1326
1327---
1328*** New defcustom 'js-jsx-indent-level' for different JSX indentation.
1329If you wish to indent JSX by a different number of spaces than JS, set
1330this variable to the desired number.
1331
1332---
1333*** New defcustom 'js-jsx-attribute-offset' for JSX attribute indents.
1334
1335---
1336*** New variable 'js-syntactic-mode-name' controls mode name display.
1337Previously, the mode name was simply 'JavaScript'. Now, when a syntax
1338extension like JSX is enabled, the mode name is 'JavaScript[JSX]'.
1339Set this variable to nil to disable the new behavior.
1340
1341---
1342*** New function 'js-use-syntactic-mode-name' for deriving modes.
1343Packages deriving from 'js-mode' with 'define-derived-mode' should
1344call this function to add enabled syntax extensions to their mode
1345name, too.
1346
1253 1347
1254* New Modes and Packages in Emacs 27.1 1348* New Modes and Packages in Emacs 27.1
1255 1349