aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/autoinsert.el
diff options
context:
space:
mode:
authorStefan Monnier2025-06-30 11:28:34 -0400
committerStefan Monnier2025-06-30 11:28:34 -0400
commit3efdb553e4845eca0e637e3eefad483c3b15e021 (patch)
tree1aa7efdda727fd1a2de13ceb859811d0f7d14193 /lisp/autoinsert.el
parent17d976e22e9b0ba10dcbe1655a93bc4d165d7097 (diff)
downloademacs-3efdb553e4845eca0e637e3eefad483c3b15e021.tar.gz
emacs-3efdb553e4845eca0e637e3eefad483c3b15e021.zip
lisp/autoinsert.el (auto-insert-alist): Don't quote `lambda`
Diffstat (limited to 'lisp/autoinsert.el')
-rw-r--r--lisp/autoinsert.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index 4bda7452ddd..e7492d1b9ed 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -181,9 +181,9 @@ If this contains a %s, that will be replaced by the matching rule."
181 " . ((" 181 " . (("
182 (let ((all-variables 182 (let ((all-variables
183 (apropos-internal ".*" 183 (apropos-internal ".*"
184 (lambda (symbol) 184 ,(lambda (symbol)
185 (and (boundp symbol) 185 (and (boundp symbol)
186 (get symbol 'variable-documentation)))))) 186 (get symbol 'variable-documentation))))))
187 (completing-read "Variable to set: " all-variables)) 187 (completing-read "Variable to set: " all-variables))
188 " . " 188 " . "
189 (completing-read "Value to set it to: " nil) 189 (completing-read "Value to set it to: " nil)
@@ -206,11 +206,11 @@ If this contains a %s, that will be replaced by the matching rule."
206;; Keywords: " 206;; Keywords: "
207 '(require 'finder) 207 '(require 'finder)
208 ;;'(setq v1 (apply 'vector (mapcar 'car finder-known-keywords))) 208 ;;'(setq v1 (apply 'vector (mapcar 'car finder-known-keywords)))
209 '(setq v1 (mapcar (lambda (x) (list (symbol-name (car x)))) 209 '(setq v1 (mapcar ,(lambda (x) (list (symbol-name (car x))))
210 finder-known-keywords) 210 finder-known-keywords)
211 v2 (mapconcat (lambda (x) (format "%12s: %s" (car x) (cdr x))) 211 v2 (mapconcat (lambda (x) (format "%12s: %s" (car x) (cdr x)))
212 finder-known-keywords 212 finder-known-keywords
213 "\n")) 213 "\n"))
214 ((let ((minibuffer-help-form v2)) 214 ((let ((minibuffer-help-form v2))
215 (completing-read "Keyword, C-h: " v1 nil t)) 215 (completing-read "Keyword, C-h: " v1 nil t))
216 str ", ") 216 str ", ")