aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/processes.texi
diff options
context:
space:
mode:
authorStefan Monnier2010-12-13 10:27:36 -0500
committerStefan Monnier2010-12-13 10:27:36 -0500
commitf49d1f52b2e368ef67dcfececd426de958548f4e (patch)
treece24ced92f2acc976daf4b69e3634c8bd600e44e /doc/lispref/processes.texi
parent07176b2a9e63a0d3933b167f987475d8a18da5cc (diff)
parent11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (diff)
downloademacs-f49d1f52b2e368ef67dcfececd426de958548f4e.tar.gz
emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.zip
Merge from emacs-23
Diffstat (limited to 'doc/lispref/processes.texi')
-rw-r--r--doc/lispref/processes.texi23
1 files changed, 15 insertions, 8 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 89f97f99de3..cb67d628947 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -195,10 +195,18 @@ a shell command:
195@end example 195@end example
196@end defun 196@end defun
197 197
198@cindex quoting and unquoting shell command line 198@cindex quoting and unquoting command-line arguments
199 The following two functions are useful for creating shell commands 199@cindex minibuffer input, and command-line arguments
200from individual argument strings, and taking shell command lines apart 200@cindex @code{call-process}, command-line arguments from minibuffer
201into individual arguments. 201@cindex @code{start-process}, command-line arguments from minibuffer
202 The following two functions are useful for combining a list of
203individual command-line argument strings into a single string, and
204taking a string apart into a list of individual command-line
205arguments. These functions are mainly intended to be used for
206converting user input in the minibuffer, a Lisp string, into a list of
207string arguments to be passed to @code{call-process} or
208@code{start-process}, or for the converting such lists of arguments in
209a single Lisp string to be presented in the minibuffer or echo area.
202 210
203@defun split-string-and-unquote string &optional separators 211@defun split-string-and-unquote string &optional separators
204This function splits @var{string} into substrings at matches for the 212This function splits @var{string} into substrings at matches for the
@@ -210,7 +218,7 @@ If @var{separators} is omitted or @code{nil}, it defaults to
210@code{"\\s-+"}, which is a regular expression that matches one or more 218@code{"\\s-+"}, which is a regular expression that matches one or more
211characters with whitespace syntax (@pxref{Syntax Class Table}). 219characters with whitespace syntax (@pxref{Syntax Class Table}).
212 220
213This function performs two types of quoting: enclosing a whole string 221This function supports two types of quoting: enclosing a whole string
214in double quotes @code{"@dots{}"}, and quoting individual characters 222in double quotes @code{"@dots{}"}, and quoting individual characters
215with a backslash escape @samp{\}. The latter is also used in Lisp 223with a backslash escape @samp{\}. The latter is also used in Lisp
216strings, so this function can handle those as well. 224strings, so this function can handle those as well.
@@ -226,9 +234,8 @@ resulting string.
226The strings in @var{list-of-strings} that need quoting are those that 234The strings in @var{list-of-strings} that need quoting are those that
227include @var{separator} as their substring. Quoting a string encloses 235include @var{separator} as their substring. Quoting a string encloses
228it in double quotes @code{"@dots{}"}. In the simplest case, if you 236it in double quotes @code{"@dots{}"}. In the simplest case, if you
229are consing a shell command from the individual command-line 237are consing a command from the individual command-line arguments,
230arguments, every argument that includes embedded blanks will be 238every argument that includes embedded blanks will be quoted.
231quoted.
232@end defun 239@end defun
233 240
234@node Synchronous Processes 241@node Synchronous Processes