Escape link path only if path contains space or non-ascii character
commit3305602f746b7a9e1cd8932eda5f9d0a85e75094
authorDavid Maus <dmaus@ictsoc.de>
Sun, 18 Dec 2011 18:23:57 +0000 (18 19:23 +0100)
committerBastien Guerry <bzg@altern.org>
Tue, 3 Jan 2012 08:14:08 +0000 (3 09:14 +0100)
tree805962592574b0c5fd5311f394ceafb7f4eed81d
parent6f916bc61b803851a5b5948becaf990243da6f76
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