From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#29007: 25.3; [PATCH] Make filecache use extended completion Date: Sat, 04 Nov 2017 18:44:43 +0100 Message-ID: <874lqa3pmc.fsf@hochschule-trier.de> References: <87k1zi75yn.fsf@hochschule-trier.de> <83wp37vg79.fsf@gnu.org> <878tfn478b.fsf@hochschule-trier.de> <83fu9vuq54.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509817511 13301 195.159.176.226 (4 Nov 2017 17:45:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 17:45:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29007@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 04 18:45:05 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2VD-0002pX-6J for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 18:45:03 +0100 Original-Received: from localhost ([::1]:41771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB2VK-0004CL-Jr for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 13:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB2VF-0004C9-Jf for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 13:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB2VC-0005NY-H3 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 13:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42205) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eB2VC-0005NU-DL for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eB2VC-0003Fu-6w for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 13:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 29007-submit@debbugs.gnu.org id=B29007.150981749312484 (code B ref 29007); Sat, 04 Nov 2017 17:45:02 +0000 Original-Received: (at 29007) by debbugs.gnu.org; 4 Nov 2017 17:44:53 +0000 Original-Received: from localhost ([127.0.0.1]:50886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2V2-0003FI-UM for submit@debbugs.gnu.org; Sat, 04 Nov 2017 13:44:53 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:35681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2V1-0003F5-R8 for 29007@debbugs.gnu.org; Sat, 04 Nov 2017 13:44:52 -0400 X-Virus-Scanned: by Amavisd-new + Sophos + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip5886048c.dynamic.kabel-deutschland.de [88.134.4.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 5E08517A8977; Sat, 4 Nov 2017 18:44:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1509817484; bh=J69lVBRXfL5z9PL0xEWg1cA95LY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=kGPNvnHgLB6lihxONYhwfgaXyDe42M6descMdbINULAnmm1J2jooLy+0QQWpk1zrf 2ksK4E+EqUSCoRtMPtHlo5mwKbyZ75IlY1Su1IK8/p9ZdOtK57vY+g/b9ZrNM5i2at J2xI3ZtZr/7ccA41OyewwCWecqm3oKjlhhVaynBA= In-Reply-To: <83fu9vuq54.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Nov 2017 21:19:03 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:139441 Archived-At: OK, I'll elaborate. Currently, file-cache-minibuffer-complete does longest-prefix completion via all-completions only, instead of completion-all-completions, which completes according to the completion-styles variable. And here are some cases where this behavior is inconvenient or even insufficient, when trying to open some file via `C-x C-f C-TAB'. 1. Opening some file from the file-cache, without remembering the exact prefix. Example: You only remember that the file ends in '-foo.el'. 2. Opening some file, while the file-cache contains many files having the same prefix. Example: The cache contains the following files. aaa.a aab.b aba.c abb.d baa.e bab.f bba.g bbb.h Here prefix completion is basically useless, but entering the unique suffix and using substring completion immediately completes to the unique match. -ap