Function: idlwave-shell-input-mode-magic

idlwave-shell-input-mode-magic is a byte-compiled function defined in idlw-shell.el.gz.

Signature

(idlwave-shell-input-mode-magic STRING)

Documentation

Check STRING for magic words and toggle character input mode.

See also the variable idlwave-shell-input-mode-spells.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/idlw-shell.el.gz
(defun idlwave-shell-input-mode-magic (string)
  "Check STRING for magic words and toggle character input mode.
See also the variable `idlwave-shell-input-mode-spells'."
  (cond
   ((string-match (car idlwave-shell-input-mode-spells) string)
    (call-interactively 'idlwave-shell-send-char))
   ((and (boundp 'idlwave-shell-char-mode-active)
	 (string-match (nth 2 idlwave-shell-input-mode-spells) string))
    (setq idlwave-shell-char-mode-active 'exit))
   ((string-match (nth 1 idlwave-shell-input-mode-spells) string)
    ;; Set a timer which will soon start the character loop
    (run-at-time 0.5 nil #'idlwave-shell-char-mode-loop 'no-error))))