Function: tcl-eval-region
tcl-eval-region is an interactive and byte-compiled function defined
in tcl.el.gz.
Signature
(tcl-eval-region START END &optional AND-GO)
Documentation
Send the current region to 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-eval-region (start end &optional and-go)
"Send the current region to the inferior Tcl process.
Prefix argument means switch to the Tcl buffer afterwards."
(interactive "r\nP")
(let ((proc (inferior-tcl-proc)))
(tcl-send-region
proc
;; Strip leading and trailing whitespace.
(save-excursion (goto-char start) (skip-chars-forward " \t\n") (point))
(save-excursion (goto-char end) (skip-chars-backward " \t\n") (point)))
(tcl-send-string proc "\n")
(if and-go (switch-to-tcl t))))