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#54374: 29.0.50; previous-completion fails at beginning of completions buffer Date: Fri, 18 Mar 2022 21:49:16 +0000 Message-ID: <875yobnd7n.fsf@posteo.net> References: <86h782b3zk.fsf@mail.linkov.net> <871qz5k2na.fsf@posteo.net> <86bky99c7r.fsf@mail.linkov.net> <87fsnk39nr.fsf@posteo.net> <86k0cwlcge.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54374@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 22:50:22 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 1nVKUH-0008j4-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 22:50:22 +0100 Original-Received: from localhost ([::1]:58746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVKUG-00011X-PQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 17:50:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVKTy-00011N-Gv for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 17:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVKTy-000092-6C for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 17:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVKTy-0004VT-3n for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 17:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 21:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54374 X-GNU-PR-Package: emacs Original-Received: via spool by 54374-submit@debbugs.gnu.org id=B54374.164764016617269 (code B ref 54374); Fri, 18 Mar 2022 21:50:02 +0000 Original-Received: (at 54374) by debbugs.gnu.org; 18 Mar 2022 21:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:58554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVKTO-0004UT-6S for submit@debbugs.gnu.org; Fri, 18 Mar 2022 17:49:26 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:45813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVKTM-0004UE-4L for 54374@debbugs.gnu.org; Fri, 18 Mar 2022 17:49:24 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DAAF4240026 for <54374@debbugs.gnu.org>; Fri, 18 Mar 2022 22:49:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647640157; bh=JghjyM68sYjSmMx+TJk7aEWb1SuJ5a3OoVJnDthI4pc=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=lS9HLKmD1AXfcCA5yZDvsbMj7OQjCiBpY4M2ZJ2CuXoCBd0kPoNbBYcqPxKEbenQl qae6dx4nXZWPQuVryu4KsBLyLayiSN92fqEpHblUd+UaGvqlH07e36+lWW8jHIeOXi 3LpCzCrNMCDdrlU6d1XxmHv6ClJ42PJZwAx8OiOgNhJADzQfjb8sp5Ls7kuzMMBwGR n/vXAXDnf2PHXdDAqUIkqbm2z8zUVviQc2pyYqQU6qqMnUHrUFX0Zi4DrVNFy/53TN beqgwQjlFXotXDfJyVFEX0idTCd3faY0Be9gL5tOC5zMGRjWdUThxE+CNthc8oNxCg DOXJoJYZk0n4w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KKyMd1grwz9rxK; Fri, 18 Mar 2022 22:49:16 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: <86k0cwlcge.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 14 Mar 2022 20:24:57 +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" Xref: news.gmane.io gmane.emacs.bugs:228573 Archived-At: Juri Linkov writes: >> I didn't notice that, because completion-auto-select was enabled on my >> end. How about this: >> >> (Note that this also fixes the "issue" jumping back to the beginning of >> the same completion option, if the point is not at the beginning of said >> option.) > > Thanks, this fixed the issue. And I noticed another one: at the > beginning of the buffer previous-completion wraps to the end of the buffer, > not to the beginning of the last completion. > > Also when point at the last completion, next-completion > jumps to the end of the buffer instead of wrapping to the > first completion. I cannot replicate this issue in every case, but only if the last option has completion annotation. It should be fixable by checking for these kinds of edge-cases, but it might also be better to reconsider if next-completion should be using `mouse-face' for navigation, or if a special text property might be more elegant? -- Philip Kaludercic