From e8c22c770b13346b585a4b8b77e21a08960df419 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 3 Apr 2022 14:48:22 +0200 Subject: [PATCH] docs(emacs-lisp): remove sharp-quoted example for add-hook! add-hook! is advertised to be able to add multiple hooks using a function-quoted list of functions, but add-hook! never actually supported this. Rather than correct the implementation, I'm correcting the documentation instead, because sharp-quoting lists betrays the semantics of the sharp-quote. Quoted lists should still work fine though (as documented in add-hook!'s docstring). Close: #5843 --- modules/lang/emacs-lisp/demos.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/demos.org b/modules/lang/emacs-lisp/demos.org index 563ca64bf..1c4a6d04e 100644 --- a/modules/lang/emacs-lisp/demos.org +++ b/modules/lang/emacs-lisp/demos.org @@ -44,7 +44,7 @@ usage from their documentation (e.g. =SPC h f add-hook\!=). ;; Adding many-to-many functions to hooks (add-hook! some-mode #'enable-something #'and-another) -(add-hook! some-mode #'(enable-something and-another)) +(add-hook! some-mode '(enable-something and-another)) (add-hook! '(one-mode-hook second-mode-hook) #'enable-something) (add-hook! (one-mode second-mode) #'enable-something)