Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
44b306d3
Commit
44b306d3
authored
Apr 09, 2019
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
; * etc/NEWS: Fix recently added entries.
parent
1e58dc9e
Pipeline
#1217
failed with stage
in 60 minutes and 1 second
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
etc/NEWS
etc/NEWS
+13
-1
No files found.
etc/NEWS
View file @
44b306d3
...
@@ -1261,20 +1261,28 @@ in a terminal frame.
...
@@ -1261,20 +1261,28 @@ in a terminal frame.
** JS mode
** JS mode
---
*** JSX syntax is now automatically detected and enabled.
*** JSX syntax is now automatically detected and enabled.
If a file imports Facebook's 'React' library, or if the file uses the
If a file imports Facebook's 'React' library, or if the file uses the
extension '.jsx', then various features supporting XML-like syntax
extension '.jsx', then various features supporting XML-like syntax
will be supported in 'js-mode' and derivative modes. ('js-jsx-mode'
will be supported in 'js-mode' and derivative modes. ('js-jsx-mode'
no longer needs to be enabled.)
no longer needs to be enabled.)
---
*** New defcustom 'js-jsx-detect-syntax' disables automatic detection.
*** New defcustom 'js-jsx-detect-syntax' disables automatic detection.
This is turned on by default.
---
*** New defcustom 'js-jsx-syntax' enables JSX syntax unconditionally.
*** New defcustom 'js-jsx-syntax' enables JSX syntax unconditionally.
This is off by default.
---
*** New variable 'js-jsx-regexps' controls JSX detection.
*** New variable 'js-jsx-regexps' controls JSX detection.
---
*** JSX syntax is now highlighted like SGML.
*** JSX syntax is now highlighted like SGML.
---
*** JSX code is properly indented in many more scenarios.
*** JSX code is properly indented in many more scenarios.
Previously, JSX indentation usually only worked when an element was
Previously, JSX indentation usually only worked when an element was
wrapped in parenthesis (e.g. in a 'return' statement or a function
wrapped in parenthesis (e.g. in a 'return' statement or a function
...
@@ -1284,6 +1292,7 @@ supported; and, indentation conventions align more closely with those
...
@@ -1284,6 +1292,7 @@ supported; and, indentation conventions align more closely with those
of the React developer community, otherwise still adhering to SGML
of the React developer community, otherwise still adhering to SGML
conventions.
conventions.
---
*** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'.
*** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'.
It was never really intuitive that JSX indentation would be controlled
It was never really intuitive that JSX indentation would be controlled
by an SGML variable. JSX is a syntax extension of JavaScript, so it
by an SGML variable. JSX is a syntax extension of JavaScript, so it
...
@@ -1292,13 +1301,16 @@ is technically a breaking change, but it will probably align with how
...
@@ -1292,13 +1301,16 @@ is technically a breaking change, but it will probably align with how
you would normally expect for this indentation to be controlled, and
you would normally expect for this indentation to be controlled, and
you probably won't need to change your config.
you probably won't need to change your config.
---
*** New defcustom 'js-jsx-attribute-offset' for JSX attribute indents.
*** New defcustom 'js-jsx-attribute-offset' for JSX attribute indents.
---
*** New variable 'js-syntactic-mode-name' controls mode name display.
*** New variable 'js-syntactic-mode-name' controls mode name display.
Previously, the mode name was simply 'JavaScript'. Now, when a syntax
Previously, the mode name was simply 'JavaScript'. Now, when a syntax
extension like JSX is enabled, the mode name is 'JavaScript[JSX]'.
extension like JSX is enabled, the mode name is 'JavaScript[JSX]'.
Set
ting
this variable to nil
can
disable the new
formatting
.
Set this variable to nil
to
disable the new
behavior
.
---
*** New function 'js-use-syntactic-mode-name' for deriving modes.
*** New function 'js-use-syntactic-mode-name' for deriving modes.
Packages deriving from 'js-mode' with 'define-derived-mode' should
Packages deriving from 'js-mode' with 'define-derived-mode' should
call this function to add enabled syntax extensions to their mode
call this function to add enabled syntax extensions to their mode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment