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:

http://orgmode.org/worg/org-hacks.html#check-old-link-escapes

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

Best,
  -- 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 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:
  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=87ehz5ktkv.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=dave@boostpro.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Bug: unable to open link unless `...from-string'\''	[7.7 (release_7.7.292.g0d4e8.dirty)]' \
    /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

Code repositories for project(s) associated with this 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).