diff options
| author | Jackson Ray Hamilton | 2019-04-07 18:12:26 -0700 |
|---|---|---|
| committer | Jackson Ray Hamilton | 2019-04-08 22:48:24 -0700 |
| commit | e48306f84f1aeb4409cc02ae864f33e7af657288 (patch) | |
| tree | 51480e3fcbc6679af1294093853e158d9dc37bc9 /src | |
| parent | 7a9dac5c944432cc2329473bb1dd9db9c0bfdd99 (diff) | |
| download | emacs-e48306f84f1aeb4409cc02ae864f33e7af657288.tar.gz emacs-e48306f84f1aeb4409cc02ae864f33e7af657288.zip | |
Properly set a dynamic, syntactic mode name
Use mode-line-format constructs to properly set mode-name, rather than
use the very hacky solution that was filling-in for my lack of
knowledge of this feature.
* lisp/progmodes/js.el (js--update-mode-name)
(js--idly-update-mode-name): Remove.
(js--syntactic-mode-name-part): New helper function for mode-name.
(js-use-syntactic-mode-name): Helper to set up the dynamic mode-name.
(js-jsx-enable): Don’t need to call any extra functions now.
(js-mode): Use the new setup function rather than the old ones.
(js-jsx-mode): Use the same initial mode name as js-mode so the final
one is identical for both modes.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions