[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 2388815 07/35: Change test for PDF Tools availability
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 2388815 07/35: Change test for PDF Tools availability |
Date: |
Thu, 1 Sep 2016 15:57:48 +0000 (UTC) |
branch: elpa
commit 23888157e7152c2b18b5c5b516a8636ae2a97f9b
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Change test for PDF Tools availability
* tex.el (TeX-pdf-tools-sync-view): Change test for PDF Tools
availability, in order to make it possible to postpone loading of the
package, for example when using "use-package". Fixes bug#23803.
---
tex.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index 9424d3f..6c302bb 100644
--- a/tex.el
+++ b/tex.el
@@ -1262,8 +1262,11 @@ DE is the name of the desktop environment, either
\"gnome\" or
If `TeX-source-correlate-mode' is disabled, only find and pop to
the output PDF file. Used by default for the PDF Tools viewer
entry in `TeX-view-program-list-builtin'."
- (unless (featurep 'pdf-tools)
- (error "PDF Tools are not installed"))
+ ;; Make sure `pdf-tools' is at least in the `load-path', but the user must
+ ;; take care of properly loading and installing the package. We used to test
+ ;; "(featurep 'pdf-tools)", but that doesn't play well with deferred loading.
+ (unless (fboundp 'pdf-tools-install)
+ (error "PDF Tools are not available"))
(unless TeX-PDF-mode
(error "PDF Tools only work with PDF output"))
(add-hook 'pdf-sync-backward-redirect-functions
- [elpa] elpa updated (8eca45c -> a474cb4), Tassilo Horn, 2016/09/01
- [elpa] elpa 2388815 07/35: Change test for PDF Tools availability,
Tassilo Horn <=
- [elpa] elpa 7d5c9ba 20/35: ; Add missing macro \DeclareRightDelimiter, Tassilo Horn, 2016/09/01
- [elpa] elpa 5232279 21/35: Remove obsolete TeX-function-p function, Tassilo Horn, 2016/09/01
- [elpa] elpa e4b2e6a 24/35: Make TeX-previous-error go backward, Tassilo Horn, 2016/09/01
- [elpa] elpa fad3600 17/35: Add new style/pdflscape.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 98a83e9 08/35: Fix to doc/auctex.texi, Tassilo Horn, 2016/09/01
- [elpa] elpa f375c1f 22/35: Fold environments with * in name, Tassilo Horn, 2016/09/01
- [elpa] elpa 9e3230f 28/35: Use `TeX-ispell-skip-setcdr' on user defined list environments, Tassilo Horn, 2016/09/01
- [elpa] elpa e45c6d9 18/35: Add new style/commath.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 29d4cb4 05/35: Document TeX-raise-frame-function, Tassilo Horn, 2016/09/01
- [elpa] elpa 25bdcb2 31/35: Add new style/framed.el, Tassilo Horn, 2016/09/01