[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex b7d45e19c6 22/60: Discard obsolet
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex b7d45e19c6 22/60: Discard obsolete hook |
Date: |
Fri, 8 Apr 2022 11:52:49 -0400 (EDT) |
branch: externals/auctex
commit b7d45e19c69da59026129e38289cd195c736bd46
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Discard obsolete hook
* latex.el (LaTeX-maybe-install-toolbar):
* plain-tex.el (plain-TeX-maybe-install-toolbar):
Install only when tool bar is active.
* latex.el (TeX-latex-mode):
* plain-tex.el (TeX-plain-tex-mode):
Use `tool-bar-mode-hook' instead of `tool-bar-mode-on-hook' since the
latter is backward compatibility only variable, according to a comment
in `define-minor-mode'.
Call `LaTeX-maybe-install-toolbar' or
`plain-TeX-maybe-install-toolbar' unconditionally since mode check is
done in the respective functions now.
---
latex.el | 10 +++++-----
plain-tex.el | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/latex.el b/latex.el
index f8dd1551dd..56a7a30086 100644
--- a/latex.el
+++ b/latex.el
@@ -6464,8 +6464,9 @@ If prefix argument FORCE is non-nil, always insert a
regular hyphen."
(defun LaTeX-maybe-install-toolbar ()
"Conditionally install tool bar buttons for LaTeX mode.
-Install tool bar if `LaTeX-enable-toolbar' is non-nil."
- (when LaTeX-enable-toolbar
+Install tool bar if `LaTeX-enable-toolbar' and `tool-bar-mode' is
+non-nil."
+ (when (and LaTeX-enable-toolbar tool-bar-mode)
;; Defined in `tex-bar.el':
(LaTeX-install-toolbar)))
@@ -6949,9 +6950,8 @@ of `LaTeX-mode-hook'."
(setq major-mode 'latex-mode)
(setq TeX-command-default "LaTeX")
(setq TeX-sentinel-default-function #'TeX-LaTeX-sentinel)
- (add-hook 'tool-bar-mode-on-hook #'LaTeX-maybe-install-toolbar nil t)
- (when (and (boundp 'tool-bar-mode) tool-bar-mode)
- (LaTeX-maybe-install-toolbar))
+ (add-hook 'tool-bar-mode-hook #'LaTeX-maybe-install-toolbar nil t)
+ (LaTeX-maybe-install-toolbar)
;; Set the value of `LaTeX-using-Biber' based on the local value of
;; `LaTeX-biblatex-use-Biber'. This should be run within
;; `TeX-update-style-hook' before toolbarx-refresh, otherwise the
bibliography
diff --git a/plain-tex.el b/plain-tex.el
index 0d43fdba66..7feb14d6ac 100644
--- a/plain-tex.el
+++ b/plain-tex.el
@@ -40,8 +40,9 @@
(defun plain-TeX-maybe-install-toolbar ()
"Conditionally install tool bar buttons for plain TeX mode.
-Install tool bar if `plain-TeX-enable-toolbar' is non-nil."
- (when plain-TeX-enable-toolbar
+Install tool bar if `plain-TeX-enable-toolbar' and
+`tool-bar-mode' is non-nil."
+ (when (and plain-TeX-enable-toolbar tool-bar-mode)
;; Defined in `tex-bar.el':
(TeX-install-toolbar)))
@@ -133,9 +134,8 @@ of `plain-TeX-mode-hook'."
(setq TeX-base-mode-name "TeX")
(setq TeX-command-default "TeX")
(setq TeX-sentinel-default-function #'TeX-TeX-sentinel)
- (add-hook 'tool-bar-mode-on-hook #'plain-TeX-maybe-install-toolbar nil t)
- (when (and (boundp 'tool-bar-mode) tool-bar-mode)
- (plain-TeX-maybe-install-toolbar))
+ (add-hook 'tool-bar-mode-hook #'plain-TeX-maybe-install-toolbar nil t)
+ (plain-TeX-maybe-install-toolbar)
(run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'plain-TeX-mode-hook)
(TeX-set-mode-name))
- [AUCTeX-diffs] [elpa] externals/auctex fce8b94ca8 41/60: Update documentation with respect to indent, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex fce8b94ca8 41/60: Update documentation with respect to indent, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 8938787491 37/60: ; * style/algpseudocode.el ("algpseudocode"): Fix "While"., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex eb4e331bd6 51/60: Add news for new indent feature, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex a2724f3677 15/60: Don't set syntax-propertize-function in defaults, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e83ca6a072 57/60: Update style/doc.el to package version 3.0h, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex f9356664c8 23/60: Update documentation, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 78cf12b33c 18/60: ; * doc/auctex.texi: Adjust the year in @copying., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex c731038844 11/60: Improve regexp matching new environments, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 259ffc34c4 12/60: Use DEFAULT argument of `TeX-read-string' in styles, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 0ce906cfc7 32/60: Improve indentation of conditionals, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex b7d45e19c6 22/60: Discard obsolete hook,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 2b11084455 30/60: ; * style/l3doc.el (LaTeX-env-l3doc-function): Delete unused var., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 238dad67f9 04/60: Introduce DEFAULT argument in `TeX-arg-length', Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 7b0cbbb465 38/60: Document feature of []-induced indent, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 4b1c7015ae 45/60: Move contents of tex-buf.el into tex.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e032df90e7 05/60: Fix simultaneity, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex a078fda16b 06/60: ; * doc/auctex.texi (Starting a Command): Delete obosolete comment., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex b1a0d5df74 36/60: ; * style/algpseudocode.el: Fix position of TeX-dialect., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 1bc2630275 20/60: Don't change syntax of ^^A comments in doctex mode (bug#35140), Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex fa8842c626 26/60: Recognize macrocode*? environments in doctex-mode, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 45aff50ff3 48/60: Support \mathcolor in style/x?color.el, Tassilo Horn, 2022/04/08