Lines Matching +refs:cl +refs:macro +refs:environment
31 (eval-when-compile (require 'cl))
38 "Return the environment or macro which determines the label type at point.
41 (let* ((loc1 (reftex-what-macro reftex-label-mac-list bound))
42 (loc2 (reftex-what-environment reftex-label-env-list bound))
52 ;; A macro. Default context after macro name.
56 ;; An environment. Default context after \begin{name}.
127 (defun reftex-label (&optional environment no-insert)
142 ;; Find out what kind of environment this is and abort if necessary.
143 (if (or (not environment)
144 (not (assoc environment reftex-env-or-mac-alist)))
145 (setq environment (reftex-label-location)))
146 (unless environment
151 (let* ((entry (assoc environment reftex-env-or-mac-alist))
154 (macro-cell (reftex-what-macro 1))
155 (entry1 (assoc (car macro-cell) reftex-env-or-mac-alist))
159 ;; This is an argument of a label macro. Insert naked label.
245 (integerp (cdr macro-cell)))
246 (goto-char (cdr macro-cell)))
338 (let* (macro level-exp level)
342 (setq macro (reftex-match-string 2)
343 level-exp (cdr (assoc macro reftex-section-levels-all))
348 (cdr (or (assoc macro reftex-section-prefixes)
747 ;; Ooops. Must be in a macro with distributed args.
802 "Insert a reference using the `\\vref' macro from the varioref package."
807 "Insert a reference using the `\\fref' macro from the fancyref package."
814 "Insert a reference using the `\\Fref' macro from the fancyref package."