GNU bug report logs -
#4217
23.1; probable mode-line bug
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Thu, 20 Aug 2009 22:40:05 UTC
Severity: minor
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4217 in the body.
You can then email your comments to 4217 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4217
; Package
emacs
.
(Thu, 20 Aug 2009 22:40:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Barzilay <eli <at> barzilay.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 20 Aug 2009 22:40:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
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!
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4217
; Package
emacs
.
(Tue, 25 Aug 2009 03:15:05 GMT)
Full text and
rfc822 format available.
Message #8 received at 4217 <at> emacsbugs.donarmstrong.com (full text, mbox):
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
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 25 Aug 2009 03:35:05 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4217
; Package
emacs
.
(Tue, 25 Aug 2009 03:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Barzilay <eli <at> barzilay.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 25 Aug 2009 03:55:05 GMT)
Full text and
rfc822 format available.
Message #15 received at 4217 <at> emacsbugs.donarmstrong.com (full text, mbox):
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!
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4217
; Package
emacs
.
(Tue, 25 Aug 2009 17:15:05 GMT)
Full text and
rfc822 format available.
Message #18 received at 4217 <at> emacsbugs.donarmstrong.com (full text, mbox):
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.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4217
; Package
emacs
.
(Tue, 25 Aug 2009 17:35:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Barzilay <eli <at> barzilay.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 25 Aug 2009 17:35:04 GMT)
Full text and
rfc822 format available.
Message #23 received at 4217 <at> emacsbugs.donarmstrong.com (full text, mbox):
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!
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 26 Aug 2009 03:05:05 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eli Barzilay <eli <at> barzilay.org>
:
bug acknowledged by developer.
(Wed, 26 Aug 2009 03:05:05 GMT)
Full text and
rfc822 format available.
Message #28 received at 4217-done <at> emacsbugs.donarmstrong.com (full text, mbox):
>> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Wed, 23 Sep 2009 14:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.