Escape link path only if path contains space or non-ascii character
commitbcfe9cd5d03dee6cb4c9ac0f0b1c1b6a58b9be14
authorDavid Maus <dmaus@ictsoc.de>
Sun, 18 Dec 2011 18:23:57 +0000 (18 19:23 +0100)
committerBastien Guerry <bzg@altern.org>
Tue, 20 Dec 2011 22:53:39 +0000 (20 23:53 +0100)
treee96c5456c37024e277aa9cc37f209c3b6271150c
parent6783f131094fe426911643572f12adc0677006e2
Escape link path only if path contains space or non-ascii character

* org.el (org-open-at-point): Escape link path for http:, https:,
ftp:, news:, and doi: links only if the path contains space or
non-ascii character.

This should take care of mistakenly double-escaped links as reported
by Jeff Horn in <http://article.gmane.org/gmane.emacs.orgmode/48731>.

We are just guessing here and push the responsibility for proper
escaping to the target application.
lisp/org.el