monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 927b05897e8528feb51e131ef4373847c3965392
Author: Tassilo Horn <[email protected]>
Date: Mon Sep 9 16:51:27 2013 +0200
* tex-buf.el (TeX-check-files): Handle buffers that haven't been
saved yet.
---
ChangeLog | 5 +++++
tex-buf.el | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ac3c37f..9c3055b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-09 Tassilo Horn <[email protected]>
+
+ * tex-buf.el (TeX-check-files): Handle buffers that haven't been
+ saved yet.
+
2013-09-02 Tassilo Horn <[email protected]>
* tex.el (TeX-electric-math): Fix defcustom choices.
diff --git a/tex-buf.el b/tex-buf.el
index e277d77..2b16c39 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -380,7 +380,8 @@ ORIGINALS which are modified but not saved yet."
(dolist (orig originals)
(dolist (ext extensions)
(let ((filepath (concat path orig "." ext)))
- (if (file-exists-p filepath)
+ (if (or (file-exists-p filepath)
+ (get-file-buffer filepath))
(setq existingoriginals (cons filepath existingoriginals)))))))
(while buffers
(let* ((buffer (car buffers))