Function: edebug-set-initial-mode
edebug-set-initial-mode is an interactive and byte-compiled function
defined in edebug.el.gz.
Signature
(edebug-set-initial-mode)
Documentation
Set the initial execution mode of Edebug.
The mode is requested via the key that would be used to set the mode in
edebug-mode(var)/edebug-mode(fun).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/edebug.el.gz
(defun edebug-set-initial-mode ()
"Set the initial execution mode of Edebug.
The mode is requested via the key that would be used to set the mode in
`edebug-mode'."
(interactive)
(let* ((old-mode edebug-initial-mode)
(key (read-key-sequence
(format
"Change initial edebug mode from %s (%c) to (enter key): "
old-mode
(aref (where-is-internal
(car (rassq old-mode edebug-initial-mode-alist))
edebug-mode-map 'firstonly)
0))))
(mode (cdr (assq (lookup-key edebug-mode-map key)
edebug-initial-mode-alist))))
(if mode
(progn
(setq edebug-initial-mode mode)
(message "Edebug's initial mode is now: %s" mode))
(error "Key must map to one of the mode changing commands"))))