[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil
From: |
David Maus |
Subject: |
Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil) |
Date: |
Mon, 20 Sep 2010 20:57:00 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Sébastien Vauban wrote:
>Hello,
>With current git pull, and such an Org file (in UTF-8 encoding):
> ...
>I get the following error when trying to export it via PDFLaTeX:
The problem is, that the 'É' character is not in Org's default list
for link escapes but `string-match' matches for the lower case
character. Adding more chars to `org-link-escape-chars' would solve
the problem, but this seems to be a broder issue:
Regular links (URIs) are restricted to a special set of ASCII
characters and non-ascii chars are hex-encoded. Currently Org escapes
links to Org mode headlines using the table mentioned above. But Org
files and hence Org headlines might be Unicode, containing multibyte
characters that cannot be hex-escaped in the normal fashion.
Maybe something like this would be a solution:
- Org only escapes square brackets when escaping a link to an Org
mode headline
- `org-link-escape' uses a shotgun-approach: Every char that is not
allowed according to the specs (Cf. RFC3986) is percent encoded if
the link sequence does not contain multibyte chars; If the sequence
does contain multibyte chars, `org-link-escape' produces an IRI
(Cf. RFC3987).
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgp4E8kTB1HFf.pgp
Description: PGP signature
- [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sébastien Vauban, 2010/09/20
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil),
David Maus <=
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/20
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), David Maus, 2010/09/22
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/22
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), David Maus, 2010/09/23
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/23
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), David Maus, 2010/09/26
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/26
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/26
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/26
- Re: [Orgmode] [bug] org-link-escape and (wrong-type-argument stringp nil), Sebastian Rose, 2010/09/26