From unknown Tue Jun 17 22:16:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories 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-GNU-PR-Keywords: To: 67830@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170259333122311 (code B ref -1); Thu, 14 Dec 2023 22:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2023 22:35:31 +0000 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 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 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 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 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) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 82EB02BFF2CC; Thu, 14 Dec 2023 23:49:05 +0100 (CET) From: Markus Triska Date: Thu, 14 Dec 2023 23:49:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Tue Jun 17 22:16:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2023 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Markus Triska Cc: 67830@debbugs.gnu.org Received: via spool by 67830-submit@debbugs.gnu.org id=B67830.170261361814964 (code B ref 67830); Fri, 15 Dec 2023 04:14:02 +0000 Received: (at 67830) by debbugs.gnu.org; 15 Dec 2023 04:13:38 +0000 Received: from localhost ([127.0.0.1]:51472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDzZy-0003tI-Fm for submit@debbugs.gnu.org; Thu, 14 Dec 2023 23:13:38 -0500 Received: from mail-il1-x141.google.com ([2607:f8b0:4864:20::141]:44310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDzZx-0003t3-27 for 67830@debbugs.gnu.org; Thu, 14 Dec 2023 23:13:37 -0500 Received: by mail-il1-x141.google.com with SMTP id e9e14a558f8ab-35d72bc5cf2so1360645ab.1 for <67830@debbugs.gnu.org>; Thu, 14 Dec 2023 20:13:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702613611; x=1703218411; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=goQ5saLFFiOO/dEo/G6lpbmzIuQEEENdF+4T26vW4fI=; b=URI74/fFU0k8pEaKqGlKgORj9YYz3OyfIWM1GiqoMFYPTpwQkdRwOmCI0Z9aNrzVSF qRyFxq4r2KH37HLW3UXFlmbSmv/igIB99DEZ424XQ+5tEqFY95SlXLubVk9Y4UVZrYgL CZCbvuOivLRc9C0JntrInBP2rmO+7GSZKwx5vm0KY9FKlp6k2qwIciW5K2eMGop6ptC6 dkAaTzwAd3opSgC/JuzSMtmVNWYg4ULS8U4Ovq2IYDmVlq2StuNJRJ8sUrQCaTEX6JxO lVzp+q0N02S2tnl9Y+cXpfYJsY5dHs/SW6bF9t+uOI06fb47T46hqc7Dhxp4i08T65kp UoOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702613611; x=1703218411; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=goQ5saLFFiOO/dEo/G6lpbmzIuQEEENdF+4T26vW4fI=; b=AGrZL7RR9DNCk6aHrQG/umm6P8F+RcT1Yvd5smhEAKj3U4XJxqssCrkpaAWrqzh02Y Uh6unjg7YaKDnD8b23I0/GrFIZh+sDr4Oh8aeaceiPb2I4JUYt2BL0jNn6LFNXCZ+Rl6 3D89FuPW8+GJ5MHDUfZBzHrvcHBlhwco1qsPPPl6Dqwjk8H81gidRX4hg6zttVMGEYJQ PmXtwyKViFu/Owi/UPWPjiGfsh/JL7vGoaxtu+cUYzwlZY8weTxby+f4yPEo5MxPznmV c5Me97CtoiY/lMc27QtP8krtpiY0h0ZMiybbNYunQ7OIwIIlpHSkc8egxC1lbkp0/scg seOA== X-Gm-Message-State: AOJu0YzLlOAxKaj26jP7L04TgECXQhl8Da/kXiw3iJ4vdJ+bt1Kccbb0 IrJdaeo6J+usDli7h0PbpV6COx8CT0aHZA== X-Google-Smtp-Source: AGHT+IEBeBHOK4rzltQcpQpryKGMkOVkBLkMhVcvhXYiI0y9BwFC15ty2KwIoAv2l9jQ7eR4UZZHUQ== X-Received: by 2002:a05:6e02:1d0c:b0:35d:5cfd:3eb2 with SMTP id i12-20020a056e021d0c00b0035d5cfd3eb2mr16792144ila.0.1702613611421; Thu, 14 Dec 2023 20:13:31 -0800 (PST) Received: from localhost ([49.204.142.102]) by smtp.gmail.com with ESMTPSA id j4-20020a170902c08400b001d348571ccesm4465855pld.240.2023.12.14.20.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 20:13:30 -0800 (PST) From: Visuwesh In-Reply-To: (Markus Triska's message of "Thu, 14 Dec 2023 23:49:05 +0100") References: Date: Fri, 15 Dec 2023 09:43:28 +0530 Message-ID: <87h6kkrtlj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [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. From unknown Tue Jun 17 22:16:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories 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 X-GNU-PR-Keywords: To: Visuwesh Cc: triska@metalevel.at, 67830@debbugs.gnu.org Received: via spool by 67830-submit@debbugs.gnu.org id=B67830.17026301123234 (code B ref 67830); Fri, 15 Dec 2023 08:49:02 +0000 Received: (at 67830) by debbugs.gnu.org; 15 Dec 2023 08:48:32 +0000 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 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 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==; Date: Fri, 15 Dec 2023 10:48:25 +0200 Message-Id: <835y0zq2au.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87h6kkrtlj.fsf@gmail.com> (message from Visuwesh on Fri, 15 Dec 2023 09:43:28 +0530) References: <87h6kkrtlj.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Tue Jun 17 22:16:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Markus Triska Subject: bug#67830: closed (Re: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories) Message-ID: References: X-Gnu-PR-Message: they-closed 67830 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 67830@debbugs.gnu.org Date: Wed, 10 Jan 2024 11:05:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1704884703-30838-1" This is a multi-part message in MIME format... ------------=_1704884703-30838-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #67830: 30.0.50; find-file completion sometimes unexpectedly omits director= ies which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 67830@debbugs.gnu.org. --=20 67830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67830 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1704884703-30838-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 67830-done) by debbugs.gnu.org; 10 Jan 2024 11:04:32 +0000 Received: from localhost ([127.0.0.1]:42137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNWNs-00080O-5D for submit@debbugs.gnu.org; Wed, 10 Jan 2024 06:04:32 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:57692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNWNq-00080A-Cd for 67830-done@debbugs.gnu.org; Wed, 10 Jan 2024 06:04:30 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5574feb7958so4688536a12.3 for <67830-done@debbugs.gnu.org>; Wed, 10 Jan 2024 03:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704884657; x=1705489457; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=me8Ho3X4MHkLRlCelXuVmLsBfelZWjMchJ/pG1f/Px8=; b=Md3ZRr00nPifVUqQRXexvMLhrbn7Y5K8EKIPhG+fr/oFDN+PB9iZo5sKaqrX/bpDzX tnchAfc8gAlEuerEHFOu6MvXVDUgoRjyS0tavSRf75lRC7aYLl0CC+pB59VGWalieHso gja7/fzYJbvi4eIK7MOPv+8jS1H3pfUS60rMlwZ1jCg5xakg1JoBQ+LPMBNRVPwd/8qf G+Brp7D45UiBwFEQngv7kwdrPYG3Bj5W3McSN/egNgalDgWV6WGae4FQLwcQuUMDwDid AqQDHQaqfxLB3dW3Krnf+xoYcpvcXejtIRqxStae6GdPTjbmMW6Lv8aBfwHrun0xpqmA kjxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704884657; x=1705489457; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=me8Ho3X4MHkLRlCelXuVmLsBfelZWjMchJ/pG1f/Px8=; b=JLNlS3fWRKEhLOcGJ2uYIl9r5uXRPS5+s1bnz6wFUiwJio5lbTiaGALj5fB3Ix47Ap bgqPbe4dsij3Hnu7EkHMB3+HpFru8AGZrqY3e5W1gMaqaBJQbn4IjEAMObmb4Ru9uMAQ BMfioC6pLcAKery6vBJn85mohmWOLR313/PxYe2QK40KCyGAWCZ9tXVe/HegDZGXsA6o 7S8sfV3fz7VdUf6u0JqbK+ud39VopPC1t5L0aTfVaAoO3RWm9ywr/WsO9VQq4ZsoZpxE SgcDQ3rukDf0ORAknWfnHtsE/BCWf8l75p8JDzwiOd5azpVTfDekftRBJJ2YJ1uK6Gur RbEQ== X-Gm-Message-State: AOJu0YynxTX1yp9ROXasWr9d08L63sxV+rkJ8OnxIOD2VnBA4akfM+bE nD+oq8t7WcoexXMhk/NrIvdiCikhpEoUAJNVFqE= X-Google-Smtp-Source: AGHT+IHrvB5XA9RmL6g0h3uRsCjkQHPPu4ELAtTkDybPpeWzhBFpbpnscBQB7/sdtLsrUk+1TLgufv896bRITcW7PG4= X-Received: by 2002:a50:c18a:0:b0:557:efbe:8393 with SMTP id m10-20020a50c18a000000b00557efbe8393mr358098edf.48.1704884657251; Wed, 10 Jan 2024 03:04:17 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 10 Jan 2024 03:04:16 -0800 From: Stefan Kangas In-Reply-To: <835y0zq2au.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Dec 2023 10:48:25 +0200") References: <87h6kkrtlj.fsf@gmail.com> <835y0zq2au.fsf@gnu.org> MIME-Version: 1.0 Date: Wed, 10 Jan 2024 03:04:16 -0800 Message-ID: Subject: Re: bug#67830: 30.0.50; find-file completion sometimes unexpectedly omits directories To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67830-done Cc: 67830-done@debbugs.gnu.org, triska@metalevel.at, Visuwesh X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > tags 67830 notabug > thanks > >> Cc: 67830@debbugs.gnu.org >> From: Visuwesh >> Date: Fri, 15 Dec 2023 09:43:28 +0530 >> >> Completion is working as intended, AFAIU. Have a look at >> completion-ignored-extensions. > > Indeed. This is not a bug, but expected behavior. I'm therefore closing this bug report. ------------=_1704884703-30838-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Dec 2023 22:35:31 +0000 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 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 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 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 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) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 82EB02BFF2CC; Thu, 14 Dec 2023 23:49:05 +0100 (CET) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 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 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 ------------=_1704884703-30838-1--