From unknown Sat Sep 13 08:55:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34675 <34675@debbugs.gnu.org> To: bug#34675 <34675@debbugs.gnu.org> Subject: Status: 27.0.50; (MS-Windows) DND fails for UNC filename on same server Reply-To: bug#34675 <34675@debbugs.gnu.org> Date: Sat, 13 Sep 2025 15:55:33 +0000 retitle 34675 27.0.50; (MS-Windows) DND fails for UNC filename on same serv= er reassign 34675 emacs submitter 34675 Richard Copley severity 34675 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 27 08:42:19 2019 Received: (at submit) by debbugs.gnu.org; 27 Feb 2019 13:42:19 +0000 Received: from localhost ([127.0.0.1]:53595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyzTX-0006O9-9N for submit@debbugs.gnu.org; Wed, 27 Feb 2019 08:42:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyzTV-0006Nw-HE for submit@debbugs.gnu.org; Wed, 27 Feb 2019 08:42:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:36609) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyzTQ-0001ck-0B for submit@debbugs.gnu.org; Wed, 27 Feb 2019 08:42:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyzTL-000502-IO for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 08:42:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyzTJ-0001V7-PD for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 08:42:07 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:39998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyzTJ-0001Sr-BD for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2019 08:42:05 -0500 Received: by mail-ot1-x32c.google.com with SMTP id v20so14336902otk.7 for ; Wed, 27 Feb 2019 05:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VfKIWFPkegS0SVgp3GSfi1YH5uHnOb2OXeVe/rk5+yE=; b=XvIRUrNc8uUAdLyAxxa01be2htgq76TVCCJimawrhXaAdJDT1X7kYKn1/uQRVKAd81 i9PcRc2ZEEK2QlNuzUdfO8ia2Gp/8LaoYbonx6DI1dwRypQ/aPNa/ejG/M1TG3CZT08H ByWGkK/v74aLaQWghdXpjp+d51Z+65ySSA3tIUW4R6xlPleMIOCl9K7PBtnxzbmeUyuD 8BdtsZ+C4VtHgzLmYZNyNmXXT9e6/d9Txytk+WeI9Qe6SNuX5HTg3gmPtB3/YDSu0cEs Cgdx9chXnoFQMo69TbNWWOCSZJ/EHDwd0c6w8VLmT0V1MseiAFxKE5MkjqRlABmhZUSn LRDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VfKIWFPkegS0SVgp3GSfi1YH5uHnOb2OXeVe/rk5+yE=; b=DbvLyZ/z0bLH0EhTmY6sfwbzYVglvNl4QoV/e53odRN9tTR4xTjyB8gWkzZhKIxtLD H4pWsYeZ536FiumMaFKNiiQ6EHKKRpK/d8jYwj0cVo9veBLso5F08hVuKfvDTF8B9B7L q4vr8GzPwFOY7Ie+lqD/7PQjDVTWk1mFJIQxomevUZDR0LUr+c1vJt7yYhTLkkd+eRNr 5Bq2DE2fmlj1SiaYPo9xyBi4+zKQQ/jkZpCd6JI1l54M5uzjVCsTKmv4vgQyfYUs7MID Y7y2tIWWrk14AXuxJZAyXEPdgwtvfY/nPV5iDWoGgonIYBppuVyzuphI1Yk04toJubdi l4gQ== X-Gm-Message-State: AHQUAuZ1lLMnk76YTuvPeKfxi+5Z23bUYQ4IeXgYCiAIbMlMSZ3pUdrK byHhVVmnPSK3Lo4kHn9Sm2H609alIka9L8xFZzYZtQ== X-Google-Smtp-Source: AHgI3IYTzt7aUkAXq1knb1Q2EL8y/S3LM8EIdynGnQZg3jYekHHufDT4fBL1bDcoQHEMPiUisXEpHxz4egfFQtH8/Pc= X-Received: by 2002:a9d:70d4:: with SMTP id w20mr2269796otj.253.1551274920430; Wed, 27 Feb 2019 05:42:00 -0800 (PST) MIME-Version: 1.0 From: Richard Copley Date: Wed, 27 Feb 2019 13:41:34 +0000 Message-ID: Subject: 27.0.50; (MS-Windows) DND fails for UNC filename on same server To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000094d4050582e056e5" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --00000000000094d4050582e056e5 Content-Type: text/plain; charset="UTF-8" Open Windows Explorer in a file share on the local machine. Drag a file from there and drop it onto Emacs. The error "Can not read file:///server/share/file-name" is signalled. dnd-get-local-file-uri attempts to convert the remote file name to a local file name by removing the server name. That is not valid for UNC file names. In GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2019-02-12 built on X Repository revision: d41f9123ecae45654f006d736996343275d774bd Repository branch: buster Windowing system distributor 'Microsoft Corp.', version 6.1.7601 System Description: Microsoft Windows Server 2008 R2 Standard Service Pack 1 (v6.1.1130.7601.24355) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. dnd-open-local-file: Can not read file:///server/share/file-name Configured using: 'configure --config-cache --with-modules --without-pop --without-dbus --without-gconf --without-gsettings CFLAGS=-O3' Configured features: SOUND NOTIFY W32NOTIFY ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER GMP Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils browse-url url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib url-vars elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 55778 9941) (symbols 48 6721 1) (strings 32 19194 1886) (string-bytes 1 589026) (vectors 16 10297) (vector-slots 8 130876 12274) (floats 8 20 150) (intervals 56 221 18) (buffers 992 11)) --00000000000094d4050582e056e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Open Windows Explorer in a file share on = the local machine.
Drag a file from there and drop it onto Emacs.
The= error "Can not read file:///server/share/file-name" is signalled= .

dnd-get-local-file-uri attempts to convert the remote file name to= a local
file name by removing the server name. That is not valid for UN= C file
names.

In GNU Emacs 27.0.50 (bui= ld 1, x86_64-w64-mingw32)
=C2=A0of 2019-02-12 built on X
Repository r= evision: d41f9123ecae45654f006d736996343275d774bd
Repository branch: bus= ter
Windowing system distributor 'Microsoft Corp.', version 6.1.= 7601
System Description: Microsoft Windows Server 2008 R2 Standard Servi= ce Pack 1 (v6.1.1130.7601.24355)

Recent messages:
For information= about GNU Emacs and the GNU system, type C-h C-a.
dnd-open-local-file: = Can not read file:///server/share/file-name
Configured using:
=C2=A0&= #39;configure --config-cache --with-modules --without-pop --without-dbus=C2=A0--without-gconf --without-gsettings CFLAGS=3D-O3'

Configu= red features:
SOUND NOTIFY W32NOTIFY ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS= MODULES
THREADS PDUMPER GMP

Important settings:
=C2=A0 value = of $LANG: ENG
=C2=A0 locale-coding-system: cp1252

Major mode: Lis= p Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-inde= nt-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2= =A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-fo= nt-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t<= br>=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2= =A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transi= ent-mark-mode: t

Load-path shadows:
None found.

Features:<= br>(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefsformat-spec rfc822 mml easymenu mml-sec epa derived epg epg-config
gnus= -util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode
mail-= parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 i= etf-drums mm-util mail-prsvr mail-utils browse-url url-util
url-parse au= th-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache = json map seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib = url-vars elec-pair mule-util tooltip eldoc electric
uniquify ediff-hook = vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
disp-table term/w32-win = w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt f= ringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode p= rog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-= bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors f= rame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan th= ai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian s= lovak czech european
ethiopic indian cyrillic chinese composite charscri= pt charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray= minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp= files
text-properties overlay sha1 md5 base64 format env code-pages mul= e
custom widget hashtable-print-readable backquote threads w32notify w32=
multi-tty make-network-process emacs)

Memory information:
((c= onses 16 55778 9941)
=C2=A0(symbols 48 6721 1)
=C2=A0(strings 32 1919= 4 1886)
=C2=A0(string-bytes 1 589026)
=C2=A0(vectors 16 10297)
=C2= =A0(vector-slots 8 130876 12274)
=C2=A0(floats 8 20 150)
=C2=A0(inter= vals 56 221 18)
=C2=A0(buffers 992 11))

--00000000000094d4050582e056e5-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 07:01:19 2019 Received: (at 34675) by debbugs.gnu.org; 2 Mar 2019 12:01:19 +0000 Received: from localhost ([127.0.0.1]:57028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h03KR-0001at-3V for submit@debbugs.gnu.org; Sat, 02 Mar 2019 07:01:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h03KP-0001ai-SH for 34675@debbugs.gnu.org; Sat, 02 Mar 2019 07:01:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h03KK-0007P0-Fg; Sat, 02 Mar 2019 07:01:12 -0500 Received: from [176.228.60.248] (port=2709 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h03KI-0000gR-Mq; Sat, 02 Mar 2019 07:01:12 -0500 Date: Sat, 02 Mar 2019 14:01:00 +0200 Message-Id: <83h8clh4eb.fsf@gnu.org> From: Eli Zaretskii To: Richard Copley In-reply-to: (message from Richard Copley on Wed, 27 Feb 2019 13:41:34 +0000) Subject: Re: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34675 Cc: 34675@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Richard Copley > Date: Wed, 27 Feb 2019 13:41:34 +0000 > > Open Windows Explorer in a file share on the local machine. > Drag a file from there and drop it onto Emacs. > The error "Can not read file:///server/share/file-name" is signalled. > > dnd-get-local-file-uri attempts to convert the remote file name to a local > file name by removing the server name. That is not valid for UNC file > names. Thanks, but please provide a full recipe, including the pertinent names of the server and the share. Your local system isn't called "server", is it? If it is, please help me by telling how you created such a share locally, because I don't think I know how to do that. Apologies if I'm missing something simple here. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 07:44:37 2019 Received: (at 34675) by debbugs.gnu.org; 2 Mar 2019 12:44:37 +0000 Received: from localhost ([127.0.0.1]:57082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h040K-0004hN-Tw for submit@debbugs.gnu.org; Sat, 02 Mar 2019 07:44:37 -0500 Received: from mail-oi1-f177.google.com ([209.85.167.177]:38113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h040I-0004h9-Ex for 34675@debbugs.gnu.org; Sat, 02 Mar 2019 07:44:35 -0500 Received: by mail-oi1-f177.google.com with SMTP id q81so389261oic.5 for <34675@debbugs.gnu.org>; Sat, 02 Mar 2019 04:44:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=phb4zQqW6Pf1mbbMevkgo0pYR11tmOcN8BvCuhCfcAw=; b=pImc2l/UpohBZS7ZIc54GRoKUbewVgzOoKkuVl2zJNiUpjwfj5qrtvdlY6gm4sRSVm xg5UAIU0YUaS1DTfPGpN1qdoEHFRTpco1PHjhOrkB8yYSTUHaW5IKut3cN5/SlRvIqnp DG7sn0+XsD6ziuojxYR3wqWi2cBqcmC3h/qOd0h7rnv+FZxxcFXS02DuYsLKioSw3hnd sPmsa0+8FRjK3VEnqdxcJHNytfSHr9aJUiR0M0OsleBaZqwWpQ1jENu8kI6Sq8QQ6T7H 8tBO/rdg4g8QCJ+i/99Un18P5Ed8UhNPVagX5fU0yT/YaPh8PXSxiN45yQ2OwbYDIJy5 s8Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=phb4zQqW6Pf1mbbMevkgo0pYR11tmOcN8BvCuhCfcAw=; b=UcpSTxuFEKxu6WzdP2PSIaF4ISwbLR+AJYhbMe5jInh3BNVuGKqNr3XnbwPy7RH7ib +yROvWxbv+n7Zl9Ts1xBoDeemUZD8wsKx2HE6d2g5C0EI+rfPjMIEwZAKLkNRjkGZYuG LDs84NRY684ICxlqsCWoo/yyjBkw9ehryihVsCOfUKGwFDKmJG2S9qiVStIpEbXSDbH2 2WASm2MaZB5pQ71nvITlQB0A7fhdI9YtFvI9BGC16Nzw+RafHkANvVStJapthKwvIMkg 97+4FOCIJYGxz5q6QgUs9bQaQUhNC1O88DHTGjFYHUYbhJMO9w6WaGmC0JnZQA4t49jr VyaQ== X-Gm-Message-State: APjAAAWhssAfSgCfsW7glRAQOHiySPBWeEfOrzPnDRuRUxyIm0bQXcFa xl2tsbYja+zst0ttoxep5RdlrHBNnPSuD7MkVSeiNjkK X-Google-Smtp-Source: APXvYqy2LPT60Ea1ilXNm8QxQWYp+NCPYOc2hKSjw8XI9ux/PnlhCqs9euF+whiIYBrnZNyRWkqyzneDGUwlT8975uw= X-Received: by 2002:aca:ecd7:: with SMTP id k206mr6603071oih.67.1551530668478; Sat, 02 Mar 2019 04:44:28 -0800 (PST) MIME-Version: 1.0 References: <83h8clh4eb.fsf@gnu.org> In-Reply-To: <83h8clh4eb.fsf@gnu.org> From: Richard Copley Date: Sat, 2 Mar 2019 12:44:02 +0000 Message-ID: Subject: Re: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000005a557305831be261" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34675 Cc: 34675@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000005a557305831be261 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2 Mar 2019 at 12:01, Eli Zaretskii wrote: > > From: Richard Copley > > Date: Wed, 27 Feb 2019 13:41:34 +0000 > > > > Open Windows Explorer in a file share on the local machine. > > Drag a file from there and drop it onto Emacs. > > The error "Can not read file:///server/share/file-name" is signalled. > > > > dnd-get-local-file-uri attempts to convert the remote file name to a > local > > file name by removing the server name. That is not valid for UNC file > > names. > > Thanks, but please provide a full recipe, including the pertinent > names of the server and the share. Your local system isn't called > "server", is it? If it is, please help me by telling how you created > such a share locally, because I don't think I know how to do that. > > Apologies if I'm missing something simple here. > Thanks for replying. I'm sorry I wasn't clear. 1. In a command prompt window, create a folder "x", and share it as "y", and create a file "z" in the folder "x": mkdir %HOMEDRIVE%%HOMEPATH%\x net share y=3D%HOMEDRIVE%%HOMEPATH%\x >%HOMEDRIVE%%HOMEPATH%\x\z echo. 2. Run "emacs -Q". Evaluate (system-name) in Emacs and make a note of the result. 3. Open Explorer and enter "\\foo\y" in the address bar, where "foo" is the system name. 4. Drag the file "z" from Explorer and drop it on Emacs. Emacs signals an error, "dnd-open-local-file: Can not read file:///y/z". 5. Clean up: net share y /delete rmdir /s /q %HOMEDRIVE%%HOMEPATH%\x End of recipe. Just now I noticed this in the docstring of the variable `dnd-open-remote-file-function': "=E2=80=98dnd-open-local-file=E2=80=99 attempts to open a remote file using= its UNC name and is the default on MS-Windows. =E2=80=98dnd-open-remote-url=E2=80=99 uses =E2=80=98url-handler-mode=E2=80=99 and is the default except for MS-Windows." It sounds as though my scenario has been considered. But it is not true now that "=E2=80=98dnd-open-local-file=E2=80=99 attempts to open a rem= ote file using its UNC name". The backtrace: Debugger entered--Lisp error: (error "Can not read file:///y/z") signal(error ("Can not read file:///y/z")) error("Can not read %s" "file:///y/z") dnd-open-local-file("file:///y/z" private) dnd-open-file("file://foo/y/z" private) dnd-handle-one-url(# private "file://foo/y/z") w32-handle-dropped-file(# "\\\\foo\\y\\z") apply(w32-handle-dropped-file (# "\\\\foo\\y\\z")) #f(compiled-function (&rest args2) #)("\\\\foo\\y\\z"= ) mapc(#f(compiled-function (&rest args2) #) ("\\\\foo\\y\\z")) w32-drag-n-drop((drag-n-drop (# 146 (304 . 67) 489947765 nil 146 (38 . 3) nil (304 . 19) (8 . 16)) ("\\\\foo\\y\\z"))) funcall-interactively(w32-drag-n-drop (drag-n-drop (# 146 (304 . 67) 489947765 nil 146 (38 . 3) nil (304 . 19) (8 . 16)) ("\\\\foo\\y\\z"))) call-interactively(w32-drag-n-drop nil nil) command-execute(w32-drag-n-drop) --0000000000005a557305831be261 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, 2 Mar 2019 at 12:01, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Richar= d Copley <rcopley= @gmail.com>
> Date: Wed, 27 Feb 2019 13:41:34 +0000
>
> Open Windows Explorer in a file share on the local machine.
> Drag a file from there and drop it onto Emacs.
> The error "Can not read file:///server/share/file-name" is s= ignalled.
>
> dnd-get-local-file-uri attempts to convert the remote file name to a l= ocal
> file name by removing the server name. That is not valid for UNC file<= br> > names.

Thanks, but please provide a full recipe, including the pertinent
names of the server and the share.=C2=A0 Your local system isn't called=
"server", is it?=C2=A0 If it is, please help me by telling how yo= u created
such a share locally, because I don't think I know how to do that.

Apologies if I'm missing something simple here.
Thanks for replying. I'm sorry I wasn't clear.
1. In a command prompt window, create a folder "x", and share it= as
"y", and create a file "z" in the folder "x= ":

mkdir %HOMEDRIVE%%HOMEPATH%\x
net share y=3D%HOMEDRIVE%%H= OMEPATH%\x
>%HOMEDRIVE%%HOMEPATH%\x\z echo.

2. Run "emacs= -Q". Evaluate (system-name) in Emacs and make a note of
the result= .

3. Open Explorer and enter "\\foo\y" in the address bar,= where "foo"
is the system name.

4. Drag the file "= ;z" from Explorer and drop it on Emacs. Emacs signals
an error, &qu= ot;dnd-open-local-file: Can not read file:///y/z".

5. Clean up:=

net share y /delete
rmdir /s /q %HOMEDRIVE%%HOMEPATH%\x

E= nd of recipe.

Just now I noticed this in the docstring of the variab= le
`dnd-open-remote-file-function':

"=E2=80=98dnd-open-l= ocal-file=E2=80=99 attempts to open a remote file using its UNC name andis the=C2=A0 default on MS-Windows.=C2=A0 =E2=80=98dnd-open-remote-url=E2= =80=99 uses =E2=80=98url-handler-mode=E2=80=99
and is the default except= for MS-Windows."

It sounds as though my scenario has been cons= idered. But it is not
true now that "=E2=80=98dnd-open-local-file= =E2=80=99 attempts to open a remote file
using its UNC name".
The backtrace:

Debugger entered--Lisp= error: (error "Can not read file:///y/z")
=C2=A0 signal(error= ("Can not read file:///y/z"))
=C2=A0 error("Can not read= %s" "file:///y/z")
=C2=A0 dnd-open-local-file("file= :///y/z" private)
=C2=A0 dnd-open-file("file://foo/y/z" p= rivate)
=C2=A0 dnd-handle-one-url(#<window 3 on *scratch*> private= "file://foo/y/z")
=C2=A0 w32-handle-dropped-file(#<window = 3 on *scratch*> "\\\\foo\\y\\z")
=C2=A0 apply(w32-handle-dr= opped-file (#<window 3 on *scratch*> "\\\\foo\\y\\z"))
= =C2=A0 #f(compiled-function (&rest args2) #<bytecode 0x15fd7ed>)(= "\\\\foo\\y\\z")
=C2=A0 mapc(#f(compiled-function (&rest a= rgs2) #<bytecode 0x15fd7ed>) ("\\\\foo\\y\\z"))
=C2=A0 w= 32-drag-n-drop((drag-n-drop (#<window 3 on *scratch*> 146 (304 . 67) = 489947765 nil 146 (38 . 3) nil (304 . 19) (8 . 16)) ("\\\\foo\\y\\z&qu= ot;)))
=C2=A0 funcall-interactively(w32-drag-n-drop (drag-n-drop (#<w= indow 3 on *scratch*> 146 (304 . 67) 489947765 nil 146 (38 . 3) nil (304= . 19) (8 . 16)) ("\\\\foo\\y\\z")))
=C2=A0 call-interactively= (w32-drag-n-drop nil nil)
=C2=A0 command-execute(w32-drag-n-drop)

--0000000000005a557305831be261-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 13:12:43 2019 Received: (at 34675) by debbugs.gnu.org; 2 Mar 2019 18:12:43 +0000 Received: from localhost ([127.0.0.1]:57854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h097q-0008Im-Se for submit@debbugs.gnu.org; Sat, 02 Mar 2019 13:12:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h097p-0008IX-0Y for 34675@debbugs.gnu.org; Sat, 02 Mar 2019 13:12:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h097j-0000Cd-SW; Sat, 02 Mar 2019 13:12:35 -0500 Received: from [176.228.60.248] (port=2037 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h097i-0008B1-Ih; Sat, 02 Mar 2019 13:12:35 -0500 Date: Sat, 02 Mar 2019 20:12:19 +0200 Message-Id: <83wolhf8n0.fsf@gnu.org> From: Eli Zaretskii To: Richard Copley In-reply-to: (message from Richard Copley on Sat, 2 Mar 2019 12:44:02 +0000) Subject: Re: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server References: <83h8clh4eb.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34675 Cc: 34675@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Richard Copley > Date: Sat, 2 Mar 2019 12:44:02 +0000 > Cc: 34675@debbugs.gnu.org > > 1. In a command prompt window, create a folder "x", and share it as > "y", and create a file "z" in the folder "x": > > mkdir %HOMEDRIVE%%HOMEPATH%\x > net share y=%HOMEDRIVE%%HOMEPATH%\x > >%HOMEDRIVE%%HOMEPATH%\x\z echo. > > 2. Run "emacs -Q". Evaluate (system-name) in Emacs and make a note of > the result. > > 3. Open Explorer and enter "\\foo\y" in the address bar, where "foo" > is the system name. > > 4. Drag the file "z" from Explorer and drop it on Emacs. Emacs signals > an error, "dnd-open-local-file: Can not read file:///y/z". > > 5. Clean up: > > net share y /delete > rmdir /s /q %HOMEDRIVE%%HOMEPATH%\x > > End of recipe. Thanks, I hope I fixed that. > Just now I noticed this in the docstring of the variable > `dnd-open-remote-file-function': > > "‘dnd-open-local-file’ attempts to open a remote file using its UNC name and > is the default on MS-Windows. ‘dnd-open-remote-url’ uses ‘url-handler-mode’ > and is the default except for MS-Windows." > > It sounds as though my scenario has been considered. But it is not > true now that "‘dnd-open-local-file’ attempts to open a remote file > using its UNC name". I think it's true, if the UNC's //SERVER part names a system other than the local one. Right? (And with my changes of a few minutes ago, the local UNC's should also hopefully work.) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 16:19:36 2019 Received: (at 34675) by debbugs.gnu.org; 2 Mar 2019 21:19:36 +0000 Received: from localhost ([127.0.0.1]:57918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0C2i-00049n-1J for submit@debbugs.gnu.org; Sat, 02 Mar 2019 16:19:36 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:33444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0C2f-00049a-Rm for 34675@debbugs.gnu.org; Sat, 02 Mar 2019 16:19:34 -0500 Received: by mail-ot1-f53.google.com with SMTP id q24so1165061otk.0 for <34675@debbugs.gnu.org>; Sat, 02 Mar 2019 13:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MEjKxojTF63zytBADnV3lSbUTmK/xVxhKmXN9QBHwsY=; b=uSdhe/pBW410QOFll2hNWpt7Nsvk8Bk2Zrt0cF4i3EBpdBT8QrY6ryd8P86Zy2/MMi 0j3rNDB2XSOM9uFxgsCXd7jxFWxpuC7aypNOIcEzJRNxVaaB6Bf5VtrK6dzTxQftED8D x6nDhyT9PuhPlFyttEkHIOfnY2QX0XVBd5QLM2DQ4cwKC5j2DE0U/dWzVDC37WOWsYP8 7WLvqiQY9T2TR4TqU6N8Y8FdnG2S8uLtE8Hp8RruYrTGUoeeWvjVUmU7ZC3oXC9tzHFw F/Ayx+Ngu9Pscu7i9bi+oiNeT6hmegllE7Oa2JzH9SPBHYwFgnqLNi5YQgH6QDIgGbtC uWDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MEjKxojTF63zytBADnV3lSbUTmK/xVxhKmXN9QBHwsY=; b=ZE9kJrMVnkrEsDe5E+lJw6wYgockO/u8EHS8aE2cjsXE8Ph5BV/OEyxfSb+in9+MQC BKOh5DOpk28+Yi0Gu5vLbRMWjjyIGK4Jyh/+01KvgEqtY+kMB6hX360xTY+DUlmcyh13 lG6CPd7abbpEJQUqOawaeYkmVycOLkIAnmuNP0C2TuL82Fx9TRB+5Ox8Vy8738MgzAWs qtVYQQLIYlUHWDWc2qshB/ib6zerh7TyGXavAYQkgYkJSmKtqPAFQpGBVyK1PAiicjgg 0nlOvahYu99K3bK3zrz6dykrPeP3CwbWPEGa62wPmZ8/intqHSu1MkRkJ2vT/oQmCwRA +X7A== X-Gm-Message-State: APjAAAWvZLbggRsuDAAIdYbCqRCaucQDMfWwJGAqQzC9jwuFqM93PzIl CXhrFITFIQS3ajX2x+ZhcFKr5/3YeBE+qhRhxoQ= X-Google-Smtp-Source: APXvYqwg00WVSy8saXYCNO0LlqsIfdu2xvZJNgg+Wdd65gT6jWSrEUUM2TwTsOZuTSBHBHjLJ+nazOfPsV63uX9XEIc= X-Received: by 2002:a9d:7e93:: with SMTP id m19mr7863027otp.334.1551561567834; Sat, 02 Mar 2019 13:19:27 -0800 (PST) MIME-Version: 1.0 References: <83h8clh4eb.fsf@gnu.org> <83wolhf8n0.fsf@gnu.org> In-Reply-To: <83wolhf8n0.fsf@gnu.org> From: Richard Copley Date: Sat, 2 Mar 2019 21:19:00 +0000 Message-ID: Subject: Re: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000191fe905832314c3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34675 Cc: 34675@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000191fe905832314c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2 Mar 2019 at 18:12, Eli Zaretskii wrote: > > From: Richard Copley > > Date: Sat, 2 Mar 2019 12:44:02 +0000 > > Cc: 34675@debbugs.gnu.org > > > > 1. In a command prompt window, create a folder "x", and share it as > > "y", and create a file "z" in the folder "x": > > > > mkdir %HOMEDRIVE%%HOMEPATH%\x > > net share y=3D%HOMEDRIVE%%HOMEPATH%\x > > >%HOMEDRIVE%%HOMEPATH%\x\z echo. > > > > 2. Run "emacs -Q". Evaluate (system-name) in Emacs and make a note of > > the result. > > > > 3. Open Explorer and enter "\\foo\y" in the address bar, where "foo" > > is the system name. > > > > 4. Drag the file "z" from Explorer and drop it on Emacs. Emacs signals > > an error, "dnd-open-local-file: Can not read file:///y/z". > > > > 5. Clean up: > > > > net share y /delete > > rmdir /s /q %HOMEDRIVE%%HOMEPATH%\x > > > > End of recipe. > > Thanks, I hope I fixed that. > Yes I think so, thanks. > > Just now I noticed this in the docstring of the variable > > `dnd-open-remote-file-function': > > > > "=E2=80=98dnd-open-local-file=E2=80=99 attempts to open a remote file u= sing its UNC name > and > > is the default on MS-Windows. =E2=80=98dnd-open-remote-url=E2=80=99 u= ses > =E2=80=98url-handler-mode=E2=80=99 > > and is the default except for MS-Windows." > > > > It sounds as though my scenario has been considered. But it is not > > true now that "=E2=80=98dnd-open-local-file=E2=80=99 attempts to open a= remote file > > using its UNC name". > > I think it's true, if the UNC's //SERVER part names a system other > than the local one. Right? (And with my changes of a few minutes > ago, the local UNC's should also hopefully work.) > Right, thanks. --000000000000191fe905832314c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, 2 Mar 2019 at 18:12, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Richard Copley <rcopley@gmail.com>= ;
> Date: Sat, 2 Mar 2019 12:44:02 +0000
> Cc: 34675@d= ebbugs.gnu.org
>
> 1. In a command prompt window, create a folder "x", and shar= e it as
> "y", and create a file "z" in the folder "x&q= uot;:
>
> mkdir %HOMEDRIVE%%HOMEPATH%\x
> net share y=3D%HOMEDRIVE%%HOMEPATH%\x
> >%HOMEDRIVE%%HOMEPATH%\x\z echo.
>
> 2. Run "emacs -Q". Evaluate (system-name) in Emacs and make = a note of
> the result.
>
> 3. Open Explorer and enter "\\foo\y" in the address bar, whe= re "foo"
> is the system name.
>
> 4. Drag the file "z" from Explorer and drop it on Emacs. Ema= cs signals
> an error, "dnd-open-local-file: Can not read file:///y/z". >
> 5. Clean up:
>
> net share y /delete
> rmdir /s /q %HOMEDRIVE%%HOMEPATH%\x
>
> End of recipe.

Thanks, I hope I fixed that.

Yes I thin= k so, thanks.
=C2=A0
> Just now I noticed this in the docstring of the variable
> `dnd-open-remote-file-function':
>
> "=E2=80=98dnd-open-local-file=E2=80=99 attempts to open a remote = file using its UNC name and
> is the=C2=A0 default on MS-Windows.=C2=A0 =E2=80=98dnd-open-remote-url= =E2=80=99 uses =E2=80=98url-handler-mode=E2=80=99
> and is the default except for MS-Windows."
>
> It sounds as though my scenario has been considered. But it is not
> true now that "=E2=80=98dnd-open-local-file=E2=80=99 attempts to = open a remote file
> using its UNC name".

I think it's true, if the UNC's //SERVER part names a system other<= br> than the local one.=C2=A0 Right?=C2=A0 (And with my changes of a few minute= s
ago, the local UNC's should also hopefully work.)
=
Right, thanks.

--000000000000191fe905832314c3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 22:32:45 2019 Received: (at 34675-done) by debbugs.gnu.org; 3 Mar 2019 03:32:45 +0000 Received: from localhost ([127.0.0.1]:58030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0Hrp-0006M7-HZ for submit@debbugs.gnu.org; Sat, 02 Mar 2019 22:32:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0Hro-0006Lv-7y for 34675-done@debbugs.gnu.org; Sat, 02 Mar 2019 22:32:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0Hrj-0001hh-0k; Sat, 02 Mar 2019 22:32:39 -0500 Received: from [176.228.60.248] (port=4986 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h0Hri-0001jT-Hz; Sat, 02 Mar 2019 22:32:38 -0500 Date: Sun, 03 Mar 2019 05:32:30 +0200 Message-Id: <83pnr8fx9t.fsf@gnu.org> From: Eli Zaretskii To: Richard Copley In-reply-to: (message from Richard Copley on Sat, 2 Mar 2019 21:19:00 +0000) Subject: Re: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server References: <83h8clh4eb.fsf@gnu.org> <83wolhf8n0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34675-done Cc: 34675-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Richard Copley > Date: Sat, 2 Mar 2019 21:19:00 +0000 > Cc: 34675@debbugs.gnu.org > > Thanks, I hope I fixed that. > > Yes I think so, thanks. OK, closing. From unknown Sat Sep 13 08:55:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 Mar 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator