From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#34675: 27.0.50; (MS-Windows) DND fails for UNC filename on same server Date: Sat, 2 Mar 2019 21:19:00 +0000 Message-ID: References: <83h8clh4eb.fsf@gnu.org> <83wolhf8n0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000191fe905832314c3" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="74284"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34675@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 02 22:20:14 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0C3I-000Ix0-DH for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2019 22:20:12 +0100 Original-Received: from localhost ([127.0.0.1]:58968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0C3H-0002nO-Ds for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2019 16:20:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0C3A-0002nI-CR for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 16:20:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0C39-0003y9-DZ for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 16:20:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0C39-0003xz-Ad for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 16:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0C38-0004AV-Lm for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 16:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Mar 2019 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34675 X-GNU-PR-Package: emacs Original-Received: via spool by 34675-submit@debbugs.gnu.org id=B34675.155156157615987 (code B ref 34675); Sat, 02 Mar 2019 21:20:02 +0000 Original-Received: (at 34675) by debbugs.gnu.org; 2 Mar 2019 21:19:36 +0000 Original-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 Original-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 Original-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) In-Reply-To: <83wolhf8n0.fsf@gnu.org> 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:155975 Archived-At: --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--