summaryrefslogtreecommitdiff
path: root/lisp/ibuf-macs.el
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2003-03-03 15:13:01 +0000
committerJohn Paul Wallington <jpw@pobox.com>2003-03-03 15:13:01 +0000
commit285286045fedc427d537a1dae9823d27ba3a3823 (patch)
treeac7e7bb69daacff4770ef715123a7dda468260af /lisp/ibuf-macs.el
parent9a6155bb67ead0dea7de7adf39221890d4c8d978 (diff)
downloademacs-285286045fedc427d537a1dae9823d27ba3a3823.tar.gz
(ibuffer-aif): Use `make-symbol' instead of
`gensym' in case user calls macro at runtime. (ibuffer-save-marks): Likewise.
Diffstat (limited to 'lisp/ibuf-macs.el')
-rw-r--r--lisp/ibuf-macs.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ibuf-macs.el b/lisp/ibuf-macs.el
index e12a1199939..7817f978930 100644
--- a/lisp/ibuf-macs.el
+++ b/lisp/ibuf-macs.el
@@ -37,7 +37,7 @@
If TEST returns non-nil, bind `it' to the value, and evaluate
TRUE-BODY. Otherwise, evaluate forms in FALSE-BODY as if in `progn'.
Compare with `if'."
- (let ((sym (gensym "--ibuffer-aif-")))
+ (let ((sym (make-symbol "ibuffer-aif-sym")))
`(let ((,sym ,test))
(if ,sym
(let ((it ,sym))
@@ -56,7 +56,7 @@ During evaluation of body, bind `it' to the value returned by TEST."
(defmacro ibuffer-save-marks (&rest body)
"Save the marked status of the buffers and execute BODY; restore marks."
- (let ((bufsym (gensym)))
+ (let ((bufsym (make-symbol "bufsym")))
`(let ((,bufsym (current-buffer))
(ibuffer-save-marks-tmp-mark-list (ibuffer-current-state-list)))
(unwind-protect