From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#7307: 24.0.50; Mode line had more than just dashes removed Date: Sat, 30 Oct 2010 01:05:32 +0200 Message-ID: <871v78mwg3.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288394003 1009 80.91.229.12 (29 Oct 2010 23:13:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 23:13:23 +0000 (UTC) To: 7307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 30 01:13:22 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 1PBy8N-000191-Kg for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Oct 2010 01:13:20 +0200 Original-Received: from localhost ([127.0.0.1]:52926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBy8M-0007Os-I0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Oct 2010 19:13:18 -0400 Original-Received: from [140.186.70.92] (port=37250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBy8G-0007OB-2M for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:13:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBy8E-0001re-PM for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:13:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBy8E-0001rN-MY for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:13:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PBxxS-0007ii-8u; Fri, 29 Oct 2010 19:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Oct 2010 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128839327629665 (code B ref -1); Fri, 29 Oct 2010 23:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2010 23:01:16 +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 1PBxwh-0007iQ-Ii for submit@debbugs.gnu.org; Fri, 29 Oct 2010 19:01:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBxwf-0007iK-B4 for submit@debbugs.gnu.org; Fri, 29 Oct 2010 19:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBy0j-000156-KP for submit@debbugs.gnu.org; Fri, 29 Oct 2010 19:05:26 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:55291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBy0j-000152-IE for submit@debbugs.gnu.org; Fri, 29 Oct 2010 19:05:25 -0400 Original-Received: from [140.186.70.92] (port=36345 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBy0e-0005fD-Tf for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:05:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBy0Z-00012q-09 for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:05:20 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:59370 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PBy0Y-00012O-L7 for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 19:05:14 -0400 Original-Received: (qmail invoked by alias); 29 Oct 2010 23:05:11 -0000 Original-Received: from i59F54DC5.versanet.de (EHLO escher.home) [89.245.77.197] by mail.gmx.net (mp065) with SMTP; 30 Oct 2010 01:05:11 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/h0S9RcpbhXQACIuy5a1VtQPeB7dbBgRQBtoh8Qm 8E87HEuGIREhlX Original-Received: by escher.home (Postfix, from userid 1000) id E4EFC103B9; Sat, 30 Oct 2010 01:05:32 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 29 Oct 2010 19:02: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:41258 Archived-At: This change: 2010-10-18 Julien Danjou * bindings.el: Remove end dashes in default mode-line-format. not only removed the dashes at the end of the mode line, but also the help string in a tool tip together with the altered mouse pointer, which serves as a visual cue that the mode line is draggable (with vertically split windows). I think these help indicators should be restored. Unfortunately, there is no mode line construct that inserts spaces to the end of the window like "%-" inserts dashed. So I tried make-string and it seems to DTRT. 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. *** /home/steve/bzr/emacs/trunk/lisp/bindings.el 2010-10-24 13:56:16.000000000 +0200 --- /home/steve/bzr/emacs/quickfixes/lisp/bindings.el 2010-10-30 00:39:06.000000000 +0200 *************** *** 336,342 **** 'mode-line-modes `(which-func-mode ("" which-func-format ,spaces)) `(global-mode-string ("" global-mode-string ,spaces)) ! `(:eval (unless (display-graphic-p) ,(propertize "-%-" 'help-echo help-echo))))) (standard-mode-line-modes (list --- 336,343 ---- 'mode-line-modes `(which-func-mode ("" which-func-format ,spaces)) `(global-mode-string ("" global-mode-string ,spaces)) ! `(:eval (if (display-graphic-p) ! ,(propertize (make-string 200 32) 'help-echo help-echo) ,(propertize "-%-" 'help-echo help-echo))))) (standard-mode-line-modes (list