[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why emacsclient -e "(current-word nil t)" does not print ?
From: |
Teemu Likonen |
Subject: |
Re: Why emacsclient -e "(current-word nil t)" does not print ? |
Date: |
Wed, 22 Jul 2009 09:19:38 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
On 2009-07-22 13:14 (+0800), Wang Lei wrote:
> On 7/21/09, Pascal J. Bourguignon <pjb@informatimago.com> wrote:
>> Wang Lei <wanglei.198112@gmail.com> writes:
>>> Here, I wanted to say I have tried to write a external program, that
>>> gets the emacs' current word with emacsclient and send it to sdcv to
>>> search. This is part of the whole function, the rest is to get it
>>> from selection or prompt for. But now, it looks like i can not
>>> integrate the emacs-part.
>>
>> (You could, but you must know what buffer you want.)
> Actually, I don't know. I want the program can get any word in any
> application to search. In applications like browser you have to rely
> selection, but in emacs "mark" or "current-word" should be better.
How about using the selected window? Its buffer can be obtained with
Emacs client:
emacsclient -e '(with-current-buffer (window-buffer (selected-window))
(current-word))'
- Re: Why emacsclient -e "(current-word nil t)" does not print ?, (continued)
- Message not available
- Message not available
Message not available
Message not availableRe: Why emacsclient -e "(current-word nil t)" does not print ?, Anselm Helbig, 2009/07/22
Re: Why emacsclient -e "(current-word nil t)" does not print ?, Wang Lei, 2009/07/22