From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: local binding ineffective inside widget Date: Fri, 06 Sep 2019 08:39:39 -0400 Message-ID: References: <87v9xrfjyj.fsf@web.de> <871s0ap9g7.fsf@web.de> <0884798f-d83e-4b85-a0dd-fa87833488aa@default> <875zp9oy7c.fsf@web.de> <87pnke4wdp.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="86267"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Drew Adams , emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 06 14:41:30 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i6DYP-000MKD-6a for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2019 14:41:29 +0200 Original-Received: from localhost ([::1]:55658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6DYN-0004pm-Qs for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2019 08:41:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52470) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6DXO-0004oX-Vv for emacs-devel@gnu.org; Fri, 06 Sep 2019 08:40:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6DXN-0000te-0z for emacs-devel@gnu.org; Fri, 06 Sep 2019 08:40:25 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62189) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i6DXM-0000pc-Og for emacs-devel@gnu.org; Fri, 06 Sep 2019 08:40:24 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4ADD3447549; Fri, 6 Sep 2019 08:40:22 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CFCB2447545; Fri, 6 Sep 2019 08:39:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1567773580; bh=XTcVvpBMOqy/Ot1CYMwwLZA0Nyz5exDmgb434Fwb6Nw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lpXOnAX6x9Ql2/JOGj0NaPRBPEVBtcpn7j5XhxlRgtpAsP8UlKi61v+3B9saHpDNV tBo7Ib75zaPctMm32/sPdtz+lkHUFmvPKBcgQQpSHm3nic59Bb/g+d7dLoeq5EWpv7 EOW3fSCCWx3UoC91l2gN5caBpZpBySh4weyUSiALNIXVqHbI/kM+IK29gP1Pb6EdF1 hkhVqrtZb31WEXrLS70OkfwPchgMKTgPUgU7wiG0AHjoPL26Fs1tHKCSo/tTX2COdf oDViPiXeqeN3xICHGhGryl/0qmNClQRH8e0thqxotSacOS4J1QZz6Va9wNOh9Ii3nF nDWiRsvVKo2CQ== Original-Received: from pastel (unknown [108.175.227.36]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 97BDA120AFB; Fri, 6 Sep 2019 08:39:40 -0400 (EDT) In-Reply-To: <87pnke4wdp.fsf@web.de> (Michael Heerdegen's message of "Thu, 05 Sep 2019 17:04:50 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239897 Archived-At: > But I have a question: I want that C-c C-c in the _whole_ pop-up buffer > starts the search - even when point is over a widget. I didn't get that > work. The local map is ignored inside widgets. I don't have time to look more closely, but I'd suspect it might be because the widget uses the `local-map` property instead of the `keymap` property. If so, maybe you can change the widget to use the `keymap` property instead or to dynamically build a keymap that inherits from the buffer-wide local-map? A possible workaround is to put the binding inside an ad-hoc minor-mode. Stefan