From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74140: [PATCH] Add :continue-only directive for repeat maps in bind-keys, use-package Date: Wed, 04 Dec 2024 14:08:43 +0200 Message-ID: <86cyi71whg.fsf@gnu.org> References: <87r06vxjdy.fsf@mail.linkov.net> <878qswab57.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20154"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74140@debbugs.gnu.org, ultrono@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 13:09:20 2024 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 1tIoC0-00055q-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 13:09:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIoBm-0007JX-HG; Wed, 04 Dec 2024 07:09:07 -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 1tIoBj-0007JC-LV for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 07:09:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIoBj-0006Sg-D3 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 07:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Q7O8gFnf+7vIoiGI8KzA3sWE7NjdbFB5kv1ts/+KrCE=; b=a46zYW/tZ0oJ+wx6bQf5tPTT4Snp8yzcZMOjdok/BpcBRVESUON8E5azpPQo8SsppE47/zoyYLkrNwdTHsTgaQIPWfuVNCICizv+CobeqQTBsj8DOsBglE0kC7VXbS7xESuNtU8EmfipEOgBVWIjMwq4nqXoymV5tiSeJRbYiD6JmXX4XRAja3hspRC0xENKmI8ZT86zMU5TGRJtVXq7lk8+PYFJcxYMmokGRAfzG/B5Ozuo/6oot9przFyFdd4qacyUYuPtgDp9AHbJxdfXrYHNwT1izoXa0pUtdW5aLuKYM2UUly3wT/LEqrRP/AqPmgO3RFRdTXzuXIlckAM6gw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIoBi-0005t0-8j for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 07:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2024 12:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74140-submit@debbugs.gnu.org id=B74140.173331413722610 (code B ref 74140); Wed, 04 Dec 2024 12:09:02 +0000 Original-Received: (at 74140) by debbugs.gnu.org; 4 Dec 2024 12:08:57 +0000 Original-Received: from localhost ([127.0.0.1]:34514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIoBc-0005sc-J6 for submit@debbugs.gnu.org; Wed, 04 Dec 2024 07:08:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIoBa-0005sL-Ik for 74140@debbugs.gnu.org; Wed, 04 Dec 2024 07:08:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIoBU-0006RV-9n; Wed, 04 Dec 2024 07:08:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Q7O8gFnf+7vIoiGI8KzA3sWE7NjdbFB5kv1ts/+KrCE=; b=Rm83l+TuXKtb x+iAfmiIXaj80wla9G8qwJSlOnnkgALqJRFnf+7eTpEL57cAIMKe496qoN4HvZ3Z3uZ5frn9Esadd 6N14hlk2bI/vAAPc+zKLwq9/ayl++PuikvjoBF8iGnRvVFSJ38ya20avpliSJAjBlvrQLOeKUpfOH JZd1KZl7CakOtG7uZZDVvCHeUiyaGoE6pzRT+8rCJ8nZ1O1A/CnQPsEFW/mnSClBZS9f+Nj2/7kd1 EHfDtULN8zPhuw0mA8hSDuHxLfZcs1tNCABv5xB7mfuIR72mO7WjD6H6esI07ceyNqTOcjaLD4Q3W sRFbk5TsEUeKwfkFasNaPw==; In-Reply-To: <878qswab57.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 03 Dec 2024 20:12:36 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296406 Archived-At: > Cc: 74140@debbugs.gnu.org > From: Juri Linkov > Date: Tue, 03 Dec 2024 20:12:36 +0200 > > > So below is a patch that adds support for a list of maps. > > And users don't have to populate the list manually because > > 'defvar-keymap' does this automatically with :continue-only > > in the same patch. > > Now this patch is pushed, so you can use the new property > to implement the :continue-only directive in bind-keys. Thanks, but I think the NEWS entry needs a small clarification: ** New symbol property 'repeat-continue-only' for 'repeat-mode'. -A command with this symbol property whose value is non-nil will not -activate the repeat map in 'repeat-mode', it will only continue the -already activated repeating sequence. +A command with this symbol property whose value is a list of repeat +maps will not activate the repeat map in 'repeat-mode'. It will only +continue the already activated repeating sequence. Also 'defvar-keymap' +supports a new keyword ':continue-only' with a list of commands that +only continue the active repeating sequence. This doesn't say what is the significance of the repeat maps included in the value of the property (as opposed to those not included). I'm guessing they have some influence on the result, so NEWS should at least hint on that.