unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* elisp substitution
@ 2003-01-18  9:13 matt
  2003-01-18 17:35 ` Friedrich Dominicus
  0 siblings, 1 reply; 4+ messages in thread
From: matt @ 2003-01-18  9:13 UTC (permalink / raw)


I'm just starting to play around with emacs lisp. A quick question. How 
can I manipulate variables in elisp? For instance, I want to take a 
string and add a backslash(escape) to all whitespace. Like in a path like
"c:/Documents and settings/" I want to change it to
"c:/Documents\ and\ Settings/".

Something similar to this in perl: $var =~ s/( )/\\$1/g;

Thanks,

Matt
-- 
Remove the X's to reply directly.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-18 22:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-18  9:13 elisp substitution matt
2003-01-18 17:35 ` Friedrich Dominicus
2003-01-18 22:04   ` Christopher J. White
2003-01-18 22:14     ` Jesper Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).