]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/autoinsert.el (auto-insert-alist): Don't quote 'lambda'
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 30 Jun 2025 15:28:34 +0000 (11:28 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:09:39 +0000 (22:09 +0200)
(cherry picked from commit 3efdb553e4845eca0e637e3eefad483c3b15e021)

lisp/autoinsert.el

index ca54972ef57b58423647beab1901927ac570bfd8..f9c3bc4f0fb8a431a90dc4f4c6884e8d82c9903b 100644 (file)
@@ -181,9 +181,9 @@ If this contains a %s, that will be replaced by the matching rule."
      " . (("
      (let ((all-variables
             (apropos-internal ".*"
-                              (lambda (symbol)
-                               (and (boundp symbol)
-                                    (get symbol 'variable-documentation))))))
+                              ,(lambda (symbol)
+                                (and (boundp symbol)
+                                     (get symbol 'variable-documentation))))))
        (completing-read "Variable to set: " all-variables))
      " . "
      (completing-read "Value to set it to: " nil)