Function: reftex-add-section-levels

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

Signature

(reftex-add-section-levels ENTRY-LIST)

Documentation

Add entries to the value of reftex-section-levels.

The added values are kept local to the current document. The format of ENTRY-LIST is a list of cons cells ("MACRONAME" . LEVEL). See reftex-section-levels for an example.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-auc.el.gz
;;;###autoload
(defun reftex-add-section-levels (entry-list)
  "Add entries to the value of `reftex-section-levels'.
The added values are kept local to the current document.  The format
of ENTRY-LIST is a list of cons cells (\"MACRONAME\" . LEVEL).  See
`reftex-section-levels' for an example."
  (unless reftex-docstruct-symbol
    (reftex-tie-multifile-symbols))
  (when (and reftex-docstruct-symbol
             (symbolp reftex-docstruct-symbol))
    (let ((list (get reftex-docstruct-symbol 'reftex-section-levels))
          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-section-levels list)))))