From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: current-active-maps doesn't look at emulation-mode-map-alists, why? Date: Mon, 26 Dec 2016 22:04:51 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1482807908 9740 195.159.176.226 (27 Dec 2016 03:05:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Dec 2016 03:05:08 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 27 04:05:00 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLi4O-0000uZ-Bk for ged-emacs-devel@m.gmane.org; Tue, 27 Dec 2016 04:04:56 +0100 Original-Received: from localhost ([::1]:52540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLi4R-0007iU-CU for ged-emacs-devel@m.gmane.org; Mon, 26 Dec 2016 22:04:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLi4L-0007iF-Ii for emacs-devel@gnu.org; Mon, 26 Dec 2016 22:04:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLi4K-0001AE-MF for emacs-devel@gnu.org; Mon, 26 Dec 2016 22:04:53 -0500 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:34908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLi4K-0001A2-Hk for emacs-devel@gnu.org; Mon, 26 Dec 2016 22:04:52 -0500 Original-Received: by mail-oi0-x22d.google.com with SMTP id b126so336933406oia.2 for ; Mon, 26 Dec 2016 19:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=NGIS0vmL+wIPPtvKPF44+MZsQzjx13exv0OCsGRdLgE=; b=QOU7ksrVCxE6p08wcMLdVCLpw8s9tyE632uVr4A3jb+9vD6iJsRMFgohh419HDLw5h 2oTg+OW9zwbfUnLh02B9OAx7ecnqQEes3RMjsazPDm7xCuXLIbCquH39/+0HlEub/A8c XZwdbwbxRMpE4ayF8zSqw0JLFpbVUI4kESGkcLfRB69PLToWFbRH2yJAqK1WuSklmLUN d/RXHPaK+3VaL+JQhClBL4wqMjFwGivCsFS/dK5kdhpUZ5Y6dxUQCH5uNdky8wjwuipi g+mF3UicvBHgsS7PMNI4f+LSxGZdfxW2IMOxgEEZNLOzeBuPWZ7GYlAbKyLH2zGgH+qK etcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=NGIS0vmL+wIPPtvKPF44+MZsQzjx13exv0OCsGRdLgE=; b=gBsVpQZbocY3VWz6scY1P3ICCW1JDoOrhuyrqAdjJV4IQ9siqnSxveXQNPpc94vGas MJvhtN81M8oe+fkLnxbb60YKj2IEA7+WhIa4+V3tLN9SqmyP3b/z/xSiVdHnhj90qECL tcdvin7Qiuv3ryGQ/bAAX69db8yrpUmKyxgOUezGsm9IQn0BfkksvyWQD3esI3oSkW0I uxi4fLWexNrP2h4EdfdCOKHSLriUrzU9r6f/opWpap83wT+B3a922f3LKxh/wKK+beE6 iyOg3A2deN7hdgYGW8UAR8fhLobBgqnGD+ga3FwtNPQtGLdt7hyNcecQn9gqzym2Z9Yt kqmg== X-Gm-Message-State: AIkVDXLqFWbyowPD0fNkxqEXhACsFL/d9yMFFrSnjnklc8VItcPjh2iIfZnspNFehzLF6KQJgNofQMbX36FF+g== X-Received: by 10.202.192.133 with SMTP id q127mr14799202oif.128.1482807891720; Mon, 26 Dec 2016 19:04:51 -0800 (PST) Original-Received: by 10.157.45.104 with HTTP; Mon, 26 Dec 2016 19:04:51 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 7-UFuzZiX3Kt-hXEdjcy2Nnkzxw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:210829 Archived-At: On Mon, Dec 26, 2016 at 8:50 PM, Stefan Monnier wrote: >>>> Any reason why current-active-maps doesn't return keymaps from >>>> emulation-mode-map-alists? > > What makes you think it doesn't? Oops. It was a mixup on my end. I had a test where `key-binding' wasn't returning what I expected and I missed that current_minor_maps checks emulation-mode-map-alists. So I made a wrapping function which overrides `this-command-keys-vector' and adds the keymaps from emulation-mode-map-alists explicitly. But in fact, that second thing is 100% redundant (the first is needed because I have a binding to (menu-item ... :filter ...) where the filter uses `this-command-keys-vector' to make its decision). Sorry for the noise.