1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 07:40:39 -08:00

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.
This commit is contained in:
Alan Mackenzie 2016-05-07 06:42:29 +00:00
parent bf7fc7a804
commit ed5282d239
3 changed files with 51 additions and 0 deletions

View file

@ -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)))