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: Fri, 30 Dec 2022 12:04:48 +0100 Message-ID: <87ilhtduen.fsf@gmail.com> References: <87zgb5lx6y.fsf@oracle.com> <83o7rl71kv.fsf@gnu.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="36830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60411@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 30 12:05:23 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 1pBDCV-0009KY-SP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Dec 2022 12:05:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBDCB-0008M8-UR; Fri, 30 Dec 2022 06:05:03 -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 1pBDCA-0008M0-Mp for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 06:05:02 -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 1pBDCA-0005dY-ED for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 06:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBDC9-000404-QO for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2022 06:05:01 -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: Fri, 30 Dec 2022 11:05:01 +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.167239829815361 (code B ref 60411); Fri, 30 Dec 2022 11:05:01 +0000 Original-Received: (at 60411) by debbugs.gnu.org; 30 Dec 2022 11:04:58 +0000 Original-Received: from localhost ([127.0.0.1]:33602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDC6-0003zh-Dn for submit@debbugs.gnu.org; Fri, 30 Dec 2022 06:04:58 -0500 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:35767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDC4-0003zQ-Cv for 60411@debbugs.gnu.org; Fri, 30 Dec 2022 06:04:56 -0500 Original-Received: by mail-lf1-f48.google.com with SMTP id b3so31313260lfv.2 for <60411@debbugs.gnu.org>; Fri, 30 Dec 2022 03:04:56 -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=13qdt8SRLAdvnLmOKF37iB9xDBbtMIvnAHEGxyTyyRo=; b=ARtu9dGMGcDQakG9FJV+pIsQxtzV9SUTg/I8rQToChq1WhCsGVWTRBs7GDoxv4kS8T Hm0dOtrD8OWOyC7Z3bZ+uRrXtT3Mv4Tke79TmervcqT5CGH8F55lA81IStS3cGRTtwrO PhG746C6YRXVz3yFfVYUEEYp5BMsvwJT1ITKg6Bo4RdXs9p9HYidTmH8HJ/HlSUmi1IV wRisx/wlJHAfuFr0nQbDR72PSplZo+nqrg+6yDvYJ+WSHsWSnOVR0YzDBf1oB4gF2ylo GzjNBpnfHArm99Od8fE75RzgUrXTR7Hi3uN8N8Re+pPTZgtVyimlXySjMGTv1rgdO3eB FZFQ== 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=13qdt8SRLAdvnLmOKF37iB9xDBbtMIvnAHEGxyTyyRo=; b=3La9yYDfkz0KCu17vgS93gk6c02xRtFiJJdt+FcxQinHoRf6M6ZtnZ6PKLLyKUTheQ Xe/H1pt2kJlwfukgFA1dRcgMHMRsRHYGMnxuTjjxOOpuQ+3zHwf54UN8An8WjK1gFHJn RdtWkusQJaY5qxYObmbe7Ik3LTcpvbc+Z6DugyDsQLCVcdF07iWh3mXIb04fEh2/CUq9 sq20fJYML0wMxi9zq/v+qilwgS9Aa9mpI2sRFS/J6OIGiOX+52/jHDIynZYi7Nw6acKA FmoWss9ExWzsF9WBjzrbNEYMq0ObNjcMsrLu5xZ48JMbeSAv35WSCAMbZDiCGfXCuKFL PnYQ== X-Gm-Message-State: AFqh2komGGBhipcoGpta3EWgCs4RXBufv5NtUP2/Oq/RoVUfM5JEGJKU J8WIdk7iFGfMi7I+04aF8GKZZ1W+2XUr X-Google-Smtp-Source: AMrXdXuhEY3UylDy6Fqf6f/q8VXtrJ+zwSEfp3ZSTowLvlEXDCnbFwHfGFjcWkSUqWJhRiBC6RoZdA== X-Received: by 2002:ac2:4ac3:0:b0:4b5:7e4c:dcea with SMTP id m3-20020ac24ac3000000b004b57e4cdceamr11072193lfp.51.1672398289931; Fri, 30 Dec 2022 03:04:49 -0800 (PST) Original-Received: from dell ([2a02:1660:692e:dd00::44c]) by smtp.gmail.com with ESMTPSA id q3-20020a056512210300b004b5323639d8sm3416453lfr.155.2022.12.30.03.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 03:04:49 -0800 (PST) In-Reply-To: <83o7rl71kv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Dec 2022 10:11:44 +0200") 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:252106 Archived-At: Eli Zaretskii writes: >> From: Knut Anders Hatlen >> Date: Thu, 29 Dec 2022 22:25:09 +0100 >> >> 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. > > M- runs the command minibuffer-next-completion, so I'm unsure > why you expect what you expect. It looks like Emacs behaves as > documented here. If I don't touch the completions-header-format and completion-show-help options, M- selects the first candidate first, not the second candidate. I find that behaviour reasonable. I didn't expect that setting those two options would have any impact on which candidate minibuffer-next-completion selected first. I expected that it only affected whether or not the header and the help text was printed in the *Completions* buffer, and that the navigation worked as before. To select the first candidate when those two options are nil, I have to do M- followed by M-. My expectation was that it should be fewer (or at least not more) keystrokes to select the first candidate than the second candidate. -- Knut Anders