emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/yasnippet 9228fd983b 1/2: * yasnippel.el (yas-buffer-lo


From: ELPA Syncer
Subject: [elpa] externals/yasnippet 9228fd983b 1/2: * yasnippel.el (yas-buffer-local-condition): Check functionp before consp to allow closures
Date: Mon, 22 Jan 2024 09:59:37 -0500 (EST)

branch: externals/yasnippet
commit 9228fd983bb9e71d44d406433a46495b22640801
Author: Marten Lienen <marten.lienen@gmail.com>
Commit: Marten Lienen <marten.lienen@gmail.com>

    * yasnippel.el (yas-buffer-local-condition): Check functionp before consp 
to allow closures
---
 yasnippet.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 54616d4895..d6e5d69a50 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]