Function: LaTeX-move-to-previous-arg

LaTeX-move-to-previous-arg is a byte-compiled function defined in latex.el.

Signature

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

Documentation

Move backward to the closing parenthesis of the previous argument.

Closing parenthesis is in this context all characters which can be used to delimit an argument. Currently, these are the following characters:

  } ] ) >

This happens under the assumption that we are in front of a macro argument. This function understands the splitting of macros over several lines in TeX.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-move-to-previous-arg (&optional bound)
  "Move backward to the closing parenthesis of the previous argument.
Closing parenthesis is in this context all characters which can
be used to delimit an argument.  Currently, these are the
following characters:

  } ] ) >

This happens under the assumption that we are in front of a macro
argument.  This function understands the splitting of macros over
several lines in TeX."
  (cond
   ;; Just to be quick:
   ((memql (preceding-char) (LaTeX-completion-macro-delimiters 'close)))
   ;; Do a search:
   ((re-search-backward
     "[]})>][ \t]*[\n\r]?\\([ \t]*%[^\n\r]*[\n\r]\\)*[ \t]*\\=" bound t)
    (goto-char (1+ (match-beginning 0)))
    t)
   (t nil)))