From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juan Jose Garcia-Ripoll Newsgroups: gmane.emacs.bugs Subject: bug#38526: 26.3; w32-shell-execute fails inside Nextcloud folder Date: Sun, 08 Dec 2019 17:12:51 +0100 Message-ID: <86blsihk3g.wl-juanjose.garcia.ripoll@csic.es> References: <86eexfgjs4.wl-juanjose.garcia.ripoll@csic.es> <83blsiesbg.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197182"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) Cc: Juan Jose Garcia-Ripoll , 38526@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 18:08:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ie02X-000p9H-36 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 18:08:13 +0100 Original-Received: from localhost ([::1]:60248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie02W-0004AZ-0W for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 12:08:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idzyV-0001eZ-CQ for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 12:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idzyT-0005W7-U5 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 12:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idzyT-0005Ul-PF for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 12:04:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idzyT-0003SB-Km for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 12:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juan Jose Garcia-Ripoll Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2019 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38526 X-GNU-PR-Package: emacs Original-Received: via spool by 38526-submit@debbugs.gnu.org id=B38526.157582462913257 (code B ref 38526); Sun, 08 Dec 2019 17:04:01 +0000 Original-Received: (at 38526) by debbugs.gnu.org; 8 Dec 2019 17:03:49 +0000 Original-Received: from localhost ([127.0.0.1]:52188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idzyG-0003Rl-SM for submit@debbugs.gnu.org; Sun, 08 Dec 2019 12:03:49 -0500 Original-Received: from cel1.sgai.csic.es ([161.111.10.57]:26564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idzAz-00028r-FF for 38526@debbugs.gnu.org; Sun, 08 Dec 2019 11:12:54 -0500 IronPort-PHdr: 9a23:OVHf/h/OFHT9Z/9uRHKM819IXTAuvvDOBiVQ1K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XmEIHgjGCEoURjkMbgzaLLAOLTaRwhC2BaYF7MxqDXwlHEYxfhQmJWXMBj1IBAQ X-IPAS-Result: A2GjAACbIO1d/zRSZAplGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYF+gwyBMYd1i3uBZotBj20JAQEBDhsUAQGBBIM8AoI6OBMCEAEBAQQBAQEBAQUDAQEBAoVUTAyCOykBgU2BM0IBAQEBA3kQCw0HAQMuSQENBhODI61ugicaAoNggVSFCIE2gWWLMYEcgRGDEz6ESYVuBJYXmEIHgjGCEoURjkMbgzaLLAOLTaRwhC2BaYF7MxqDXwlHEYxfhQmJWXMBj1IBAQ X-IronPort-AV: E=Sophos;i="5.69,292,1571695200"; d="scan'208";a="32030116" Original-Received: from unknown (HELO smtpin.csic.es) ([10.100.82.52]) by cel1.sgai.csic.es with ESMTP; 08 Dec 2019 17:12:51 +0100 Original-Received: from deutsch.csic.es (static.203.1.0.81.ibercom.com [81.0.1.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 08930807E) by smtpin.csic.es (Postfix) with ESMTPSA id 9AB2910A8EC2; Sun, 8 Dec 2019 17:12:50 +0100 (CET) In-Reply-To: <83blsiesbg.fsf@gnu.org> X-Mailman-Approved-At: Sun, 08 Dec 2019 12:03:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173060 Archived-At: On Sun, 08 Dec 2019 17:43:31 +0100, Eli Zaretskii wrote: >=20 > > Date: Sun, 08 Dec 2019 12:04:59 +0100 > > From: Juan Jose Garcia-Ripoll > >=20 > > I am using org-open-file to open files in dired. This function, for some > > file types, relies on w32-shell-execute with the "open" verb. This verb > > fails when the full path contains spaces. For instance, the first insta= nce > > does not work, while the second does > >=20 > > (w32-shell-execute "open" "c:\\Users\\juanj\\Nextcloud\\some-path\\CV.p= df") > >=20 > > (w32-shell-execute "open" "c:\\Users\\juanj\\another-path\\CV.pdf") > >=20 > > I am reporting this from a rather full image, but the problem also is s= hown > > in a bare-bones emacs (emacs -q) >=20 > Not reproducible here, although I tried several PDF documents on 2 > different systems. >=20 > What program is configured on your system to open PDF documents? Is > it possible that its configuration is wrong? I am trying to debug w32-shell-execute, but there are no useful error messa= ges. I am using SumatraPDF, which works fine in all documents. The only difference is the path: whether the document is inside the Nextclo= ud folder or not (initially I thought it had to do with spaces in the name,= but does not seem the case). I am using this PDF viewer for everything in = Emacs (including AucTeX), but also from Windows Shell (Default option in "O= pen"). To verify, I have done the same test using a Word document (w32-shell-execute "open" "c:\\Users\\juanj\\tmp\\Test document.docx") (w32-shell-execute "open" "c:\\Users\\juanj\\Nextcloud\\tmp\\Test documen= t.docx") and the result is the same: both functions return 't but only the first one= opens the document... -- Juan Jos=E9 Garc=EDa Ripoll Quantum Information and Foundations Group Institute of Fundamental Physics IFF-CSIC Calle Serrano 113b, Madrid 28006 Spain http://quinfog.hbar.es - http://juanjose.garcia.ripoll