Function: bibtex-search-forward-string

bibtex-search-forward-string is a byte-compiled function defined in bibtex.el.gz.

Signature

(bibtex-search-forward-string &optional EMPTY-KEY)

Documentation

Search forward to find a BibTeX string entry.

If a syntactically correct entry is found, a pair containing the boundaries of the reference key and text parts of the string is returned. If EMPTY-KEY is non-nil, key may be empty. Do not move point.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-search-forward-string (&optional empty-key)
  "Search forward to find a BibTeX string entry.
If a syntactically correct entry is found, a pair containing the boundaries of
the reference key and text parts of the string is returned.
If EMPTY-KEY is non-nil, key may be empty.  Do not move point."
  (save-excursion
    (save-match-data
      (let ((case-fold-search t) bounds)
        (while (and (not bounds)
                    (search-forward-regexp bibtex-string-type nil t))
          (save-excursion (goto-char (match-beginning 0))
                          (setq bounds (bibtex-parse-string empty-key))))
        bounds))))