From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings 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, 06 Jan 2023 12:39:46 +0000 Message-ID: <371ba1d0becbcd718fdb@heytings.org> References: <87zgb5lx6y.fsf@oracle.com> <6c9d91cffcdbff97f034@heytings.org> <87lemot7ek.fsf@gmail.com> <0a62cbaeff1ee0497715@heytings.org> <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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kahatlen@gmail.com, 60411@debbugs.gnu.org, monnier@iro.umontreal.ca, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 06 13:40:35 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 1pDm1S-000A8S-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Jan 2023 13:40:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDm1G-0003St-Ed; Fri, 06 Jan 2023 07:40:22 -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 1pDm0z-0003Qr-KB for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 07:40:08 -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 1pDm0w-0006rc-Ub for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 07:40:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDm0w-0007rI-9U for bug-gnu-emacs@gnu.org; Fri, 06 Jan 2023 07:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jan 2023 12:40: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.167300879030184 (code B ref 60411); Fri, 06 Jan 2023 12:40:02 +0000 Original-Received: (at 60411) by debbugs.gnu.org; 6 Jan 2023 12:39:50 +0000 Original-Received: from localhost ([127.0.0.1]:53978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDm0j-0007qm-T2 for submit@debbugs.gnu.org; Fri, 06 Jan 2023 07:39:50 -0500 Original-Received: from heytings.org ([95.142.160.155]:33196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDm0i-0007qe-HO for 60411@debbugs.gnu.org; Fri, 06 Jan 2023 07:39:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1673008787; bh=siZbTrMO6DQ4O6RJYcJrb1oD//wikUtpo8z6hvY8/tw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Lp8kVqhGHSNP1Th/4PPXmr0Y+zWQseQU742wQPRSBBIk55QNHbsc2MJhtU6Z6ESbJ CUCFSJNMMiOgbr2qMBC8QyDo0MncdT9kEoU2cXjLlkTeyWXhAaRQe4sg+MJlKjchw1 tdkHn7prY2IkcEIu9pfsbTwYMH/aXE8jK4Yt8yR1guAb9qtIGTykuwW6eW1knL7c5i 7yumYr8b7F9qcMP9Bzpda4eJfxpLsgz29A9HE5+0J7+1ZCNWqxmnS4N9E42eCcS3pY 5mYxhSpJ7bO2ZqIZFOifwx1EDZ/b9cDPuwfiC6Plgo/x8GzEN+EuvXEWe8Mfga0Rui 0q1WLo+vievjw== In-Reply-To: <83pmbrvonx.fsf@gnu.org> 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:252701 Archived-At: > > That's very surprising to hear. AFAIU, it just looks for some special > text property (in next-completion). So it sounds like a very simple > breakage of logic, where "next" means "the first one" when you are > exactly at BOB. > The problem is that minibuffer-next-completion is supposed to move to the first completion when it is called for the first time, to the next completion when it is called for the Nth time, and to the first completion again when it is called for the Mth time (where M is the number of completion candidates). If point is at BOB, and if there is nothing before the first completion, next-completion finds that there is a text property there, and therefore moves to the end of the current completion (the first one) and to the beginning of the next completion, with the two calls to next-single-property-change. There is nothing in the current logic of the code with which it is possible to make a distinction between "this is the first call" and "this is not the first call".