From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elwood151@web.de Subject: Problems with Hyperlinks containing backslashes Date: Tue, 7 Apr 2015 17:18:45 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfVH9-0001VV-Jr for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 11:18:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfVH4-0003Io-KO for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 11:18:51 -0400 Received: from mout.web.de ([212.227.15.4]:60447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfVH4-0003IG-Af for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 11:18:46 -0400 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: emacs orgmode-mailinglist
I'm working with Emacs 24.4.1 and org-mode 8.2.10 on Windows 7.
I have to use hyperlinks to our network servers like \\servername\dir1\dir2 and unfortunately I can not use them in hyperlinks in Emacs org-mode, I then get the error:
 
Debugger entered--Lisp error: (error "ShellExecute failed: Das System kann die angegebene Datei nicht finden.")
  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?
 
Kind regards
 
Martin
 
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problems with Hyperlinks containing backslashes Date: Tue, 07 Apr 2015 22:16:06 +0200 Message-ID: <87r3rvpud5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfZtf-00086d-Cl for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 16:14:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfZtZ-0001sH-Jm for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 16:14:55 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:38519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfZtZ-0001rs-EL for emacs-orgmode@gnu.org; Tue, 07 Apr 2015 16:14:49 -0400 In-Reply-To: (Elwood's message of "Tue, 7 Apr 2015 17:18:45 +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: Elwood151@web.de Cc: emacs orgmode-mailinglist Hello, Elwood151@web.de writes: > I'm working with Emacs 24.4.1 and org-mode 8.2.10 on Windows 7. > I have to use hyperlinks to our network servers like > \\servername\dir1\dir2 and unfortunately I can not use them in > hyperlinks in Emacs org-mode, I then get the error: > Debugger entered--Lisp error: (error "ShellExecute failed: Das System > kann die angegebene Datei nicht finden.") > 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. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: Re: Problems with Hyperlinks containing backslashes Date: Wed, 8 Apr 2015 14:11:37 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfopa-00018f-UN for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfopX-0001V0-1W for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:42 -0400 Received: from mout.web.de ([212.227.17.11]:49197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfopW-0001Un-NT for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 08:11:38 -0400 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: emacs orgmode-mailinglist Cc: mail@nicolasgoaziou.fr
>> 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/"
 
How can I solve that?
 
Kind regards
 
Martin
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,