unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* double backslash problem in elisp
@ 2009-08-21  9:43 Xah Lee
  2009-08-21 10:11 ` Teemu Likonen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xah Lee @ 2009-08-21  9:43 UTC (permalink / raw)
  To: help-gnu-emacs


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/^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-22 21:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21  9:43 double backslash problem in elisp Xah Lee
2009-08-21 10:11 ` 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

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).