emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: Update to org-protocol-capture-html
Date: Mon, 24 Jul 2017 18:50:30 -0500	[thread overview]
Message-ID: <87eft51jjt.fsf@alphapapa.net> (raw)
In-Reply-To: 7af9aa56-737b-bb68-bfb5-60bdad81335a@gmail.com

Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com> writes:

> I'm using 9.0 too. It's just that I'm also using Windows. Maybe it's
> the only platform where this happens.

Yeah, I haven't even tried org-protocol on Windows.  When I'm in Windows
I use the Cygwin version of Emacs, and there are occasional issues with
the Windows fork() code, which I guess might interact with this.

> I even got the idea that you could use single slashes there from
> test-org-protocol.el, since the documentation for org-protocol is
> outdated.

I saw another thread where some folks are working to update that...

> Weirdly some tests in test-org-protocol.el use single slash, while
> some use double. I guess we need a comment on this from org-protocol
> dev.

That does seem weird.

> Yeah, I've seen emacsclient stockpiling, it happens on Windows and
> should also happen on some other platforms, I guess, depending on how
> their protocol support and/or OS processes are implemented. By default
> emacsclient creates a process that waits till server reports that it's
> finished editing it. This works for stuff like git and other places
> where you want to edit something and then do something else from an
> external app. But for places where you're not doing anything else it's
> kind of pointless.

On my system, the emacsclient process is killed when the org-capture
buffer appears.  I usually see this message, which I guess has something
to do with it (I don't fully understand how org-protocol works
internally):

"Greedy org-protocol handler.  Killing client."

Which protocol handler are you using?  Maybe the problem lies there.

> Bonus somewhat offtopic question: I remember that you could create a
> capture template that captures immediately, without launching a
> capture window. How is it done? Forgot to write down the instructions,
> the last time I tinkered with org-protocol.

C-h v org-capture-templates RET

Look for ":immediate-finish".  :)

  reply	other threads:[~2017-07-24 23:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04  5:16 Update to org-protocol-capture-html Adam Porter
2017-07-22 22:57 ` Nikolay Kudryavtsev
2017-07-23 22:35   ` Adam Porter
2017-07-24  6:52     ` Nikolay Kudryavtsev
2017-07-24 23:50       ` Adam Porter [this message]
2017-07-27 11:58         ` Nikolay Kudryavtsev
2017-07-27 15:40         ` Nikolay Kudryavtsev
2017-07-29  1:23           ` Adam Porter
2017-07-29 16:26             ` Nikolay Kudryavtsev

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=87eft51jjt.fsf@alphapapa.net \
    --to=adam@alphapapa.net \
    --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).