diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-12 03:20:46 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-12 03:20:46 +0000 |
commit | 0c4a4faa07fcc94849de914296360d3f8cb8ead1 (patch) | |
tree | 667f3b2692ec2849ea53b3b95bc5e3b41d093c8e /lisp/emacs-lisp | |
parent | 6836bb6931b740770c3afb72f08228657df4c961 (diff) | |
download | emacs-0c4a4faa07fcc94849de914296360d3f8cb8ead1.tar.gz emacs-0c4a4faa07fcc94849de914296360d3f8cb8ead1.tar.bz2 emacs-0c4a4faa07fcc94849de914296360d3f8cb8ead1.zip |
(edebug-eval-defun): Don't use defconst on variables.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/edebug.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index eb06c6128a7..66e40ea3b0a 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -511,11 +511,11 @@ the minibuffer." (edebug-all-defs (eq edebug-all-defs (not edebug-it)))) (edebug-read-top-level-form)))) ;; This should be consistent with `eval-defun-1', but not the - ;; same, since that gets a macroexpended form. + ;; same, since that gets a macroexpanded form. (cond ((and (eq (car form) 'defvar) (cdr-safe (cdr-safe form))) ;; Force variable to be bound. - (setq form (cons 'defconst (cdr form)))) + (makunbound (nth 1 form))) ((and (eq (car form) 'defcustom) (default-boundp (nth 1 form))) ;; Force variable to be bound. |