From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: substitute-in-file-name is not distributive Date: Mon, 29 Oct 2012 21:10:01 -0700 Message-ID: <508F5319.4090604@dancol.org> References: <50750955.4020802@dancol.org> <5088B1F4.90302@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8107511261703C1933898D9E" X-Trace: ger.gmane.org 1351570214 11332 80.91.229.3 (30 Oct 2012 04:10:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 04:10:14 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 05:10:23 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 1TT39j-0001iX-6a for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 05:10:23 +0100 Original-Received: from localhost ([::1]:44971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT39a-00066u-Pg for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 00:10:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT39Y-00066T-2G for emacs-devel@gnu.org; Tue, 30 Oct 2012 00:10:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT39W-000493-7l for emacs-devel@gnu.org; Tue, 30 Oct 2012 00:10:11 -0400 Original-Received: from dancol.org ([96.126.100.184]:42560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT39W-00045r-2H for emacs-devel@gnu.org; Tue, 30 Oct 2012 00:10:10 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TT39S-0004W1-LU; Mon, 29 Oct 2012 21:10:06 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: X-Enigmail-Version: 1.4.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.126.100.184 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:154580 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8107511261703C1933898D9E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10/28/2012 12:09 PM, Stefan Monnier wrote: >> 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? >=20 > 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. >=20 Now c:\bin\ gets transformed into c:/usr/bin/ at the completion prompt, w= hich is no good: besides being the wrong completion (with respect to c:\bin\, sin= ce 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. I feel like I need a hook outside the quoting done by the function with completion-table-with-quoting. I'll see whether I can mock something up w= ith advice. --------------enig8107511261703C1933898D9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCPUx0ACgkQ17c2LVA10VvV/ACgzwc/qxG4aIrp5DQXPCG3rTWF WbsAn10ZIlVUXXvDipziwrtPidDSF4m2 =JDOW -----END PGP SIGNATURE----- --------------enig8107511261703C1933898D9E--