branch: master commit c8d638ac9db02291e221c0c5f18ce28be3084a50 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@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))