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: Wed, 10 Sep 2008 21:41:22 -0400 Message-ID: References: <87y72079mg.fsf@thinkpad.tsdh.de> <87d4jbg62j.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221097384 18034 80.91.229.12 (11 Sep 2008 01:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 01:43:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 11 03:43:59 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 1KdbDw-0004HW-Jh for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 03:43:56 +0200 Original-Received: from localhost ([127.0.0.1]:54411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdbCw-0000Oq-Ee for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2008 21:42:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdbBW-0007dp-EO for emacs-devel@gnu.org; Wed, 10 Sep 2008 21:41:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdbBU-0007bN-LH for emacs-devel@gnu.org; Wed, 10 Sep 2008 21:41:25 -0400 Original-Received: from [199.232.76.173] (port=53283 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdbBU-0007b1-FT for emacs-devel@gnu.org; Wed, 10 Sep 2008 21:41:24 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:19265 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdbBU-0004w7-5X for emacs-devel@gnu.org; Wed, 10 Sep 2008 21:41:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjkFAAsUyEhFxIqP/2dsb2JhbACBZbBoCIYjXQMIfIEG X-IronPort-AV: E=Sophos;i="4.32,375,1217822400"; d="scan'208";a="26643306" Original-Received: from 69-196-138-143.dsl.teksavvy.com (HELO ceviche.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 10 Sep 2008 21:41:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 06638B4062; Wed, 10 Sep 2008 21:41:23 -0400 (EDT) In-Reply-To: <87d4jbg62j.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 10 Sep 2008 21:21:40 +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:103786 Archived-At: >> In any case, the main problem with such things (whichever way they're >> implemented) is that the rest of Emacs doesn't know and/or expect such >> condition bindings, so C-h k gives only partial information, and >> similarly where-is doesn't know how to tell the whole story. > Sure, so I'd say that in general modes shouldn't use such facilities by > default. Which commands should be executed depending on which context > is a quite subjective decision anyway. But to have the possibilities > right at hand is great, whichever one you use. 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. Stefan