From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#51384: 28.0.60; substitute-command-keys finds global binding for undo instead of in specified keymap Date: Fri, 16 Sep 2022 11:58:34 +0200 Message-ID: <87fsgriqt1.fsf@gmail.com> References: <877de1s9yl.fsf@gmail.com> <87o87d9zpv.fsf@igel.home> <87y26hqtgt.fsf@gmail.com> <8635nxcow3.fsf@mail.linkov.net> <87czn1nwdr.fsf@gmail.com> <871qsd4xnj.fsf@gnus.org> <877d25krwg.fsf@gmail.com> <87wna3y8eh.fsf@gnus.org> 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="7140"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51384@debbugs.gnu.org, Andreas Schwab , Juri Linkov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 11:59:10 2022 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 1oZ87q-0001fj-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 11:59:10 +0200 Original-Received: from localhost ([::1]:47202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ87p-0003Cp-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 05:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ87i-0003CR-F3 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 05:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ87i-0003rJ-4Y for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 05:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZ87h-00016w-QR for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 05:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Sep 2022 09:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51384 X-GNU-PR-Package: emacs Original-Received: via spool by 51384-submit@debbugs.gnu.org id=B51384.16633223244243 (code B ref 51384); Fri, 16 Sep 2022 09:59:01 +0000 Original-Received: (at 51384) by debbugs.gnu.org; 16 Sep 2022 09:58:44 +0000 Original-Received: from localhost ([127.0.0.1]:41722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ87P-00016N-Lr for submit@debbugs.gnu.org; Fri, 16 Sep 2022 05:58:43 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:38596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ87O-00016B-43 for 51384@debbugs.gnu.org; Fri, 16 Sep 2022 05:58:42 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id n23-20020a7bc5d7000000b003a62f19b453so19528141wmk.3 for <51384@debbugs.gnu.org>; Fri, 16 Sep 2022 02:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=fyopICh7c7z0DatY8BdJIcmi5A38UY2ICzIpqEz39D4=; b=RXjkyMMe0v5pRPnd9H9ZIQJxO3qwO34yMbqWW3MowKTyjpWHTb4AaujBjKzgfhGOpW 9Poj8U6TuCwRBoZ74M+LUfeZt+lMZfo+OGvBd64yRWztdit/Hp8/ZaGMnHp9iznt8rKB nR7wuyxg48QYfrHOaow2v2Bitp82/foR7mg/6Ahtmg5yNsV7a0gWpxNRAHUEuRe07TPu k19KWjFTS9Lv5nUE65IzexFgXpKoBG/nbciXEFMqOC39rMH9OLazsd4vaePNq8pjhbuq pXwz3cJwHa2LIUyEmXsWzIaDdEYOBBJpBKP7T+8FHlF6gLPYb1AlcVVBNmpP+kYbP3Et mK5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=fyopICh7c7z0DatY8BdJIcmi5A38UY2ICzIpqEz39D4=; b=eKr0q80uPGFn3T2Ynjzi7LcacTOP9nI+NWHlLx3kHp0EiOjOqqyn5EPHJE/rDL9yEe binQwUqlblu3COOugKvOczbKaMBBdz9XStEJH9tagxaBxHlX3r7xckc42JgLC8YsaPIR BZ2hot8u6+9NLZbELGFXpomUkmDatruxy1A9nQo/evS3aSICC7/Wft7IUAJc45ry4qoo DG/vsLGbkuvFCWmjCxgJrJVG4FfET7ja3myticcw5e+FZy645nhf/6cCseShq1t+i1Az xqs9rzXOp76nPh/BpKH4leaXVmlgIDnoe7BPCYhtfMQyLnpvPqJVRRV+l14t2GkT+ClK 4BZg== X-Gm-Message-State: ACgBeo1yxBstMmG/oYtdxoAUQCIzMKcDcLHajWCNuQ0mmZ/Hp+Dx/4AX lHkqO8kzvV7veS0JQ3J4Dc8= X-Google-Smtp-Source: AA6agR6gwAiKDFXYVCmtFyTBP1KsXy4zrMF2UaXbUNLK55BIVlUJKhOIhkqX5y/xH/e1ILJI44+KWA== X-Received: by 2002:a05:600c:2e52:b0:3b4:622c:1b4b with SMTP id q18-20020a05600c2e5200b003b4622c1b4bmr9770551wmf.153.1663322316125; Fri, 16 Sep 2022 02:58:36 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:16a0:9848:d23c:7dcb]) by smtp.gmail.com with ESMTPSA id q6-20020a05600c46c600b003b4935f04aasm1823065wmo.10.2022.09.16.02.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 02:58:35 -0700 (PDT) In-Reply-To: <87wna3y8eh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Sep 2022 11:29:26 +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" Xref: news.gmane.io gmane.emacs.bugs:242718 Archived-At: >>>>> On Fri, 16 Sep 2022 11:29:26 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> I don=CA=BCt think any of the advertised bindings caused a problem, = but >> I=CA=BCll double check. Lars> Thanks; feel free to push after checking. I=CA=BCm about half way through. It=CA=BCs one of those situations where ma= ybe you=CA=BCre tempted to code up a solution using el-search, but that might take longer than doing it manually =F0=9F=98=80 >> - (where-is-internal fun keymap t)))) >> + (where-is-internal fun (ensure-lis= t keymap) t))) Lars> You later said that that's not correct -- but in which cases isn'= t it? Test case: (substitute-command-keys "\\\\[undo]") My model was wrong. I thought keymap was either nil or bound to a keymap, but `undo-repeat-map' is a list of value (keymap (117 . undo)) hence the need to do (and keymap (list keymap)) Robert --=20