diff options
| author | Richard M. Stallman | 2003-05-28 11:26:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-05-28 11:26:45 +0000 |
| commit | 3c9dc1cf0d6be64608cd309ad042d74e4fc02049 (patch) | |
| tree | 76823698f3d96b1501508e4ca2edfd211bd35697 | |
| parent | 2f3b1a8c1f442a1439c4ca35079557a750216de3 (diff) | |
| download | emacs-3c9dc1cf0d6be64608cd309ad042d74e4fc02049.tar.gz emacs-3c9dc1cf0d6be64608cd309ad042d74e4fc02049.zip | |
(byte-compile-no-warnings): New function.
(with-no-warnings): Set up compile handler.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index aee0ff7b412..7ec364611d5 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | ;;; This version incorporates changes up to version 2.10 of the | 11 | ;;; This version incorporates changes up to version 2.10 of the |
| 12 | ;;; Zawinski-Furuseth compiler. | 12 | ;;; Zawinski-Furuseth compiler. |
| 13 | (defconst byte-compile-version "$Revision: 2.131 $") | 13 | (defconst byte-compile-version "$Revision: 2.133 $") |
| 14 | 14 | ||
| 15 | ;; This file is part of GNU Emacs. | 15 | ;; This file is part of GNU Emacs. |
| 16 | 16 | ||
| @@ -2763,6 +2763,7 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2763 | ;; If function is a symbol, then the variable "byte-SYMBOL" must name | 2763 | ;; If function is a symbol, then the variable "byte-SYMBOL" must name |
| 2764 | ;; the opcode to be used. If function is a list, the first element | 2764 | ;; the opcode to be used. If function is a list, the first element |
| 2765 | ;; is the function and the second element is the bytecode-symbol. | 2765 | ;; is the function and the second element is the bytecode-symbol. |
| 2766 | ;; The second element may be nil, meaning there is no opcode. | ||
| 2766 | ;; COMPILE-HANDLER is the function to use to compile this byte-op, or | 2767 | ;; COMPILE-HANDLER is the function to use to compile this byte-op, or |
| 2767 | ;; may be the abbreviations 0, 1, 2, 3, 0-1, or 1-2. | 2768 | ;; may be the abbreviations 0, 1, 2, 3, 0-1, or 1-2. |
| 2768 | ;; If it is nil, then the handler is "byte-compile-SYMBOL." | 2769 | ;; If it is nil, then the handler is "byte-compile-SYMBOL." |
| @@ -3528,7 +3529,6 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 3528 | (byte-compile-out 'byte-temp-output-buffer-setup 0) | 3529 | (byte-compile-out 'byte-temp-output-buffer-setup 0) |
| 3529 | (byte-compile-body (cdr (cdr form))) | 3530 | (byte-compile-body (cdr (cdr form))) |
| 3530 | (byte-compile-out 'byte-temp-output-buffer-show 0)) | 3531 | (byte-compile-out 'byte-temp-output-buffer-show 0)) |
| 3531 | |||
| 3532 | 3532 | ||
| 3533 | ;;; top-level forms elsewhere | 3533 | ;;; top-level forms elsewhere |
| 3534 | 3534 | ||
| @@ -3665,6 +3665,11 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 3665 | (if calls | 3665 | (if calls |
| 3666 | (setq byte-compile-unresolved-functions | 3666 | (setq byte-compile-unresolved-functions |
| 3667 | (delq calls byte-compile-unresolved-functions))))) | 3667 | (delq calls byte-compile-unresolved-functions))))) |
| 3668 | |||
| 3669 | (byte-defop-compiler-1 with-no-warnings byte-compile-no-warnings) | ||
| 3670 | (defun byte-compile-no-warnings (form) | ||
| 3671 | (let (byte-compile-warnings) | ||
| 3672 | (byte-compile-form (cadr form)))) | ||
| 3668 | 3673 | ||
| 3669 | ;;; tags | 3674 | ;;; tags |
| 3670 | 3675 | ||