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

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

[elpa] 271/299: Keep error overview window if View command is run.


From: Stefan Monnier
Subject: [elpa] 271/299: Keep error overview window if View command is run.
Date: Sun, 02 Nov 2014 03:11:55 +0000

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

commit 4c8d64c0b9e62df7889530caef5019e200de8de8
Author: Mosè Giordano <address@hidden>
Date:   Mon Aug 11 19:35:41 2014 +0200

    Keep error overview window if View command is run.
    
    * tex-buf.el (TeX-command): Keep the frame and the buffer
    associate to the error overview if the command to be run is View.
---
 ChangeLog  |    3 +++
 tex-buf.el |   11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index dbd0e53..806e013 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-08-11  Mos� Giordano  <address@hidden>
 
+       * tex-buf.el (TeX-command): Keep the frame and the buffer
+       associate to the error overview if the command to be run is View.
+
        * latex.el (LaTeX-auto-insert-label): New customizable variable.
        (LaTeX-label): Use it.
 
diff --git a/tex-buf.el b/tex-buf.el
index 722afed..ea62e11 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -362,11 +362,12 @@ asked if it is positive, and suppressed if it is not."
                                    nil nil)))
 
     ;; Kill the frame and buffer associated to the error overview before 
running
-    ;; the command.
-    (if (frame-live-p TeX-error-overview-frame)
-       (delete-frame TeX-error-overview-frame))
-    (if (get-buffer TeX-error-overview-buffer-name)
-       (kill-buffer TeX-error-overview-buffer-name))
+    ;; the command, but keep them if the command to be run is View.
+    (unless (string= name "View")
+      (if (frame-live-p TeX-error-overview-frame)
+                  (delete-frame TeX-error-overview-frame))
+     (if (get-buffer TeX-error-overview-buffer-name)
+        (kill-buffer TeX-error-overview-buffer-name)))
 
     ;; Now start the process
     (setq file (funcall file))



reply via email to

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