[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] A gentle introduction to Emacs & Org-mode?
From: |
Nick Dokos |
Subject: |
Re: [O] A gentle introduction to Emacs & Org-mode? |
Date: |
Tue, 12 Aug 2014 16:18:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
David Ongaro <address@hidden> writes:
> John Kitchin <jkitchin <at> andrew.cmu.edu> writes:
>
>> jorge.a.alfaro <at> gmail.com (Jorge A. Alfaro-Murillo) writes:
>>
>> thanks for point that out, I have fixed them now I think. That must be
>> from some link escaping in the translation of org to html I guess.
>
> No, the problem happens during org-insert-link, so even before
> it's exported anywhere. I had to patch my org.el to fix the
> org-link-escape-chars variable. Maybe it should be fixed in the
> standard distribution, because its a really annoying and
> unexpected behaviour.
>
> Regards,
>
> David
>
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 3e83043..3bca94a 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -9777,8 +9777,8 @@ according to FMT
> "]"))
>
> (defconst org-link-escape-chars
> - ;;%20 %2B %3B %3D %5B %5D
> - '(?\ ?\+ ?\; ?\= ?\[ ?\])
> + ;;%20 %2B %3B %5B %5Dnn
> + '(?\ ?\+ ?\; ?\[ ?\])
> "List of characters that should be escaped in link.
> This is the list that is used for internal purposes.")
That has already happened: on the master branch, org-link-escape-chars
is (see commit abe931dca9c4c634fe9495eff7579ca952eb8b98):
,----
| (defconst org-link-escape-chars
| ;;%20 %5B %5D
| '(?\ ?\[ ?\])
| "List of characters that should be escaped in a link when stored to Org.
| This is the list that is used for internal purposes.")
`----
It's going to be visible in the next release.
Nick