From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 'Strange' changes in status line Date: Thu, 28 Aug 2008 22:33:01 +0300 Message-ID: References: <48B4974D.1060809@alice.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1219952007 535 80.91.229.12 (28 Aug 2008 19:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 19:33:27 +0000 (UTC) Cc: emacs-devel@gnu.org, angelo.graziosi@alice.it To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 28 21:34:21 2008 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 1KYnG8-0007JQ-GI for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 21:34:21 +0200 Original-Received: from localhost ([127.0.0.1]:60898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYnF8-0007bs-8j for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 15:33:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYnF4-0007am-C8 for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:33:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYnF2-0007Zq-Iw for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:33:13 -0400 Original-Received: from [199.232.76.173] (port=47758 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYnF2-0007Zj-FO for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:33:12 -0400 Original-Received: from mtaout6.012.net.il ([84.95.2.16]:28116) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYnEv-00046b-Mq; Thu, 28 Aug 2008 15:33:06 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K6B0067RT00BBB0@i-mtaout6.012.net.il>; Thu, 28 Aug 2008 22:33:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) 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:103086 Archived-At: > From: Glenn Morris > Cc: emacs-devel@gnu.org, Eli Zaretskii > Date: Thu, 28 Aug 2008 02:00:51 -0400 > > Angelo Graziosi wrote: > > > In the status line, now I see 'Emacs' near the buffer name > > > > --:----Emacs foo.f90 59% .... > > > > Just a curiosity, Why this change and which usefulness? > > I believe it's an unintended consequence of this: > > 2008-08-25 Eli Zaretskii > > * bindings.el (mode-line-frame-control): New function, caters to > `pc' ``window system''. > (mode-line-frame-identification): Use it instead of > accessing window-system directly. > > > In X: > > emacs -Q > > C-h v mode-line-frame-identification > Its value is ("-%F ") > > M-: (mode-line-frame-control) > -> " " > > ie, the variable is being set at the wrong time. Does this change fix the problem on X? (I cannot try this on X right now, but I verified that it works on a tty, MS-Windows, and MS-DOS.) Index: lisp/bindings.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/bindings.el,v retrieving revision 1.211 diff -u -r1.211 bindings.el --- lisp/bindings.el 25 Aug 2008 21:50:55 -0000 1.211 +++ lisp/bindings.el 28 Aug 2008 19:30:19 -0000 @@ -219,8 +219,8 @@ (defun mode-line-frame-control () "Compute mode-line control for frame identification. Value is used for `mode-line-frame-identification', which see." - (if (or (null (window-system)) - (eq (window-system) 'pc)) + (if (or (null initial-window-system) + (eq initial-window-system 'pc)) "-%F " " "))