[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8ef8463: Accept lexical lambda in auto-insert-alist
From: |
Mattias Engdegård |
Subject: |
master 8ef8463: Accept lexical lambda in auto-insert-alist |
Date: |
Mon, 22 Jun 2020 07:16:32 -0400 (EDT) |
branch: master
commit 8ef84632c24192a71cec89a859b064925ed5aca2
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
Accept lexical lambda in auto-insert-alist
This bug was exposed by a previous removal of quoting around lambda
expressions in autoinsert-tests.el (1ecd350f38ee), which caused some
of those tests to fail.
* lisp/autoinsert.el (auto-insert): Cope with lexical closures.
---
lisp/autoinsert.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index 25961d4..4af3d63 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -396,7 +396,7 @@ Matches the visited file name against the elements of
`auto-insert-alist'."
;; which might ask the user for something
(switch-to-buffer (current-buffer))
(if (and (consp action)
- (not (eq (car action) 'lambda)))
+ (not (functionp action)))
(skeleton-insert action)
(funcall action)))))
(if (vectorp action)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8ef8463: Accept lexical lambda in auto-insert-alist,
Mattias Engdegård <=