Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fd6f900c
Commit
fd6f900c
authored
Oct 20, 2008
by
Eli Zaretskii
Browse files
(Creating Strings): Add xrefs to `split-string-and-unquote' and
`combine-and-quote-strings'.
parent
a873ee3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+7
-0
doc/lispref/strings.texi
doc/lispref/strings.texi
+7
-1
etc/NEWS
etc/NEWS
+9
-2
No files found.
doc/lispref/ChangeLog
View file @
fd6f900c
2008-10-20 Eli Zaretskii <eliz@gnu.org>
* processes.texi (Shell Arguments): Document `split-string-and-unquote'
and `combine-and-quote-strings'.
* strings.texi (Creating Strings): Add xrefs for them.
2008-10-19 Eli Zaretskii <eliz@gnu.org>
* elisp.texi (Top): Make descriptive text for "Reading File Names"
...
...
doc/lispref/strings.texi
View file @
fd6f900c
...
...
@@ -272,7 +272,9 @@ printed form is with @code{format} (@pxref{Formatting Strings}) or
For information about other concatenation functions, see the
description of @code{mapconcat} in @ref{Mapping Functions},
@code{vconcat} in @ref{Vector Functions}, and @code{append} in @ref{Building
Lists}.
Lists}. For concatenating individual command-line arguments into a
string to be used as a shell command, see @ref{Shell Arguments,
combine-and-quote-strings}.
@end defun
@defun split-string string &optional separators omit-nulls
...
...
@@ -357,6 +359,10 @@ practice:
(split-string "ooo" "\\|o+" t)
@result{} ("o" "o" "o")
@end example
If you need to split a string that is a shell command, where
individual arguments could be quoted, see @ref{Shell Arguments,
split-string-and-unquote}.
@end defun
@defvar split-string-default-separators
...
...
etc/NEWS
View file @
fd6f900c
...
...
@@ -1599,9 +1599,16 @@ attributes of a given face.
*** `window-full-width-p' returns t if a window is as wide as its
frame.
*** `split-string-and-unquote' does (what?)
+++
*** `split-string-and-unquote' splits a string into a list of substrings
on the boundaries of a given delimiter, and unquotes the substrings that
are quoted. Useful for taking apart shell commands.
*** `combine-and-quote-strings' does (what?)
+++
*** `combine-and-quote-strings' produces a single string from a list of strings
sticking a separator string in between each pair, and quoting those
strings that include the separator as their substring. Useful for
consing shell command lines from the individual arguments.
*** `image-refresh' refreshes all images associated with a given image
specification.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment