Function: idlwave-shell-complete
idlwave-shell-complete is an interactive and byte-compiled function
defined in idlw-shell.el.gz.
Signature
(idlwave-shell-complete &optional ARG)
Documentation
Do completion in the idlwave-shell buffer.
Calls idlwave-shell-complete-filename after some executive commands or
in strings. Otherwise, calls idlwave-complete to complete modules and
keywords.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlw-shell.el.gz
(defun idlwave-shell-complete (&optional arg)
"Do completion in the `idlwave-shell' buffer.
Calls `idlwave-shell-complete-filename' after some executive commands or
in strings. Otherwise, calls `idlwave-complete' to complete modules and
keywords."
(interactive "P")
(let (exec-cmd)
(cond
((and
(setq exec-cmd (idlwave-shell-executive-command))
(cdr exec-cmd)
(member (upcase (cdr exec-cmd))
'(".R" ".RU" ".RUN" ".RN" ".RNE" ".RNEW"
".COM" ".COMP" ".COMPI" ".COMPIL" ".COMPILE")))
;; We are in a command line with an executive command
(idlwave-shell-complete-filename))
((car-safe exec-cmd)
(setq idlwave-completion-help-info
'(idlwave-shell-complete-execcomm-help))
(idlwave-complete-in-buffer 'execcomm 'execcomm
idlwave-executive-commands-alist nil
"Select an executive command"
"system variable"))
((idlwave-shell-batch-command)
(idlwave-shell-complete-filename))
((idlwave-shell-shell-command)
(idlwave-shell-complete-filename))
((and (idlwave-shell-filename-string)
(save-excursion
(beginning-of-line)
(let ((case-fold-search t))
(not (looking-at ".*obj_new")))))
(idlwave-shell-complete-filename))
(t
;; Default completion of modules and keywords
(idlwave-complete arg)))))