auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] [elpa] externals/auctex d4b0d5f 67/69: Fix forward sync b


From: Tassilo Horn
Subject: [AUCTeX-devel] [elpa] externals/auctex d4b0d5f 67/69: Fix forward sync bug with multi-file documents
Date: Sat, 26 Mar 2016 21:36:38 +0000

branch: externals/auctex
commit d4b0d5fdcd83f85a850293e203d9b1a70b146016
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Fix forward sync bug with multi-file documents
    
    * tex.el (TeX-pdf-tools-sync-view): Use the current file for the
    sync-view call, not always the master file (bug#23083).
---
 tex.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tex.el b/tex.el
index e22898f..588848a 100644
--- a/tex.el
+++ b/tex.el
@@ -1268,8 +1268,8 @@ entry in `TeX-view-program-list-builtin'."
            #'TeX-source-correlate-handle-TeX-region)
   (if (and TeX-source-correlate-mode
           (fboundp 'pdf-sync-forward-search))
-      (with-current-buffer (or (find-buffer-visiting
-                               (concat file "." TeX-default-extension))
+      (with-current-buffer (or (when TeX-current-process-region-p
+                                (get-file-buffer (TeX-region-file t)))
                               (current-buffer))
        (pdf-sync-forward-search))
     (let ((pdf (concat file "." (TeX-output-extension))))



reply via email to

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