From: "Jan D." <jan.h.d@swipnet.se>
Cc: "'emacs-devel@gnu.org'" <emacs-devel@gnu.org>
Subject: Re: Old redisplay bug in xdisp.c, question about change
Date: Tue, 25 Mar 2003 20:35:33 +0100 (CET) [thread overview]
Message-ID: <20030325193746.ZGJI3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> (raw)
In-Reply-To: <FC3DA3DC8D4AD311AB910020352A8FDC107552FD@eagle.midas-kapiti.com> "from Marshall, Simon at Mar 25, 2003 02:44:54 pm"
> This particular change was part of a group of changes made to prevent or
> reduce multiple unnecessary runs of menu-bar-update-hook on things like
> scrolls, tooltips, mouse-1 with mouse-sel-mode, C-s, C-x 2 or menu-bar
> clicks. (The performance impact is so bad that I use 21.1.90 + these
> changes for all my editing, rather than 21.2 or 21.3 which do not have
> them.) The second part of this particular change made the code match
> the comment; at the time Gerd said this code dated from at least 1994.
>
> It would be a shame if this change was simply reverted as the particular
> problem (multiple unnecessary runs of menu-bar-update-hook on scroll)
> will presumably resurface. Does the fact that you don't always see a
> redisplay problem suggest that the bug lies elsewhere?
It the if-statement in update_tool_bar that is entered if w->update_mode_line
is Qt:
/* If the user has switched buffers or windows, we need to
recompute to reflect the new bindings. But we'll
recompute when update_mode_lines is set too; that means
that people can use force-mode-line-update to request
that the menu bar be recomputed. The adverse effect on
the rest of the redisplay algorithm is about the same as
windows_or_buffers_changed anyway. */
if (windows_or_buffers_changed
|| !NILP (w->update_mode_line)
|| ((BUF_SAVE_MODIFF (XBUFFER (w->buffer))
< BUF_MODIFF (XBUFFER (w->buffer)))
!= !NILP (w->last_had_star))
|| ((!NILP (Vtransient_mark_mode)
&& !NILP (XBUFFER (w->buffer)->mark_active))
!= !NILP (w->region_showing)))
{
The other parts are false, but I really don't know what they all mean.
windows_or_buffers_changed is 0 when I switch Info nodes. In effect,
the buffer or the window has not changed, but its contents, active
and inactive menu and tool bar items have.
Jan D.
next prev parent reply other threads:[~2003-03-25 19:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 14:44 Old redisplay bug in xdisp.c, question about change Marshall, Simon
2003-03-25 19:35 ` Jan D. [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-23 22:01 Jan D.
2003-03-24 19:27 ` Richard Stallman
2003-03-25 19:23 ` Jan D.
2003-03-27 3:30 ` Richard Stallman
2003-03-27 17:40 ` Jan D.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030325193746.ZGJI3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).