mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
* yasnippel.el (yas-buffer-local-condition): Check functionp before consp to allow closures
This commit is contained in:
parent
1d0966ae34
commit
9228fd983b
@ -1366,10 +1366,10 @@ conditions to filter out potential expansions."
|
|||||||
'always
|
'always
|
||||||
(let ((local-condition
|
(let ((local-condition
|
||||||
(or (cond
|
(or (cond
|
||||||
((consp yas-buffer-local-condition)
|
|
||||||
(yas--funcall-condition #'eval yas-buffer-local-condition t))
|
|
||||||
((functionp yas-buffer-local-condition)
|
((functionp yas-buffer-local-condition)
|
||||||
(yas--funcall-condition yas-buffer-local-condition)))
|
(yas--funcall-condition yas-buffer-local-condition))
|
||||||
|
((consp yas-buffer-local-condition)
|
||||||
|
(yas--funcall-condition #'eval yas-buffer-local-condition t)))
|
||||||
yas-buffer-local-condition)))
|
yas-buffer-local-condition)))
|
||||||
(when local-condition
|
(when local-condition
|
||||||
(if (eq local-condition t)
|
(if (eq local-condition t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user