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. b2957c8b141f431b5a035


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. b2957c8b141f431b5a035ab174f80f91503c8233
Date: Fri, 13 Feb 2015 08:44:12 +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  b2957c8b141f431b5a035ab174f80f91503c8233 (commit)
      from  b858aae89c9b810b6f62627620056b806c07f065 (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 b2957c8b141f431b5a035ab174f80f91503c8233
Author: Tassilo Horn <address@hidden>
Date:   Fri Feb 13 09:43:35 2015 +0100

    Fix bug in pdf-tools support
    
    * tex.el (TeX-pdf-tools-sync-view, TeX-PDF-mode): Move addition of
    `TeX-source-correlate-handle-TeX-region' to
    `pdf-sync-backward-redirect-functions' from `TeX-PDF-mode' to
    `TeX-pdf-tools-sync-view'.

diff --git a/ChangeLog b/ChangeLog
index 6b88e3a..1a4d561 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-13  Tassilo Horn  <address@hidden>
+
+       * tex.el (TeX-pdf-tools-sync-view, TeX-PDF-mode): Move addition of
+       `TeX-source-correlate-handle-TeX-region' to
+       `pdf-sync-backward-redirect-functions' from `TeX-PDF-mode' to
+       `TeX-pdf-tools-sync-view'.
+
 2015-02-09  Tassilo Horn  <address@hidden>
 
        * tex.el (TeX-pdf-tools-sync-view): Make it work with
diff --git a/tex.el b/tex.el
index 05d1b4d..5c81994 100644
--- a/tex.el
+++ b/tex.el
@@ -1105,6 +1105,8 @@ entry in `TeX-view-program-list-builtin'."
     (error "PDF Tools are not installed"))
   (unless TeX-PDF-mode
     (error "PDF Tools only work with PDF output"))
+  (add-hook 'pdf-sync-backward-redirect-functions
+           #'TeX-source-correlate-handle-TeX-region)
   (if (and TeX-source-correlate-mode
           (fboundp 'pdf-sync-forward-search))
       (with-current-buffer (or (find-buffer-visiting
@@ -1863,9 +1865,6 @@ function `TeX-global-PDF-mode' for toggling this value."
     (setq TeX-PDF-mode nil))
   (setq TeX-PDF-mode-parsed nil)
   (TeX-set-mode-name nil nil t)
-  (when TeX-PDF-mode
-    (add-hook 'pdf-sync-backward-redirect-functions
-             #'TeX-source-correlate-handle-TeX-region))
   (setq TeX-output-extension
        (if TeX-PDF-mode "pdf" "dvi")))
 (add-to-list 'minor-mode-alist '(TeX-PDF-mode ""))

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

Summary of changes:
 ChangeLog |    7 +++++++
 tex.el    |    5 ++---
 2 files changed, 9 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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