|
From: | Pascal J. Bourguignon |
Subject: | Re: Why emacsclient -e "(current-word nil t)" does not print ? |
Date: | Tue, 21 Jul 2009 09:33:07 +0200 |
User-agent: | Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
Wang Lei <wanglei.198112@gmail.com> writes: > Hi, all. > > I'm doing a piece of code. What needs get the output of > emacsclient -e "(current-word nil t)" > > and send it to an external command. But there was NO output. I don't > understand. > > Could someone explain that? That's because -e prints the result only when it's not nil. Try: emacsclient -e "(or (current-word nil t) :nil)" -- __Pascal Bourguignon__
[Prev in Thread] | Current Thread | [Next in Thread] |