auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 1c397d50161c6f6ce4587


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 1c397d50161c6f6ce45879e9a94b4c773acfc502
Date: Tue, 19 Apr 2016 22:44:51 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  1c397d50161c6f6ce45879e9a94b4c773acfc502 (commit)
      from  56c1afdb4f18fade14341917c699cb54c9a4f107 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1c397d50161c6f6ce45879e9a94b4c773acfc502
Author: Mosè Giordano <address@hidden>
Date:   Wed Apr 20 00:37:45 2016 +0200

    Fix TeX-error-overview-make-entries
    
    * tex-buf.el (TeX-error-overview-make-entries): Add `active-buffer'
      optional argument.  If `TeX-error-overview-open-after-TeX-run' is
      non-nil and there is an error, TeX sentinels run this function but
      `TeX-error-overview-active-buffer' hadn’t been initialized yet.  Fixes
      bug#23318.

diff --git a/tex-buf.el b/tex-buf.el
index f3a83d2..92d3dea 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1367,7 +1367,7 @@ errors or warnings to show."
            (TeX-parse-all-errors))
        (if (and TeX-error-overview-open-after-TeX-run
                 (TeX-error-overview-make-entries
-                 (TeX-master-directory)))
+                 (TeX-master-directory) (TeX-active-buffer)))
            (TeX-error-overview)))
     (message (concat name ": formatted " (TeX-current-pages)))
     (let (dvi2pdf)
@@ -1474,7 +1474,7 @@ errors or warnings to show."
       (TeX-parse-all-errors))
   (if (and TeX-error-overview-open-after-TeX-run
           (TeX-error-overview-make-entries
-           (TeX-master-directory)))
+           (TeX-master-directory) (TeX-active-buffer)))
       (TeX-error-overview))
   (cond ((TeX-TeX-sentinel-check process name))
        ((and (save-excursion
@@ -3373,10 +3373,13 @@ please restart TeX error overview")))
       (message "No more errors.")
       (beep))))
 
-(defun TeX-error-overview-make-entries (&optional master-dir)
+(defun TeX-error-overview-make-entries (&optional master-dir active-buffer)
   "Generate the list of errors to be printed using `tabulated-list-entries'.
-Write file names relative to MASTER-DIR when they are not absolute."
-  (with-current-buffer TeX-error-overview-active-buffer
+Write file names relative to MASTER-DIR when they are not absolute.
+
+ACTIVE-BUFFER is used as buffer from which to extract the list of
+errors.  If nil, defaults to `TeX-error-overview-active-buffer'."
+  (with-current-buffer (or active-buffer TeX-error-overview-active-buffer)
     (let ((id 0)
          type file line msg entries)
       (mapc

-----------------------------------------------------------------------

Summary of changes:
 tex-buf.el |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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