org.el: Don't activate a plain link when it is part of a bracketed link
commitad35e2ac6c6decae55dd987be738e07e7c87bd7d
authorBastien Guerry <bzg@altern.org>
Sun, 19 Aug 2012 14:56:52 +0000 (19 16:56 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 19 Aug 2012 14:56:52 +0000 (19 16:56 +0200)
tree96f9600bdcd352586aa0e23d94cfaff427e82ac5
parentbb895827c2009028a000f6c04afce390f082a38c
org.el: Don't activate a plain link when it is part of a bracketed link

* org.el (org-activate-plain-links): Don't activate a plain
link when it is part of a bracketed link, unless bracketed
links are not enlisted in `org-activate-links'.
(org-open-at-point): Don't consider the text immediately after
a bracketed link is part of a plain link.

This fixes a bug when fontifying [[http://orgmode.org][Org]]Mode --
where "Mode" should not be fontified, because it is not part of the
bracketed link.

Note that there was another related bug: C-c C-o on "Mode" used to
try opening a plain link.  Also fixed in this commit.
lisp/org.el