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

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

Re: emacs 23 and emacsclient question.


From: Nikolaj Schumacher
Subject: Re: emacs 23 and emacsclient question.
Date: Fri, 06 Mar 2009 14:08:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin)

Michal <address@hidden> wrote:

> prompt$ /usr/local/bin/emacsclient --eval "(current-buffer)" "(point)"
>
> Have You got idea how to get  current buffer and point?

You can use
"(car (buffer-list))"
"(with-current-buffer (car (buffer-list)) (point))"

Since Emacs 23 can have multiple terminals, this might not be
well-defined in all cases.

regards,
Nikolaj Schumacher




reply via email to

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