From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: ElDoc: adding optional support to display messages in header-line instead of the echo area Date: Tue, 04 Aug 2009 10:32:19 +0200 Message-ID: <4A77F213.6070808@gmx.at> References: <4A755D64.6070400@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249374799 4811 80.91.229.12 (4 Aug 2009 08:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 08:33:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Geralt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 04 10:33:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYFSJ-0003q9-3H for ged-emacs-devel@m.gmane.org; Tue, 04 Aug 2009 10:33:11 +0200 Original-Received: from localhost ([127.0.0.1]:54667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYFSH-0006gB-TO for ged-emacs-devel@m.gmane.org; Tue, 04 Aug 2009 04:33:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYFRe-0006Yb-9m for emacs-devel@gnu.org; Tue, 04 Aug 2009 04:32:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYFRZ-0006RM-Kc for emacs-devel@gnu.org; Tue, 04 Aug 2009 04:32:29 -0400 Original-Received: from [199.232.76.173] (port=56645 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYFRY-0006R0-Vf for emacs-devel@gnu.org; Tue, 04 Aug 2009 04:32:25 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:51141) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MYFRY-0006YY-9H for emacs-devel@gnu.org; Tue, 04 Aug 2009 04:32:24 -0400 Original-Received: (qmail invoked by alias); 04 Aug 2009 08:32:20 -0000 Original-Received: from 62-47-34-20.adsl.highway.telekom.at (EHLO [62.47.34.20]) [62.47.34.20] by mail.gmx.net (mp054) with SMTP; 04 Aug 2009 10:32:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19dW80EAwBdl91MItzxazLoP2HrTI1GncdzWjStCT ZqBuOmjrAVApXv User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113654 Archived-At: > can you explain why? I put the omessage into the ELSE block because > somebody on emacs-help suggested it and it made sense to me at that > time. Compiling eldoc.el after applying your patch gets me eldoc-new.el~:550:1:Warning: the function `omessage' is not known to be defined. This happens because in the (cond (eldoc-last-message (if eldoc-display-in-header-line (setq header-line-format eldoc-last-message) (message "%s" eldoc-last-message) (omessage (message nil))))))) form you misplaced the parentheses and thus `omessage' is not considered a condition of some clause of the `cond' special form but as a function call. BTW, I suppose you also need to call `force-mode-line-update' because Emacs does not necessarily update the contents of the header line when just moving point. martin