emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: Neil Jerram <neil@ossau.homelinux.net>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Escaping links
Date: Mon, 14 Aug 2017 18:35:54 +0200	[thread overview]
Message-ID: <CAFgFV9N_xkfHks7TK1aJDkSG-uS=G7CMgeT9ugTaqUasr5yUqQ@mail.gmail.com> (raw)
In-Reply-To: <66cadfb9-5b38-03fb-cde0-090b1dfd7c66@ossau.homelinux.net>

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

You could also prefix the link by a string holding (in ascii) the number of
bytes of the unencoded link.

But that makes raw/manual editing of an org file much harder.


2017-08-14 18:26 GMT+02:00 Neil Jerram <neil@ossau.homelinux.net>:

> Except if your original string was "%org-9.0"...
>
> For this kind of approach to work, you generally need to prefix
> everything; specifically included the cases that are _not_ encoded.
>
> Regards - Neil
>
>
>
> On 12/08/17 16:01, John Kitchin wrote:
>
>> I was thinking of something like how all PDF files start with something
>> like %PDF-1.3. So any string that started with %org-9.0, for example
>> would be certain to be encoded, whereas any other beginning would not be
>> certain.
>>
>> Nicolas Goaziou writes:
>>
>> Hello,
>>>
>>> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>>>
>>> Could you put some magic at the beginning of the string that indicates it
>>>> is encoded?
>>>>
>>> I don't know. Could you elaborate a bit?
>>>
>>> Regards,
>>>
>>
>>
>
>


-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 2297 bytes --]

  reply	other threads:[~2017-08-14 16:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 13:26 Escaping links Fabrice Popineau
2017-08-11 15:13 ` Nicolas Goaziou
2017-08-11 17:31   ` John Kitchin
2017-08-11 19:54     ` Fabrice Popineau
2017-08-12 10:44     ` Nicolas Goaziou
2017-08-12 14:01       ` John Kitchin
2017-08-14 16:26         ` Neil Jerram
2017-08-14 16:35           ` Fabrice Popineau [this message]
2017-08-19  9:15             ` Nicolas Goaziou

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='CAFgFV9N_xkfHks7TK1aJDkSG-uS=G7CMgeT9ugTaqUasr5yUqQ@mail.gmail.com' \
    --to=fabrice.popineau@supelec.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@centralesupelec.fr \
    --cc=neil@ossau.homelinux.net \
    /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).