From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14086: 24.3.50; `substitute-command-keys': inappropriate "(that binding is currently shadowed by another mode)" Date: Sat, 3 Oct 2020 15:48:24 -0700 (PDT) Message-ID: <09025e7c-3f7b-4e39-b573-776fba837ceb@default> References: <0FF2F801815441C3B5385CE3202E16A0@us.oracle.com> <87364basd9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 14086@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 00:49:12 2020 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 1kOqL1-0003pr-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 00:49:11 +0200 Original-Received: from localhost ([::1]:38774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOqL0-0006cJ-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 18:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOqKs-0006bx-Ak for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 18:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33034) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOqKs-0007oi-12 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 18:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOqKr-00017p-Uy for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 18:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2020 22:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14086 X-GNU-PR-Package: emacs Original-Received: via spool by 14086-submit@debbugs.gnu.org id=B14086.16017653164291 (code B ref 14086); Sat, 03 Oct 2020 22:49:01 +0000 Original-Received: (at 14086) by debbugs.gnu.org; 3 Oct 2020 22:48:36 +0000 Original-Received: from localhost ([127.0.0.1]:44580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOqKS-000178-07 for submit@debbugs.gnu.org; Sat, 03 Oct 2020 18:48:36 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:35726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOqKP-00016s-Es for 14086@debbugs.gnu.org; Sat, 03 Oct 2020 18:48:34 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 093MjG6T053927; Sat, 3 Oct 2020 22:48:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=6sC1A1hEeyFIlkTUpLe/RDuV1BJEBqXEryTugj1dPwQ=; b=Bd7ENsV2C6/Gr9AHUeJ0Rq01GqOVOEIhn082clz8ttpYI6+97TEnK+/B3y0QmQ7RXaFO XxjRuShJy+8MwEhaYNNJiKHaTZe3Lx3cv1l7g8fGsaWAC+SBi/QJL2MC9oWUKaA9fAnh 2tC28BR8FF2748Ftq5fUOOtszv/KhqEwiMJIpgALK3P4DJZ/7GLHMrasNH4nCnEOzT6i OHB68Tll3mWZsbamR9UXfzl10g4XzCHz+SAxj+OkM9d9wr6+BTaVzBtx9gfSg0klzwO1 sUa6znfTbeEMGhSt6fa2zEmx0mkO4fcLjeo9DvqENbfIHQBDGrmiuDTUFYKx3ngYLA+I Pg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 33xhxmhdt2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 03 Oct 2020 22:48:26 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 093Mj6PZ174168; Sat, 3 Oct 2020 22:48:25 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 33xfb98ybr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 03 Oct 2020 22:48:25 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 093MmO96021143; Sat, 3 Oct 2020 22:48:25 GMT In-Reply-To: <87364basd9.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9763 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010030193 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9763 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 adultscore=0 clxscore=1011 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010030193 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:189727 Archived-At: > > But near the end of the listing (not at all near that entry), I see thi= s > > other entry for `M-r': > > > > M-r previous-matching-history-element > > (that binding is currently shadowed by another mode) > > > > That makes no sense, or is at least misleading. There is no special > > "mode" that I am aware of that is involved here, for one thing. And I > > don't see how the `previous-matching-history-element' binding is > > "shadowed", whether by "another mode" or any other way. `M-r' is simpl= y > > bound to `icicle-roundup' in this keymap - it is not bound to > > `previous-matching-history-element' in this map, AFAIK. >=20 > The test case is this: >=20 > (define-key minibuffer-local-completion-map (kbd "M-r") 'icicle-roundup) > (substitute-command-keys "\\{minibuffer-local-completion-map}") >=20 > "key binding > --- ------- >=20 > C-g=09=09abort-recursive-edit > [...] > M-r=09=09icicle-roundup > [...] > M-r=09=09previous-matching-history-element > (that binding is currently shadowed by another mode) > " >=20 > That is pretty confusing -- I didn't even know that you could have the > same key binding twice in a keymap? I'm guessing that comes from `bindings.el' binding `M-r' to `previous-match= ing-history-element' in `minibuffer-local-map', and Icicles binding `M-r' t= o `icicle-roundup' in `minibuffer-local-completion-map'. And this is true: (eq minibuffer-local-map (keymap-parent minibuffer-local-completion-map)) I'm guessing that's what all the "shadowing" is about. `icicle-roundup' is= the actual binding, in `minibuffer-local-completion-map'. Why, in a listi= ng of `minibuffer-local-completion-map', we show the other command as also = being bound to `M-r', I don't know. I don't mean how we do that, but why -= for users?