GNU bug report logs - #29007
25.3; [PATCH] Make filecache use extended completion

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Thu, 26 Oct 2017 06:57:02 UTC

Severity: minor

Tags: fixed, patch

Found in version 25.3

Fixed in version 27.1

Done: npostavs <at> gmail.com

Bug is archived. No further changes may be made.

Full log


Message #17 received at 29007 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Politz <politza <at> hochschule-trier.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 29007 <at> debbugs.gnu.org
Subject: Re: bug#29007: 25.3; [PATCH] Make filecache use extended completion
Date: Sat, 04 Nov 2017 18:44:43 +0100
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




This bug report was last modified 6 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.