Fix and improve last syntax-propertize patch
commitb879a6e2974d913d0c6dc1e290b2c246d7888b4f
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 18 Sep 2010 00:35:00 +0000 (18 02:35 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 18 Sep 2010 00:35:00 +0000 (18 02:35 +0200)
treef8d6bc12c185cf77892012bc4052efeb1f95fdc3
parent269c197ee9d1c3c0b8c03c278d76a570740dd624
Fix and improve last syntax-propertize patch
* lisp/emacs-lisp/syntax.el (syntax-propertize-precompile-rules): New macro.
(syntax-propertize-rules): Add var-ref case.  Fix offset computation
when adding surrounding \(..\).

* lisp/progmodes/fortran.el (fortran--font-lock-syntactic-keywords): Remove.
(fortran-make-syntax-propertize-function): New function; replaces
fortran-font-lock-syntactic-keywords.
(fortran-mode): Use it.
(fortran-line-length): Use it.  Improve interactive spec.

* lisp/progmodes/js.el (js-mode): Fix last change (bug#7054).

* lisp/textmodes/tex-mode.el (tex-syntax-propertize-rules)
(latex-syntax-propertize-rules): New consts; replace
tex-font-lock-syntactic-keywords.
(tex-env-mark, latex-env-before-change): New functions.
(latex-electric-env-pair-mode): New minor mode.
(tex-font-lock-verb): Change arguments; do move point.
(tex-font-lock-syntactic-face-function): Adjust to new verbatim
representation as a form of comment.
(tex-font-lock-keywords-1): Remove workaround, now unneeded.
(doctex-syntax-propertize-rules): New const; replaces
doctex-font-lock-syntactic-keywords.
(tex-common-initialization, doctex-mode): Use syntax-propertize-rules.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/syntax.el
lisp/progmodes/fortran.el
lisp/progmodes/js.el
lisp/textmodes/tex-mode.el