Function: reftex-add-label-environments

reftex-add-label-environments is an autoloaded and byte-compiled function defined in reftex-auc.el.gz.

Signature

(reftex-add-label-environments ENTRY-LIST)

Documentation

Add label environment descriptions to reftex-label-alist-style.

The format of ENTRY-LIST is exactly like reftex-label-alist. See there for details. This function makes it possible to support RefTeX from AUCTeX style files. The entries in ENTRY-LIST will be processed after the user settings in reftex-label-alist, and before the defaults (specified in reftex-default-label-alist-entries). Any changes made to reftex-label-alist-style will raise a flag to the effect that the label information is recompiled on next use.

Aliases

reftex-add-to-label-alist

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-auc.el.gz
;;;###autoload
(defun reftex-add-label-environments (entry-list)
  "Add label environment descriptions to `reftex-label-alist-style'.
The format of ENTRY-LIST is exactly like `reftex-label-alist'.  See there
for details.
This function makes it possible to support RefTeX from AUCTeX style files.
The entries in ENTRY-LIST will be processed after the user settings in
`reftex-label-alist', and before the defaults (specified in
`reftex-default-label-alist-entries').  Any changes made to
`reftex-label-alist-style' will raise a flag to the effect that
the label information is recompiled on next use."
  (unless reftex-docstruct-symbol
    (reftex-tie-multifile-symbols))
  (when (and reftex-docstruct-symbol
             (symbolp reftex-docstruct-symbol))
    (let ((list (get reftex-docstruct-symbol 'reftex-label-alist-style))
          entry changed)
      (while entry-list
        (setq entry (pop entry-list))
        (unless (member entry list)
          (setq reftex-tables-dirty t
                changed t)
          (push entry list)))
      (when changed
        (put reftex-docstruct-symbol 'reftex-label-alist-style list)))))