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#65089: 30.0.50; shell-command filename completion unexpected behavior change Date: Sat, 05 Aug 2023 14:04:23 +0300 Message-ID: <83pm41sqbs.fsf@gnu.org> References: <7e89aab4-41bb-384a-760d-9fd7830ff6b9@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65089@debbugs.gnu.org To: Mauro Aranda , Augusto Stoffel , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 13:05:20 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 1qSF60-00076Z-Gh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 13:05:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSF5n-0004Jb-Rk; Sat, 05 Aug 2023 07:05:07 -0400 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 1qSF5k-0004JI-TO for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:05:06 -0400 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 1qSF5i-00062z-IM for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSF5i-0005Vq-DE for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 07:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 11:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65089 X-GNU-PR-Package: emacs Original-Received: via spool by 65089-submit@debbugs.gnu.org id=B65089.169123345521130 (code B ref 65089); Sat, 05 Aug 2023 11:05:02 +0000 Original-Received: (at 65089) by debbugs.gnu.org; 5 Aug 2023 11:04:15 +0000 Original-Received: from localhost ([127.0.0.1]:55905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSF4x-0005Ui-CY for submit@debbugs.gnu.org; Sat, 05 Aug 2023 07:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSF4v-0005UT-O9 for 65089@debbugs.gnu.org; Sat, 05 Aug 2023 07:04:14 -0400 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 1qSF4q-0005pm-F6; Sat, 05 Aug 2023 07:04:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=VZpI2xjvY4lJ4iBdJmmwVTuDqPPfb2zDf81tjqBY7yA=; b=m97g3a8jqK+IK82a60hc MWrWf9wBCC8Q7tmHPdnhZDM6WuCAdA5Wz3ml6Jo8vaQrRQdhDbmHa3xoBgpvo43Ly3OGNF0GXQKBq RBog+bm8VeeiHoodDa6Y1+KxRuNUujufea1Dcp5qVuibs60F+0mpyZyYAGK/osbyHFtyPryK28oOs wY5BFA5Ul26QKFru8BkCoL1hSNEYp3RPVjvtkPOTrupmvo/JYisnceBayV6xY1TpZiO2LYnIB7Lwv qv8zVaTtATWUF9LdlwuqZ9UxathFfF8vk2gwoy1t5t1lZqvSCDs2g27wvjTDwiAZpEZlWk4nq7tpm Uv1UvH3L/+t0HA==; 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 1qSF4p-00013E-VK; Sat, 05 Aug 2023 07:04:08 -0400 In-Reply-To: <7e89aab4-41bb-384a-760d-9fd7830ff6b9@gmail.com> (message from Mauro Aranda on Sat, 5 Aug 2023 07:46:16 -0300) 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:266768 Archived-At: > Date: Sat, 5 Aug 2023 07:46:16 -0300 > From: Mauro Aranda > > Before running emacs, setup a directory tree like this: > mkdir bug bug/foo-1 bug/foo-2 bug/foo-1/bar bug/foo-2/bar > under HOME, for simplicity. > > Now, with emacs -Q: > M-! > ls ~/bug/bar > Put point between "/" and "b" of "bar" and type TAB > emacs says "No match", but I expected it to offer completions, foo-1 and > foo-2. > > That was the behavior, at least in Emacs 28.  Reverting the following > commit, returns this behavior for me: > > commit a9941269683fe50673d0aa81feefb7a9d3d8a6b9 > Author: Augusto Stoffel > Date:   Thu Sep 8 11:09:42 2022 +0200 > >     pcomplete: Generate completions from --help messages > >     * lisp/pcomplete.el (pcomplete-from-help): New function (and hash >     table) to get pcomplete candidates from help messages. >     (pcomplete-here-using-help): Helper function to define pcomplete for >     simple commands >     (pcomplete-completions-at-point): Provide annotation-function and >     company-docsig properties. >     * lisp/pcmpl-git.el: New file, provides pcomplete for Git. >     * lisp/pcmpl-gnu.el: Add pcomplete for awk, gpg and gdb, emacs and >     emacsclient. >     * lisp/pcmpl-linux.el: Add pcomplete for systemctl and journalctl. >     * lisp/pcmpl-rpm.el: Add pcomplete for dnf. >     * lisp/pcmpl-unix.el: Add pcomplete for sudo and most commands found >     in GNU Coreutils. >     * lisp/pcmpl-x.el: Add pcomplete for tex, pdftex, latex, pdflatex, >     rigrep and rclone. >     * test/lisp/pcomplete-tests.el (pcomplete-test-parse-gpg-help, >     pcomplete-test-parse-git-help): Tests for the new functions. > > > And my current workaround is to move pcomplete-completions-at-point to > the end in shell-dynamic-complete-functions, following what was done in > Bug#34330. Adding Augusto and Stefan to the discussion.