From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Nelson Newsgroups: gmane.emacs.bugs Subject: bug#74140: [PATCH] Add :continue-only directive for repeat maps in bind-keys, use-package Date: Fri, 1 Nov 2024 09:58:07 +0100 Message-ID: References: <86plnf9xqm.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15652"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74140@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 10:11:13 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 1t6ngW-0003vi-Oz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 10:11:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6nVl-00017N-Fs; Fri, 01 Nov 2024 05:00:05 -0400 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 1t6nVj-00015Y-EO for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 05:00:03 -0400 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 1t6nVj-0006bP-4L for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 05:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=LObUMoIVo6re66vlnm3FPdoop9KGlbMT3uuQ4TpXYxY=; b=W5jQxkXNOiIQzIS8+6IN+ljdxVOcKGoWr5miU7872pM5bSDLsIL9C1kuBaeKHD7Wpi4ShJEbc7TMZRn8dd/B1eLLZ3SBJoCMJnQZlv+UeE7ItvLkIxFsHBdb9SPV/Fss3Ov3SiQ9km5vD6BJXNId79iXU1GHeamYIq2nq5J+PwRahEY6c4O7xwHdrTxLCzWkuL8m5trIEAv6bNxHobQMgxnuqkdlDE6nuUoXk9Frkf+CL4lWRucv6PYCn3sK9T2hY1PgIPr9DHuDKFqLouPfTdVVjHthx9HgXkWB2NFc+f364VqAfT2YHHHbNfaj8K8Vor73EW9rcndFySCshNJZ3w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6nVi-0000X1-Uv for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2024 09:00: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.17304515621998 (code B ref 74140); Fri, 01 Nov 2024 09:00:02 +0000 Original-Received: (at 74140) by debbugs.gnu.org; 1 Nov 2024 08:59:22 +0000 Original-Received: from localhost ([127.0.0.1]:47992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6nV3-0000W9-Qg for submit@debbugs.gnu.org; Fri, 01 Nov 2024 04:59:22 -0400 Original-Received: from mail-io1-f52.google.com ([209.85.166.52]:59462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6nV1-0000Vv-4G for 74140@debbugs.gnu.org; Fri, 01 Nov 2024 04:59:19 -0400 Original-Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-83ab5b4b048so76777739f.2 for <74140@debbugs.gnu.org>; Fri, 01 Nov 2024 01:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730451498; x=1731056298; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LObUMoIVo6re66vlnm3FPdoop9KGlbMT3uuQ4TpXYxY=; b=bJH2OyPnn1bBJZ1vU25+F/y97e/7eZmALcVB9YNfSdGL/gGrOjTTkKyILmRRnSyzbV S/eLYmmctrfaA9sott5tvgucdXgZ7ahlYQiTMh+mFBccMVSv98Ayi5bWApGk/8yWbf+m 6l4WBBs6St8WrQH2tcwZ9yjQBfGe5gRxFIZ8cRdjDxQYTCoNEDiR0v3O2QYKdOpRgg6y SbaSs735VEZ9u0ixaWjVqYRW0WiQb2v5cfFQf4HtElp9/tc952Z6CXOoYs1Jzv76mKfx BEcZfoTTBK2NRDDcefRtdvCZFt8BmuzrxDookI65INlwqgtpVCl1C/JGzsahllqwHRos 76GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730451498; x=1731056298; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LObUMoIVo6re66vlnm3FPdoop9KGlbMT3uuQ4TpXYxY=; b=r++0nXWXgHNyCFljbJDGmbRxuFR1Vax2RErjxhWypWwA0f17U/nDGuthECSF2KjWl5 rBoyubbRopObVc+WTJ/PNiSyyVnhu6aWeCZDiRuaXISY0VHhNmKnmkAzfLN5yGEmg4jk 0z5aUehZcO+3YJnhLB0FtfNBQ0tt962y+lSQYgVaz2/VpdJ3zRHoQmL6RaYhy+tIlSRU Ax1wcx6AbrXF9L/J8XmXpIuOWPjnWxp0s/uTydrvQWZhSIHoTtryXtYE1bTEZ5ipPJEs 8EKqoWR0qQxEN+j2QxWZgzP9brFnzYFZvr6hpB63xDF9nf+lvjJKxT6Yc31+aTFt36NT L7uw== X-Gm-Message-State: AOJu0YzNAeVGGT8mW1CrWjPERZPBPnFxV/JTRTBZDFA/990KCuP/1Su6 m8AKewyduNDUn1hT8/2Fx9IxX+WtJYdbDNS06/pKz1boJb0h5sfilnVMXAjrdbMQJdCvZzZZSN3 WLKWG0SPySoz2JdesxeCbV8qsokg= X-Google-Smtp-Source: AGHT+IFy6O8CZT7yTovxINPscr7E9RUmnk1V46Q6C8WWTks1/W4U5TCuCN+QqrzNduzurAmsXtNu7DQFRo+lPiCL428= X-Received: by 2002:a05:6602:2cd0:b0:83a:7a19:1de0 with SMTP id ca18e2360f4ac-83b1c5cd847mr2718137239f.14.1730451498382; Fri, 01 Nov 2024 01:58:18 -0700 (PDT) In-Reply-To: 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:294670 Archived-At: On Fri, Nov 1, 2024 at 9:29=E2=80=AFAM Paul Nelson wrot= e: > > On Fri, Nov 1, 2024 at 9:15=E2=80=AFAM Juri Linkov wrot= e: > > > > > For a command and its key in a repeat map: > > > - "activate" means the command makes the repeat map active > > > - "continue" means pressing the key keeps the repeat map active > > > > > > With this patch, the available directives are: > > > :continue (default) - activates and continues > > > :exit - neither activates nor continues > > > :continue-only (new) - continues, but does not activate > > > > How does this map to the properties ':enter' and ':exit' of 'defvar-key= map'? > > :exit has the same meaning in both. > > In defvar-keymap, :enter means "activate, but do not continue". Another difference is that :enter from defvar-keymap does not actually bind a key in the keymap, thus: activate continue bind :continue yes yes yes :continue-only no yes yes :exit no no yes :enter yes no no The ergonomics between the two macros are also quite different.