diff options
author | Alan Mackenzie <acm@muc.de> | 2016-05-07 06:42:29 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2016-05-07 06:42:29 +0000 |
commit | ed5282d239b4304bcc6274dd06e1ce2b5e575053 (patch) | |
tree | cee75575e047eadccdf270f6199a215188bb4f6a /lisp/emacs-lisp/edebug.el | |
parent | bf7fc7a8047752b6b1cff65dc8b8e2bc8173f626 (diff) | |
download | emacs-ed5282d239b4304bcc6274dd06e1ce2b5e575053.tar.gz |
Add an option in Edebug to prevent pauses after `h', 'f', and `o'.
Requested by Paul Pogonyshev. Also add in documentation for Edebug config
variables which was missing.
* lisp/emacs-lisp/edebug.el (edebug-sit-on-break): New customizable option.
(edebug--display-1): Test edebug-sit-on-break before pausing 1 second.
* doc/lispref/edebug.texi (Jumping): Document the effect of the new option.
(Edebug Options): Document the new option. Also add documentation for
edebug-eval-macro-args, edebug-print-length, edebug-print-level,
edebug-print-circle, edebug-sit-for-seconds.
* etc/NEWS: Note the new feature.
Diffstat (limited to 'lisp/emacs-lisp/edebug.el')
-rw-r--r-- | lisp/emacs-lisp/edebug.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index e8484fa1f94..07a846f5986 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -233,6 +233,11 @@ If the result is non-nil, then break. Errors are ignored." :type 'number :group 'edebug) +(defcustom edebug-sit-on-break t + "Whether or not to pause for `edebug-sit-for-seconds' on reaching a break." + :type 'boolean + :group 'edebug) + ;;; Form spec utilities. (defun get-edebug-spec (symbol) @@ -2489,6 +2494,7 @@ MSG is printed after `::::} '." (progn ;; Display result of previous evaluation. (if (and edebug-break + edebug-sit-on-break (not (eq edebug-execution-mode 'Continue-fast))) (sit-for edebug-sit-for-seconds)) ; Show message. (edebug-previous-result))) |