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 08:51:14 +0200 Message-ID: <831v786un1.fsf@gnu.org> References: <871v78mwg3.fsf@escher.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1288422806 18657 80.91.229.12 (30 Oct 2010 07:13:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Oct 2010 07:13:26 +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 09:13:21 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 1PC5cu-0007Jz-P6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 09:13:21 +0200 Original-Received: from localhost ([127.0.0.1]:60906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PC5ct-0001N6-Eb for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 03:13:19 -0400 Original-Received: from [140.186.70.92] (port=58737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PC5cm-0001Lf-3D for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 03:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PC5cl-0005sH-4E for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 03:13:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PC5cl-0005sD-1R for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2010 03:13:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PC5DS-00028F-Ep; Sat, 30 Oct 2010 02:47: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 06:47: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.12884212188188 (code B ref 7307); Sat, 30 Oct 2010 06:47:02 +0000 Original-Received: (at 7307) by debbugs.gnu.org; 30 Oct 2010 06:46:58 +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 1PC5DO-000280-2s for submit@debbugs.gnu.org; Sat, 30 Oct 2010 02:46:58 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PC5DL-00027r-HH for 7307@debbugs.gnu.org; Sat, 30 Oct 2010 02:46:56 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LB300800C5FPY00@a-mtaout20.012.net.il> for 7307@debbugs.gnu.org; Sat, 30 Oct 2010 08:51:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.229.202]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LB3008IICD7DV60@a-mtaout20.012.net.il>; Sat, 30 Oct 2010 08:51:08 +0200 (IST) In-reply-to: <871v78mwg3.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 02:47: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:41264 Archived-At: > 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?