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#60411: 29.0.60; minibuffer-next-completion skips first candidate when completions-header-format and completion-show-help are nil Date: Thu, 12 Jan 2023 19:48:17 +0200 Organization: LINKOV.NET Message-ID: <86v8lbfxum.fsf@mail.linkov.net> References: <87zgb5lx6y.fsf@oracle.com> <226b32f79f7db2be1bbe@heytings.org> <226b32f79f65b964c636@heytings.org> <86sfgp5ihl.fsf@mail.linkov.net> <8dea9f3e0e993e0bd0a9@heytings.org> <83a62ww4bo.fsf@gnu.org> <371ba1d0be9671d4a3a4@heytings.org> <83v8lkujt0.fsf@gnu.org> <371ba1d0be87d64ed419@heytings.org> <83tu13vqlb.fsf@gnu.org> <371ba1d0bed233c2fbd3@heytings.org> <83pmbrvonx.fsf@gnu.org> <371ba1d0becbcd718fdb@heytings.org> <83mt6vvmxv.fsf@gnu.org> <371ba1d0be78fd6c921f@heytings.org> <83h6x3vlo7.fsf@gnu.org> <371ba1d0be0c526521cb@heytings.org> <86cz7qi5ez.fsf@mail.linkov.net> <867cxyi53t.fsf@mail.linkov.net> <6538f58eb5b248571e28@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="24983"; 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: kahatlen@gmail.com, Eli Zaretskii , 60411@debbugs.gnu.org, monnier@iro.umontreal.ca To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 12 18:59:27 2023 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 1pG1rL-00065c-7A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Jan 2023 18:59:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pG1iI-0005B9-9Z; Thu, 12 Jan 2023 12:50:06 -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 1pG1iF-0005A6-8c for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 12:50: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 1pG1iE-00043h-MR for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 12:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pG1iE-0002uz-It for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2023 12:50: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, 12 Jan 2023 17:50: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.167354574711144 (code B ref 60411); Thu, 12 Jan 2023 17:50:02 +0000 Original-Received: (at 60411) by debbugs.gnu.org; 12 Jan 2023 17:49:07 +0000 Original-Received: from localhost ([127.0.0.1]:48541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pG1hK-0002tf-Sj for submit@debbugs.gnu.org; Thu, 12 Jan 2023 12:49:07 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pG1hJ-0002t6-AJ; Thu, 12 Jan 2023 12:49:05 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 4187B1BF204; Thu, 12 Jan 2023 17:48:53 +0000 (UTC) In-Reply-To: <6538f58eb5b248571e28@heytings.org> (Gregory Heytings's message of "Sat, 07 Jan 2023 22:35:33 +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:253241 Archived-At: close 60411 29.0.60 thanks > diff --git a/lisp/simple.el b/lisp/simple.el > index 63479e9ce0..0221881641 100644 > --- a/lisp/simple.el > +++ b/lisp/simple.el > @@ -9698,6 +9698,14 @@ next-completion > (let ((tabcommand (member (this-command-keys) '("\t" [backtab]))) > pos) > (catch 'bound > + (when (and (bobp) > + (> n 0) > + (get-text-property (point) 'mouse-face) > + (not (get-text-property (point) 'first-completion))) > + (let ((inhibit-read-only t)) > + (add-text-properties (point) (1+ (point)) '(first-completion t))) > + (setq n (1- n))) > + > (while (> n 0) > (setq pos (point)) > ;; If in a completion, move to the end of it. Thanks, now pushed to emacs-29 and closed.