From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: double backslash problem in elisp
Date: Fri, 21 Aug 2009 02:43:18 -0700 (PDT) [thread overview]
Message-ID: <2cb7861e-3cf9-4613-b0a6-194ae80d0b6e@i8g2000pro.googlegroups.com> (raw)
this is really a strang error.
eval this:
(replace-regexp-in-string "/" "\\" "//169.254.153.147/xah/Documents/
alice artwork scans/")
i get this error:
Debugger entered--Lisp error: (error "Invalid use of `\\' in
replacement text")
replace-match("\\" nil nil "/" nil)
replace-regexp-in-string("/" "\\" "//169.254.153.147/xah/Documents/
alice artwork scans/")
eval((replace-regexp-in-string "/" "\\" "//169.254.153.147/xah/
Documents/alice artwork scans/"))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
any idea why?
double backslash should mean single backslash as far as i knows...
basically am trying to prepare a path to feed to w32-shell-execute.
Xah
∑ http://xahlee.org/
☄
next reply other threads:[~2009-08-21 9:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-21 9:43 Xah Lee [this message]
2009-08-21 10:11 ` double backslash problem in elisp Teemu Likonen
2009-08-22 1:18 ` Kevin Rodgers
[not found] ` <mailman.5099.1250903947.2239.help-gnu-emacs@gnu.org>
2009-08-22 2:42 ` Xah Lee
2009-08-22 21:39 ` Kevin Rodgers
2009-08-22 21:01 ` John A Pershing Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cb7861e-3cf9-4613-b0a6-194ae80d0b6e@i8g2000pro.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.