Function: tcl-load-file
tcl-load-file is an interactive and byte-compiled function defined in
tcl.el.gz.
Signature
(tcl-load-file FILE &optional AND-GO)
Documentation
Load a Tcl file into the inferior Tcl process.
Prefix argument means switch to the Tcl buffer afterwards.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/tcl.el.gz
(defun tcl-load-file (file &optional and-go)
"Load a Tcl file into the inferior Tcl process.
Prefix argument means switch to the Tcl buffer afterwards."
(interactive
(list
;; car because comint-get-source returns a list holding the
;; filename.
(car (comint-get-source "Load Tcl file"
(or (and
(derived-mode-p 'tcl-mode)
(buffer-file-name))
tcl-previous-dir/file)
'(tcl-mode) t))
current-prefix-arg))
(comint-check-source file)
(setq tcl-previous-dir/file (cons (file-name-directory file)
(file-name-nondirectory file)))
(tcl-send-string (inferior-tcl-proc)
(format inferior-tcl-source-command (tcl-quote file)))
(if and-go (switch-to-tcl t)))