From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names. Date: Sun, 02 Feb 2014 10:06:37 -0500 Message-ID: References: <83ob2q4nbv.fsf@gnu.org> <83k3de41sc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391354228 24468 80.91.229.3 (2 Feb 2014 15:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Feb 2014 15:17:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 02 16:17:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W9ynJ-0002Dm-8h for ged-emacs-devel@m.gmane.org; Sun, 02 Feb 2014 16:17:13 +0100 Original-Received: from localhost ([::1]:41627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9ynI-0003V9-Iq for ged-emacs-devel@m.gmane.org; Sun, 02 Feb 2014 10:17:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9yn9-0002Wv-Cr for emacs-devel@gnu.org; Sun, 02 Feb 2014 10:17:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9ydF-0000rQ-IK for emacs-devel@gnu.org; Sun, 02 Feb 2014 10:06:56 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9yd7-0000pi-SE; Sun, 02 Feb 2014 10:06:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46613136" Original-Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 02 Feb 2014 10:06:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D639260069; Sun, 2 Feb 2014 10:06:37 -0500 (EST) In-Reply-To: <83k3de41sc.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Feb 2014 05:43:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169344 Archived-At: >> >> > + * w32fns.c (Fw32_shell_execute): Don't call file-exists-p for >> >> > + DOCUMENT that is a "remote" file name, i.e. a file-handler exists >> >> > + for it. (Bug#16558) >> >> That means we don't call Ffile_exists_p for .gz files :-( >> >> It seems arbitrary. >> > What do you suggest? bind handlers-alist to nil? >> Could you describe the problem we're trying to solve? > What is unclear in its description in this bug report? I think the problem is in calling file-exists-p. IIUC we use it to decide whether to pass the file to expand-file-name, right? And the reason we do that is because some file names are "normal" and others refer to non-files according to some w32 feature which can map them to some other tools. I don't know that w32 feature at all, so it's hard for me to figure out what should be done, but it seems like file-exists-p is not the right thing to do anyway since the file name might be "normal" but refer to a file that doesn't exist yet. So, how does w32 decide whether a file name is "normal" or not? Stefan