mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +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
|
||||
(let ((local-condition
|
||||
(or (cond
|
||||
((consp yas-buffer-local-condition)
|
||||
(yas--funcall-condition #'eval yas-buffer-local-condition t))
|
||||
((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)))
|
||||
(when local-condition
|
||||
(if (eq local-condition t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user