mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Merge pull request #1184 from martenlienen/local-condition-closure
Allow closures in yas-buffer-local-condition
This commit is contained in:
commit
5af84cdb94
@ -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