branch: externals/auctex
commit d4b0d5fdcd83f85a850293e203d9b1a70b146016
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
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))))
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel