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


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. e88f11f47a27b1a17da97af91c9c554f7d60ae7c
Date: Mon, 10 Aug 2015 06:35:06 +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  e88f11f47a27b1a17da97af91c9c554f7d60ae7c (commit)
      from  5b0b2154fc5b2fb2e52fb89e3f43a3a89087b14c (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 e88f11f47a27b1a17da97af91c9c554f7d60ae7c
Author: Tassilo Horn <address@hidden>
Date:   Mon Aug 10 08:34:24 2015 +0200

    Fix error when preview isn't loaded (intentionally)
    
    * latex.el (TeX-latex-mode): Call LaTeX-preview-setup only if its
    bound.

diff --git a/ChangeLog b/ChangeLog
index 04b7dd3..5ccb448 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-08-10  Tassilo Horn  <address@hidden>
 
+       * latex.el (TeX-latex-mode): Call LaTeX-preview-setup only if its
+       bound.
+
        * preview.el.in (LaTeX-preview-setup): Setup menu and keymap only
        once.
 
diff --git a/latex.el b/latex.el
index fee3f8b..5a0200a 100644
--- a/latex.el
+++ b/latex.el
@@ -5776,7 +5776,8 @@ of `LaTeX-mode-hook'."
              (if (local-variable-p 'LaTeX-biblatex-use-Biber (current-buffer))
                  (setq LaTeX-using-Biber LaTeX-biblatex-use-Biber))) nil t)
   (TeX-run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook)
-  (LaTeX-preview-setup)
+  (when (fboundp 'LaTeX-preview-setup)
+    (LaTeX-preview-setup))
   (TeX-set-mode-name)
   ;; Defeat filladapt
   (if (and (boundp 'filladapt-mode)

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

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


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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