From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Invoking org-protocol via emacsclient switches buffer Date: Thu, 28 Feb 2013 08:52:14 +0100 Message-ID: <87sj4hmjlu.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAyHp-0002C5-7D for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 02:52:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAyHo-0007Ps-7l for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 02:52:17 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:47489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAyHo-0007Pk-21 for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 02:52:16 -0500 Received: by mail-wg0-f48.google.com with SMTP id 16so1212701wgi.27 for ; Wed, 27 Feb 2013 23:52:15 -0800 (PST) In-Reply-To: (Marcus Klemm's message of "Thu, 14 Feb 2013 17:04:33 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcus Klemm Cc: emacs-orgmode@gnu.org Hi Marcus, Marcus Klemm writes: > I wrote myself a small bash script that uses dmenu and emacsclient > to get notes into Org-Mode via org-protocol-capture. I've set up > some capture templates that fill in the provided information and > configured them to immediate finish without further interaction. > > Most of the time I just have one Emacs frame displaying my agenda. > Now, when I invoke my script, the notes get added to my org file > just fine but Emacs also switches away from my agenda to the org > file the notes get inserted into. > > Is there a way to prevent that? Can you share a bit more of your configuration so that we can try to reproduce the problem? E.g. the relevant part of your script and an example capture template. Also please mention what version of Org and Emacs you are using... Thanks in advance! -- Bastien