all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.