From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#8345: 23.2; Suggestion: let eldoc show if something is functionp Date: Sun, 17 Feb 2013 15:51:12 +0100 Message-ID: <871ucf804f.fsf@web.de> References: <87wrjmzya4.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361112622 27679 80.91.229.3 (17 Feb 2013 14:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 14:50:22 +0000 (UTC) To: 8345@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 17 15:50:42 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U75Zh-00072r-PK for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Feb 2013 15:50:41 +0100 Original-Received: from localhost ([::1]:55776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U75ZN-0006zM-W3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Feb 2013 09:50:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U75ZJ-0006yd-M4 for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2013 09:50:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U75ZB-0005Cp-6Q for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2013 09:50:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U75ZB-0005CJ-3Z for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2013 09:50:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U75a2-0007F8-DB for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2013 09:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Feb 2013 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8345-submit@debbugs.gnu.org id=B8345.136111263427806 (code B ref 8345); Sun, 17 Feb 2013 14:51:02 +0000 Original-Received: (at 8345) by debbugs.gnu.org; 17 Feb 2013 14:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:60160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U75ZZ-0007ER-Is for submit@debbugs.gnu.org; Sun, 17 Feb 2013 09:50:33 -0500 Original-Received: from mout.web.de ([212.227.17.11]:64671) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U75ZW-0007EG-6N for 8345@debbugs.gnu.org; Sun, 17 Feb 2013 09:50:31 -0500 Original-Received: from drachen.dragon ([92.74.177.220]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MCZP8-1Tyo5E0cy2-009NP5 for <8345@debbugs.gnu.org>; Sun, 17 Feb 2013 15:49:34 +0100 In-Reply-To: <87wrjmzya4.fsf@web.de> (Michael Heerdegen's message of "Fri, 25 Mar 2011 22:27:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V02:K0:d8Zh90E6hJ0LSv7XwOAmLE/+lBvtXUoOqrKYFBTsxtX FRxOKRB9mVRZhjbQXPH3bGtATvC6e6odSvqFKvmml1mOEFsYkf XpOyHKjMblNyCDeeLgX+9uWxRl1cE1Rd6Fuhey2VgyYCmkBS7s irnGKOpNdyN8jR4zkuS0ZfgC5Iik9FV/zlFKBH7SY2MhJavvn1 rvTU6fGFG0a4T2xOHzcae5YUUCEWYV6ol+UyHSEfpM= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71438 Archived-At: Michael Heerdegen writes: > Hello Emacs, > > I want to make a suggestion: > > Let the notifications of eldoc mode differentiate between functions on > the one side, and macros and special forms on the other side. This is > an essential information for the Elisp programmer concerning the > arguments. I still think this is a good idea, because macros and special forms may handle arguments differently (evaluation), so I want to see whether the current form is a function call or not. Probably, using `font-lock-keyword-face' is not so good - since macros generally are not fontified as such where used in the code. Maybe we should just accentuate macros and special forms a bit. Here is a patch that simply underlines macros and special forms in the eldoc info: --8<---------------cut here---------------start------------->8--- *** /home/micha/today/eldoc.el 2013-02-17 15:14:07.520210027 +0100 --- /home/micha/gnu-emacs/elisp/test/eldoc.el 2013-02-17 15:08:07.276219422 +0100 *************** *** 356,362 **** (setq doc (copy-sequence args)) (add-text-properties start end (list 'face argument-face) doc)) (setq doc (eldoc-docstring-format-sym-doc ! sym doc 'font-lock-function-name-face)) doc))) ;; Return a string containing a brief (one-line) documentation string for --- 356,365 ---- (setq doc (copy-sequence args)) (add-text-properties start end (list 'face argument-face) doc)) (setq doc (eldoc-docstring-format-sym-doc ! sym doc (if (functionp sym) ! 'font-lock-function-name-face ! '((:inherit 'font-lock-function-name-face) ! (:underline t))))) doc))) ;; Return a string containing a brief (one-line) documentation string for --8<---------------cut here---------------end--------------->8--- Regards, Michael.