From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68022: 30.0.50; File cache completions accumulate instead of replacing minibuffer input Date: Mon, 25 Dec 2023 14:47:52 +0100 Message-ID: References: <8334vqbge3.fsf@gnu.org> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68022@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 25 14:49:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rHlKc-0006TI-1E for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Dec 2023 14:49:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHlKD-0002vk-OZ; Mon, 25 Dec 2023 08:48:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHlKB-0002vL-Jo for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 08:48:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHlKB-0007qO-BU for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 08:48:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHlKH-0001ps-Rh for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 08:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Dec 2023 13:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68022 X-GNU-PR-Package: emacs Original-Received: via spool by 68022-submit@debbugs.gnu.org id=B68022.17035120886776 (code B ref 68022); Mon, 25 Dec 2023 13:49:01 +0000 Original-Received: (at 68022) by debbugs.gnu.org; 25 Dec 2023 13:48:08 +0000 Original-Received: from localhost ([127.0.0.1]:54187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHlJP-0001lC-N6 for submit@debbugs.gnu.org; Mon, 25 Dec 2023 08:48:08 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:44778 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHlJK-0001kZ-82 for 68022@debbugs.gnu.org; Mon, 25 Dec 2023 08:48:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1703512075; bh=qIhOYJpu7dLeZeAWWU2Gkcv1viUJEysiRFdbqBoR768=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fxrVezzGuCKCfDKrmuvqx9mwVUqhZLuBCDTkTLICziuB90dq/xaiKYR5ZMygSUblS NbmcB9LH3csPjquH8jPrTd9X8cp+s2mwwWadYWhCXbP+kOB01RKvdFpd3MMq8PVK+u tD4IZEgk0WiyAWY/LMA+dUzU/bAuI8nISWAupUpzOOMR2vHAXiTyAJLBoDIHrTodnQ O7J/zJ89nm1PCBwgcsIFatRN+ZFG8fSTRwWYG3JZHsZe5icIKgCMIFag9DBR70MZFu slcQ6V+DwakiMDOq4PfRAcCMNkiaMROc4MS3kMoo98EmUGH8e6+Rbh54LShGHjgzwe lfqxSqm3VLhSA== In-Reply-To: <8334vqbge3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 25 Dec 2023 14:44:52 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276854 Archived-At: Eli Zaretskii writes: >> Date: Mon, 25 Dec 2023 07:54:22 +0100 >> From: Eshel Yaron >> >> With emacs -Q: >> >> 1. M-x file-cache-add-directory-using-find /path/to/emacs/ >> 2. C-x C-f mini C-TAB >> 3. Observe the *Completions* buffer pop up with file cache >> completions, suggesting as usual to "type M- or M- to move >> point between completions." >> 4. M- M- M- ... >> 5. Each candidate you highlight this way is inserted in the minibuffer >> after the current input, instead of replacing the appropriate part of >> the input. >> >> I see this already in Emacs 29.1, FWIW. > > Something is missing in the recipe above, because I get "No match" > when I press C-TAB in step 2. What did I miss? Hmm, I'm not sure. Perhaps `file-cache-add-directory-using-find` didn't do its job for some reason? The point is just to add a bunch of file names to the cache. > Is the above supposed to work in any Emacs source tree? Also, what > should be the default-directory in step 1 (if it's important) -- > should it be the root of the Emacs source tree? That shouldn't matter, I think, as long as you have several files with "mini" in their names in the cache. Any other invocation of `C-TAB` that pops the *Completions* buffer should show the same behavior AFAICT.