684 |
(defun font-latex-set-syntactic-keywords () |
(defun font-latex-set-syntactic-keywords () |
685 |
"Set the variable `font-latex-syntactic-keywords'. |
"Set the variable `font-latex-syntactic-keywords'. |
686 |
This function can be used to refresh the variable in case other |
This function can be used to refresh the variable in case other |
687 |
variables influencing its value, like `font-latex-verbatim-environments', |
variables influencing its value, like `LaTeX-verbatim-environments', |
688 |
have changed." |
have changed." |
689 |
;; Checks for non-emptiness of lists added in order to cater for |
;; Checks for non-emptiness of lists added in order to cater for |
690 |
;; installations where `(regexp-opt-group nil)' would enter a loop. |
;; installations where `(regexp-opt-group nil)' would enter a loop. |
691 |
(let ((verb-envs (append LaTeX-verbatim-environments |
(let ((verb-envs (append (and (boundp 'LaTeX-verbatim-environments) |
692 |
LaTeX-verbatim-environments-local)) |
LaTeX-verbatim-environments) |
693 |
(verb-macros-with-delims (append |
(and (boundp 'LaTeX-verbatim-environments-local) |
694 |
LaTeX-verbatim-macros-with-delims |
LaTeX-verbatim-environments-local))) |
695 |
LaTeX-verbatim-macros-with-delims-local)) |
(verb-macros-with-delims |
696 |
(verb-macros-with-braces (append |
(append (and (boundp 'LaTeX-verbatim-macros-with-delims) |
697 |
LaTeX-verbatim-macros-with-braces |
LaTeX-verbatim-macros-with-delims) |
698 |
LaTeX-verbatim-macros-with-braces-local))) |
(and (boundp 'LaTeX-verbatim-macros-with-delims-local) |
699 |
|
LaTeX-verbatim-macros-with-delims-local))) |
700 |
|
(verb-macros-with-braces |
701 |
|
(append (and (boundp 'LaTeX-verbatim-macros-with-braces) |
702 |
|
LaTeX-verbatim-macros-with-braces) |
703 |
|
(and (boundp 'LaTeX-verbatim-macros-with-braces-local) |
704 |
|
LaTeX-verbatim-macros-with-braces-local)))) |
705 |
(setq verb-envs (and verb-envs (regexp-opt verb-envs)) |
(setq verb-envs (and verb-envs (regexp-opt verb-envs)) |
706 |
verb-macros-with-delims (and verb-macros-with-delims |
verb-macros-with-delims (and verb-macros-with-delims |
707 |
(regexp-opt verb-macros-with-delims)) |
(regexp-opt verb-macros-with-delims)) |