[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 34befcc176 3/5: Fix bug#54099
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 34befcc176 3/5: Fix bug#54099 |
Date: |
Tue, 22 Feb 2022 09:43:41 -0500 (EST) |
branch: externals/auctex
commit 34befcc17649fd6615fd4ef8756fb78705f7fe55
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Fix bug#54099
* latex.el (LaTeX--completion-annotation-from-math-menu): Ignore
LaTeX-math-list entries with a function as VALUE (bug#54099).
---
latex.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/latex.el b/latex.el
index c332ebf457..06627c4bdb 100644
--- a/latex.el
+++ b/latex.el
@@ -5849,11 +5849,13 @@ returned."
(catch 'found
(dolist (var (list LaTeX-math-list LaTeX-math-default))
(dolist (e var)
- (when (string= (cadr e) sym)
- (let ((char (nth 3 e)))
- (when char
- (throw 'found
- (concat " " (char-to-string char))))))))))
+ (let ((val (cadr e)))
+ (when (and (stringp val)
+ (string= val sym))
+ (let ((char (nth 3 e)))
+ (when char
+ (throw 'found
+ (concat " " (char-to-string char)))))))))))
(defvar LaTeX-math-mode-menu)
(define-minor-mode LaTeX-math-mode