(def-edebug-spec defmacro-maybe defmacro)
(def-edebug-spec defsubst-maybe defun)
+;;; Emacs 20.1 emulation
+
+;; imported from emacs-20.3/lisp/subr.el.
+(defmacro-maybe when (cond &rest body)
+ "If COND yields non-nil, do BODY, else return nil."
+ (list 'if cond (cons 'progn body)))
+
+;; imported from emacs-20.3/lisp/subr.el.
+(defmacro-maybe unless (cond &rest body)
+ "If COND yields nil, do BODY, else return nil."
+ (cons 'if (cons cond (cons nil body))))
+
;;; @ Emacs 19.23 emulation
;;;
(set-buffer (window-buffer (minibuffer-window)))
(current-column)))
+
;;; @ Emacs 19.29 emulation
;;;
(substring file 0 (match-beginning 0)))
filename))))
+
;;; @ Emacs 19.30 emulation
;;;
;;;
;; imported from emacs-20.3/lisp/subr.el.
-(defmacro-maybe when (cond &rest body)
- "If COND yields non-nil, do BODY, else return nil."
- (list 'if cond (cons 'progn body)))
-
-;; imported from emacs-20.3/lisp/subr.el.
-(defmacro-maybe unless (cond &rest body)
- "If COND yields nil, do BODY, else return nil."
- (cons 'if (cons cond (cons nil body))))
-
-;; imported from emacs-20.3/lisp/subr.el.
(defsubst-maybe caar (x)
"Return the car of the car of X."
(car (car x)))