Function: texmathp-compile

texmathp-compile is an interactive and byte-compiled function defined in texmathp.el.

Signature

(texmathp-compile)

Documentation

Compile the value of texmathp-tex-commands into the internal lists.

Call this when you have changed the value of that variable without using customize (customize calls it when setting the variable).

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/texmathp.el
(defun texmathp-compile ()
  "Compile the value of `texmathp-tex-commands' into the internal lists.
Call this when you have changed the value of that variable without using
customize (customize calls it when setting the variable)."
  (interactive)
  ;; Extract lists and regexp.
  (setq texmathp-macros nil texmathp-environments nil)
  (setq texmathp-memory
        (cons texmathp-tex-commands texmathp-tex-commands-default))
  (setq texmathp-tex-commands1 (append texmathp-tex-commands
                                       texmathp-tex-commands-default))
  (let ((list (reverse texmathp-tex-commands1))
        entry type switches togglers)
    (while (setq entry (car list))
      (setq type (nth 1 entry)
            list (cdr list))
      (cond ((memq type '(env-on env-off)) (push (car entry) texmathp-environments))
            ((memq type '(arg-on arg-off)) (push (car entry) texmathp-macros))
            ((memq type '(sw-on sw-off))   (push (car entry) switches))
            ((memq type '(sw-toggle))      (push (car entry) togglers))))
    (setq texmathp-onoff-regexp
          (concat "\\(?:[^\\]\\|\\`\\)"
                  (regexp-opt switches t))
          texmathp-toggle-regexp
          (concat "\\([^\\$]\\|\\`\\)"
                  (regexp-opt togglers t)))))