Nick Dokos <nicholas.do...@hp.com> 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


Reply via email to