aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorTassilo Horn2015-04-22 09:24:54 +0200
committerTassilo Horn2015-04-22 09:25:54 +0200
commit9b5d3846bb5f6dade16676c0fe9362df956ad634 (patch)
treea9e918974e794b41e48e7087c74b5b73d146a671 /lisp
parentdbd65c779aa648bcc5c6fdc31f0be44cce4ea8ce (diff)
downloademacs-9b5d3846bb5f6dade16676c0fe9362df956ad634.tar.gz
emacs-9b5d3846bb5f6dade16676c0fe9362df956ad634.zip
Fix reftex-citation bug
* reftex-cite.el (reftex-extract-bib-entries): Fix `wrong-type-argument stringp nil' error that occurs when AUCTeX integration is enabled and there are no citations in the document so far.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/reftex-cite.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index fa09efb64a4..b22e8b1dcc0 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -197,7 +197,7 @@ Return list with entries."
197 "[" default "]: ") 197 "[" default "]: ")
198 (if reftex-mode 198 (if reftex-mode
199 (if (fboundp 'LaTeX-bibitem-list) 199 (if (fboundp 'LaTeX-bibitem-list)
200 (LaTeX-bibitem-list) 200 (or (LaTeX-bibitem-list) '(""))
201 (cdr (assoc 'bibview-cache 201 (cdr (assoc 'bibview-cache
202 (symbol-value reftex-docstruct-symbol)))) 202 (symbol-value reftex-docstruct-symbol))))
203 nil) 203 nil)
@@ -228,11 +228,11 @@ Return list with entries."
228 (message "No such BibTeX file %s (ignored)" buffer) 228 (message "No such BibTeX file %s (ignored)" buffer)
229 (message "Scanning bibliography database %s" buffer1) 229 (message "Scanning bibliography database %s" buffer1)
230 (unless (verify-visited-file-modtime buffer1) 230 (unless (verify-visited-file-modtime buffer1)
231 (when (y-or-n-p 231 (when (y-or-n-p
232 (format "File %s changed on disk. Reread from disk? " 232 (format "File %s changed on disk. Reread from disk? "
233 (file-name-nondirectory 233 (file-name-nondirectory
234 (buffer-file-name buffer1)))) 234 (buffer-file-name buffer1))))
235 (with-current-buffer buffer1 (revert-buffer t t))))) 235 (with-current-buffer buffer1 (revert-buffer t t)))))
236 236
237 (set-buffer buffer1) 237 (set-buffer buffer1)
238 (reftex-with-special-syntax-for-bib 238 (reftex-with-special-syntax-for-bib