[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f999caa1a0 5/8: Fix TeX-complete-make-expert-com
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f999caa1a0 5/8: Fix TeX-complete-make-expert-command-functions |
Date: |
Tue, 28 Dec 2021 04:06:02 -0500 (EST) |
branch: externals/auctex
commit f999caa1a01ede97195d2367ed25ab02483dfb82
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix TeX-complete-make-expert-command-functions
* tex.el (TeX-complete-make-expert-command-functions): Use dynamically
generated, dedicated variable to register expert entities.
---
tex.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tex.el b/tex.el
index e686894811..3cf8f65ec2 100644
--- a/tex.el
+++ b/tex.el
@@ -3133,9 +3133,10 @@ Possible values are nil, t, or a list of style names.
(defmacro TeX-complete-make-expert-command-functions (thing list-var prefix)
(let* ((plural (concat thing "s"))
- (upcase-plural (upcase plural)))
+ (upcase-plural (upcase plural))
+ (table-var (intern (format "%s-expert-%s-table" prefix thing))))
`(progn
- (defvar ,(intern (format "%s-expert-%s-table" prefix thing))
+ (defvar ,table-var
(make-hash-table :test #'equal)
,(format "A hash-table mapping %s names to the style name providing
it.
@@ -3149,8 +3150,8 @@ Expert %s are completed depending on
`TeX-complete-expert-commands'."
upcase-plural plural plural)
(dolist (x ,(intern plural))
(if (null style)
- (remhash x TeX-expert-macro-table)
- (puthash x style TeX-expert-macro-table))))
+ (remhash x ,table-var)
+ (puthash x style ,table-var))))
(defun ,(intern (format "%s-filtered" list-var)) ()
,(format "Filter (%s) depending on `TeX-complete-expert-commands'."
@@ -3161,7 +3162,7 @@ Expert %s are completed depending on
`TeX-complete-expert-commands'."
(if (eq t TeX-complete-expert-commands)
entry
(let* ((cmd (car entry))
- (style (gethash cmd TeX-expert-macro-table)))
+ (style (gethash cmd ,table-var)))
(when (or (null style)
(member style TeX-complete-expert-commands))
entry))))
- [elpa] externals/auctex updated (1b05afe088 -> 367b153c1a), Tassilo Horn, 2021/12/28
- [elpa] externals/auctex 1dfd31dcf5 2/8: Add an :annotation-function for completion and CAPF, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex b2a50892b0 4/8: Refactor completion annotation code, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex 367b153c1a 8/8: Release GNU AUCTeX 13.0.15, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex 1a53b23645 3/8: Add completion annotation support from LaTeX-math-list/default, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex f999caa1a0 5/8: Fix TeX-complete-make-expert-command-functions,
Tassilo Horn <=
- [elpa] externals/auctex d68d9ad279 7/8: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex bab6bf97b7 1/8: Support enhanced tabular indentation, Tassilo Horn, 2021/12/28
- [elpa] externals/auctex 3cf393d43d 6/8: Make preview.sty deal with newer LaTeX hiding \shipout, Tassilo Horn, 2021/12/28