* Michael Hoffman (2008-03-06) writes:
Is there a simple way to automatically revert the .bib files for a TeX
buffer when the .bib file is changed by an external program?
I don't think so. Does the following patch to what you want?
--- reftex-cite.el.~1.47.~ 2008-01-06 14:28:05.000000000 +0100
+++ reftex-cite.el 2008-03-06 22:27:34.000000000 +0100
@@ -231,7 +231,13 @@
buffer (not reftex-keep-temporary-buffers))))
(if (not buffer1)
(message "No such BibTeX file %s (ignored)" buffer)
- (message "Scanning bibliography database %s" buffer1))
+ (message "Scanning bibliography database %s" buffer1)
+ (unless (verify-visited-file-modtime buffer1)
+ (when (y-or-n-p
+ (format "File %s changed on disk. Reread from disk? "
+ (file-name-nondirectory
+ (buffer-file-name buffer1))))
+ (with-current-buffer buffer1 (revert-buffer t t)))))
(set-buffer buffer1)
(reftex-with-special-syntax-for-bib