From: Josiah Schwab <jschwab@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Org-protocol/org-capture and new emacsclient frames
Date: Tue, 20 Aug 2013 15:33:15 -0700 [thread overview]
Message-ID: <871u5ogfh0.fsf@gmail.com> (raw)
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
reply other threads:[~2013-08-20 22:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871u5ogfh0.fsf@gmail.com \
--to=jschwab@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).