From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11718: 24.1.50; `all-completions' returns results with wrong case Date: Sun, 24 Jun 2012 13:20:31 -0700 Message-ID: <38E9C991E50C40F3AA6B1306119CC96B@us.oracle.com> References: <87vciss8q2.fsf@web.de> <616F17401403488B8C5153C00AD86CBF@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340569337 17097 80.91.229.3 (24 Jun 2012 20:22:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2012 20:22:17 +0000 (UTC) Cc: michael_heerdegen@web.de, 11718@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 24 22:22:16 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SitK3-00027d-Vt for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jun 2012 22:22:16 +0200 Original-Received: from localhost ([::1]:57738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SitK3-0007ff-TM for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jun 2012 16:22:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SitK0-0007fa-Kj for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 16:22:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SitJy-0000v1-Si for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 16:22:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SitJy-0000uw-P7 for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 16:22:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SitNh-0008Bj-JU for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2012 16:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jun 2012 20:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11718-submit@debbugs.gnu.org id=B11718.134056950531410 (code B ref 11718); Sun, 24 Jun 2012 20:26:01 +0000 Original-Received: (at 11718) by debbugs.gnu.org; 24 Jun 2012 20:25:05 +0000 Original-Received: from localhost ([127.0.0.1]:55486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SitMn-0008AX-2L for submit@debbugs.gnu.org; Sun, 24 Jun 2012 16:25:05 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:22414) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SitMk-0008AQ-R1 for 11718@debbugs.gnu.org; Sun, 24 Jun 2012 16:25:03 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5OKL8TC013874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 24 Jun 2012 20:21:09 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5OKL6JH000974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Jun 2012 20:21:07 GMT Original-Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5OKL6V4007615; Sun, 24 Jun 2012 15:21:06 -0500 Original-Received: from dradamslap1 (/10.159.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 24 Jun 2012 13:21:06 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac1SJ8oCuHPmLVK8RdSG5QIf7xJtGgAHMlrQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61257 Archived-At: > The problem here is that you misunderstand what is the COLLECTION > argument in the case at hand. It is *not* a table that completes > filenames as they exist in the file-system. If you want > that, then use completion-file-name-table. The case at hand is the one Michael presented. All that is done in that code is to pass `minibuffer-completion-table' and `minibuffer-completion-predicate' to `all-completions'. The former happens to be `read-file-name-internal' in this case, but the code does not impose that (it comes from `read-file-name', which the code uses). > `read-file-name-internal' is a completion table that does > other things to handle substitute-in-file-name rewrite (i.e. > typically env-var expansion, $$-quoting, // and ~/ truncation); A priori I do not have a problem with any of that. Au contraire, I think. > part of that makes it that you should not put too much faith > in the case of the returned string. That's the part that I'm not sure follows. Logically. But I repeat that I cannot speak to the implementation, and I do not claim that it is easy to get it right. I am only saying that file-name completion - even with env-var expansion etc. - _should_ not change the case of file names for the return value. It is a bug if it it does, though not a major bug. (Again, "should" does not imply that it is easy to fix.) I'm not sure we disagree. And I hope you can fix this eventually, even if it is not a high priority. And I understand from your posts that this might not be easy, file names being mixed up with env-var substitution et tout le reste.