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: Sat, 23 Nov 2024 19:44:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19433"; 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 Sat Nov 23 19:46:24 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 1tEv9D-0004vh-Jx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 19:46:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEv8x-0004jo-DG; Sat, 23 Nov 2024 13:46: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 1tEv8s-0004j8-SO for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 13:46: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 1tEv8s-0008Ky-In for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 13:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:In-Reply-To:From:To:References:Subject; bh=+sDV3IaZg+uE7lvzwpYYowUiPjKLP2E1ktPR3RjWNGA=; b=ZLWIx9mOLJwI4NUceWV+b+/qmx13c7udauxBrxjqmmqqW//p8sWrlMJZeXbdb3zLvJTtnWP0kCGfGSt4chkrNtF28+dqGD52YhPZJdkUPz5RaSfjk5cErFsZwexfjApwhM28Hv3reAL0TGJ08xzDketjpGtG8TqyeWgS1w8U81nuMn5F7fmoUu+/9iZyBx6fCxTVvgDgWUL1HBFnhoKkIGgh8fnbO7iYGXTNpRFO6lDkbnJbJCVNg6Lrlm2b9maQi5uD1T1tvHEgU62UHn/uO9TsJD1ZYxcCtRJpBERgygQJ/2zYvI5s08aNtYDD+MuHZiTgj99kpT0QA+RAe+Vcbw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEv8s-00077o-5G for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 13:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 18:46: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.173238756127381 (code B ref 74140); Sat, 23 Nov 2024 18:46:02 +0000 Original-Received: (at 74140) by debbugs.gnu.org; 23 Nov 2024 18:46:01 +0000 Original-Received: from localhost ([127.0.0.1]:59130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEv8q-00077Z-K3 for submit@debbugs.gnu.org; Sat, 23 Nov 2024 13:46:00 -0500 Original-Received: from mail-ej1-f53.google.com ([209.85.218.53]:45399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEv8p-00077R-6I for 74140@debbugs.gnu.org; Sat, 23 Nov 2024 13:45:59 -0500 Original-Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-aa51bf95ce1so245289766b.3 for <74140@debbugs.gnu.org>; Sat, 23 Nov 2024 10:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732387498; x=1732992298; darn=debbugs.gnu.org; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=+sDV3IaZg+uE7lvzwpYYowUiPjKLP2E1ktPR3RjWNGA=; b=R3OjlqV/CZSfITOwqFDcy7OfzFC7c/ORvnpoLt232xWpbJhPET4xMMZ44w74idlh44 PI2XMeFB/Z3t2o+GRpJ7ihSgH+jEblyEoE1ds9n4KD5l1+G5hTpqbPRYFljrdeFjBFKw q6imCSepDfJX9UlIQUM4siarXcgezV5RQ1+sjRTzTw+lH3vEXWpuCBwRqPSC+x0ufod/ k48Htpyi5tPcG5zcFzc6troutQ8qDvSVtL9X62yv1YyMEU2OOOcfjJXqjNNnYDGreCKF LPnw2pIrz8O7/MEAIOwf3UKyP7m/W74Y0io1/QQknjHwZxvid4VpriI7GZC9CT4nb2/5 SkAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732387498; x=1732992298; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+sDV3IaZg+uE7lvzwpYYowUiPjKLP2E1ktPR3RjWNGA=; b=hvTUBQpAY+6YvHE9eIj+HHVessu6I9Hx7XhixIPO/M6QKNIdMXsuEb0Qt8bktIBGsv 1Z/FjFmX8M9D8p6hXVCdWVcVp6FfWBF+cx1od6uoZHK7GBahizyTVRQ0eua/+7QFbttq d9JmjzE9+fJdgC5Wpdt2+LExeX1g0S0qn451GtUX86yQRq/G4kXKa/GF/NUuy7QcZKF+ wPRaWAfZy2HphffAWhZE2/57etDciYz3X/6K9WDXuqhhDbUzFtfy1Ngtog6W2GU8ijC5 A66Gc+VynnDcX6fmCZAWJDzAlG9gGCQO2lLBwJurglgfj8xFeEN3kIOsHXo7RSoDK1gv 4gNw== X-Gm-Message-State: AOJu0YxC8Bwv8dVhr6zdjIuVbzS/ZFnAHs1xbVfpi/NIvaTQ981A8Yl5 7zFkLgPo/JOrmmLb+ya40lzfP4DzHsvRjWwNWUfHdNH0/RoyRCm1js6woYEo X-Gm-Gg: ASbGnct4WJCmAt3LgvAk3JxhYaNC0Q1DCrjIR/EHScSgYeY98o9mU77SY2FuCYG/7Fm qf/HXZz13rrWPtfObCjSj3w7PrIrhmGOdmn9tj2GlIoYxXPelU3EDmYpUY1/9mK77GEbNZcx/gP 95/ndgNoVPOQfvGOJChCjEhUTOjFc/U9bHKsM3y4bAlYLjLNm6CFpkJi9voRx9Qu2JUCyfSmtSc vK/5EnXPKuaglPYiknhwx9NyECCQS5OnnCzSvzAvRQqUIzOmNNgvBAB3/zjWRoqBl7prrLJCgjA 7kDs12A6cCt7fsaq X-Google-Smtp-Source: AGHT+IGrJRFhQZhAUUupwAzQfUaF689jclTArWSy+rzaQdColwrUnPX9wd8BL84313kag/fegKPh5w== X-Received: by 2002:a17:906:6a25:b0:a99:f183:ea8a with SMTP id a640c23a62f3a-aa509a038aemr700450466b.28.1732387498310; Sat, 23 Nov 2024 10:44:58 -0800 (PST) Original-Received: from localhost (0x573d6695.static.cust.fastspeed.dk. [87.61.102.149]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b28dd59sm255385966b.7.2024.11.23.10.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2024 10:44:57 -0800 (PST) In-Reply-To: <875xoyu90s.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 07 Nov 2024 21:41:07 +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:295860 Archived-At: >> I still don't follow. Couldn't we somehow keep track of the active >> repeat-map (or really, its underlying symbol) and check whether that >> lies in the provided list? Why should it be necessary to keep track >> of the key that activated it? In any event, we don't know in advance >> whether the specific key is the same or different across the keymaps >> that we do or do not want the command to participate in, so I don't >> see how knowing the key could be a useful differentiating factor. > > Keys will help to avoid aliases. In your example: > > :continue-only > ;; These commands will be available during paragraph manipulation > ;; but won't activate paragraph-repeat-map themselves > ("y" . yank) > ("C-/" . undo)) > > to be able to not activate repeat-map on executing the command 'yank' > with the global keybinding such as 'C-y', we can check > that last-command-event is 'y'. > My point was that the "C-/" here is the same in the repeat map and the global map, so we can't use it to distinguish the two.