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#59803: completion-at-point in shell buffer ignores some files Date: Sat, 10 Dec 2022 14:51:59 +0200 Message-ID: <834ju3xvyo.fsf@gnu.org> References: <87tu2chhtv.fsf@graner.name> <83pmczbics.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30810"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59803@debbugs.gnu.org, nicolas@graner.name To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 13:53:23 2022 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 1p3zM3-0007pz-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 13:53:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3zLl-00034w-9T; Sat, 10 Dec 2022 07:53:05 -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 1p3zLj-00034R-7e for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 07:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3zLi-0005oz-VX for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 07:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3zLi-0004CZ-GE for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2022 07:53: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: Sat, 10 Dec 2022 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59803 X-GNU-PR-Package: emacs Original-Received: via spool by 59803-submit@debbugs.gnu.org id=B59803.167067673516135 (code B ref 59803); Sat, 10 Dec 2022 12:53:02 +0000 Original-Received: (at 59803) by debbugs.gnu.org; 10 Dec 2022 12:52:15 +0000 Original-Received: from localhost ([127.0.0.1]:42590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3zKx-0004CB-I2 for submit@debbugs.gnu.org; Sat, 10 Dec 2022 07:52:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3zKt-0004C4-Pb for 59803@debbugs.gnu.org; Sat, 10 Dec 2022 07:52:14 -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 1p3zKm-0005bx-KA; Sat, 10 Dec 2022 07:52:04 -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=BRYy5Nt+jxiAMVTopIm3XbkPw8WLDuIrMz8Jfr2AW/I=; b=NnjZ4LnY9Rin puww94OhQOrI3+NiNQp58AvPnFcPuOFMCelFwf+xphQqPEcGUOyl9zgBANW88u1CDdpzyar7Sb43l VRWf7msvrgPvxUYe6lVQlC+EFwZJerZjS3TugJFTFpZaH+r0X7Sh+b0ZBSzV2TEf4DHumWroa5kcz j9N2x+daEJOt7pOSX8+QrDLgyqLz7/bSjGU7AANifYFdLvMQ9WN1JjkaCwN6V1nooAajUB+vwnNRe zeeqyThnqdhszD6vcGNFLV2+4zuFtSQwYsN//cnFsB5bvlwcZBeC8Izqs7+d8fdNmIYTE8AcXayt5 CimyW6LdVp/5blu52OiRAA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3zKl-0000dd-Ps; Sat, 10 Dec 2022 07:52:04 -0500 In-Reply-To: <83pmczbics.fsf@gnu.org> (message from Eli Zaretskii on Sun, 04 Dec 2022 11:58:43 +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:250511 Archived-At: Ping! Stefan, any suggestions or ideas? > Cc: 59803@debbugs.gnu.org > Date: Sun, 04 Dec 2022 11:58:43 +0200 > From: Eli Zaretskii > > > From: Nicolas Graner > > Date: Sat, 03 Dec 2022 12:01:16 +0100 > > > > In a *Shell* buffer, file name completion ignores file names already > > present on the current line. For example, if you have a file named `foo' > > and no other file starting with an f, when you type: > > > > $ cp f f > > > > the first completes `f' to `foo', but the second gives a `No > > match' error. > > > > Similarly, if you have files named foo1, foo2, foo3 and foo4, then: > > > > $ mv foo1 foo2 f > > > > shows only foo3 and foo4 in the completions buffer. > > > > Happens in emacs 29 but not in 28. > > This seems to be due to some changes in pcomplete.el since Emacs 28, because > if you remove pcomplete-completions-at-point from the value of > shell-dynamic-complete-functions, the problem goes away. > > Stefan, can you help here? It sounds like the culprit is some of the > changes in commit 0a36671f41 and/or 88b025f815, but I'm not sure. > > Thanks. > > > >