Commit 8c731d3d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(byte-compile-file-form-custom-declare-variable): New function.

parent dc2e979f
......@@ -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 @@ list that represents a doc string reference.
(byte-compile-top-level (nth 2 form) nil 'file))))
(put 'custom-declare-variable 'byte-hunk-handler
(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)))
(put 'require 'byte-hunk-handler 'byte-compile-file-form-eval-boundary)
(defun byte-compile-file-form-eval-boundary (form)
(eval form)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment