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

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

Re: Mode to display information in the topmost line of a window


From: Geralt
Subject: Re: Mode to display information in the topmost line of a window
Date: Fri, 31 Jul 2009 18:03:19 +0200

On Fri, Jul 31, 2009 at 9:12 AM, Tassilo Horn<tassilo@member.fsf.org> wrote:
> Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>
> Hi Kevin,
>
>>> What's the prefered way to overwrite a function? Just putting this
>>> one into .emacs?
>>
>> Don't overwrite it, so that you don't have to track changes to its
>> implementation:
>>
>> (defadvice eldoc-message (after header-line-format activate)
>>   "If `eldoc-last-message' is non-nil, set `header-line-format'."
>>   (when eldoc-last-message
>>     (setq header-line-format 'eldoc-last-message)
>>     (force-mode-line-update)))
>
> I'd generally agree, but I guess Gerald doesn't want to duplicate the
> eldoc output in the header line, but instead he wants it to be there
> only.
>
Hi,

yes, that's right, I want the information in the header line only.

> BTW: In contrast to the echo area, the header-line allows only one
> single line of content.  So you might want to let-bind
> `eldoc-echo-area-use-multiline-p' to nil.
>
That's right, but I'm using ElDoc not for Emacs Lisp, but with
c-eldoc[1] to display C function signatures, or anything C-related
that's at point.
I don't like it if ElDoc is overwriting all the time the messages in
the echo area, the header line is a better place for that (I think),
but only since it's rarely used (and thus it's never overwriting
anything).

> BTW2: I think this eldoc-in-header-line is really nice.  Gerald, you
> might want to built that into eldoc.el directly as an option, and submit
> a patch to emacs-devel, so that others can share the experience.
>
I can try, but my Emacs Lisp knowledge is quite limited, I'll try to
come up with something customizable and I'll post it here for review
:)





Geralt.



P.S. It's Geralt with a t at the end (and don't worry, no offensive taken!).




reply via email to

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