]> git.eshelyaron.com Git - emacs.git/commit
Add a full set of CC Mode language variables to js.el.
authorAlan Mackenzie <acm@muc.de>
Wed, 6 Nov 2019 19:35:43 +0000 (19:35 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 6 Nov 2019 19:35:43 +0000 (19:35 +0000)
commit4ad6c932a826c2928ac82e56e5ae541eff7e5ca7
tree796b6545124427691731938b3f9781ce5c9321e7
parente72a48ee8b412e0149a9659f49111f84dd8aa2dc
Add a full set of CC Mode language variables to js.el.

This will allow js.el to work after maintenance changes in CC Mode, e.g. the
fix to bug #11165.

* lisp/progmodes/js.el (top level): Create a CC Mode derived language called
js-mode and based on Java Mode.
(js-mode): call c-init-language-vars for js-mode.  Remove the direct settings
of several CC Mode language variables which are now defined through the
derived language mechanism.  Call c-set-style and set up the needed style
variables c-block-comment-prefix and c-comment-prefix-regexp.
lisp/progmodes/js.el