From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: A simple implementation of context-sensitive keys Date: Thu, 11 Sep 2008 17:53:56 +0200 Message-ID: <87vdx2he5n.fsf@thinkpad.tsdh.de> References: <87y72079mg.fsf@thinkpad.tsdh.de> <87d4jbg62j.fsf@thinkpad.tsdh.de> <87r67rjgmb.fsf@thinkpad.tsdh.de> <867i9iwxsr.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221148639 25933 80.91.229.12 (11 Sep 2008 15:57:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 15:57:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 11 17:58:15 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 1KdoYa-0003TG-A7 for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 17:58:08 +0200 Original-Received: from localhost ([127.0.0.1]:57288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdoXa-0008Il-5e for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 11:57:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdoWZ-0007uF-NF for emacs-devel@gnu.org; Thu, 11 Sep 2008 11:56:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdoWX-0007sm-Tg for emacs-devel@gnu.org; Thu, 11 Sep 2008 11:56:03 -0400 Original-Received: from [199.232.76.173] (port=50890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdoWX-0007sg-NK for emacs-devel@gnu.org; Thu, 11 Sep 2008 11:56:01 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:27165) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdoWX-0006gr-Fs for emacs-devel@gnu.org; Thu, 11 Sep 2008 11:56:01 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id A80C6780077D; Thu, 11 Sep 2008 17:56:00 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01378-04; Thu, 11 Sep 2008 17:55:59 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp188.uni-koblenz.de [141.26.71.188]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C818E78004C6; Thu, 11 Sep 2008 17:55:59 +0200 (CEST) Mail-Copies-To: never Mail-Followup-To: Ted Zlatanov , emacs-devel@gnu.org In-Reply-To: <867i9iwxsr.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 11 Sep 2008 09:40:36 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:103818 Archived-At: Ted Zlatanov writes: Hi Ted, > TH> In my new version (below) I allow arbitrary forms as predicate, so > TH> the command really can get long and unreadably. I think it would > TH> get much better, if describe-function would pretty-print lambda > TH> forms. > > I really think this would be endlessly confusing to new users. "What > does this key do?" "Take a look at this pretty-printed lambda and > figure it out for yourself." Better a pretty-printed lambda than a lambda wrapped at column 80. ;-) What else could describe-key tell if the bound function is a lambda? But I agree with you that stock emacs shouldn't do black magic and bin each key to one function with a clear description. Bye, Tassilo