emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Dave Abrahams <dave@boostpro.com>
Cc: David Maus <dmaus@ictsoc.de>, emacs-orgmode@gnu.org
Subject: Re: Bug: unable to open link unless `...from-string'	[7.7 (release_7.7.292.g0d4e8.dirty)]
Date: Sun, 25 Sep 2011 08:46:24 +0200	[thread overview]
Message-ID: <87ehz5ktkv.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <m2zkhwu0ld.fsf@boostpro.com>

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

At Thu, 22 Sep 2011 10:13:18 -0400,
Dave Abrahams wrote:
> on Thu Sep 22 2011, David Maus <dmaus-AT-ictsoc.de> wrote:
> >> > The link escaping was changed in November 2010, maybe the link in
> >> > question is an old one?
> >>
> >> Yep.
> >
> > Good. This explains it.
> I think it's unfortunate that link escaping should have been changed in
> a backward-incompatible way.  Seems like the "right" thing to do would
> have been to add a fallback to the old interpretation if the new one
> failed.

True, but the problem is that AFAIK there is now way to
programmatically check if the new escpaing/unescaping fails. There is
this function:


| Starting with version 7.5 Org uses percent escaping more consistently
| and with a modified algorithm to determine which characters to escape
| and how.
| As a side effect this modified behaviour might break existing links if
| they contain a sequence of characters that look like a percent escape
| (e.g. [0-9A-Fa-f]{2}) but are in fact not a percent escape.
| The function below can be used to perform a preliminary check for such
| links in an Org mode file. It will run through all links in the file
| and issue a warning if it finds a percent escape sequence which is not
| in old Org's list of known percent escapes.

that might at least tell you if there is a problematic link in an Org
mode buffer. What to do if the func finds a possibly problematic
sequence depends on the link. In the "%dave"-case escaping the percent
sign (% => %25) could be sufficient.

  -- David
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

      reply	other threads:[~2011-09-25  6:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16 16:03 Bug: unable to open link unless `...from-string' [7.7 (release_7.7.292.g0d4e8.dirty)] Dave Abrahams
2011-09-16 18:09 ` David Maus
2011-09-16 18:20   ` Dave Abrahams
2011-09-20  4:28     ` David Maus
2011-09-20 16:24       ` Dave Abrahams
2011-09-22  4:50         ` David Maus
2011-09-22 14:13           ` Dave Abrahams
2011-09-25  6:46             ` David Maus [this message]

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:

  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=87ehz5ktkv.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=dave@boostpro.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).