From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Klemm Subject: Invoking org-protocol via emacsclient switches buffer Date: Thu, 14 Feb 2013 17:04:33 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U62F1-00033D-A8 for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:05:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U62Ev-00078B-UZ for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:04:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:49610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U62Ev-000784-Ok for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 12:04:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U62FD-0000J4-EW for emacs-orgmode@gnu.org; Thu, 14 Feb 2013 18:05:11 +0100 Received: from erft-5d80b858.pool.mediaWays.net ([93.128.184.88]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2013 18:05:11 +0100 Received: from marcus.klemm by erft-5d80b858.pool.mediaWays.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Feb 2013 18:05:11 +0100 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: emacs-orgmode@gnu.org Hello Org-Mode team, 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?