2013-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
+ * emacs-lisp/byte-run.el (dont-compile): Declare obsolete.
+ (with-no-warnings): Use `declare'.
+
* whitespace.el (whitespace-enable-predicate): New variable.
(whitespace-enable-predicate): Use it.
(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)))))
\f
;; 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)))