From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geralt Newsgroups: gmane.emacs.help Subject: Re: Mode to display information in the topmost line of a window Date: Fri, 31 Jul 2009 18:03:19 +0200 Message-ID: References: <87r5vyw653.fsf@thinkpad.tsdh.de> <87tz0tl40h.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249056764 16263 80.91.229.12 (31 Jul 2009 16:12:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 16:12:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn , kevin.d.rodgers@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 18:12:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWuia-00040w-VM for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 18:12:29 +0200 Original-Received: from localhost ([127.0.0.1]:54951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWuia-0007ZK-9x for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 12:12:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWuZp-0000HY-3E for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:03:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWuZn-0000Gz-Kv for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:03:24 -0400 Original-Received: from [199.232.76.173] (port=46877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWuZn-0000Gs-7q for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:03:23 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.149]:1723) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWuZm-0006V7-Jd for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 12:03:22 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 5so551703eyb.24 for ; Fri, 31 Jul 2009 09:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KebYaTUTw+pU/sF8WWqPRLReM1kqD6wPJeAI2JuXrwU=; b=cNTbhy3KYVJyf6sxSs2tyGC/eTassYwIMDUqK2nY9dHiLaE66AnNe9YFVBJs2chAt8 aGAOyg0aOFiMFUvEygw7Ybaq8J4sS8eiezBi703eBbonNC/SGwD/hRbIHdbedtlQeEKn kO4KVz4yax8NZHaC4Jz2k9VxDuMylHUO4lfMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=imO3CE1P359rgl9yez3SZl/nH0JeaRLr2g3naa59jP0a2JzWsin6v9avapychkyehS qH6P/uO1C3LvypRuL5OoNR8hlw8lKMpkexfGdHtP1um4/K+yHRSaF/30uqlfMwoPGsFw eQw5c4W/hHcx6N3R/Jhw7Jzm9lgEJ/IEQbZTQ= Original-Received: by 10.216.90.6 with SMTP id d6mr520236wef.95.1249056199212; Fri, 31 Jul 2009 09:03:19 -0700 (PDT) In-Reply-To: <87tz0tl40h.fsf@thinkpad.tsdh.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66576 Archived-At: On Fri, Jul 31, 2009 at 9:12 AM, Tassilo Horn wrote= : > Kevin Rodgers 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) >> =A0 "If `eldoc-last-message' is non-nil, set `header-line-format'." >> =A0 (when eldoc-last-message >> =A0 =A0 (setq header-line-format 'eldoc-last-message) >> =A0 =A0 (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. =A0So 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. =A0Gerald, 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!)= .