[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] Org link dialog escapes URL spaces incorrectly
From: |
Nick Dokos |
Subject: |
Re: [O] [bug] Org link dialog escapes URL spaces incorrectly |
Date: |
Fri, 04 Nov 2011 14:25:42 -0400 |
Nick Dokos <address@hidden> wrote:
> It probably does, but that's probably not the best place to do it: it might be
> better to do it in the (setq link on line 9090 or thereabouts. Otherwise, in
> the *other* case (editing the link at point), we'll end up unescaping twice:
> probably not a problem, since unescaping should be idempotent (in contrast to
> escaping ;-) ) but why do it twice?
>
Brian Wightman pointed out to me that the idempotent part of the
statement above is definitely wrong (d'oh). The original URL that Jeff
Horn posted, when unescaped once, would be completely free of % signs.
But if the second (doubly-escaped) form is pasted into the minibuffer,
then unescaping once would not be enough. So I presume the thing to do
is to take the URL and unescape it repeatedly until it loses all
escapes, and then escape it *once* before inserting it in the org
buffer.
Sounds icky, kludgy, dirty. The question is: 1) is it a solution?
and 2) is there a better one?
Nick
- [O] [bug] Org link dialog escapes URL spaces incorrectly, Jeff Horn, 2011/11/01
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Jeff Horn, 2011/11/04
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Nick Dokos, 2011/11/04
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Nick Dokos, 2011/11/04
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly,
Nick Dokos <=
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, David Maus, 2011/11/05
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Nick Dokos, 2011/11/05
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, David Maus, 2011/11/06
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Nick Dokos, 2011/11/06
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, David Maus, 2011/11/13
- Re: [O] [bug] Org link dialog escapes URL spaces incorrectly, Nick Dokos, 2011/11/13