Mercurial > emacs
changeset 17704:00ed998f90d3
(byte-compile-file-form-custom-declare-variable): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 08 May 1997 16:28:07 +0000 |
parents | cd6ad557fb57 |
children | 524fcbd0f164 |
files | lisp/emacs-lisp/bytecomp.el |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/bytecomp.el Thu May 08 16:04:55 1997 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Thu May 08 16:28:07 1997 +0000 @@ -10,7 +10,7 @@ ;;; This version incorporates changes up to version 2.10 of the ;;; Zawinski-Furuseth compiler. -(defconst byte-compile-version "$Revision: 2.26 $") +(defconst byte-compile-version "$Revision: 2.27 $") ;; This file is part of GNU Emacs. @@ -1639,6 +1639,14 @@ (byte-compile-top-level (nth 2 form) nil 'file)))) form)) +(put 'custom-declare-variable 'byte-hunk-handler + 'byte-compile-file-form-custom-declare-variable) +(defun byte-compile-file-form-custom-declare-variable (form) + (if (memq 'free-vars byte-compile-warnings) + (setq byte-compile-bound-variables + (cons (nth 1 (nth 1 form)) byte-compile-bound-variables))) + form) + (put 'require 'byte-hunk-handler 'byte-compile-file-form-eval-boundary) (defun byte-compile-file-form-eval-boundary (form) (eval form)