From eli@barzilay.org Thu Aug 20 15:31:05 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2009 22:31:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7KMV4h0007714 for ; Thu, 20 Aug 2009 15:31:05 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeG9v-00070X-Up for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:31:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeG9q-0006zi-AF for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:31:02 -0400 Received: from [199.232.76.173] (port=60388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeG9q-0006zf-4J for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:30:58 -0400 Received: from mx20.gnu.org ([199.232.41.8]:6068) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeG9p-0001sr-NH for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:30:57 -0400 Received: from winooski.ccs.neu.edu ([129.10.115.117] helo=barzilay.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeG9o-00059h-0j for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:30:56 -0400 Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1MeG9n-0002SM-1l for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 18:30:55 -0400 From: Eli Barzilay To: bug-gnu-emacs@gnu.org Subject: 23.1; probable mode-line bug Message-Id: Date: Thu, 20 Aug 2009 18:30:55 -0400 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) In this bit in "bindings.el" from the code that sets the modeline format: `(which-func-mode ("" which-func-format ,dashes)) `(global-mode-string (,dashes global-mode-string)) it looks like there is a typo, and the first line should also have the dashes before the format string. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From rgm@gnu.org Mon Aug 24 20:08:45 2009 Received: (at 4217) by emacsbugs.donarmstrong.com; 25 Aug 2009 03:08:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.9 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7P38hOs003495 for <4217@emacsbugs.donarmstrong.com>; Mon, 24 Aug 2009 20:08:44 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MfmOo-00062E-Pv; Mon, 24 Aug 2009 23:08:42 -0400 From: Glenn Morris To: Eli Barzilay Cc: 4217@debbugs.gnu.org Subject: Re: bug#4217: 23.1; probable mode-line bug References: X-Spook: Albanian domestic disruption global anthrax Israel Ft. X-Ran: YhTKvQ\yegZTv6@a=Bs9D!!5b!u'tMw0Y'?9*b5pu6GZXS7e5>-7qAq~&URi7\!>0h4Rx. X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 24 Aug 2009 23:08:42 -0400 In-Reply-To: (Eli Barzilay's message of "Thu, 20 Aug 2009 18:30:55 -0400") Message-ID: <77my5o8u9x.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Barzilay wrote: > In this bit in "bindings.el" from the code that sets the modeline > format: > > `(which-func-mode ("" which-func-format ,dashes)) > `(global-mode-string (,dashes global-mode-string)) > > it looks like there is a typo, and the first line should also have the > dashes before the format string. The following makes more sense to me. OK? *************** *** 356,362 **** (propertize " " 'help-echo help-echo) 'mode-line-modes `(which-func-mode ("" which-func-format ,dashes)) ! `(global-mode-string (,dashes global-mode-string)) (propertize "-%-" 'help-echo help-echo))) (standard-mode-line-modes (list --- 364,370 ---- (propertize " " 'help-echo help-echo) 'mode-line-modes `(which-func-mode ("" which-func-format ,dashes)) ! `(global-mode-string ("" global-mode-string ,dashes)) (propertize "-%-" 'help-echo help-echo))) (standard-mode-line-modes (list From rgm@gnu.org Mon Aug 24 20:27:18 2009 Received: (at control) by emacsbugs.donarmstrong.com; 25 Aug 2009 03:27:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7P3RHRq006800 for ; Mon, 24 Aug 2009 20:27:18 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mfmgm-0006N0-Jo; Mon, 24 Aug 2009 23:27:16 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19091.23060.534128.198218@fencepost.gnu.org> Date: Mon, 24 Aug 2009 23:27:16 -0400 From: Glenn Morris To: control Subject: control merge 4042 4226 reassign 4042 emacs,w32 severity 4217 minor close 4164 From eli@barzilay.org Mon Aug 24 20:47:57 2009 Received: (at 4217) by emacsbugs.donarmstrong.com; 25 Aug 2009 03:47:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from barzilay.org (winooski.ccs.neu.edu [129.10.115.117]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7P3luPp010753 for <4217@emacsbugs.donarmstrong.com>; Mon, 24 Aug 2009 20:47:57 -0700 Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1Mfn0l-0000mi-CV; Mon, 24 Aug 2009 23:47:55 -0400 From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19091.24299.377086.91288@winooski.ccs.neu.edu> Date: Mon, 24 Aug 2009 23:47:55 -0400 To: Glenn Morris Cc: 4217@debbugs.gnu.org Subject: Re: bug#4217: 23.1; probable mode-line bug In-Reply-To: <77my5o8u9x.fsf@fencepost.gnu.org> References: <77my5o8u9x.fsf@fencepost.gnu.org> X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-unknown-linux-gnu) On Aug 24, Glenn Morris wrote: > Eli Barzilay wrote: > > > In this bit in "bindings.el" from the code that sets the modeline > > format: > > > > `(which-func-mode ("" which-func-format ,dashes)) > > `(global-mode-string (,dashes global-mode-string)) > > > > it looks like there is a typo, and the first line should also have the > > dashes before the format string. > > The following makes more sense to me. OK? I thought that having them at the front makes more sense -- due to the following "-%-". > *************** > *** 356,362 **** > (propertize " " 'help-echo help-echo) > 'mode-line-modes > `(which-func-mode ("" which-func-format ,dashes)) > ! `(global-mode-string (,dashes global-mode-string)) > (propertize "-%-" 'help-echo help-echo))) > (standard-mode-line-modes > (list > --- 364,370 ---- > (propertize " " 'help-echo help-echo) > 'mode-line-modes > `(which-func-mode ("" which-func-format ,dashes)) > ! `(global-mode-string ("" global-mode-string ,dashes)) > (propertize "-%-" 'help-echo help-echo))) > (standard-mode-line-modes > (list -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From rgm@gnu.org Tue Aug 25 10:08:25 2009 Received: (at 4217) by emacsbugs.donarmstrong.com; 25 Aug 2009 17:08:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.9 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7PH8O41028973 for <4217@emacsbugs.donarmstrong.com>; Tue, 25 Aug 2009 10:08:25 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MfzVP-0000Qr-Hp; Tue, 25 Aug 2009 13:08:23 -0400 From: Glenn Morris To: Eli Barzilay Cc: 4217@debbugs.gnu.org Subject: Re: bug#4217: 23.1; probable mode-line bug References: <77my5o8u9x.fsf@fencepost.gnu.org> <19091.24299.377086.91288@winooski.ccs.neu.edu> X-Spook: AMW domestic disruption UFO Belknap TELINT Rule Psix X-Ran: 0\2)o&\xW`oge37vGm:Cl<`Rx5LPL?v*jwl/c%_\jCmJW|~m}o!GJ)$dV&{_9$d%WPs=CJ X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 25 Aug 2009 13:08:23 -0400 In-Reply-To: <19091.24299.377086.91288@winooski.ccs.neu.edu> (Eli Barzilay's message of "Mon, 24 Aug 2009 23:47:55 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Eli Barzilay wrote: > I thought that having them at the front makes more sense -- due to the > following "-%-". I assumed the actual problem you wanted to report was that in: emacs -Q -f which-func-mode --eval '(setq global-mode-string "foo")' lisp/startup.el there are 4 "-" characters between which-func's '[...]' and the global-mode-string. Since mode-line-modes already ends in "--", moving the dashes to the front of which-func will just shift the 4 "-" around rather than reducing them to 2. Although the "--" at the end of the global-mode-string entry are not necessary (being followed by -%-), I think it makes sense to have all the entries be the same, so that entries can be removed/added/reordered easily. From eli@barzilay.org Tue Aug 25 10:29:08 2009 Received: (at 4217) by emacsbugs.donarmstrong.com; 25 Aug 2009 17:29:08 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from barzilay.org (winooski.ccs.neu.edu [129.10.115.117]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7PHT7i4031932 for <4217@emacsbugs.donarmstrong.com>; Tue, 25 Aug 2009 10:29:08 -0700 Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1MfzpS-00039C-Jt; Tue, 25 Aug 2009 13:29:06 -0400 From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19092.8034.606896.137201@winooski.ccs.neu.edu> Date: Tue, 25 Aug 2009 13:29:06 -0400 To: Glenn Morris Cc: 4217@debbugs.gnu.org Subject: Re: bug#4217: 23.1; probable mode-line bug In-Reply-To: References: <77my5o8u9x.fsf@fencepost.gnu.org> <19091.24299.377086.91288@winooski.ccs.neu.edu> X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-unknown-linux-gnu) On Aug 25, Glenn Morris wrote: > Eli Barzilay wrote: > > > I thought that having them at the front makes more sense -- due to the > > following "-%-". > > I assumed the actual problem you wanted to report was that in: > > emacs -Q -f which-func-mode --eval '(setq global-mode-string "foo")' lisp/startup.el > > there are 4 "-" characters between which-func's '[...]' and the > global-mode-string. Yes, that's the result of the bad placement of dashes. > Since mode-line-modes already ends in "--", moving the dashes to the > front of which-func will just shift the 4 "-" around rather than > reducing them to 2. I missed this, mostly because I just looked at the code that *looked* like it has a problem. Anyway, in this case the obvious solution is to remove the last two dashes from `mode-line-modes'. This means that the relevant code: (propertize " " 'help-echo help-echo) 'mode-line-modes `(which-func-mode ("" which-func-format ,dashes)) `(global-mode-string (,dashes global-mode-string)) (propertize "-%-" 'help-echo help-echo) works fine in all cases. > Although the "--" at the end of the global-mode-string entry are not > necessary (being followed by -%-), I think it makes sense to have > all the entries be the same, so that entries can be > removed/added/reordered easily. Yes, having all entries be the same is definitely the answer -- but this should apply to everything except for the first or the last in the chain (depending on using the dashes before/after), and moving the dashes to the front and making `mode-line-modes' not end with dashes seems to me as a better choice. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From rgm@gnu.org Tue Aug 25 19:59:35 2009 Received: (at 4217-done) by emacsbugs.donarmstrong.com; 26 Aug 2009 02:59:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.8 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7Q2xYXa001522 for <4217-done@emacsbugs.donarmstrong.com>; Tue, 25 Aug 2009 19:59:35 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mg8jW-0004Nz-4v; Tue, 25 Aug 2009 22:59:34 -0400 From: Glenn Morris To: 4217-done@debbugs.gnu.org Subject: Re: bug#4217: 23.1; probable mode-line bug References: <77my5o8u9x.fsf@fencepost.gnu.org> <19091.24299.377086.91288@winooski.ccs.neu.edu> <19092.8034.606896.137201@winooski.ccs.neu.edu> X-Spook: White House MD4 JUWTF Soviet Kh-11 Yukon clandestine X-Ran: sgsG,HAHUc`iV17?fA"R+yhX,}/*}7.A\PKk|"+&w#kkF!XH$sz%H^ahg_v>Np_=32r'>m X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 25 Aug 2009 22:59:34 -0400 Message-ID: <7py6p7uvop.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Although the "--" at the end of the global-mode-string entry are not >> necessary (being followed by -%-), I think it makes sense to have >> all the entries be the same, so that entries can be >> removed/added/reordered easily. This still makes sense to me, so that's what I installed. The appearance of the end result is the same. From unknown Sat Sep 20 05:16:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 23 Sep 2009 14:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator