Function: bibtex-parse-string-prefix
bibtex-parse-string-prefix is a byte-compiled function defined in
bibtex.el.gz.
Signature
(bibtex-parse-string-prefix)
Documentation
Parse the prefix part of a BibTeX string entry, including reference key.
If the string prefix is found, return a triple consisting of the position of
the very first character of the match, the actual starting position of the
reference key and the end position of the match.
If bibtex-string-empty-key is non-nil accept empty string key.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-parse-string-prefix ()
"Parse the prefix part of a BibTeX string entry, including reference key.
If the string prefix is found, return a triple consisting of the position of
the very first character of the match, the actual starting position of the
reference key and the end position of the match.
If `bibtex-string-empty-key' is non-nil accept empty string key."
(let ((case-fold-search t))
(if (looking-at bibtex-string-type)
(let ((start (point)))
(goto-char (match-end 0))
(cond ((looking-at bibtex-reference-key)
(goto-char (match-end 0))
(list start
(match-beginning 0)
(match-end 0)))
((and bibtex-string-empty-key
(looking-at "="))
(skip-chars-backward " \t\n")
(list start (point) (point))))))))