aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-08 16:28:07 +0000
committerRichard M. Stallman1997-05-08 16:28:07 +0000
commit8c731d3d49202d8845606dc0e8da617c0f009b67 (patch)
tree07c8fa83632ec13e56ee2436d086e7a0ff53df51 /lisp
parentdc2e979fc70f426c03ec204507fcd3d435d6e29f (diff)
downloademacs-8c731d3d49202d8845606dc0e8da617c0f009b67.tar.gz
emacs-8c731d3d49202d8845606dc0e8da617c0f009b67.zip
(byte-compile-file-form-custom-declare-variable): New function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 3f679d85884..542b7e201ab 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.26 $") 13(defconst byte-compile-version "$Revision: 2.27 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -1639,6 +1639,14 @@ list that represents a doc string reference.
1639 (byte-compile-top-level (nth 2 form) nil 'file)))) 1639 (byte-compile-top-level (nth 2 form) nil 'file))))
1640 form)) 1640 form))
1641 1641
1642(put 'custom-declare-variable 'byte-hunk-handler
1643 'byte-compile-file-form-custom-declare-variable)
1644(defun byte-compile-file-form-custom-declare-variable (form)
1645 (if (memq 'free-vars byte-compile-warnings)
1646 (setq byte-compile-bound-variables
1647 (cons (nth 1 (nth 1 form)) byte-compile-bound-variables)))
1648 form)
1649
1642(put 'require 'byte-hunk-handler 'byte-compile-file-form-eval-boundary) 1650(put 'require 'byte-hunk-handler 'byte-compile-file-form-eval-boundary)
1643(defun byte-compile-file-form-eval-boundary (form) 1651(defun byte-compile-file-form-eval-boundary (form)
1644 (eval form) 1652 (eval form)