From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Suggestions for mode-line-format changes Date: 26 Aug 2002 17:01:28 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x1y8lmzp3.fsf@kfs2.cua.dk> References: <5xk7mlfsvf.fsf@kfs2.cua.dk> <874rdl357r.fsf@wesley.springies.com> <5xhehiwlok.fsf@kfs2.cua.dk> <871y8l3ojk.fsf@lexx.delysid.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030377472 7905 127.0.0.1 (26 Aug 2002 15:57:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2002 15:57:52 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17jMFT-00023O-00 for ; Mon, 26 Aug 2002 17:57:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17jMkM-0007Qh-00 for ; Mon, 26 Aug 2002 18:29:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jMGi-0004mg-00; Mon, 26 Aug 2002 11:59:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17jLz1-00087N-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 11:40:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17jLxj-0007eF-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 11:40:19 -0400 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jLxc-0006O8-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 11:39:24 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by gnudist.gnu.org with esmtp (Exim 4.10) id 17jKU1-0000Rc-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 10:04:45 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id A74877C017; Mon, 26 Aug 2002 14:01:02 +0000 (GMT) Original-To: Mario Lang In-Reply-To: <871y8l3ojk.fsf@lexx.delysid.org> Original-Lines: 58 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6911 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6911 Mario Lang writes: > erc-track.el uses the global-mode-string to > indicate if a channel buffer not currently visible > had activity. It is quite important for > this feature to be visible, and not scrolled out on the right side. > > I agree that time isn't that important, but there are other things which can > be put into global-mode-string. I dont think > it should be changed from it's current location. There really seems to be different levels of importance of the things people put into global-mode-string - some of which should be "very visible" (e.g. battery status), some which should be "normally visible" (e.g new mail, output available, important mode state), and some which is just "nice to have" (e.g. time of day and system load). Consequently, putting everything in a "global" state variable will definitely not work well for all users... Kai's idea of a fully configurable mode line format sounds nice, but it will not work if we can only control where "global-mode-string" is displayed in the mode-line; we need to be able to control the position of each of the [current] elements of global-mode-string. Maybe we could change the interpretation of global-mode-string [as the last element in mode-line-format] in formatting the mode-line, so that only the elements of global-mode-string which have not been shown already are displayed for global-mode-string. This could be done by maintaining a temporary list of the symbols used so far to format the mode line and skip those symbols which have already been displayed. The means that you can insert battery-mode-line-string explicitly in mode-line-format and not worry about it being present in global-mode-string as well. > > OTOH, I always wanted something like global-mode-string > which only occurs once in a frame. Currently, global-mode-string > is displayed as many times as windows are displayed in the current frame. > This is waste of space for most things using global-mode-string > (like time and the mail icon). > > If we could come up with an equivalent which is only displayed > at one position in the frame, I'd like that. > (e.g. on the right side of the menu, or there somewhere). > > P.S.: To be worthwhile, this feature would > need to work in X and -nw. Displaying it in the (unused) echo area should work on all platform if done correctly... -- Kim F. Storm http://www.cua.dk