From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Knut Anders Hatlen Newsgroups: gmane.emacs.bugs Subject: bug#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil Date: Sat, 31 Dec 2022 07:27:15 +0100 Message-ID: <87lemot7ek.fsf@gmail.com> References: <87zgb5lx6y.fsf@oracle.com> <6c9d91cffcdbff97f034@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="17409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60411@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 31 07:28:24 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 1pBVLz-0004If-Hd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Dec 2022 07:28:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBVLl-0002gQ-72; Sat, 31 Dec 2022 01:28:09 -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 1pBVLg-0002g9-13 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 01:28:04 -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 1pBVLf-0006LS-05 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 01:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBVLe-0000kv-GR for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 01:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Knut Anders Hatlen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2022 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60411 X-GNU-PR-Package: emacs Original-Received: via spool by 60411-submit@debbugs.gnu.org id=B60411.16724680432848 (code B ref 60411); Sat, 31 Dec 2022 06:28:02 +0000 Original-Received: (at 60411) by debbugs.gnu.org; 31 Dec 2022 06:27:23 +0000 Original-Received: from localhost ([127.0.0.1]:36388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBVL1-0000jr-B6 for submit@debbugs.gnu.org; Sat, 31 Dec 2022 01:27:23 -0500 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:35576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBVKz-0000jc-R6 for 60411@debbugs.gnu.org; Sat, 31 Dec 2022 01:27:22 -0500 Original-Received: by mail-lj1-f175.google.com with SMTP id s25so24045901lji.2 for <60411@debbugs.gnu.org>; Fri, 30 Dec 2022 22:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=QEvyJpHQlL9r88V6y/45UBOQ7qMEezmYQ9syPu14A1E=; b=Rqou4KSMs2alCMjxRSpyqzGNgYSq8ACWzKnFE8G7LKxVhkCS/7fnx1n/SGQYNhUJgg TWJ0zqq2Jq4TlXJEfZfCI6nR5Euz9DIbMthepf5NXAQXUpAcn7fg+4LrkzrftswaNTQA 8uJVwMoTyvMn6OxSVGFz5MGYktqGGnN0uF/K+RtMoZfsX9gCBZRGcUFFHBWaNCKgp3+f hItcfX4f/70OLA2AA3wHUZzEMoB9mMPiIY9/K0ey06GGcki3cmBFGPJg9Utqmc8c5aC+ Ljl1Bo0a+GObRO7JBSAEAe94qNfmOh5idWW9KgEzHCLkcMH1oSzYdEKnAqYB+bwC8qVW kItA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QEvyJpHQlL9r88V6y/45UBOQ7qMEezmYQ9syPu14A1E=; b=j5tsbIvgjnGJnFxemxW0YxufgWXNGEo1LhaI1yQ+DKqUGTHx109A6/0yNwsHPNztFl N47iXcY5uI4B3kuonccKtva+N7R/DV8DkE70213nTQ+DVh+6XKCKSUHykdRuUo06P3xi gYjnOGHXszi5UdKicvjx+vlqygz1w6b87oKqmYKJhO2hX4LqmCDtVtwy+FdQupkTByRS ruLfOVbPSjy3cK/Nm6hKuCONJNlNZ6jGvz7w+RGjojTVbI5SrNgOnisUMr/oEubpY6NJ WK6B0DBqdtVDVjS4sr5vnophxk34w++PSIn1pAwE9o5ouktHtKeUEiLHb+7/7RfeOzW7 /xKg== X-Gm-Message-State: AFqh2kpD7cQku1MsDBDtXO28A79PFojvHX8cvJrmJCjoVicTG7pjXmZj rJtMoQr6Sc6nt7t6d6Nz6FGW/ait+Q== X-Google-Smtp-Source: AMrXdXt0fshkNgb9lE0WLtLAOH7Q6DuqIupLAPEzgFtaGRVPZb/mqiforiOR5Bdx+NehfFsOT8Bfig== X-Received: by 2002:a05:651c:168e:b0:279:2ab:709e with SMTP id bd14-20020a05651c168e00b0027902ab709emr9182610ljb.37.1672468035262; Fri, 30 Dec 2022 22:27:15 -0800 (PST) Original-Received: from dell ([2a02:1660:692e:dd00::44c]) by smtp.gmail.com with ESMTPSA id r11-20020a2e8e2b000000b0027b54ff90c0sm2846304ljk.139.2022.12.30.22.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 22:27:14 -0800 (PST) In-Reply-To: <6c9d91cffcdbff97f034@heytings.org> (Gregory Heytings's message of "Fri, 30 Dec 2022 21:54:21 +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:252162 Archived-At: Gregory Heytings writes: >> >> 1. Evaluate: (setopt completions-header-format nil >> completion-show-help nil) >> >> 2. Type M-x followed by TAB. The *Completions* buffer pops up and >> shows all available commands. >> >> 3. Type M-. >> >> Expected result: The first candidate in *Completions* is selected. >> >> Actual result: The second candidate in *Completions* is selected. >> > > Thanks for your bug report. > > I attach a patch to fix that bug, can you please try it? > > It's a workaround, but it's the cleanest fix I can think of. This seems to work. Thanks! For completeness, you may consider also handling the case where completions-header-format is an empty string, which is another not too unreasonable way to disable the header. minibuffer-next-completion still skips the first candidate for that case. -- Knut Anders