emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 8a36595 12/80: Fix handling of function entries


From: Tassilo Horn
Subject: [elpa] externals/auctex 8a36595 12/80: Fix handling of function entries in `TeX-complete-list'
Date: Wed, 16 Oct 2019 11:07:07 -0400 (EDT)

branch: externals/auctex
commit 8a36595fb116cd3c6e3f429c9be2101b211c49af
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Fix handling of function entries in `TeX-complete-list'
    
    * tex.el (TeX-complete-symbol): Check if the fourth argument of
    entry in `TeX-complete-list' is a list and eval it.  (Bug#35074)
---
 tex.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 3c3f176..6cf2e48 100644
--- a/tex.el
+++ b/tex.el
@@ -3109,7 +3109,11 @@ Or alternatively:
     (when entry
       (if (numberp (nth 1 entry))
          (let* ((sub (nth 1 entry))
-                (close (nth 3 entry))
+                (close (if (and (nth 3 entry)
+                                 (listp (nth 3 entry))
+                                 (symbolp (car (nth 3 entry))))
+                            (eval (nth 3 entry))
+                          (nth 3 entry)))
                 (begin (match-beginning sub))
                 (end (match-end sub))
                 (pattern (TeX-match-buffer 0))



reply via email to

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