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#51390: 29.0.50; repeat-mode: Fails to repeat keys in global-map(?) Date: Tue, 30 Nov 2021 21:09:28 +0200 Organization: LINKOV.NET Message-ID: <86k0gpbh1j.fsf@mail.linkov.net> References: <86sfvpxmhn.fsf@mail.linkov.net> <867dcwwtyr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35788"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51390 <51390@debbugs.gnu.org> To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 20:10:27 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 1ms8WI-00098C-Vn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 20:10:26 +0100 Original-Received: from localhost ([::1]:37194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms8WH-0000NN-Fs for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 14:10:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms8Vu-0000N8-Tq for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms8Vu-0003IH-LA for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ms8Vu-0007oS-7D for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:10: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: Tue, 30 Nov 2021 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51390 X-GNU-PR-Package: emacs Original-Received: via spool by 51390-submit@debbugs.gnu.org id=B51390.163829938829999 (code B ref 51390); Tue, 30 Nov 2021 19:10:02 +0000 Original-Received: (at 51390) by debbugs.gnu.org; 30 Nov 2021 19:09:48 +0000 Original-Received: from localhost ([127.0.0.1]:42527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8Vf-0007nl-TR for submit@debbugs.gnu.org; Tue, 30 Nov 2021 14:09:48 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8Vd-0007nN-Bl; Tue, 30 Nov 2021 14:09:45 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9D63320005; Tue, 30 Nov 2021 19:09:37 +0000 (UTC) In-Reply-To: (visuwesh@tutanota.com's message of "Thu, 25 Nov 2021 09:11:36 +0100 (CET)") 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:221164 Archived-At: close 51390 28.0.60 thanks >> This feature of checking the last key could be enabled per every keymap >> using symbol properties. Then you can disable it for one keymap, >> while keeping enabled for all remaining keymaps. > > That indeed sounds like a good solution to the problem.  Thanks! This is fixed now, so your original case is supported, as well as more cases reported in e.g. https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg00083.html https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00962.html The behavior can be customized by the new user option 'repeat-check-key'. Also a command can have a symbol property with the same name and two values: 't' checks the key when the variable is nil, and 'no' doesn't check the key when the variable is t. A special property 'no' is necessary instead of using 'nil', because 'get' can't distinguish when the property has the value 'nil' and when there is no property set on the symbol. Also there is no function to delete a property from a plist, so every package invents own wheel, e.g. map--plist-delete. org-plist-delete-all, svg--plist-delete...