Function: bibtex-autokey-get-field
bibtex-autokey-get-field is a byte-compiled function defined in
bibtex.el.gz.
Signature
(bibtex-autokey-get-field FIELD &optional CHANGE-LIST)
Documentation
Get content of BibTeX field FIELD. Return empty string if not found.
FIELD may also be a list of fields that are tried in order.
Optional arg CHANGE-LIST is a list of substitution patterns that is
applied to the content of FIELD. It is an alist with pairs
(OLD-REGEXP . NEW-STRING).
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-autokey-get-field (field &optional change-list)
"Get content of BibTeX field FIELD. Return empty string if not found.
FIELD may also be a list of fields that are tried in order.
Optional arg CHANGE-LIST is a list of substitution patterns that is
applied to the content of FIELD. It is an alist with pairs
\(OLD-REGEXP . NEW-STRING)."
(let* ((bibtex-expand-strings bibtex-autokey-expand-strings)
(content (bibtex-text-in-field field bibtex-autokey-use-crossref))
case-fold-search)
(unless content (setq content ""))
(dolist (pattern change-list)
(setq content (replace-regexp-in-string (car pattern)
(cdr pattern)
content t)))
content))