GNU bug report logs -
#65089
30.0.50; shell-command filename completion unexpected behavior change
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Sat, 5 Aug 2023 10:47:02 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 30.1
Done: Mauro Aranda <maurooaranda <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Ping!
> Cc: 65089 <at> debbugs.gnu.org
> Date: Sat, 05 Aug 2023 14:04:23 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Date: Sat, 5 Aug 2023 07:46:16 -0300
> > From: Mauro Aranda <maurooaranda <at> gmail.com>
> >
> > 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 <arstoffel <at> gmail.com>
> > 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.
>
>
>
>
This bug report was last modified 1 year and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.