From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Org-protocol/org-capture and new emacsclient frames Date: Tue, 20 Aug 2013 15:33:15 -0700 Message-ID: <871u5ogfh0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBuUJ-0003OZ-VH for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 18:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBuUI-0003tt-MW for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 18:33:19 -0400 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:59571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBuUI-0003tk-GI for emacs-orgmode@gnu.org; Tue, 20 Aug 2013 18:33:18 -0400 Received: by mail-pa0-f51.google.com with SMTP id lf1so29667pab.24 for ; Tue, 20 Aug 2013 15:33:17 -0700 (PDT) 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-org list Hi All, I am in the process of setting up org-protocol to allow me to capture links from chromium into my TODOs. After reading this worg article http://orgmode.org/worg/org-contrib/org-protocol.html I have the chrome -> org portion working. When I click my bookmark, which is javascript:location.href='org-protocol://capture://W/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection()) the org-protocol link is handled correctly, spawning the command /usr/bin/emacsclient -c -n "org-protocol://capture://W/https%3A%2F%2Fwww.google.com%2F/Google/" and that interacts with my capture template ("W" "Web TODO" entry (file org-default-notes-file) "* TODO %?\n%U\n%a\n") to open up a capture buffer that looks like what I want. All is good except for two undesired behaviors: 1) I get a new emacs frame which is split, with the capture buffer only occupying one half. 2) When I finish capture with C-c C-c the frame sticks around. I suppose this is more of an emacs question (org has done its thing), but a similar question has been discussed on this list before: http://comments.gmane.org/gmane.emacs.orgmode/33650 Because that discussion was not making use of org-protocol, I was not able to generalize its conclusions to my circumstance. Suggestions or pointers to other resources would be welcome. Best, Josiah