From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7307: 24.0.50; Mode line had more than just dashes removed Date: Sat, 30 Oct 2010 15:49:22 +0200 Message-ID: <83tyk36ba5.fsf@gnu.org> References: <871v78mwg3.fsf@escher.home> <831v786un1.fsf@gnu.org> <87wrozbykb.fsf@escher.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1288448004 7387 80.91.229.12 (30 Oct 2010 14:13:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Oct 2010 14:13:24 +0000 (UTC) Cc: 7307@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 30 16:13:20 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCCBL-0008MK-Vm for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 16:13:20 +0200 Original-Received: from localhost ([127.0.0.1]:44127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCCBL-0005ED-7A for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 10:13:19 -0400 Original-Received: from [140.186.70.92] (port=56627 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCCBF-0005Dq-4M for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 10:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCCBD-0000T0-SL for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 10:13:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCCBD-0000Sv-Ph for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 10:13:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCBkw-0005aA-9P; Sat, 30 Oct 2010 09:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Oct 2010 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7307-submit@debbugs.gnu.org id=B7307.128844635621452 (code B ref 7307); Sat, 30 Oct 2010 13:46:02 +0000 Original-Received: (at 7307) by debbugs.gnu.org; 30 Oct 2010 13:45:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCBkp-0005Zx-Ue for submit@debbugs.gnu.org; Sat, 30 Oct 2010 09:45:56 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCBkn-0005Zs-Au for 7307@debbugs.gnu.org; Sat, 30 Oct 2010 09:45:54 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LB300G00VOL1Y00@a-mtaout21.012.net.il> for 7307@debbugs.gnu.org; Sat, 30 Oct 2010 15:49:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.25.68]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LB300FXFVQ2NH90@a-mtaout21.012.net.il>; Sat, 30 Oct 2010 15:49:16 +0200 (IST) In-reply-to: <87wrozbykb.fsf@escher.home> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 30 Oct 2010 09:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41272 Archived-At: > From: Stephen Berman > Cc: 7307@debbugs.gnu.org > Date: Sat, 30 Oct 2010 15:27:32 +0200 > > On Sat, 30 Oct 2010 08:51:14 +0200 Eli Zaretskii wrote: > > >> From: Stephen Berman > >> Date: Sat, 30 Oct 2010 01:05:32 +0200 > >> Cc: > >> > >> The only problem is specifying the length of the > >> string: (window-width) as the maximum possible length fails here, > >> because the mode line is constructed before the window-system frame, and > >> has a value of just 10. So I just picked 200 as a plausible maximum. > >> Maybe there's a better way, but this seems to work ok. > > > > Would it help to use window-width as the maximum? > > ?? See above. Sorry, my bad. > Anyway, maybe it's less kludgy to introduce a mode line > %-construct for spaces. Here's a patch for that, which just adapts the > code for "%-". IMO, this is cleaner. Thanks.