mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
(with-no-warnings): Simplify: take all args as &rest arg.
This commit is contained in:
parent
12148b0e3b
commit
ae122ad2d4
1 changed files with 2 additions and 3 deletions
|
|
@ -134,11 +134,10 @@ The result of the body appears to the compiler as a quoted constant."
|
|||
;; Remember, it's magic.
|
||||
(cons 'progn body))
|
||||
|
||||
(defun with-no-warnings (&optional first &rest body)
|
||||
(defun with-no-warnings (&rest body)
|
||||
"Like `progn', but prevents compiler warnings in the body."
|
||||
;; The implementation for the interpreter is basically trivial.
|
||||
(if body (car (last body))
|
||||
first))
|
||||
(car (last body)))
|
||||
|
||||
|
||||
;;; I nuked this because it's not a good idea for users to think of using it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue