help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: external script inserting text at point


From: Lennart Borgman
Subject: Re: external script inserting text at point
Date: Thu, 26 Nov 2009 21:45:10 +0100

On Thu, Nov 26, 2009 at 8:49 PM, LanX <address@hidden> wrote:
> Hi
>
> On 26 Nov., 18:42, Lennart Borgman <address@hidden> wrote:
>> You have to select buffer.
>
> well the question was more how to find the last selected buffer...
>
> anyway after some fiddling I found a working approach: 8)
>
> emacsclient -e '(progn (switch-to-buffer (car (buffer-list)))(insert
> "huhu"))'


Is that guaranteed to give the current buffer on the selected frame?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]