]> code.delx.au - gnu-emacs/commitdiff
(bibtex-text-in-field-bounds): Handle case that assoc-string returns
authorRoland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Thu, 29 Dec 2005 17:10:53 +0000 (17:10 +0000)
committerRoland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Thu, 29 Dec 2005 17:10:53 +0000 (17:10 +0000)
nil.

lisp/textmodes/bibtex.el

index a98fc2ddee1180b9a128befd1851e9553a7a83ea..fd84d749b866372280a2ca8e8b6925d2fe383716 100644 (file)
@@ -1415,9 +1415,9 @@ If `bibtex-expand-strings' is non-nil, also expand BibTeX strings."
           (while (< (setq opoint (point)) epoint)
             (if (looking-at bibtex-field-const)
                 (let ((mtch (match-string-no-properties 0)))
-                  (push (if bibtex-expand-strings
-                            (cdr (assoc-string mtch (bibtex-strings) t))
-                          mtch) content)
+                  (push (or (if bibtex-expand-strings
+                                (cdr (assoc-string mtch (bibtex-strings) t)))
+                            mtch) content)
                   (goto-char (match-end 0)))
               (let ((bounds (bibtex-parse-field-string)))
                 (push (buffer-substring-no-properties