From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A simple implementation of context-sensitive keys Date: Thu, 11 Sep 2008 16:44:14 -0400 Message-ID: References: <87y72079mg.fsf@thinkpad.tsdh.de> <87d4jbg62j.fsf@thinkpad.tsdh.de> <48C92024.6080804@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221165870 26706 80.91.229.12 (11 Sep 2008 20:44:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 20:44:30 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 11 22:45:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kdt2b-0000Gd-Id for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 22:45:25 +0200 Original-Received: from localhost ([127.0.0.1]:38668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdt1b-0002Fo-3z for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 16:44:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdt1W-0002FZ-TP for emacs-devel@gnu.org; Thu, 11 Sep 2008 16:44:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdt1U-0002FN-GV for emacs-devel@gnu.org; Thu, 11 Sep 2008 16:44:17 -0400 Original-Received: from [199.232.76.173] (port=33112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdt1U-0002FK-9j for emacs-devel@gnu.org; Thu, 11 Sep 2008 16:44:16 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:50265 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kdt1U-0003zC-4T for emacs-devel@gnu.org; Thu, 11 Sep 2008 16:44:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkFAHEgyUhFxIqP/2dsb2JhbACBY7ElCIYiXQMIeoEG X-IronPort-AV: E=Sophos;i="4.32,382,1217822400"; d="scan'208";a="26683071" Original-Received: from 69-196-138-143.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 11 Sep 2008 16:44:14 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 773957FF3; Thu, 11 Sep 2008 16:44:14 -0400 (EDT) In-Reply-To: <48C92024.6080804@gmail.com> (Lennart Borgman's message of "Thu, 11 Sep 2008 15:41:56 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103826 Archived-At: >> I hope we can do better than that, i.e. come up with a way to do >> something like what you proposed, but still have where-is, C-h k, >> etc... take it into account. > I am starting to wonder whether this is the right way to go. I'm not sure it is either. > There is no notion in where-is, C-h k, etc that there is any key binding > conflict. There is no easy way for users to reorder minor-mode-map-alist. The problem is a lot more general than conflicts between minor modes. There are things also like mouse-2 bindings that only work locally (either implemented via `keymap' text-properties or by a normal binding that checks a predicate and delegates to some other command if that fails) where the various possible "conflicting" bindings can be spread between minor modes, major modes and global bindings. Stefan