[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c8d638ac: Use `functionp' to recognize a function
From: |
Arash Esbati |
Subject: |
master c8d638ac: Use `functionp' to recognize a function |
Date: |
Thu, 17 Nov 2022 08:37:39 -0500 (EST) |
branch: master
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 7fe8095a..c5fd9678 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master c8d638ac: Use `functionp' to recognize a function,
Arash Esbati <=