diff options
| author | Gerd Moellmann | 2000-07-05 15:15:53 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-05 15:15:53 +0000 |
| commit | 44b6285eb6187d9da56d55fda68f9dcc766fdfb4 (patch) | |
| tree | 236cee7812a6a859c6a34b4c316742d4faffec65 | |
| parent | f4d195451a38ef2fc27b5686ca5f8312b54fb8b3 (diff) | |
| download | emacs-44b6285eb6187d9da56d55fda68f9dcc766fdfb4.tar.gz emacs-44b6285eb6187d9da56d55fda68f9dcc766fdfb4.zip | |
(edebug-eval-defun): Make doc string
similar to that of eval-defun.
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index fc2a1d5f58e..2813eeb621e 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -516,11 +516,23 @@ also dependent on the values of `edebug-all-defs' and | |||
| 516 | (defun edebug-eval-defun (edebug-it) | 516 | (defun edebug-eval-defun (edebug-it) |
| 517 | "Evaluate the top-level form containing point, or after point. | 517 | "Evaluate the top-level form containing point, or after point. |
| 518 | 518 | ||
| 519 | This version, from Edebug, has the following differences: With a | 519 | If the current defun is actually a call to `defvar', then reset the |
| 520 | prefix argument instrument the code for Edebug. If `edebug-all-defs' is | 520 | variable using its initial value expression even if the variable |
| 521 | non-nil, then the code is instrumented *unless* there is a prefix | 521 | already has some other value. (Normally `defvar' does not change the |
| 522 | argument. If instrumenting, it prints: `Edebug: FUNCTIONNAME'. | 522 | variable's value if it already has a value.) |
| 523 | Otherwise, it prints in the minibuffer." | 523 | |
| 524 | With a prefix argument, instrument the code for Edebug. | ||
| 525 | |||
| 526 | Setting `edebug-all-defs' to a non-nil value reverses the meaning of | ||
| 527 | the prefix argument. Code is then instrumented when this function is | ||
| 528 | invoked without a prefix argument | ||
| 529 | |||
| 530 | If acting on a `defun' for FUNCTION, and the function was | ||
| 531 | instrumented, `Edebug: FUNCTION' is printed in the minibuffer. If not | ||
| 532 | instrumented, just FUNCTION is printed. | ||
| 533 | |||
| 534 | If not acting on a `defun', the result of evaluation is displayed in | ||
| 535 | the minibuffer." | ||
| 524 | (interactive "P") | 536 | (interactive "P") |
| 525 | (let* ((edebugging (not (eq (not edebug-it) (not edebug-all-defs)))) | 537 | (let* ((edebugging (not (eq (not edebug-it) (not edebug-all-defs)))) |
| 526 | (edebug-result) | 538 | (edebug-result) |