# HG changeset patch # User Chong Yidong # Date 1253850142 0 # Node ID 5b4bbf79ac2a156e5959d28ac9940c9437f71655 # Parent 35632fd1c56a42536fdae86cfb2c6d341efd310d * comint.el (comint-exec, comint-run, make-comint): Doc fixes (Bug#4542). diff -r 35632fd1c56a -r 5b4bbf79ac2a lisp/ChangeLog --- a/lisp/ChangeLog Fri Sep 25 03:39:23 2009 +0000 +++ b/lisp/ChangeLog Fri Sep 25 03:42:22 2009 +0000 @@ -1,3 +1,8 @@ +2009-09-25 Devon Sean McCullough + + * comint.el (comint-exec, comint-run, make-comint): Doc + fixes (Bug#4542). + 2009-09-25 Glenn Morris * mail/rmailmm.el (rmail-mime): New custom group. diff -r 35632fd1c56a -r 5b4bbf79ac2a lisp/comint.el --- a/lisp/comint.el Fri Sep 25 03:39:23 2009 +0000 +++ b/lisp/comint.el Fri Sep 25 03:42:22 2009 +0000 @@ -686,7 +686,8 @@ via `start-file-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP connection to be opened via `open-network-stream'. If there is already a running process in that buffer, it is not restarted. Optional fourth arg -STARTFILE is the name of a file to send the contents of to the process. +STARTFILE is the name of a file, whose contents are sent to the +process as its initial input. If PROGRAM is a string, any more args are arguments to PROGRAM." (or (fboundp 'start-file-process) @@ -709,7 +710,8 @@ via `start-file-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP connection to be opened via `open-network-stream'. If there is already a running process in that buffer, it is not restarted. Optional third arg -STARTFILE is the name of a file to send the contents of the process to. +STARTFILE is the name of a file, whose contents are sent to the +process as its initial input. If PROGRAM is a string, any more args are arguments to PROGRAM." (apply #'make-comint-in-buffer name nil program startfile switches)) @@ -728,7 +730,7 @@ (defun comint-exec (buffer name command startfile switches) "Start up a process named NAME in buffer BUFFER for Comint modes. -Runs the given COMMAND with SWITCHES with output to STARTFILE. +Runs the given COMMAND with SWITCHES, and initial input from STARTFILE. Blasts any old process running in the buffer. Doesn't set the buffer mode. You can use this to cheaply run a series of processes in the same Comint buffer. The hook `comint-exec-hook' is run after each exec."