Function: LaTeX-paragraph-commands-add-locally
LaTeX-paragraph-commands-add-locally is a byte-compiled function
defined in latex.el.
Signature
(LaTeX-paragraph-commands-add-locally COMMANDS)
Documentation
Make COMMANDS be recognized as paragraph commands.
COMMANDS can be a single string or a list of strings which will
be added to LaTeX-paragraph-commands-internal. Additionally
LaTeX-paragraph-commands-regexp will be updated and both
variables will be made buffer-local. This is mainly a
convenience function which can be used in style files.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-paragraph-commands-add-locally (commands)
"Make COMMANDS be recognized as paragraph commands.
COMMANDS can be a single string or a list of strings which will
be added to `LaTeX-paragraph-commands-internal'. Additionally
`LaTeX-paragraph-commands-regexp' will be updated and both
variables will be made buffer-local. This is mainly a
convenience function which can be used in style files."
(make-local-variable 'LaTeX-paragraph-commands-internal)
(make-local-variable 'LaTeX-paragraph-commands-regexp)
(unless (listp commands) (setq commands (list commands)))
(dolist (elt commands)
(add-to-list 'LaTeX-paragraph-commands-internal elt))
(setq LaTeX-paragraph-commands-regexp (LaTeX-paragraph-commands-regexp-make))
(LaTeX-set-paragraph-start))