diff options
| author | Stephen Leake | 2019-04-11 14:00:02 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-04-11 14:00:02 -0700 |
| commit | 7ba7def5caf7ec9d9bebffff489f0a658229fbda (patch) | |
| tree | e0cfcb59937ca0528fb81769d7d48a904a91f5dc /etc | |
| parent | 7768581172e11be52b1fcd8224f4594e126bbdb7 (diff) | |
| parent | de238b39e335c6814283faa171b35145f124edf2 (diff) | |
| download | emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.tar.gz emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.zip | |
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 94 |
1 files changed, 94 insertions, 0 deletions
| @@ -84,6 +84,11 @@ The new command-line argument '--dump-file=FILE' allows to specify a | |||
| 84 | non-default '.pdmp' file to load the state from; see the node "Initial | 84 | non-default '.pdmp' file to load the state from; see the node "Initial |
| 85 | Options" in the Emacs manual for more information. | 85 | Options" in the Emacs manual for more information. |
| 86 | 86 | ||
| 87 | +++ | ||
| 88 | ** The new configure option '--enable-checking=structs' attempts to | ||
| 89 | check that the portable dumper code has been updated to match the last | ||
| 90 | change 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. | |||
| 1234 | This allows to create and parent immediately a minibuffer-only child | 1239 | This allows to create and parent immediately a minibuffer-only child |
| 1235 | frame when making a frame. | 1240 | frame when making a frame. |
| 1236 | 1241 | ||
| 1242 | --- | ||
| 1243 | *** New predicates 'display-blink-cursor-p' and 'display-symbol-keys-p'. | ||
| 1244 | These predicates are to be preferred over 'display-graphic-p' when | ||
| 1245 | testing for blinking cursor capability and the capability to have | ||
| 1246 | symbols (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'. | ||
| 1268 | This defcustom allows for the customization of the modifier key used | ||
| 1269 | in a terminal frame. | ||
| 1270 | |||
| 1271 | ** JS mode | ||
| 1272 | |||
| 1273 | --- | ||
| 1274 | *** JSX syntax is now automatically detected and enabled. | ||
| 1275 | If a file imports Facebook's 'React' library, or if the file uses the | ||
| 1276 | extension '.jsx', then various features supporting XML-like syntax | ||
| 1277 | will be supported in 'js-mode' and derivative modes. ('js-jsx-mode' | ||
| 1278 | no longer needs to be enabled.) | ||
| 1279 | |||
| 1280 | --- | ||
| 1281 | *** New defcustom 'js-jsx-detect-syntax' disables automatic detection. | ||
| 1282 | This is turned on by default. | ||
| 1283 | |||
| 1284 | --- | ||
| 1285 | *** New defcustom 'js-jsx-syntax' enables JSX syntax unconditionally. | ||
| 1286 | This 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. | ||
| 1296 | Previously, JSX indentation usually only worked when an element was | ||
| 1297 | wrapped in parenthesis (e.g. in a 'return' statement or a function | ||
| 1298 | call). It would also fail in many intricate cases. Now, indentation | ||
| 1299 | should work anywhere without parenthesis; many more intricacies are | ||
| 1300 | supported; and, indentation conventions align more closely with those | ||
| 1301 | of the React developer community (see 'js-jsx-align->-with-<'), | ||
| 1302 | otherwise still adhering to SGML conventions. | ||
| 1303 | |||
| 1304 | --- | ||
| 1305 | *** New defcustom 'js-jsx-align->-with-<' controls '>' indents. | ||
| 1306 | Commonly in JSX code, a '>' on its own line is indented at the same | ||
| 1307 | level as its opening '<'. This is the new default for JSX. This | ||
| 1308 | behavior is slightly different than that used by SGML in Emacs, where | ||
| 1309 | '>' is indented at the same level as attributes, which was also the | ||
| 1310 | old default for JSX. | ||
| 1311 | |||
| 1312 | This is turned on by default. To get back the old default indentation | ||
| 1313 | behavior of aligning '>' with attributes, set 'js-jsx-align->-with-<' | ||
| 1314 | to nil. | ||
| 1315 | |||
| 1316 | --- | ||
| 1317 | *** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'. | ||
| 1318 | Since JSX is a syntax extension of JavaScript, it makes the most sense | ||
| 1319 | for JSX expressions to be indented the same number of spaces as other | ||
| 1320 | JS expressions. This is a breaking change, but it probably aligns | ||
| 1321 | with how you'd expect this indentation to behave. If you want JSX to | ||
| 1322 | be indented like JS, you won't need to change your config. | ||
| 1323 | |||
| 1324 | The old behavior can be emulated by controlling JSX indentation | ||
| 1325 | independently of JS, by setting 'js-jsx-indent-level'. | ||
| 1326 | |||
| 1327 | --- | ||
| 1328 | *** New defcustom 'js-jsx-indent-level' for different JSX indentation. | ||
| 1329 | If you wish to indent JSX by a different number of spaces than JS, set | ||
| 1330 | this 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. | ||
| 1337 | Previously, the mode name was simply 'JavaScript'. Now, when a syntax | ||
| 1338 | extension like JSX is enabled, the mode name is 'JavaScript[JSX]'. | ||
| 1339 | Set this variable to nil to disable the new behavior. | ||
| 1340 | |||
| 1341 | --- | ||
| 1342 | *** New function 'js-use-syntactic-mode-name' for deriving modes. | ||
| 1343 | Packages deriving from 'js-mode' with 'define-derived-mode' should | ||
| 1344 | call this function to add enabled syntax extensions to their mode | ||
| 1345 | name, too. | ||
| 1346 | |||
| 1253 | 1347 | ||
| 1254 | * New Modes and Packages in Emacs 27.1 | 1348 | * New Modes and Packages in Emacs 27.1 |
| 1255 | 1349 | ||