From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories Date: Fri, 15 Dec 2023 10:48:25 +0200 Message-ID: <835y0zq2au.fsf@gnu.org> References: <87h6kkrtlj.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: triska@metalevel.at, 67830@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 15 09:49:28 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 1rE3su-0004Na-G3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Dec 2023 09:49:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rE3sW-0001yK-QT; Fri, 15 Dec 2023 03:49:04 -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 1rE3sV-0001xx-7Y for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 03:49:03 -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 1rE3sU-0007nv-Vt for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 03:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rE3sU-0000s7-Gg for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 03:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2023 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67830 X-GNU-PR-Package: emacs Original-Received: via spool by 67830-submit@debbugs.gnu.org id=B67830.17026301123234 (code B ref 67830); Fri, 15 Dec 2023 08:49:02 +0000 Original-Received: (at 67830) by debbugs.gnu.org; 15 Dec 2023 08:48:32 +0000 Original-Received: from localhost ([127.0.0.1]:51586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE3s0-0000q3-9H for submit@debbugs.gnu.org; Fri, 15 Dec 2023 03:48:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE3ry-0000pG-JC; Fri, 15 Dec 2023 03:48:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rE3rs-0007dO-If; Fri, 15 Dec 2023 03:48:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2dfkyH1r6dR8tP7Z4cgVEw0NobPopAbEEBviPVupkzg=; b=h9fgjKkJ0b0V A0cd4uCnJlM7nMOUi/e3Ex+iLiGfGy9lpeO2toyY17PIFhCp83bK/6mgA0cR9pNGQ7PI0cGgpX5Yi wT/tuaaU0gyWf8aoSIZf8jRAEuWNc4FlOKhhCf3DHYHoK80w8f1VByQT9ZygXW4XLQfGYQlyxLcw1 bLRKs4zF3+9Az6hBIJkAY9n3o3gsVU/ReKEZQShWPr5ODp2CJd5R8SkyHFvQecbUh1139wQQ6e4oa eJxK5tS9pIqW6s9pd+Ev27FtkrYwmD3ebsCKkA4XVNeFwgtHiOUE06kszHbTNK1u7H3bHOYuYLwdW dyWl8D3S4m3mnTVl1wv5xQ==; In-Reply-To: <87h6kkrtlj.fsf@gmail.com> (message from Visuwesh on Fri, 15 Dec 2023 09:43:28 +0530) 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:276256 Archived-At: tags 67830 notabug thanks > Cc: 67830@debbugs.gnu.org > From: Visuwesh > Date: Fri, 15 Dec 2023 09:43:28 +0530 > > [Thursday December 14, 2023] Markus Triska wrote: > > > To reproduce this issue, please first create the directory ~/issue/.git, > > and the file ~/issue/.gitignore, for example with: > > > > $ mkdir issue > > $ cd issue/ > > $ mkdir .git > > $ touch .gitignore > > > > Then, from your home directory, start Emacs with: > > > > $ emacs -Q > > > > and do: > > > > C-x C-f ~/issue/.git TAB > > > > As expected, the minibuffer displays: > > > > [Complete, but not unique] > > > > and Emacs also shows the 2 possible completions: > > > > 2 possible completions: > > .git/ > > .gitignore > > > > In contrast, when I do: > > > > C-x C-f ~/issue/. TAB > > > > then the minibuffer prematurely completes it to the file: > > > > ~/issue/.gitignore > > > > This is even though the directory ~/issue/.git exists, and also forms a > > valid and expected completion of "~/issue/.". > > > > The expected behaviour is the same as above, on the grounds that > > "~/issue/." is a proper prefix of "~/issue/.git" and therefore should > > never yield fewer possible completions. > > > > Thank you and all the best, > > Markus > > > > Completion is working as intended, AFAIU. Have a look at > completion-ignored-extensions. Indeed. This is not a bug, but expected behavior.