comparison lisp/textmodes/bibtex.el @ 67897:823f54b91fe2

(bibtex-text-in-field-bounds): Handle case that assoc-string returns nil.
author Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
date Thu, 29 Dec 2005 17:10:53 +0000
parents d742983a2136
children 679e4542aaa9
comparison
equal deleted inserted replaced
67896:059f4eadf087 67897:823f54b91fe2
1413 (let ((epoint (bibtex-end-of-text-in-field bounds)) 1413 (let ((epoint (bibtex-end-of-text-in-field bounds))
1414 content opoint) 1414 content opoint)
1415 (while (< (setq opoint (point)) epoint) 1415 (while (< (setq opoint (point)) epoint)
1416 (if (looking-at bibtex-field-const) 1416 (if (looking-at bibtex-field-const)
1417 (let ((mtch (match-string-no-properties 0))) 1417 (let ((mtch (match-string-no-properties 0)))
1418 (push (if bibtex-expand-strings 1418 (push (or (if bibtex-expand-strings
1419 (cdr (assoc-string mtch (bibtex-strings) t)) 1419 (cdr (assoc-string mtch (bibtex-strings) t)))
1420 mtch) content) 1420 mtch) content)
1421 (goto-char (match-end 0))) 1421 (goto-char (match-end 0)))
1422 (let ((bounds (bibtex-parse-field-string))) 1422 (let ((bounds (bibtex-parse-field-string)))
1423 (push (buffer-substring-no-properties 1423 (push (buffer-substring-no-properties
1424 (1+ (car bounds)) (1- (cdr bounds))) content) 1424 (1+ (car bounds)) (1- (cdr bounds))) content)
1425 (goto-char (cdr bounds)))) 1425 (goto-char (cdr bounds))))