Function: comint-redirect-send-command

comint-redirect-send-command is an autoloaded, interactive and byte-compiled function defined in comint.el.gz.

Signature

(comint-redirect-send-command COMMAND OUTPUT-BUFFER ECHO &optional NO-DISPLAY)

Documentation

Send COMMAND to process in current buffer, with output to OUTPUT-BUFFER.

With prefix arg ECHO, echo output in process buffer.

If NO-DISPLAY is non-nil, do not show the output buffer.

Probably introduced at or before Emacs version 21.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
;;;###autoload
(defun comint-redirect-send-command (command output-buffer echo &optional no-display)
  "Send COMMAND to process in current buffer, with output to OUTPUT-BUFFER.
With prefix arg ECHO, echo output in process buffer.

If NO-DISPLAY is non-nil, do not show the output buffer."
  (interactive "sCommand: \nBOutput Buffer: \nP" comint-mode)
  (let ((process (get-buffer-process (current-buffer))))
    (if process
	(comint-redirect-send-command-to-process
	 command output-buffer (current-buffer) echo no-display)
      (error "No process for current buffer"))))