Function: idlwave-shell-toggle-enable-current-bp
idlwave-shell-toggle-enable-current-bp is an interactive and
byte-compiled function defined in idlw-shell.el.gz.
Signature
(idlwave-shell-toggle-enable-current-bp &optional BP FORCE NO-UPDATE)
Documentation
Disable or enable current breakpoint or a breakpoint passed in BP.
If FORCE is disable or enable, for that condition instead of
toggling. If NO-UPDATE is non-nil, don't update the breakpoint
list after toggling.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlw-shell.el.gz
(defun idlwave-shell-toggle-enable-current-bp (&optional bp force
no-update)
"Disable or enable current breakpoint or a breakpoint passed in BP.
If FORCE is `disable' or `enable', for that condition instead of
toggling. If NO-UPDATE is non-nil, don't update the breakpoint
list after toggling."
(interactive)
(let* ((bp (or bp (idlwave-shell-find-current-bp)))
(disabled (idlwave-shell-bp-get bp 'disabled)))
(cond ((eq force 'disable) (setq disabled nil))
((eq force 'enable) (setq disabled t)))
(when bp
(setf (nth 3 (cdr (cdr bp))) (not disabled))
(idlwave-shell-send-command
(concat "breakpoint,"
(if disabled "/enable," "/disable,")
(int-to-string (idlwave-shell-bp-get bp)))
nil (idlwave-shell-hide-p 'breakpoint) nil t)
(unless no-update (idlwave-shell-bp-query)))))