diff options
| author | Karl Heuer | 1997-03-14 17:58:03 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-03-14 17:58:03 +0000 |
| commit | 11d431add7807f1fe2699acacd0916b76d7d4177 (patch) | |
| tree | 530f446359f3e565e02b4ff7712f8f65da4f0c02 | |
| parent | 033d0963b377f07bb0b71885e86216e997e20f98 (diff) | |
| download | emacs-11d431add7807f1fe2699acacd0916b76d7d4177.tar.gz emacs-11d431add7807f1fe2699acacd0916b76d7d4177.zip | |
(when, unless): Symbol props moved from cl.el.
(add-to-invisibility-spec): Add to beginning, not end.
| -rw-r--r-- | lisp/subr.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index fb22bc02654..3f215b1970d 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -46,10 +46,14 @@ BODY should be a list of lisp expressions." | |||
| 46 | (defmacro when (cond &rest body) | 46 | (defmacro when (cond &rest body) |
| 47 | "(when COND BODY...): if COND yields non-nil, do BODY, else return nil." | 47 | "(when COND BODY...): if COND yields non-nil, do BODY, else return nil." |
| 48 | (list 'if cond (cons 'progn body))) | 48 | (list 'if cond (cons 'progn body))) |
| 49 | (put 'when 'lisp-indent-function 1) | ||
| 50 | (put 'when 'edebug-form-spec '(&rest form)) | ||
| 49 | 51 | ||
| 50 | (defmacro unless (cond &rest body) | 52 | (defmacro unless (cond &rest body) |
| 51 | "(unless COND BODY...): if COND yields nil, do BODY, else return nil." | 53 | "(unless COND BODY...): if COND yields nil, do BODY, else return nil." |
| 52 | (cons 'if (cons cond (cons nil body)))) | 54 | (cons 'if (cons cond (cons nil body)))) |
| 55 | (put 'unless 'lisp-indent-function 1) | ||
| 56 | (put 'unless 'edebug-form-spec '(&rest form)) | ||
| 53 | 57 | ||
| 54 | ;;;; Keymap support. | 58 | ;;;; Keymap support. |
| 55 | 59 | ||
| @@ -901,8 +905,8 @@ that can be added." | |||
| 901 | ((or (null buffer-invisibility-spec) (eq buffer-invisibility-spec t)) | 905 | ((or (null buffer-invisibility-spec) (eq buffer-invisibility-spec t)) |
| 902 | (setq buffer-invisibility-spec (list arg))) | 906 | (setq buffer-invisibility-spec (list arg))) |
| 903 | (t | 907 | (t |
| 904 | (setq buffer-invisibility-spec | 908 | (setq buffer-invisibility-spec |
| 905 | (nconc buffer-invisibility-spec (list arg)))))) | 909 | (cons arg buffer-invisibility-spec))))) |
| 906 | 910 | ||
| 907 | (defun remove-from-invisibility-spec (arg) | 911 | (defun remove-from-invisibility-spec (arg) |
| 908 | "Remove elements from `buffer-invisibility-spec'." | 912 | "Remove elements from `buffer-invisibility-spec'." |