From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11718: 24.1.50; `all-completions' returns results with wrong case Date: Sat, 23 Jun 2012 21:51:42 +0200 Message-ID: <87395l6c35.fsf@web.de> References: <87vciss8q2.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340481023 29793 80.91.229.3 (23 Jun 2012 19:50:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 19:50:23 +0000 (UTC) Cc: 11718@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 23 21:50:22 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 1SiWLe-0000Fb-7Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 21:50:22 +0200 Original-Received: from localhost ([::1]:46638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiWLe-0001Cp-15 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 15:50:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiWLa-0001CY-Ma for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 15:50:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiWLZ-00037q-1C for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 15:50:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiWLY-00036y-To for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 15:50:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SiWPB-0005B7-R8 for bug-gnu-emacs@gnu.org; Sat, 23 Jun 2012 15:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jun 2012 19:54: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.134048120919859 (code B ref 11718); Sat, 23 Jun 2012 19:54:01 +0000 Original-Received: (at 11718) by debbugs.gnu.org; 23 Jun 2012 19:53:29 +0000 Original-Received: from localhost ([127.0.0.1]:54301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiWOf-0005AF-5X for submit@debbugs.gnu.org; Sat, 23 Jun 2012 15:53:29 -0400 Original-Received: from mout.web.de ([212.227.17.12]:60149) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiWOc-0005A7-8i for 11718@debbugs.gnu.org; Sat, 23 Jun 2012 15:53:26 -0400 Original-Received: from snow.dragon ([82.113.121.141]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MPHC8-1Smu3Z3kQa-004p2o; Sat, 23 Jun 2012 21:49:36 +0200 In-Reply-To: (Drew Adams's message of "Sat, 23 Jun 2012 07:18:00 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Provags-ID: V02:K0:AthvMghp8gOm54MM52Vjqrac7G7+fmvWb3r7qva520y xl4QvWCpNzufHdfV43Tr1ryiYxeLFfG6W4tFmCxoNJiXBqNEor JfZ3TnCSBtnn8rP/A+xOjfQmbXrBqqZPtmwJGpEbXu/N/WOw2S G9/R98/V8Wac62kiLBcyMcjqHWEmRDzrBDrT+9ruRtUHY0TTyp gwj+HtlHhcgPD/BZxu07FuiK+pO6Jh/YjnoFMgxUu0= 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:61229 Archived-At: "Drew Adams" writes: > I don't know what the Icicles connection is. If you type C-x C-f ~ / t r a TAB, this is what we currently do: all-completions("~/tra" read-file-name-internal file-exists-p nil) * icicle-all-completions("~/tra" read-file-name-internal file-exists-p nil) icicle-unsorted-file-name-prefix-candidates("~/tra") icicle-file-name-prefix-candidates("~/tra") icicle-prefix-complete-1() icicle-prefix-complete() where `icicle-unsorted-file-name-prefix-candidates' looks like this: --8<---------------cut here---------------start------------->8--- (defun icicle-unsorted-file-name-prefix-candidates (input) "Unsorted list of prefix completions for the current file-name INPUT. When `icicle-expand-input-to-common-match' = 3 or 4, which implies prefix auto-expansion, this also sets `icicle-common-match-string' to the expanded common match of the input over all candidates." (condition-case nil (let* ((pred (if (< emacs-major-version 23) default-directory minibuffer-completion-predicate)) (candidates (if (icicle-not-basic-prefix-completion-p) (icicle-completion-all-completions input minibuffer-completion-table pred (length input) (and (fboundp 'completion--field-metadata) ;Emacs24 (completion--field-metadata (field-beginning)))) (icicle-all-completions input minibuffer-completion-table pred icicle-ignore-space-prefix-flag))) (icicle-extra-candidates (icicle-remove-if-not ..4..)) (icicle-proxy-candidates ..5..) (filtered-candidates ..16..)) (when (and (memq icicle-expand-input-to-common-match '(3 4)) (consp filtered-candidates)) ..15..) (unless filtered-candidates (setq icicle-common-match-string nil)) filtered-candidates) (quit (top-level)))) --8<---------------cut here---------------end--------------->8--- Thus, the minibuffer input is completed to ~/trash, although only ~/Trash exists. Michael.