Re: [Orgmode] Re: possible URI handling bug: verification and reporting?

2009-08-02 Thread Carsten Dominik


On Jul 31, 2009, at 3:27 AM, Bastien wrote:


Bernt Hansen be...@norang.ca writes:


I think the parenthesis should be URL encoded to be a valid URL.

Change ( to %28 and ) to %29 and you get

http://dx.doi.org/10.1016/S1352-2310%2801%2900429-0

which works for me (at least it doesn't 404 anymore)

Gnus also stops the fontification at the ( so I don't think this is
org-mode specific.


Org-mode explicitely excluded parentheses from `org-plain-link-re' so
yes, it was org-mode specific.  And (browse-url-url-at-point) was not
confused either by parentheses, so org-mode needed to be fixed (and
perhaps Gnus needs too!)


The reason why Org (and probably GNUS) exclude parenthesis from
plain links it to make them good citizens in plain text.  Identifying
a plain link is a heuristic matter, and it seemed to me that
more often is a link the last thing in a pair of parenthesis than are
parenthesis part of a link.  To cover links with special characters,
Org has the link and [[link]] formats.

So I have reverted this change and will keep it this way unless
convinced/overruled by more discussion about the issue.

- Carsten



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: possible URI handling bug: verification and reporting?

2009-07-30 Thread Bernt Hansen
Tom Roche tom_ro...@pobox.com writes:

 I've been using org-mode for a couple weeks now and am mostly very
 impressed (not to mention occasionally overwhelmed). I have noticed
 one bug, however, which

 0 might just be me, so perhaps other folks can try to reproduce it

 1 is probably in browse-url, so I'm not sure how to report it

 Anyway, the behavior concerns the following link:

 http://dx.doi.org/10.1016/S1352-2310(01)00429-0

 0 When I paste the link from my browser into an org-mode buffer, only
   the part before the first '('

I think the parenthesis should be URL encoded to be a valid URL.

Change ( to %28 and ) to %29 and you get 

http://dx.doi.org/10.1016/S1352-2310%2801%2900429-0

which works for me (at least it doesn't 404 anymore)

Gnus also stops the fontification at the ( so I don't think this is
org-mode specific.

-Bernt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: possible URI handling bug: verification and reporting?

2009-07-30 Thread Bastien
Bernt Hansen be...@norang.ca writes:

 I think the parenthesis should be URL encoded to be a valid URL.

 Change ( to %28 and ) to %29 and you get 

 http://dx.doi.org/10.1016/S1352-2310%2801%2900429-0

 which works for me (at least it doesn't 404 anymore)

 Gnus also stops the fontification at the ( so I don't think this is
 org-mode specific.

Org-mode explicitely excluded parentheses from `org-plain-link-re' so
yes, it was org-mode specific.  And (browse-url-url-at-point) was not
confused either by parentheses, so org-mode needed to be fixed (and
perhaps Gnus needs too!)

best,

-- 
 Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode