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#47566: 28.0.50; diff-hl should use `repeat-mode' ... and not `smartrep' Date: Thu, 08 Apr 2021 21:57:18 +0300 Organization: LINKOV.NET Message-ID: <87o8eo38q9.fsf@mail.linkov.net> References: <87pmz8lc17.fsf@mail.linkov.net> <9453a08f-5014-b4bc-8472-a4c2ff44c687@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21726"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Ramesh Nedunchezian , 47566@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 08 20:58:36 2021 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 1lUZrQ-0005Vz-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 20:58:36 +0200 Original-Received: from localhost ([::1]:42968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUZrO-00028x-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 14:58:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUZqt-00028C-8c for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 14:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUZqs-0007Qt-Rz for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 14:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUZqs-0005WO-Df for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2021 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47566 X-GNU-PR-Package: emacs Original-Received: via spool by 47566-submit@debbugs.gnu.org id=B47566.161790827021204 (code B ref 47566); Thu, 08 Apr 2021 18:58:02 +0000 Original-Received: (at 47566) by debbugs.gnu.org; 8 Apr 2021 18:57:50 +0000 Original-Received: from localhost ([127.0.0.1]:48343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUZqg-0005Vw-Bg for submit@debbugs.gnu.org; Thu, 08 Apr 2021 14:57:50 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUZqe-0005Vi-88 for 47566@debbugs.gnu.org; Thu, 08 Apr 2021 14:57:49 -0400 X-Originating-IP: 91.129.107.223 Original-Received: from mail.gandi.net (m91-129-107-223.cust.tele2.ee [91.129.107.223]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3CC2760003; Thu, 8 Apr 2021 18:57:39 +0000 (UTC) In-Reply-To: <9453a08f-5014-b4bc-8472-a4c2ff44c687@yandex.ru> (Dmitry Gutov's message of "Wed, 7 Apr 2021 01:44:07 +0300") 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:203751 Archived-At: > (defun hl-test () > (interactive) > (message "OK") > (message "result: %s" > (y-or-n-p "Yes? "))) > > (defvar hl-repeat-map > (let ((map (make-sparse-keymap))) > (define-key map (kbd "n") 'hl-test) ; Note the changed key binding. > map) > "Keymap to repeat hl-test.") > > (put 'hl-test 'repeat-map 'hl-repeat-map) > > To try it: > > 1. M-x hl-test. > 2. Press 'n' a few times. > > Expected behavior: > > It alternates between the prompt "Yes? " and message "result: nil". > > Actual behavior: > > It enters some sort of recursive state, only showing the prompt. I have to > press 'y' a bunch of times to get out of it. Thanks for the detailed test case. Now it's fixed in 580c4c6510.