diff options
| author | YAMAMOTO Mitsuharu | 2009-11-16 04:06:12 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2009-11-16 04:06:12 +0000 |
| commit | 1e8571214b21e3389ca5a7a79a271e30a11fcd0f (patch) | |
| tree | b95d665aeaa2e077e71e6650aafed0198fbea0fe | |
| parent | 7d8ba254319e997dc6e73f45a0be7641491cc32f (diff) | |
| download | emacs-1e8571214b21e3389ca5a7a79a271e30a11fcd0f.tar.gz emacs-1e8571214b21e3389ca5a7a79a271e30a11fcd0f.zip | |
(byte-compile-output-file-form):
Quote doc string reference in defvaralias as it is not in special form.
(byte-compile-output-docform): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e8b4dbea089..fd9e082cdc6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-11-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-output-file-form): | ||
| 4 | Quote doc string reference in defvaralias as it is not in special form. | ||
| 5 | (byte-compile-output-docform): Doc fix. | ||
| 6 | |||
| 1 | 2009-11-16 Jay Belanger <jay.p.belanger@gmail.com> | 7 | 2009-11-16 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 8 | ||
| 3 | * calc/calc.el (math-2-word-size, math-half-2-word-size) | 9 | * calc/calc.el (math-2-word-size, math-half-2-word-size) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 60a85a7c80f..2f0c7db4c34 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1925,7 +1925,7 @@ Call from the source buffer." | |||
| 1925 | 1925 | ||
| 1926 | (defun byte-compile-output-file-form (form) | 1926 | (defun byte-compile-output-file-form (form) |
| 1927 | ;; writes the given form to the output buffer, being careful of docstrings | 1927 | ;; writes the given form to the output buffer, being careful of docstrings |
| 1928 | ;; in defun, defmacro, defvar, defconst, autoload and | 1928 | ;; in defun, defmacro, defvar, defvaralias, defconst, autoload and |
| 1929 | ;; custom-declare-variable because make-docfile is so amazingly stupid. | 1929 | ;; custom-declare-variable because make-docfile is so amazingly stupid. |
| 1930 | ;; defalias calls are output directly by byte-compile-file-form-defmumble; | 1930 | ;; defalias calls are output directly by byte-compile-file-form-defmumble; |
| 1931 | ;; it does not pay to first build the defalias in defmumble and then parse | 1931 | ;; it does not pay to first build the defalias in defmumble and then parse |
| @@ -1935,7 +1935,8 @@ Call from the source buffer." | |||
| 1935 | (stringp (nth 3 form))) | 1935 | (stringp (nth 3 form))) |
| 1936 | (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil | 1936 | (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil |
| 1937 | (memq (car form) | 1937 | (memq (car form) |
| 1938 | '(autoload custom-declare-variable))) | 1938 | '(defvaralias autoload |
| 1939 | custom-declare-variable))) | ||
| 1939 | (let ((print-escape-newlines t) | 1940 | (let ((print-escape-newlines t) |
| 1940 | (print-length nil) | 1941 | (print-length nil) |
| 1941 | (print-level nil) | 1942 | (print-level nil) |
| @@ -1959,7 +1960,7 @@ we output that argument and the following argument | |||
| 1959 | \(the constants vector) together, for lazy loading. | 1960 | \(the constants vector) together, for lazy loading. |
| 1960 | QUOTED says that we have to put a quote before the | 1961 | QUOTED says that we have to put a quote before the |
| 1961 | list that represents a doc string reference. | 1962 | list that represents a doc string reference. |
| 1962 | `autoload' and `custom-declare-variable' need that." | 1963 | `defvaralias', `autoload' and `custom-declare-variable' need that." |
| 1963 | ;; We need to examine byte-compile-dynamic-docstrings | 1964 | ;; We need to examine byte-compile-dynamic-docstrings |
| 1964 | ;; in the input buffer (now current), not in the output buffer. | 1965 | ;; in the input buffer (now current), not in the output buffer. |
| 1965 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) | 1966 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) |