all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: 8345@debbugs.gnu.org
Subject: bug#8345: 23.2; Suggestion: let eldoc show if something is functionp
Date: Fri, 25 Mar 2011 22:27:15 +0100	[thread overview]
Message-ID: <87wrjmzya4.fsf@web.de> (raw)

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	other threads:[~2011-03-25 21:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25 21:27 Michael Heerdegen [this message]
2013-02-17 14:51 ` bug#8345: 23.2; Suggestion: let eldoc show if something is functionp Michael Heerdegen
2013-02-18  1:30   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrjmzya4.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=8345@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.