branch: externals/auctex-label-numbers
commit 0f52ebdb43927d1bef716549549462331c60c82f
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>
Fix comparison in macro spec restoration
* auctex-label-numbers.el (auctex-label-numbers-mode): Use 'equal'
instead of 'eq' for comparing spec elements.
---
auctex-label-numbers.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auctex-label-numbers.el b/auctex-label-numbers.el
index 01929e67efc..1462cfcda46 100644
--- a/auctex-label-numbers.el
+++ b/auctex-label-numbers.el
@@ -261,7 +261,7 @@ Call ORIG-FUN with ARGS, and add the label number to the
annotation."
TeX-fold-macro-spec-list)))
(when-let ((saved (assoc macro auctex-label-numbers--saved-spec-list)))
(dolist (spec TeX-fold-macro-spec-list)
- (when (eq (car spec) (cdr saved))
+ (when (equal (car spec) (cdr saved))
(push macro (cadr spec))))))
(setq auctex-label-numbers--saved-spec-list nil)
(when TeX-fold-mode