From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: external script inserting text at point Date: Thu, 26 Nov 2009 11:49:26 -0800 (PST) Organization: http://groups.google.com Message-ID: <741ffdf0-0d28-46dc-9353-ca8bdd2c0dc3@r5g2000yqb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1259268131 1563 80.91.229.12 (26 Nov 2009 20:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 20:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 21:42:05 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDlAC-0008G4-G7 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 21:42:04 +0100 Original-Received: from localhost ([127.0.0.1]:54070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDlAC-0003d7-5M for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 15:42:04 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!postnews.google.com!r5g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 188.107.209.213 Original-X-Trace: posting.google.com 1259264967 12795 127.0.0.1 (26 Nov 2009 19:49:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 26 Nov 2009 19:49:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r5g2000yqb.googlegroups.com; posting-host=188.107.209.213; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.14) Gecko/2009090216 Ubuntu/8.10 (intrepid) Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:175088 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70154 Archived-At: Hi On 26 Nov., 18:42, Lennart Borgman 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"))' Cheers Rolf