auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex c8d638ac9d 40/48: Use `functionp' to recognize a


From: Tassilo Horn
Subject: [elpa] externals/auctex c8d638ac9d 40/48: Use `functionp' to recognize a function
Date: Fri, 18 Nov 2022 14:27:45 -0500 (EST)

branch: externals/auctex
commit c8d638ac9db02291e221c0c5f18ce28be3084a50
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Use `functionp' to recognize a function
    
    * tex.el (TeX-parse-argument): Identify a function with
    `functionp' instead of `symbolp'.  This way it is also possible to
    use a closure inside a style hook.
---
 tex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 7fe8095aba..c5fd9678e6 100644
--- a/tex.el
+++ b/tex.el
@@ -3554,7 +3554,7 @@ See `TeX-parse-macro' for details."
              (set-marker TeX-exit-mark (point)))
            (insert TeX-arg-closing-brace)
            (setq insert-flag t))
-          ((symbolp arg)
+          ((functionp arg)
            (funcall arg optional))
           ((listp arg)
            (let ((head (car arg))




reply via email to

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