From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nicolas Richard" Newsgroups: gmane.emacs.devel Subject: Re: mykie.el Date: Mon, 06 Jan 2014 17:09:06 +0100 Message-ID: <871u0lytwd.fsf@yahoo.fr> References: <87bnzshlo5.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389024523 17087 80.91.229.3 (6 Jan 2014 16:08:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2014 16:08:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 06 17:08:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W0CjR-0005sA-JL for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 17:08:49 +0100 Original-Received: from localhost ([::1]:36012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CjR-00047R-2U for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 11:08:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CjJ-00047E-7l for emacs-devel@gnu.org; Mon, 06 Jan 2014 11:08:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0CjD-0003F7-4B for emacs-devel@gnu.org; Mon, 06 Jan 2014 11:08:41 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CjC-0003Ew-Tk for emacs-devel@gnu.org; Mon, 06 Jan 2014 11:08:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W0CjA-0005RP-QT for emacs-devel@gnu.org; Mon, 06 Jan 2014 17:08:32 +0100 Original-Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jan 2014 17:08:32 +0100 Original-Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jan 2014 17:08:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: geodiff-mac3.ulb.ac.be User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:c99kovj5ttyUX3pUIY3TLbp9vkM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167477 Archived-At: Stefan Monnier writes: > IIUC the need for "context dependent bindings" becomes more interesting > when you want the different cases to be specified independently. One could check the predicate while looking up the key sequence in active keymaps. AIUI, currently, keymaps are checked and if the sequence is bound to a command it is used, otherwise lookup continues. My suggestion is to change the condition "is bound" to "is bound *and* some predicate is non nil". [I must say that since this likely requires changes to C code, I don't have even the beginning of a patch.] -- Nico.