Function: idlwave-shell-reset
idlwave-shell-reset is an interactive and byte-compiled function
defined in idlw-shell.el.gz.
Signature
(idlwave-shell-reset &optional HIDDEN)
Documentation
Reset IDL. Return to main level and destroy the leftover variables.
This issues the following commands: RETALL WIDGET_CONTROL,/RESET CLOSE, /ALL HEAP_GC, /VERBOSE
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlw-shell.el.gz
(defun idlwave-shell-reset (&optional hidden)
"Reset IDL. Return to main level and destroy the leftover variables.
This issues the following commands:
RETALL
WIDGET_CONTROL,/RESET
CLOSE, /ALL
HEAP_GC, /VERBOSE"
;; OBJ_DESTROY, OBJ_VALID() FIXME: should this be added?
(interactive "P")
(when (or idlwave-shell-reset-no-prompt
(yes-or-no-p "Really Reset IDL and discard current session? "))
(message "Resetting IDL")
(setq idlwave-shell-calling-stack-index 0)
;; Give widget exit handlers a chance
(idlwave-shell-send-command "retall" nil hidden)
(idlwave-shell-send-command "widget_control,/reset" nil hidden)
(idlwave-shell-send-command "close,/all" nil hidden)
;; (idlwave-shell-send-command "obj_destroy, obj_valid()" nil hidden)
(idlwave-shell-send-command "heap_gc,/verbose" nil hidden)
(idlwave-shell-display-line nil)))