From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problems with Hyperlinks containing backslashes Date: Thu, 09 Apr 2015 19:46:40 +0200 Message-ID: <87zj6hnqin.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgGW7-0002Fq-Ln for emacs-orgmode@gnu.org; Thu, 09 Apr 2015 13:45:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgGW6-0000OD-IC for emacs-orgmode@gnu.org; Thu, 09 Apr 2015 13:45:27 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:41266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgGW6-0000MI-AB for emacs-orgmode@gnu.org; Thu, 09 Apr 2015 13:45:26 -0400 In-Reply-To: (Martin Beck's message of "Wed, 8 Apr 2015 14:11:37 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Beck Cc: emacs orgmode-mailinglist "Martin Beck" writes: >>> w32-shell-execute("open" "\\\\servername\\dir1\\dir2") >>> eval((w32-shell-execute "open" file)) >>> It seems that Emacs automatically replaces each backslash with a >>> double backslash. >>> How can I change that so that it is working? >> IIRC it is fixed in development branch of Org. You may want to use > it or >> wait for Org 8.3 to be released. > Salut Nicolas, > thanks a lot - indeed with the current org-lastest, the above > mentioned problem seems to be solved. > However I'm still having problem with paths like that: > [[file+sys:\\servername.domain.de\dir\]] > which produce the error "No such file c:/servername.domain.de/dir/" I cannot reproduce it. However, I don't use Windows either. The part of code responsible for URI normalization is located in `org-element-link-parser': (when (and (file-name-absolute-p path) (not (org-string-match-p "\\`[/~]/" path))) (setq path (concat "//" path))) The "c:" is added elsewhere. Regards,