changeset 51276:5f08948e8c4b

(with-no-warnings): New function.
author Richard M. Stallman <rms@gnu.org>
date Wed, 28 May 2003 11:10:43 +0000
parents 80973470ed3e
children caaa4fda6808
files lisp/byte-run.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/byte-run.el	Wed May 28 11:02:52 2003 +0000
+++ b/lisp/byte-run.el	Wed May 28 11:10:43 2003 +0000
@@ -131,6 +131,12 @@
   ;; Remember, it's magic.
   (cons 'progn body))
 
+(defun with-no-warnings (&optional first &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))
+
 
 ;;; I nuked this because it's not a good idea for users to think of using it.
 ;;; These options are a matter of installation preference, and have nothing to