Function: reftex-move-to-previous-arg

reftex-move-to-previous-arg is a byte-compiled function defined in reftex-parse.el.gz.

Signature

(reftex-move-to-previous-arg &optional BOUND)

Documentation

Assuming that we are in front of a macro argument, move backward to the closing parenthesis of the previous argument. This function understands the splitting of macros over several lines in TeX.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-parse.el.gz
(defsubst reftex-move-to-previous-arg (&optional bound)
  "Assuming that we are in front of a macro argument,
move backward to the closing parenthesis of the previous argument.
This function understands the splitting of macros over several lines
in TeX."
  (cond
   ;; Just to be quick:
   ((memq (preceding-char) '(?\] ?\})))
   ;; Do a search
   ((and reftex-allow-detached-macro-args
         (re-search-backward
          "[]}][ \t]*[\n\r]?\\([ \t]*%[^\n\r]*[\n\r]\\)*[ \t]*\\=" bound t))
    (goto-char (1+ (match-beginning 0)))
    t)
   (t nil)))