diff options
| author | Gerd Moellmann | 2000-09-12 09:10:56 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-12 09:10:56 +0000 |
| commit | 71246c2c413eb58740c779dce6b2cc37602252a6 (patch) | |
| tree | b534cb250174dd28c8cbd70e0c11e561fc018956 | |
| parent | 54fa5bc13a7110099c180fa0e597359b93f485b3 (diff) | |
| download | emacs-71246c2c413eb58740c779dce6b2cc37602252a6.tar.gz emacs-71246c2c413eb58740c779dce6b2cc37602252a6.zip | |
Undo last change
because it breaks '(make-variable-buffer-local (defvar ...)'
which is used at least in dired.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 23 |
2 files changed, 19 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6e66abe5041..1f01ac65e8b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2000-09-11 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * bytecomp.el (byte-compile-defvar): Undo last change | ||
| 4 | because it breaks '(make-variable-buffer-local (defvar ...)' | ||
| 5 | which is used at least in dired. | ||
| 6 | |||
| 1 | 2000-09-12 Kenichi Handa <handa@etl.go.jp> | 7 | 2000-09-12 Kenichi Handa <handa@etl.go.jp> |
| 2 | 8 | ||
| 3 | * international/quail.el (quail-define-package): Docstring | 9 | * international/quail.el (quail-define-package): Docstring |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index c58038ba2bb..f0f24213d17 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -3220,16 +3220,19 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 3220 | (setq byte-compile-bound-variables | 3220 | (setq byte-compile-bound-variables |
| 3221 | (cons var byte-compile-bound-variables))) | 3221 | (cons var byte-compile-bound-variables))) |
| 3222 | (byte-compile-body-do-effect | 3222 | (byte-compile-body-do-effect |
| 3223 | (list | 3223 | (list (if (cdr (cdr form)) |
| 3224 | ;; Just as a real defvar would, but only in top-level forms. | 3224 | (if (eq (car form) 'defconst) |
| 3225 | (when (null byte-compile-current-form) | 3225 | (list 'setq var value) |
| 3226 | `(push ',var current-load-list)) | 3226 | (list 'or (list 'boundp (list 'quote var)) |
| 3227 | (when (and string (null byte-compile-current-form)) | 3227 | (list 'setq var value)))) |
| 3228 | `(put ',var 'variable-documentation ,string)) | 3228 | ;; Put the defined variable in this library's load-history entry |
| 3229 | (if (cdr (cdr form)) | 3229 | ;; just as a real defvar would. |
| 3230 | (if (eq (car form) 'defconst) | 3230 | (list 'setq 'current-load-list |
| 3231 | `(setq ,var ,value) | 3231 | (list 'cons (list 'quote var) |
| 3232 | `(if (boundp ',var) ',var (setq ,var ,value)))))))) | 3232 | 'current-load-list)) |
| 3233 | (if string | ||
| 3234 | (list 'put (list 'quote var) ''variable-documentation string)) | ||
| 3235 | (list 'quote var))))) | ||
| 3233 | 3236 | ||
| 3234 | (defun byte-compile-autoload (form) | 3237 | (defun byte-compile-autoload (form) |
| 3235 | (and (byte-compile-constp (nth 1 form)) | 3238 | (and (byte-compile-constp (nth 1 form)) |