aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-31 17:07:28 +0000
committerRichard M. Stallman1997-08-31 17:07:28 +0000
commit36b7e5233a04fe8558dc6877d277d6e14f06168d (patch)
tree0f7de10e00a4a747c4684557924beb230eea35d8
parent3fe77f98b1c424aaaa17607fd805f7e81b83db34 (diff)
downloademacs-36b7e5233a04fe8558dc6877d277d6e14f06168d.tar.gz
emacs-36b7e5233a04fe8558dc6877d277d6e14f06168d.zip
(byte-compile-output-file-form): Handle custom-declare-variable.
-rw-r--r--lisp/emacs-lisp/bytecomp.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 351baaef472..390b9d08ee8 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.32 $") 13(defconst byte-compile-version "$Revision: 2.33 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -1460,15 +1460,17 @@ With argument, insert value in current buffer after the form."
1460 1460
1461(defun byte-compile-output-file-form (form) 1461(defun byte-compile-output-file-form (form)
1462 ;; writes the given form to the output buffer, being careful of docstrings 1462 ;; writes the given form to the output buffer, being careful of docstrings
1463 ;; in defun, defmacro, defvar, defconst and autoload because make-docfile is 1463 ;; in defun, defmacro, defvar, defconst, autoload and
1464 ;; so amazingly stupid. 1464 ;; custom-declare-variable because make-docfile is so amazingly stupid.
1465 ;; defalias calls are output directly by byte-compile-file-form-defmumble; 1465 ;; defalias calls are output directly by byte-compile-file-form-defmumble;
1466 ;; it does not pay to first build the defalias in defmumble and then parse 1466 ;; it does not pay to first build the defalias in defmumble and then parse
1467 ;; it here. 1467 ;; it here.
1468 (if (and (memq (car-safe form) '(defun defmacro defvar defconst autoload)) 1468 (if (and (memq (car-safe form) '(defun defmacro defvar defconst autoload
1469 custom-declare-variable))
1469 (stringp (nth 3 form))) 1470 (stringp (nth 3 form)))
1470 (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil 1471 (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil
1471 (eq (car form) 'autoload)) 1472 (memq (car form)
1473 '(autoload custom-declare-variable)))
1472 (let ((print-escape-newlines t) 1474 (let ((print-escape-newlines t)
1473 (print-length nil) 1475 (print-length nil)
1474 (print-level nil) 1476 (print-level nil)
@@ -1488,7 +1490,7 @@ we output that argument and the following argument (the constants vector)
1488together, for lazy loading. 1490together, for lazy loading.
1489QUOTED says that we have to put a quote before the 1491QUOTED says that we have to put a quote before the
1490list that represents a doc string reference. 1492list that represents a doc string reference.
1491`autoload' needs that." 1493`autoload' and `custom-declare-variable' need that."
1492 ;; We need to examine byte-compile-dynamic-docstrings 1494 ;; We need to examine byte-compile-dynamic-docstrings
1493 ;; in the input buffer (now current), not in the output buffer. 1495 ;; in the input buffer (now current), not in the output buffer.
1494 (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) 1496 (let ((dynamic-docstrings byte-compile-dynamic-docstrings))