From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories Date: Thu, 14 Dec 2023 23:49:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11695"; mail-complaints-to="usenet@ciao.gmane.io" To: 67830@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 14 23:36:16 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 1rDuJU-0002nl-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Dec 2023 23:36:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDuJQ-0003OT-8Z; Thu, 14 Dec 2023 17:36:12 -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 1rDuJO-0003OJ-GL for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 17:36:10 -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 1rDuJG-0002t8-N9 for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 17:36:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDuJG-0005oj-5X for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 17:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2023 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67830 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170259333122311 (code B ref -1); Thu, 14 Dec 2023 22:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Dec 2023 22:35:31 +0000 Original-Received: from localhost ([127.0.0.1]:51149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDuIl-0005nn-3b for submit@debbugs.gnu.org; Thu, 14 Dec 2023 17:35:31 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:47816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDuIi-0005nY-Vz for submit@debbugs.gnu.org; Thu, 14 Dec 2023 17:35:29 -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 1rDuId-0002rh-Js for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 17:35:23 -0500 Original-Received: from [78.47.144.35] (helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDuIX-0002fB-Ad for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 17:35:23 -0500 Original-Received: from mts-Mac-mini.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 38E759C761 for ; Thu, 14 Dec 2023 23:35:13 +0100 (CET) Original-Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 82EB02BFF2CC; Thu, 14 Dec 2023 23:49:05 +0100 (CET) X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:276226 Archived-At: 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 In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.2.0, X toolkit, cairo version 1.17.6, Xaw scroll bars) of 2023-09-11 built on mac Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Mac OS X 10.14.2 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --with-sqlite3 --with-webp --infodir /opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft --with-native-compilation=aot --with-tree-sitter 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64'' Configured features: ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM LUCID ZLIB