From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geralt Newsgroups: gmane.emacs.devel Subject: Re: ElDoc: adding optional support to display messages in header-line instead of the echo area Date: Mon, 3 Aug 2009 23:47:46 +0200 Message-ID: References: <4A755D64.6070400@gmx.at> 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 1249349706 17293 80.91.229.12 (4 Aug 2009 01:35:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 01:35:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 04 03:35:00 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 1MY8vb-00028t-Nz for ged-emacs-devel@m.gmane.org; Tue, 04 Aug 2009 03:35:00 +0200 Original-Received: from localhost ([127.0.0.1]:38254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MY8vb-00065O-5e for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2009 21:34:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MY5Nr-0005mO-EF for emacs-devel@gnu.org; Mon, 03 Aug 2009 17:47:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MY5Nn-0005kp-Tw for emacs-devel@gnu.org; Mon, 03 Aug 2009 17:47:53 -0400 Original-Received: from [199.232.76.173] (port=40187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MY5Nn-0005kQ-8O for emacs-devel@gnu.org; Mon, 03 Aug 2009 17:47:51 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.147]:59973) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MY5Nm-0001Fs-Ls for emacs-devel@gnu.org; Mon, 03 Aug 2009 17:47:50 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 5so1006412eyb.24 for ; Mon, 03 Aug 2009 14:47:46 -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=87UOHeInnyeFjp7uehqixX98iY25SxGwveVY/EbuyF0=; b=H2vM9QupTWbbvSVPK/9z8dTK+muWUffItzVR6cG84UA+yOyoFXH39kUGmgD/O83G/q zyydQ4GdY4cQ8d6uQQS0n+povfIfuRdAncfOBMy6a1WXnuw2CtoqEn8LQRK+iQ98d+vj Tty8Do33wU8Wj6A+d6W661OlnWs+y3iwivr+o= 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=QOLqlJx0ojbFjZY8eCMlOGroIB/p4krV/w5ddEfwONNs9hw5jwhPVoCFVbhsPIBi5O NZqhO1bL5Jvo7WRdWnRXvXK8txFgcVNJUaejIF83ZEg33pDuXmzTtZAoyso/nuKE4+by cXOAP4mosieuT5Ps+C/ZuhASlARnZZlXWvz9o= Original-Received: by 10.216.47.196 with SMTP id t46mr1283454web.121.1249336066555; Mon, 03 Aug 2009 14:47:46 -0700 (PDT) In-Reply-To: <4A755D64.6070400@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 03 Aug 2009 18:42:30 -0400 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:113631 Archived-At: On Sun, Aug 2, 2009 at 11:33 AM, martin rudalics wrote: >> + =A0 =A0 =A0(cond (eldoc-last-message (if eldoc-display-in-header-line >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (setq = header-line-format >> eldoc-last-message) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (message "= %s" eldoc-last-message) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (omessage = (message nil))))))) > > You probably mean something like > > =A0 =A0 =A0(cond > =A0 =A0 =A0 (eldoc-last-message > =A0 =A0 =A0 =A0(if eldoc-display-in-header-line > =A0 =A0 =A0 =A0 =A0 =A0(setq header-line-format eldoc-last-message) > =A0 =A0 =A0 =A0 =A0(message "%s" eldoc-last-message))) > =A0 =A0 =A0 (omessage (message nil))))) > > here ;-) > > martin > Hi Martin, 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. Geralt.