Function: reftex-add-index-macros
reftex-add-index-macros is a byte-compiled function defined in
reftex.el.gz.
Signature
(reftex-add-index-macros ENTRY-LIST)
Documentation
Add index macro descriptions to reftex-index-macros-style.
The format of ENTRY-LIST is exactly like reftex-index-macros. 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-index-entries, and before the defaults. Any changes made to
reftex-index-macros-style will raise a flag to the effect that
the label information is recompiled on next use.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-add-index-macros (entry-list)
"Add index macro descriptions to `reftex-index-macros-style'.
The format of ENTRY-LIST is exactly like `reftex-index-macros'. 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-index-entries', and before the defaults. Any changes made to
`reftex-index-macros-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-index-macros-style))
entry changed)
(while entry-list
(setq entry (pop entry-list))
;; When it is a symbol, remove all other symbols
(and (symbolp entry)
(not (memq entry list))
(setq list (reftex-remove-symbols-from-list list)))
;; Add to list unless already member
(unless (member entry list)
(setq reftex-tables-dirty t
changed t)
(push entry list)))
(when changed
(put reftex-docstruct-symbol 'reftex-index-macros-style list)))))