aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-08 06:09:48 +0000
committerRichard M. Stallman1997-01-08 06:09:48 +0000
commit6ae5bdf58c163da1eca8386ac64a0dee812d0df9 (patch)
tree12c12ffe7f8867e10fe670c227fa5e2031251145
parentdebff3c309833b9dd3939c474c2c446fa49f0f86 (diff)
downloademacs-6ae5bdf58c163da1eca8386ac64a0dee812d0df9.tar.gz
emacs-6ae5bdf58c163da1eca8386ac64a0dee812d0df9.zip
(when, unless): Definitions moved to subr.el.
-rw-r--r--lisp/emacs-lisp/cl.el8
1 files changed, 0 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index 29ec602f231..90d7b762ad9 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -218,14 +218,6 @@ Keywords supported: :test :test-not :key"
218;;; These macros are so simple and so often-used that it's better to have 218;;; These macros are so simple and so often-used that it's better to have
219;;; them all the time than to load them from cl-macs.el. 219;;; them all the time than to load them from cl-macs.el.
220 220
221(defmacro when (cond &rest body)
222 "(when COND BODY...): if COND yields non-nil, do BODY, else return nil."
223 (list 'if cond (cons 'progn body)))
224
225(defmacro unless (cond &rest body)
226 "(unless COND BODY...): if COND yields nil, do BODY, else return nil."
227 (cons 'if (cons cond (cons nil body))))
228
229(defun cl-map-extents (&rest cl-args) 221(defun cl-map-extents (&rest cl-args)
230 (if (fboundp 'next-overlay-at) (apply 'cl-map-overlays cl-args) 222 (if (fboundp 'next-overlay-at) (apply 'cl-map-overlays cl-args)
231 (if (fboundp 'map-extents) (apply 'map-extents cl-args)))) 223 (if (fboundp 'map-extents) (apply 'map-extents cl-args))))