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: Sun, 13 Mar 2022 20:39:53 +0000 Message-ID: <871qz5k2na.fsf@posteo.net> References: <86h782b3zk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29774"; 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 Sun Mar 13 21:41:31 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 1nTV1u-0007Yf-5R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 21:41:30 +0100 Original-Received: from localhost ([::1]:53210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTV1t-0002KX-4N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 16:41:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTV1Z-0002Iu-BC for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 16:41:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTV1S-0005ZD-VT for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 16:41:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTV1S-0003qM-TA for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 16:41: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: Sun, 13 Mar 2022 20:41: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.164720400414675 (code B ref 54374); Sun, 13 Mar 2022 20:41:02 +0000 Original-Received: (at 54374) by debbugs.gnu.org; 13 Mar 2022 20:40:04 +0000 Original-Received: from localhost ([127.0.0.1]:43438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTV0V-0003od-V1 for submit@debbugs.gnu.org; Sun, 13 Mar 2022 16:40:04 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTV0U-0003o1-8x for 54374@debbugs.gnu.org; Sun, 13 Mar 2022 16:40:03 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1FC40240028 for <54374@debbugs.gnu.org>; Sun, 13 Mar 2022 21:39:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1647203995; bh=dKvxDYUGO3mDvALQFq0TuWqeDAlu3aPJxeWGGRc7Uqc=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=G9Dj9iNXeDPSXJzRDVmO1pK6PSH1nnBthvM53nlOIfQe3q4pvjdAcG2NBLmzCI8Ov U/srtDAC4+BNaWUl/oTLEPeyW3YhgoUVL+AoaYGEye1dHuWXmGsEGFCVvGMM0x6Aaw 2z/f1kFjoG4jKsld8zGtfAD86WiBjk+fJKU+UXuUPT7hj/fxvODYp+HoAXA8ezre0b XV/0bkqgs5lrlWv2NLUyDknwmBc3Oa95WYu7Yng15hirX3igpEJmJgb/onEPylHQDa 72aCZvVEln2xOOpmqNj5K7Mvm93u5eebbvn6GluBmUwDE2HYRXoSZvXyIQJYcnkqmB UJ5RAKii9EeaQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KGs3t32Z6z6tn8; Sun, 13 Mar 2022 21:39:54 +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: <86h782b3zk.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 13 Mar 2022 19:39:13 +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:228316 Archived-At: --=-=-= Content-Type: text/plain Juri Linkov writes: > X-Debbugs-Cc: Philip Kaludercic > > This is not reproducible in Emacs 28, so looks like a recent regression: This seems to fix it: --=-=-= Content-Type: text/plain Content-Disposition: inline diff --git a/lisp/simple.el b/lisp/simple.el index accc119e2b..7d47aba1ee 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -9125,7 +9125,7 @@ next-completion (unless (get-text-property (point) 'mouse-face) (goto-char (next-single-property-change (point) 'mouse-face nil end))) (setq n (1- n))) - (while (< n 0) + (while (and (< n 0) (< 1 (point))) (let ((prop (get-text-property (1- (point)) 'mouse-face))) ;; If in a completion, move to the start of it. (when (and prop (eq prop (get-text-property (point) 'mouse-face))) --=-=-= Content-Type: text/plain > 0. emacs -Q > 1. M-x TAB > 2. move point to the beginning of the *Completions* buffer > 3. type S-TAB () > > Debugger entered--Lisp error: (args-out-of-range 0 0) > get-text-property(0 mouse-face) > next-completion(-1) > previous-completion(1) > funcall-interactively(previous-completion 1) > command-execute(previous-completion) > completing-read-default("M-x " ...) > read-extended-command() > command-execute(execute-extended-command) > > -- Philip Kaludercic --=-=-=--