emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tyler Smith <tyler@plantarum.ca>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] protocol: allow users to disable warning about old style links
Date: Wed, 21 Jun 2017 12:34:12 -0400	[thread overview]
Message-ID: <1498062852.14269.1016864968.04B8B33C@webmail.messagingengine.com> (raw)
In-Reply-To: <1498062267.12063.1016838368.47F2F341@webmail.messagingengine.com>

On Wed, Jun 21, 2017, at 12:24 PM, Tyler Smith wrote:
> 
> whereas the new-style key-value links would be:
> 
>     javascript:location.href='org-protocol://sub-protocol?url='+
>           encodeURIComponent(location.href)+'&title='+
>           encodeURIComponent(document.title)+'&selection='+
>           encodeURIComponent(window.getSelection())
> 

Aha! The new-style links are documented in the function docs. E.g., for
`org-protocol-capture`:

  javascript:location.href = 'org-protocol://capture?url='+ 
        encodeURIComponent(location.href) + '&title=' 
        encodeURIComponent(document.title) + '&body=' + 
        encodeURIComponent(window.getSelection())

It would be very helpful to have that visible in the new documentation.

Thanks,

Tyler

  reply	other threads:[~2017-06-21 16:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 12:11 [PATCH] protocol: allow users to disable warning about old style links Alex Branham
2017-06-16  6:13 ` Nicolas Goaziou
2017-06-16 11:31   ` Alex Branham
2017-06-16 14:26     ` Nicolas Goaziou
2017-06-21 15:27   ` Tyler Smith
2017-06-21 16:01     ` Mario Martelli
2017-06-21 16:24       ` Tyler Smith
2017-06-21 16:34         ` Tyler Smith [this message]
2017-06-21 16:51         ` Mario Martelli
2017-06-21 17:09           ` Tyler Smith
2017-06-21 17:17             ` Mario Martelli

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=1498062852.14269.1016864968.04B8B33C@webmail.messagingengine.com \
    --to=tyler@plantarum.ca \
    --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).