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: Tue, 30 Oct 2012 09:15:29 -0400 Message-ID: References: <50750955.4020802@dancol.org> <5088B1F4.90302@dancol.org> <508F5319.4090604@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351603004 8104 80.91.229.3 (30 Oct 2012 13:16:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 13:16:44 +0000 (UTC) Cc: Emacs development discussions To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 14:16:51 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 1TTBgZ-00033q-4q for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 14:16:51 +0100 Original-Received: from localhost ([::1]:46581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTBgQ-0002Rt-6u for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 09:16:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTBgJ-0002Rc-78 for emacs-devel@gnu.org; Tue, 30 Oct 2012 09:16:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTBgB-0005HV-6h for emacs-devel@gnu.org; Tue, 30 Oct 2012 09:16:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:61041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTBgB-00053X-3R for emacs-devel@gnu.org; Tue, 30 Oct 2012 09:16:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu0/O+LET/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNEAETiBwFugmFZYpfA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="203139979" Original-Received: from 206-248-177-19.dsl.teksavvy.com (HELO pastel.home) ([206.248.177.19]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Oct 2012 09:15:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9592359419; Tue, 30 Oct 2012 09:15:29 -0400 (EDT) In-Reply-To: <508F5319.4090604@dancol.org> (Daniel Colascione's message of "Mon, 29 Oct 2012 21:10:01 -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:154586 Archived-At: >>> Here's what I threw together to try to get this working. I took a look >>> at minibuffer.el and other pieces of code seem to make the same >>> assumption. Maybe the requote operation needs a a file-name-handler? >> I installed a new implementation of the requote, which should handle >> your case better. It still tripped up some later assertions, but >> I think those assertions are too strict in this case, so I commented >> them out and it seemed to work in my test. >> If you still find bogus behavior, please file a bug-report. > Now c:\bin\ gets transformed into c:/usr/bin/ at the completion > prompt, which is no good: Hmm... that's odd. Can you give me some details: - tell me exactly which text you typed in the minibuffer. - also tell me how the rfn-eshadow highlights the file name at each step. > besides being the wrong completion (with respect to c:\bin\, since > there is no c:\usr at the Windows level), the lack of backslashes in > the substituted path completely disables the file-name-handler I'm > trying to use. Right. BTW I'm not convinced this is the right pattern to use for your file-name-handler. I think catching "\\[a-zA-Z]:" or something along these lines might be a better choice. BTW, does Cygwin allow backslashes in file-names or does it interpret it as a separator, like Windows does? Stefan