unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* substitute with emacsclient -e experssion
@ 2008-06-13  3:48 Kevin JR
  2008-06-13  5:41 ` Herbert Euler
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin JR @ 2008-06-13  3:48 UTC (permalink / raw)
  To: Help-gnu-emacs


Is it possible make substitute work like: 
   emacsclient -e '(foo "`basename ${url}`")'?

or similar one to convert:
   `basename ${url}` --> URL
   emacsclient -e '(foo "`basename ${url}`")'? --> macsclient -e '(foo
"URL")'
-- 
View this message in context: http://www.nabble.com/substitute-with-emacsclient--e-experssion-tp17814578p17814578.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





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

* RE: substitute with emacsclient -e experssion
  2008-06-13  3:48 substitute with emacsclient -e experssion Kevin JR
@ 2008-06-13  5:41 ` Herbert Euler
  2008-06-13  8:45   ` Kevin JR
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Euler @ 2008-06-13  5:41 UTC (permalink / raw)
  To: Kevin JR, help-gnu-emacs


> Is it possible make substitute work like: 
>    emacsclient -e '(foo "`basename ${url}`")'?
> 
> or similar one to convert:
>    `basename ${url}` --> URL
>    emacsclient -e '(foo "`basename ${url}`")'? --> macsclient -e '(foo
> "URL")'

Yes, it is possible.  But you need double quotes instead of single
quotes, as defined by the Shell syntax:

  $ emacsclient -e "(foo \"`basename ${url}`\")"

Regards,
Guanpeng Xu
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE




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

* RE: substitute with emacsclient -e experssion
  2008-06-13  5:41 ` Herbert Euler
@ 2008-06-13  8:45   ` Kevin JR
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin JR @ 2008-06-13  8:45 UTC (permalink / raw)
  To: Help-gnu-emacs



Herbert Euler wrote:
> 
> 
> Yes, it is possible.  But you need double quotes instead of single
> quotes, as defined by the Shell syntax:
> 
>   $ emacsclient -e "(foo \"`basename ${url}`\")"
> 
> 

got it, thanks very much! :)
-- 
View this message in context: http://www.nabble.com/substitute-with-emacsclient--e-experssion-tp17814578p17818931.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





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

end of thread, other threads:[~2008-06-13  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-13  3:48 substitute with emacsclient -e experssion Kevin JR
2008-06-13  5:41 ` Herbert Euler
2008-06-13  8:45   ` Kevin 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).