From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic 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 16:25:43 +0000 Message-ID: <87o7rmgos8.fsf@posteo.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="30274"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60359@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 17:26:30 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 1pAvji-0007Z5-2E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 17:26:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAvjY-0000nA-R4; Thu, 29 Dec 2022 11:26:21 -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 1pAvjM-0000mm-Ij for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 11:26:10 -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 1pAvjG-0004oa-5B for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 11:26:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAvjF-0002DM-Ki for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 11:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 16:26:01 +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.16723311498478 (code B ref 60359); Thu, 29 Dec 2022 16:26:01 +0000 Original-Received: (at 60359) by debbugs.gnu.org; 29 Dec 2022 16:25:49 +0000 Original-Received: from localhost ([127.0.0.1]:60942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAvj3-0002Ce-0R for submit@debbugs.gnu.org; Thu, 29 Dec 2022 11:25:49 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:60513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAviz-0002CH-Vp for 60359@debbugs.gnu.org; Thu, 29 Dec 2022 11:25:46 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C2F01240060 for <60359@debbugs.gnu.org>; Thu, 29 Dec 2022 17:25:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672331139; bh=KqV4FaWp1zgK0IeOJQab5yWtG60fT416Y2KSv9qqK3g=; h=From:To:Cc:Subject:Date:From; b=PwKuAVaUiNgkSRpRxt9vtNmXNUiJKzXWCcgGAxgZF+4NeeI39UZq9xH6e/9V9R9H7 6brMyGWSKbesGGEQhOxPatVdUeTlnLmt53qSacaZkUm3oWQRqLsqraRDccznagcfoK ZHmKJ2YWbE0XjOnI5z58TzcMQCVqqOA8BWiZ1jfqFVX8JPgINOQrxtwKR6RapODFMV hobG5wkelr7Zot9IrfYhSGT8C3l1W8KmPNQLKDPrt7bgco6tQEI+HyR0+JcHL6XIn3 MMcRnn4K2EhjvqWlXegc5Sblj/emVsjTvN4EyXogCyQ9yeV3t7ojN7a8AbpclBB8Fk rHEZjbyP6Th4Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NjYfB0c2Fz9rxD; Thu, 29 Dec 2022 17:25:37 +0100 (CET) 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:252043 Archived-At: Gregory Heytings writes: >> >> If the user option 'completion-auto-select' is set to t, then >> pressing tab should pop up the completions buffer and select the >> first option. This works well, unless a file name is being >> completed. In that case, tab doesn't jump to completion buffer. In >> fact it appears not to even open it by default. A second press >> opens the buffer, but only jumps if you don't do anything else for >> about half a second. A third press of the tab key jumps to the >> second option. So if you press tab three times, without waiting, >> you always skip the first completion suggestion. >> >> The issue can be reproduced with emacs -Q, by evaluating (setq >> completion-auto-select t) and then opening a file using C-x C-f, in >> presumably any directory. >> > > 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. Yes, that is what I meant and the that fixed the bug.