From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: arguments hint Date: Thu, 3 Jun 2004 00:22:35 +0300 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200406030022.35504.pogonyshev@gmx.net> References: <200406010011.16822.pogonyshev@gmx.net> <200406022311.41897.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1086211041 15272 80.91.224.253 (2 Jun 2004 21:17:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2004 21:17:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 02 23:17:11 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVd6l-0003XB-00 for ; Wed, 02 Jun 2004 23:17:11 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVd6l-0002be-00 for ; Wed, 02 Jun 2004 23:17:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVd73-0004Zz-Tl for emacs-devel@quimby.gnus.org; Wed, 02 Jun 2004 17:17:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVd6v-0004Zt-6n for emacs-devel@gnu.org; Wed, 02 Jun 2004 17:17:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVd6t-0004Z4-IR for emacs-devel@gnu.org; Wed, 02 Jun 2004 17:17:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVd6t-0004Yu-8W for emacs-devel@gnu.org; Wed, 02 Jun 2004 17:17:19 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1BVd6G-0005gn-Cq for emacs-devel@gnu.org; Wed, 02 Jun 2004 17:16:40 -0400 Original-Received: (qmail 22076 invoked by uid 65534); 2 Jun 2004 21:16:38 -0000 Original-Received: from unknown (EHLO [217.21.37.91]) (217.21.37.91) by mail.gmx.net (mp021) with SMTP; 02 Jun 2004 23:16:38 +0200 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.6.52 In-Reply-To: Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24429 > > Meanwhile, I decided to practice with Elisp for a bit and came up with the > > following patch for eldoc-mode. I assigned copyright to FSF, so if you like > > the patch, you can include it in Emacs. > > Since we are in feature freeze, I think this patch will have to wait. No problem. When is the release? > > The patch makes eldoc-mode highlight the current argument with bold face. > > Thus one can immediatly see which argument he stopped his point on. This is > > maybe not very useful when typing new code, but should be helpful when > > editing something. I took care to handle special cases like `&optional' or > > `&rest'. > > I like this idea (even though it is pretty hairy to correctly process > &optional, [OPTARG], or even &key and such which can appear with functions > defined with CL's defun*). > When editing calls to completing-read and other such functions with many > parameters, it's really handy (although I'd prefer to use CL-style &key > parameters for those). Well, I'm not familiar with Common Lisp, so I just handled Elisp cases. I can try to look into this especially since the patch is delayed. > > As another, minor, change it highlights function/variable name with > > appropriate face. This should help distinguishing between function and > > variable hints. > > That doesn't strike me as terribly useful (the text is pretty different in > the two cases already). I can remove this. The largest part is about arguments anyway. Paul P.S. I'm now subscribed to `emacs-devel', so you can reply to the list.