branch: externals/auctex
commit adf90e91425908e714131c3907db4ed7cda803d0
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
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 <[email protected]>
+
+ * tex.el (TeX-pdf-tools-sync-view): Simplify function.
+
2015-02-09 Arash Esbati <[email protected]>
* 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