From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60359: 29.0.60; completion-auto-select set to t skips first argument when completing files Date: Thu, 29 Dec 2022 20:06:21 +0200 Organization: LINKOV.NET Message-ID: <86bknmdqzm.fsf@mail.linkov.net> References: <87sfh0ydpf.fsf@posteo.net> <314db4a90e78b4a7714d@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10955"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60359@debbugs.gnu.org, Philip Kaludercic To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 19:09:25 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 1pAxLJ-0002hp-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 19:09:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAxKz-0005sD-E5; Thu, 29 Dec 2022 13:09: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 1pAxKx-0005rW-HD for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 13:09: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 1pAxKx-0002Nk-0d for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 13:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAxKw-0007G4-Io for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 13:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 18:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60359 X-GNU-PR-Package: emacs Original-Received: via spool by 60359-submit@debbugs.gnu.org id=B60359.167233732327875 (code B ref 60359); Thu, 29 Dec 2022 18:09:02 +0000 Original-Received: (at 60359) by debbugs.gnu.org; 29 Dec 2022 18:08:43 +0000 Original-Received: from localhost ([127.0.0.1]:32788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAxKd-0007FX-EH for submit@debbugs.gnu.org; Thu, 29 Dec 2022 13:08:43 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:41357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAxKa-0007FF-LE for 60359@debbugs.gnu.org; Thu, 29 Dec 2022 13:08:41 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id AAFDB100006; Thu, 29 Dec 2022 18:08:32 +0000 (UTC) In-Reply-To: <314db4a90e78b4a7714d@heytings.org> (Gregory Heytings's message of "Tue, 27 Dec 2022 23:48:49 +0000") 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:252051 Archived-At: > Thanks for your bug report. If I set completion-auto-select in emacs -Q, > C-x C-f C TAB (or TAB TAB, depending on the value of > completion-auto-select) in the Emacs repository behaves as > expected. However, C-x C-f src/ TAB does not. Is the latter case what you > have in mind, or do I misunderstand what you mean? If not, the attached > patch should fix that bug. 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.