[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
elisp substitution
From: |
matt |
Subject: |
elisp substitution |
Date: |
Sat, 18 Jan 2003 09:13:15 GMT |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 |
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.
- elisp substitution,
matt <=