From 0c4a4faa07fcc94849de914296360d3f8cb8ead1 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 12 Apr 2002 03:20:46 +0000 Subject: [PATCH] (edebug-eval-defun): Don't use defconst on variables. --- lisp/emacs-lisp/edebug.el | 4 ++-- 1 file 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. -- 2.39.2