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

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

[debbugs-tracker] bug#8345: closed (23.2; Suggestion: let eldoc show if


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#8345: closed (23.2; Suggestion: let eldoc show if something is functionp)
Date: Mon, 18 Feb 2013 01:32:02 +0000

Your message dated Sun, 17 Feb 2013 20:30:43 -0500
with message-id <address@hidden>
and subject line Re: bug#8345: 23.2; Suggestion: let eldoc show if something is 
functionp
has caused the debbugs.gnu.org bug report #8345,
regarding 23.2; Suggestion: let eldoc show if something is functionp
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
8345: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8345
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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=''




--- End Message ---
--- Begin Message --- Subject: Re: bug#8345: 23.2; Suggestion: let eldoc show if something is functionp Date: Sun, 17 Feb 2013 20:30:43 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
> 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.

I think it's a good idea, and I think your original proposal is better
(because macros (and special forms) are or should be highlighted with
font-lock-keyword-face).
So I installed your change, thank you,


        Stefan


--- End Message ---

reply via email to

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