From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus 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 Message-ID: <87ehz5ktkv.wl%dmaus@ictsoc.de> References: <87zki4tl4u.wl%dmaus@ictsoc.de> <87aa9zx2f3.wl%dmaus@ictsoc.de> <87wrd1ji4f.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Sep_25_08:46:24_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7iTv-000217-2P for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 02:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7iTt-0004kY-LZ for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 02:46:31 -0400 Received: from app1b.xlhost.de ([213.202.242.162]:56587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7iTt-0004kT-H2 for emacs-orgmode@gnu.org; Sun, 25 Sep 2011 02:46:29 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dave Abrahams Cc: David Maus , emacs-orgmode@gnu.org --pgp-sign-Multipart_Sun_Sep_25_08:46:24_2011-1 Content-Type: text/plain; charset=US-ASCII At Thu, 22 Sep 2011 10:13:18 -0400, Dave Abrahams wrote: > > > on Thu Sep 22 2011, David Maus 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 --pgp-sign-Multipart_Sun_Sep_25_08:46:24_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk5+zkAACgkQma24O1pEeObJsgD+MVLUABlLsfwF6a2tRqBLsMhG JAggfmazWbCoYGPOnXABAICcpA7B0Q+YkFrCT2KrMj9TQJo41xJE1jGImOcVR9hG =zNuR -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Sep_25_08:46:24_2011-1--