From: Nikolaj Schumacher <me@nschum.de>
To: Michal <rabbit50@tenbit.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs 23 and emacsclient question.
Date: Fri, 06 Mar 2009 14:08:12 +0100 [thread overview]
Message-ID: <m2d4cudcjn.fsf@nschum.de> (raw)
In-Reply-To: <m21vtaq2el.fsf@tenbit.pl> (Michal's message of "Fri, 06 Mar 2009 13:08:50 +0100")
Michal <rabbit50@tenbit.pl> 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
next prev parent reply other threads:[~2009-03-06 13:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-06 12:08 emacs 23 and emacsclient question Michal
2009-03-06 12:58 ` Juanma Barranquero
2009-03-06 13:08 ` Nikolaj Schumacher [this message]
[not found] ` <mailman.2512.1236344322.31690.help-gnu-emacs@gnu.org>
2009-03-06 14:53 ` Michal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2d4cudcjn.fsf@nschum.de \
--to=me@nschum.de \
--cc=help-gnu-emacs@gnu.org \
--cc=rabbit50@tenbit.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).