aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorStefan Kangas2025-02-24 23:02:20 +0100
committerStefan Kangas2025-02-25 01:23:33 +0100
commit1a22bc0fd672e2c71955faf81ff2cfd1c0c76be9 (patch)
treee9eec52f107c3e70e424dae8b27ba331a4bcab22 /doc/misc
parent7bb53815d2bcc7af8bc613e67e2aeb4ec01db901 (diff)
downloademacs-1a22bc0fd672e2c71955faf81ff2cfd1c0c76be9.tar.gz
emacs-1a22bc0fd672e2c71955faf81ff2cfd1c0c76be9.zip
Use cl-with-gensyms in a few more cases
* doc/misc/cl.texi (Macro Bindings): * lisp/emacs-lisp/comp.el (comp--with-sp): * lisp/emacs-lisp/subr-x.el (with-buffer-unmodified-if-unchanged): * lisp/eshell/em-extpipe.el (eshell-extpipe--or-with-catch): * lisp/international/mule-cmds.el (with-locale-environment): * lisp/kmacro.el (kmacro-menu--marks-exist-p): * test/lisp/emacs-lisp/cl-extra-tests.el (cl-lib-test-remprop): * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-deduplicate): * test/lisp/emacs-lisp/ert-tests.el (ert-test-special-operator-p): * test/lisp/kmacro-tests.el (kmacro-tests-should-insert) (kmacro-tests-should-match-message): * test/lisp/replace-tests.el (replace-tests-with-undo): Use cl-with-gensyms instead of bare gensym call.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/cl.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 862b8f4a1c4..b4c1f29f47f 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -1370,7 +1370,7 @@ expansion of another macro:
1370 1370
1371@example 1371@example
1372(cl-defmacro my-dolist ((x list) &rest body) 1372(cl-defmacro my-dolist ((x list) &rest body)
1373 (let ((var (cl-gensym))) 1373 (cl-with-gensyms (var)
1374 (list 'cl-loop 'for var 'on list 'do 1374 (list 'cl-loop 'for var 'on list 'do
1375 (cl-list* 'cl-symbol-macrolet 1375 (cl-list* 'cl-symbol-macrolet
1376 (list (list x (list 'car var))) 1376 (list (list x (list 'car var)))