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: substitute-in-file-name is not distributive Date: Wed, 24 Oct 2012 23:20:12 -0400 Message-ID: References: <50750955.4020802@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351135217 1170 80.91.229.3 (25 Oct 2012 03:20:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 03:20:17 +0000 (UTC) Cc: Emacs development discussions To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 25 05:20:26 2012 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 1TRDzd-0002Je-SA for ged-emacs-devel@m.gmane.org; Thu, 25 Oct 2012 05:20:25 +0200 Original-Received: from localhost ([::1]:35669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRDzV-0000sU-Sb for ged-emacs-devel@m.gmane.org; Wed, 24 Oct 2012 23:20:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRDzT-0000sN-1J for emacs-devel@gnu.org; Wed, 24 Oct 2012 23:20:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRDzR-0004kw-HB for emacs-devel@gnu.org; Wed, 24 Oct 2012 23:20:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRDzR-0004ks-DF for emacs-devel@gnu.org; Wed, 24 Oct 2012 23:20:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu0/O+LFW/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202674764" Original-Received: from 206-248-177-86.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.177.86]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2012 23:20:12 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7415DAE4BC; Wed, 24 Oct 2012 23:20:12 -0400 (EDT) In-Reply-To: <50750955.4020802@dancol.org> (Daniel Colascione's message of "Tue, 09 Oct 2012 22:36:21 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:154500 Archived-At: > The trouble is that the core completion code makes unwarranted > assumptions about the behavior of expand-in-file-name. Specifically, > completion--tqw-all assumes that (equal (unquote (concat (qnew foo) > (qnew bar)) (unquote (quote (concat foo bar))). Why should that be > the case? Long story. For typical escaping/quoting this does hold. Of course, for more general rewrites, it doesn't. Can you give me your file-name-handler code so I can play with it (I don't have Cygwin at hand, but I should be able to make up the difference). I think the problem is in completion--sifn-requote, which is definitely not prepared for the kind of rewrites you're doing. Stefan