org-element: Fix parsing path starting with ~
commit2ae77c5e50912f5ccf85d4e72bf1fb5b0b504478
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 27 Jun 2014 15:28:56 +0000 (27 17:28 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 27 Jun 2014 15:28:56 +0000 (27 17:28 +0200)
treea6d319a87cd182ea63ef9b6799afc2b2a1579fca
parent16c71d6b782010924309a267b12689b0ccb950c4
org-element: Fix parsing path starting with ~

* lisp/org-element.el (org-element-link-parser): Do not prepend "//"
  to paths starting with "~".

Since b1dcd0fb0bec6b523c900bc1304fbe834c21697d, link parser doesn't
expand file names anymore. We need to prevent it from "fixing" paths
starting with "~", as it can cause trouble to some
exporters (e.g. latex).
lisp/org-element.el