emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 170/299: * tex-buf.el (TeX-check-files): Handle buffers that have


From: Stefan Monnier
Subject: [elpa] 170/299: * tex-buf.el (TeX-check-files): Handle buffers that haven't been saved yet.
Date: Sun, 02 Nov 2014 03:11:12 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 927b05897e8528feb51e131ef4373847c3965392
Author: Tassilo Horn <address@hidden>
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  <address@hidden>
+
+       * tex-buf.el (TeX-check-files): Handle buffers that haven't been
+       saved yet.
+
 2013-09-02  Tassilo Horn  <address@hidden>
 
        * 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]