all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Geralt <usr.gentoo@googlemail.com>
To: Tassilo Horn <tassilo@member.fsf.org>, kevin.d.rodgers@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mode to display information in the topmost line of a window
Date: Fri, 31 Jul 2009 18:03:19 +0200	[thread overview]
Message-ID: <fbdd0e50907310903o63d97fcbsec03936ad1734560@mail.gmail.com> (raw)
In-Reply-To: <87tz0tl40h.fsf@thinkpad.tsdh.de>

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	other threads:[~2009-07-31 16:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 12:38 Mode to display information in the topmost line of a window Geralt
2009-07-30 15:19 ` Tassilo Horn
2009-07-30 15:47   ` Geralt
2009-07-30 15:58     ` Lennart Borgman
2009-07-30 16:00     ` Tassilo Horn
2009-07-31  4:08     ` Kevin Rodgers
2009-07-31  7:12       ` Tassilo Horn
2009-07-31 16:03         ` Geralt [this message]
2009-07-31 16:19           ` Drew Adams
2009-07-31 23:46             ` Geralt
2009-07-31 23:51               ` Lennart Borgman
2009-08-01  9:30                 ` Geralt
2009-07-31 23:56               ` Drew Adams

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=fbdd0e50907310903o63d97fcbsec03936ad1734560@mail.gmail.com \
    --to=usr.gentoo@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kevin.d.rodgers@gmail.com \
    --cc=tassilo@member.fsf.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.