GNU bug report logs - #60359
29.0.60; completion-auto-select set to t skips first argument when completing files

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Tue, 27 Dec 2022 17:11:01 UTC

Severity: normal

Found in version 29.0.60

Done: Gregory Heytings <gregory <at> heytings.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: 60359 <at> debbugs.gnu.org, Philip Kaludercic <philipk <at> posteo.net>
Subject: bug#60359: 29.0.60; completion-auto-select set to t skips first argument when completing files
Date: Thu, 29 Dec 2022 20:48:35 +0200
>> Please omit the message only in case when the completions buffer is
>> shown, then the user will see there are more completions.  But after
>> typing e.g. `M-x man TAB` that otherwise does nothing the user should see
>> the message. IOW, in case of `completion-auto-help` please use the same
>> condition `(and (eq this-command last-command) completion-auto-help)` as
>> used to pop up the completions.
>
> You mean this, right?
>
> diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
> index 6e42296e7ba..7a720cf2c0a 100644
> --- a/lisp/minibuffer.el
> +++ b/lisp/minibuffer.el
> @@ -1474,7 +1474,10 @@ completion--do-completion
>                (if (and (eq this-command last-command)
>                completion-auto-help)
>                    (minibuffer-completion-help beg end))
>                (completion--done completion 'exact
> -                                (unless expect-exact
> +                                (unless (or expect-exact
> +                                            (and completion-auto-select
> +                                                 (eq this-command last-command)
> +                                                 completion-auto-help))
>                                    "Complete, but not unique"))))
>
>              (minibuffer--bitset completed t exact))))))))

Yep, this looks like the right thing to do.




This bug report was last modified 2 years and 148 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.