comparison lisp/emacs-lisp/byte-run.el @ 55041:1376729a93a7

(with-no-warnings): Simplify: take all args as &rest arg.
author Richard M. Stallman <rms@gnu.org>
date Wed, 21 Apr 2004 19:10:29 +0000
parents 94bcfb39cf49
children 79eecb3f0e5a
comparison
equal deleted inserted replaced
55040:4728f7603f2a 55041:1376729a93a7
132 "Like `progn', but evaluates the body at compile time and at load time." 132 "Like `progn', but evaluates the body at compile time and at load time."
133 (declare (debug t)) 133 (declare (debug t))
134 ;; Remember, it's magic. 134 ;; Remember, it's magic.
135 (cons 'progn body)) 135 (cons 'progn body))
136 136
137 (defun with-no-warnings (&optional first &rest body) 137 (defun with-no-warnings (&rest body)
138 "Like `progn', but prevents compiler warnings in the body." 138 "Like `progn', but prevents compiler warnings in the body."
139 ;; The implementation for the interpreter is basically trivial. 139 ;; The implementation for the interpreter is basically trivial.
140 (if body (car (last body)) 140 (car (last body)))
141 first))
142 141
143 142
144 ;;; I nuked this because it's not a good idea for users to think of using it. 143 ;;; I nuked this because it's not a good idea for users to think of using it.
145 ;;; These options are a matter of installation preference, and have nothing to 144 ;;; These options are a matter of installation preference, and have nothing to
146 ;;; with particular source files; it's a mistake to suggest to users 145 ;;; with particular source files; it's a mistake to suggest to users