all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: LanX <lanx.perl@googlemail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: external script inserting text at point
Date: Thu, 26 Nov 2009 21:45:10 +0100	[thread overview]
Message-ID: <e01d8a50911261245m69398664s2fe384df3c716ef8@mail.gmail.com> (raw)
In-Reply-To: <741ffdf0-0d28-46dc-9353-ca8bdd2c0dc3@r5g2000yqb.googlegroups.com>

On Thu, Nov 26, 2009 at 8:49 PM, LanX <lanx.perl@googlemail.com> wrote:
> Hi
>
> On 26 Nov., 18:42, Lennart Borgman <lennart.borg...@gmail.com> 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	other threads:[~2009-11-26 20:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-26 16:10 external script inserting text at point LanX
2009-11-26 17:42 ` Lennart Borgman
     [not found] ` <mailman.11571.1259257397.2239.help-gnu-emacs@gnu.org>
2009-11-26 19:49   ` LanX
2009-11-26 20:45     ` Lennart Borgman [this message]
2009-11-29 18:34       ` LanX
2009-11-29 18:36         ` Lennart Borgman
2009-11-29 18:42           ` LanX
2009-11-29 21:54             ` Lennart Borgman
2009-11-29 23:52               ` LanX
2009-11-30  0:10                 ` Lennart Borgman
2009-11-30  0:33                 ` Steve Revilak

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50911261245m69398664s2fe384df3c716ef8@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lanx.perl@googlemail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.