From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29007: 25.3; [PATCH] Make filecache use extended completion Date: Sat, 04 Nov 2017 20:23:13 +0200 Message-ID: <83d14xucmm.fsf@gnu.org> References: <87k1zi75yn.fsf@hochschule-trier.de> <83wp37vg79.fsf@gnu.org> <878tfn478b.fsf@hochschule-trier.de> <83fu9vuq54.fsf@gnu.org> <874lqa3pmc.fsf@hochschule-trier.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1509819854 15112 195.159.176.226 (4 Nov 2017 18:24:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2017 18:24:14 +0000 (UTC) Cc: 29007@debbugs.gnu.org To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 04 19:24:08 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 1eB372-0003Nh-DS for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 19:24:08 +0100 Original-Received: from localhost ([::1]:41850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB377-00021n-Ie for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Nov 2017 14:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB370-00021c-B1 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 14:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB36w-0003dE-Uv for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 14:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eB36w-0003d0-Rg for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 14:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eB36w-000480-K6 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2017 14:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 18:24: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.150981981315831 (code B ref 29007); Sat, 04 Nov 2017 18:24:02 +0000 Original-Received: (at 29007) by debbugs.gnu.org; 4 Nov 2017 18:23:33 +0000 Original-Received: from localhost ([127.0.0.1]:50901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB36S-00047G-98 for submit@debbugs.gnu.org; Sat, 04 Nov 2017 14:23:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB36Q-000473-13 for 29007@debbugs.gnu.org; Sat, 04 Nov 2017 14:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eB36H-0003IO-P8 for 29007@debbugs.gnu.org; Sat, 04 Nov 2017 14:23:24 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eB36H-0003IJ-LG; Sat, 04 Nov 2017 14:23:21 -0400 Original-Received: from [176.228.60.248] (port=4605 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eB36F-0007In-Ot; Sat, 04 Nov 2017 14:23:21 -0400 In-reply-to: <874lqa3pmc.fsf@hochschule-trier.de> (message from Andreas Politz on Sat, 04 Nov 2017 18:44:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:139443 Archived-At: > From: Andreas Politz > Cc: 29007@debbugs.gnu.org > Date: Sat, 04 Nov 2017 18:44:43 +0100 > > 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. Thanks. I think your patch is good for the master branch, but I think it should include a NEWS entry about the change.