org.el: Don't add curly braces to bracket links within internal links
commit1db82b269aa0a859e97d91c05f4a8836da040427
authorBastien Guerry <bzg@altern.org>
Sat, 22 Dec 2012 18:39:03 +0000 (22 19:39 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 22 Dec 2012 18:39:03 +0000 (22 19:39 +0100)
tree249e8ffaeed2d4fde894343f99f7ff332c6adf04
parent12fd14b8584175a2f16a44f3acc7f884fe99bc84
org.el: Don't add curly braces to bracket links within internal links

* org.el (org-store-link): When creating a link to a heading
with a bracket link, don't escape this link with curly braces
as the escaped link is not active anyway; use the description
instead.  If the headline only consists of a bracket link, add
a star to the description so that the user knows this is an
internal link.

Thanks to Dave Abrahams for triggering this.
lisp/org.el