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

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

[elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view


From: Tassilo Horn
Subject: [elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view
Date: Sun, 22 Mar 2015 09:26:58 +0000

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

    Simplify TeX-pdf-tools-sync-view
    
    * tex.el (TeX-pdf-tools-sync-view): Simplify function.
---
 ChangeLog |    4 ++++
 tex.el    |    5 +----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f7c5846..f5f9afa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-09  Tassilo Horn  <address@hidden>
+
+       * tex.el (TeX-pdf-tools-sync-view): Simplify function.
+
 2015-02-09  Arash Esbati  <address@hidden>
 
        * Makefile.in (STYLESRC): Add new style.
diff --git a/tex.el b/tex.el
index a038ccf..44ddb9f 100644
--- a/tex.el
+++ b/tex.el
@@ -1102,10 +1102,7 @@ default for the PDF Tools viewer entry in
 `TeX-view-program-list-builtin'."
   (unless (featurep 'pdf-tools)
     (error "PDF Tools are not installed!"))
-  (let* ((doc (concat (if TeX-current-process-region-p
-                         (TeX-region-file)
-                       file)
-                     "." (TeX-output-extension)))
+  (let* ((doc (concat file "." (TeX-output-extension)))
         (buf (or (find-buffer-visiting doc)
                  (find-file-noselect doc))))
     (if (and TeX-source-correlate-mode



reply via email to

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