Function: LaTeX-completion-find-argument-boundaries

LaTeX-completion-find-argument-boundaries is a byte-compiled function defined in latex.el.

Signature

(LaTeX-completion-find-argument-boundaries &rest ARGS)

Documentation

Find the boundaries of the current LaTeX argument.

ARGS are characters passed to the function TeX-search-syntax-table(var)/TeX-search-syntax-table(fun). If ARGS are omitted, all characters defined in the variable LaTeX-completion-macro-delimiters(var)/LaTeX-completion-macro-delimiters(fun) are taken.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-completion-find-argument-boundaries (&rest args)
  "Find the boundaries of the current LaTeX argument.
ARGS are characters passed to the function
`TeX-search-syntax-table'.  If ARGS are omitted, all characters
defined in the variable `LaTeX-completion-macro-delimiters' are
taken."
  (save-restriction
    (narrow-to-region (line-beginning-position -40)
                      (line-beginning-position  40))
    (let ((args (or args (LaTeX-completion-macro-delimiters)))
          (parse-sexp-ignore-comments (not (eq major-mode 'docTeX-mode))))
      (condition-case nil
          (with-syntax-table (apply #'TeX-search-syntax-table args)
            (scan-lists (point) 1 1))
        (error nil)))))