]> git.eshelyaron.com Git - emacs.git/commitdiff
(edebug-eval-defun): Don't use defconst on variables.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2002 03:20:46 +0000 (03:20 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2002 03:20:46 +0000 (03:20 +0000)
lisp/emacs-lisp/edebug.el

index eb06c6128a7b7a938abca69c07020c0de1a49fcf..66e40ea3b0a5c9e69c05ab705845ea2e71fdb6e7 100644 (file)
@@ -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.