mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
(edebug-eval-defun): Don't use defconst on variables.
This commit is contained in:
parent
6836bb6931
commit
0c4a4faa07
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue