bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8345: 23.2; Suggestion: let eldoc show if something is functionp


From: Michael Heerdegen
Subject: bug#8345: 23.2; Suggestion: let eldoc show if something is functionp
Date: Fri, 25 Mar 2011 22:27:15 +0100

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.

This could be achieved easily e.g. by using different faces. 
`eldoc-highlight-function-argument' would be the right function to change.

I myself just did replace this sexp:

  (setq doc (eldoc-docstring-format-sym-doc
                 sym doc 'font-lock-function-name-face))

by this:

  (setq doc (eldoc-docstring-format-sym-doc
                    sym doc (if (functionp sym)
                                'font-lock-function-name-face
                              'font-lock-keyword-face)))


in its function definition.


Regards,

Michael


In GNU Emacs 23.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2010-12-11 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'i486-linux-gnu' '--build' 
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim'
 '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' 
'--without-gconf' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 
'LDFLAGS=-g' 'CPPFLAGS=''






reply via email to

[Prev in Thread] Current Thread [Next in Thread]