unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [21.1.50]: menu-bar-update-hook run multiple times on menu-ba r cl icks.
       [not found] <FC3DA3DC8D4AD311AB910020352A8FDC0BC62C4F@eagle.midas-kapiti.com>
@ 2002-03-17 10:04 ` Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2002-03-17 10:04 UTC (permalink / raw)
  Cc: gerd, emacs-devel

    However, I still see multiple runs of this code---that is the outer
    condition succeeds---even when scrolling.  My first guess was that is
    down to lazy fontification: as I scroll down the buffer, windowfuls are
    fontified and the buffer-modified-tick changes as text properties are
    placed on buffer text.  This problem bites both lazy lock and jit lock.

select-window sets windows_or_buffers_changed.  So does altering a
buffer other than the one displayed in the selected window.  That
might be the cause--is it?

The reason for the latter is to cause the other windows to be
redisplayed.  There is no need to cause recalculation of menu bars in
that situation.  So we could solve the problem by splitting
windows_or_buffers_changed.  We could add a variable
other_buffers_contents_changed, set that for changes in other buffers,
and it could have some but not all of the effects of setting
windows_or_buffers_changed.

select-window would need to set other_buffers_contents_changed
if the displayed buffer of the previous selected window had
been modified.

save-selected-window would need to restore windows_or_buffers_changed.
This would require some of the changes I suggested in a previous message.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-17 10:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <FC3DA3DC8D4AD311AB910020352A8FDC0BC62C4F@eagle.midas-kapiti.com>
2002-03-17 10:04 ` [21.1.50]: menu-bar-update-hook run multiple times on menu-ba r cl icks Richard Stallman

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).