From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tyler Smith Subject: Re: [PATCH] protocol: allow users to disable warning about old style links Date: Wed, 21 Jun 2017 12:34:12 -0400 Message-ID: <1498062852.14269.1016864968.04B8B33C@webmail.messagingengine.com> References: <8737b2bwg9.fsf@utexas.edu> <8737b0h33u.fsf@nicolasgoaziou.fr> <1498058861.4191387.1016780232.4A4DF5FB@webmail.messagingengine.com> <03532FC9-6028-4699-B695-CB474FD155AB@martelli.de> <1498062267.12063.1016838368.47F2F341@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNia9-0006cV-Mw for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 12:34:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNia5-0008Nb-Jn for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 12:34:17 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:34059) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dNia5-0008NN-8T for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 12:34:13 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4042620BBC for ; Wed, 21 Jun 2017 12:34:12 -0400 (EDT) In-Reply-To: <1498062267.12063.1016838368.47F2F341@webmail.messagingengine.com> 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" To: emacs-orgmode@gnu.org 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