mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 23:40:24 -08:00
* lisp/emacs-lisp/byte-run.el (dont-compile): Declare obsolete.
(with-no-warnings): Use `declare'.
This commit is contained in:
parent
33f5bc1cbc
commit
17f323276b
2 changed files with 5 additions and 2 deletions
|
|
@ -378,7 +378,7 @@ obsolete."
|
|||
(defmacro dont-compile (&rest body)
|
||||
"Like `progn', but the body always runs interpreted (not compiled).
|
||||
If you think you need this, you're probably making a mistake somewhere."
|
||||
(declare (debug t) (indent 0))
|
||||
(declare (debug t) (indent 0) (obsolete nil "24.4"))
|
||||
(list 'eval (list 'quote (if (cdr body) (cons 'progn body) (car body)))))
|
||||
|
||||
|
||||
|
|
@ -402,9 +402,9 @@ In interpreted code, this is entirely equivalent to `progn'."
|
|||
;; macroexpansion.
|
||||
(list 'quote (eval (cons 'progn body) lexical-binding)))
|
||||
|
||||
(put 'with-no-warnings 'lisp-indent-function 0)
|
||||
(defun with-no-warnings (&rest body)
|
||||
"Like `progn', but prevents compiler warnings in the body."
|
||||
(declare (indent 0))
|
||||
;; The implementation for the interpreter is basically trivial.
|
||||
(car (last body)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue