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, 12 Aug 2023 09:51:06 +0300 Message-ID: <834jl4g3dx.fsf@gnu.org> References: <7e89aab4-41bb-384a-760d-9fd7830ff6b9@gmail.com> <83pm41sqbs.fsf@gnu.org> 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="34106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65089@debbugs.gnu.org To: maurooaranda@gmail.com, arstoffel@gmail.com, monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 08:51:15 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 1qUiSw-0008fp-7i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 08:51:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUiSq-0004Jd-32; Sat, 12 Aug 2023 02:51:08 -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 1qUiSk-0004JU-R5 for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 02:51:02 -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 1qUiSk-0006Ni-HN for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUiSk-0003ev-Dv for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 02:51: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, 12 Aug 2023 06:51: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.169182304214022 (code B ref 65089); Sat, 12 Aug 2023 06:51:02 +0000 Original-Received: (at 65089) by debbugs.gnu.org; 12 Aug 2023 06:50:42 +0000 Original-Received: from localhost ([127.0.0.1]:48540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUiSP-0003e6-TE for submit@debbugs.gnu.org; Sat, 12 Aug 2023 02:50:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUiSO-0003ds-JZ for 65089@debbugs.gnu.org; Sat, 12 Aug 2023 02:50:40 -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 1qUiSJ-0006LZ-9V; Sat, 12 Aug 2023 02:50:35 -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=jlY/aUx/uWS5uj97RrTlVFzikMS/6QxE7nG0bGUhBa4=; b=E4IxHl9jVQoTgW5xdxTL jKCFhpmaJ8I17VZRQ03efBKBKjdT6ZzvsB1oSEiBYAUa7jozfYOgxNKngQrcuZTohJCND5vd93Aqq WCxSbzn7w6YLkmfv/NIDMd3FExDVlr6ZObmBp9iJ0hozSa052SJN8yFjB6yVdTCgVYXLaaOPTdCFf ekcWzyM+BV4D0fGVtJVplPF1TvjJeUnjb6bnuGczOVlTUdG4LjtA7xdpzxlSmI7/DedCUKh366EzO n/J+jj82LWxFIac3qeIwici6ZZz6SBzqk0g+gM1ZGuFcf+sC2z5JwXZnuDDO5f2O40hi6fdMV7GOv 4qz3Tj3BDXyWGA==; In-Reply-To: <83pm41sqbs.fsf@gnu.org> (message from Eli Zaretskii on Sat, 05 Aug 2023 14:04:23 +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:267264 Archived-At: Ping! > Cc: 65089@debbugs.gnu.org > Date: Sat, 05 Aug 2023 14:04:23 +0300 > From: Eli Zaretskii > > > 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. > > > >