* What make the modeline update the major mode entry?
@ 2010-03-27 2:27 Lennart Borgman
2010-03-27 6:33 ` Drew Adams
2010-03-28 16:44 ` Davis Herring
0 siblings, 2 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-03-27 2:27 UTC (permalink / raw)
To: Emacs-Devel devel
Can someone please tell me what makes Emacs update the major mode
entry in the modeline?
I am seeing a strange thing in nXhtml where this is updated when I
change the buffer with one command, but not with another.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: What make the modeline update the major mode entry?
2010-03-27 2:27 What make the modeline update the major mode entry? Lennart Borgman
@ 2010-03-27 6:33 ` Drew Adams
2010-03-27 6:46 ` Drew Adams
2010-03-28 16:44 ` Davis Herring
1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2010-03-27 6:33 UTC (permalink / raw)
To: 'Lennart Borgman', 'Emacs-Devel devel'
> Can someone please tell me what makes Emacs update the major mode
> entry in the modeline?
grep for `mode-line-buffer-identification' in the Lisp source code. You'll see
plenty of hits like `dired-mode' and `info.el' - places where the variable is
set.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: What make the modeline update the major mode entry?
2010-03-27 6:33 ` Drew Adams
@ 2010-03-27 6:46 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2010-03-27 6:46 UTC (permalink / raw)
To: 'Lennart Borgman', 'Emacs-Devel devel'
> > Can someone please tell me what makes Emacs update the major mode
> > entry in the modeline?
>
> grep for `mode-line-buffer-identification' in the Lisp source
> code. You'll see plenty of hits like `dired-mode' and `info.el'
> - places where the variable is set.
Those locations set the format, but they do not update the display.
Depending on what you meant, you might also want to look for `mode_line_format'
and `display_mode_line' in `xdisp.c'. That seems to be where the actual
displaying takes place.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What make the modeline update the major mode entry?
2010-03-27 2:27 What make the modeline update the major mode entry? Lennart Borgman
2010-03-27 6:33 ` Drew Adams
@ 2010-03-28 16:44 ` Davis Herring
1 sibling, 0 replies; 4+ messages in thread
From: Davis Herring @ 2010-03-28 16:44 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel
> Can someone please tell me what makes Emacs update the major mode
> entry in the modeline?
I fear it's too simple an answer, but does `force-mode-line-update'
(and/or its implementation) help?
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-28 16:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-27 2:27 What make the modeline update the major mode entry? Lennart Borgman
2010-03-27 6:33 ` Drew Adams
2010-03-27 6:46 ` Drew Adams
2010-03-28 16:44 ` Davis Herring
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).