branch: externals/auctex
commit 8a36595fb116cd3c6e3f429c9be2101b211c49af
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    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))

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to