diff options
| author | Juri Linkov | 2004-06-10 04:18:04 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-06-10 04:18:04 +0000 |
| commit | 95e4aa8ef26b42d70558543ecdd9eca8e095d57b (patch) | |
| tree | 9e0a3b55b4f4564f6ba0e1a4d51e310ac6a4016b | |
| parent | 217297f8ec4a85588fa65eea23c29e8ae9187ac4 (diff) | |
| download | emacs-95e4aa8ef26b42d70558543ecdd9eca8e095d57b.tar.gz emacs-95e4aa8ef26b42d70558543ecdd9eca8e095d57b.zip | |
(edebug-eval-defun): Add `defface'. Fix docstring.
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 3cebfd2435b..9a7b9efc333 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -477,7 +477,8 @@ also dependent on the values of `edebug-all-defs' and | |||
| 477 | If the current defun is actually a call to `defvar', then reset the | 477 | If the current defun is actually a call to `defvar', then reset the |
| 478 | variable using its initial value expression even if the variable | 478 | variable using its initial value expression even if the variable |
| 479 | already has some other value. (Normally `defvar' does not change the | 479 | already has some other value. (Normally `defvar' does not change the |
| 480 | variable's value if it already has a value.) | 480 | variable's value if it already has a value.) Treat `defcustom' |
| 481 | similarly. Reinitialize the face according to `defface' specification. | ||
| 481 | 482 | ||
| 482 | With a prefix argument, instrument the code for Edebug. | 483 | With a prefix argument, instrument the code for Edebug. |
| 483 | 484 | ||
| @@ -507,7 +508,12 @@ the minibuffer." | |||
| 507 | ((and (eq (car form) 'defcustom) | 508 | ((and (eq (car form) 'defcustom) |
| 508 | (default-boundp (nth 1 form))) | 509 | (default-boundp (nth 1 form))) |
| 509 | ;; Force variable to be bound. | 510 | ;; Force variable to be bound. |
| 510 | (set-default (nth 1 form) (eval (nth 2 form))))) | 511 | (set-default (nth 1 form) (eval (nth 2 form)))) |
| 512 | ((eq (car form) 'defface) | ||
| 513 | ;; Reset the face. | ||
| 514 | (put (nth 1 form) 'face-defface-spec nil) | ||
| 515 | (setq face-new-frame-defaults | ||
| 516 | (assq-delete-all (nth 1 form) face-new-frame-defaults)))) | ||
| 511 | (setq edebug-result (eval form)) | 517 | (setq edebug-result (eval form)) |
| 512 | (if (not edebugging) | 518 | (if (not edebugging) |
| 513 | (princ edebug-result) | 519 | (princ edebug-result) |