From: Miles Bader <miles@lsi.nec.co.jp>
Cc: "Jan D." <jan.h.d@swipnet.se>
Subject: Re: Emacs GTK scroll-bar flickering
Date: 19 Mar 2003 10:26:16 +0900 [thread overview]
Message-ID: <buo65qg87uv.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <5xr8942mg7.fsf@kfs2.cua.dk>
storm@cua.dk (Kim F. Storm) writes:
> Maybe the size of the thumb changes more often with emacs. IIRC,
> emacs calculates the thumb size based on the #(characters in the
> window) / #(characters in the file) ratio, so just dragging the
> cursor may change the size of the thumb.
>
> If GTK repaints the entire scroll bar when the thumb size changes,
> maybe that could explain the flicker.
I don't think that's it, or at least not entirely it, for several
reasons:
(1) If I create a file containing a large number of identical lines,
then scrolling in emacs shouldn't change the thumb size, as long as
I don't get near the end of the file. Nevertheless, dragging the
scrollbar in emacs flickers noticeably. My test file, BTW is 68
lines of the following:
alskdfjlaskdjfalskdjfalskfjlaskdfjalskfjdaskldfj
(2) Gedit's scrollbar doesn't flicker _at all_ when the thumb-size
changes. I tested this by taking the above file, copying a bunch
of lines from it, and then pasting into the end of the gedit
buffer, while carefully watching the scrollbar end-buttons (which
are one of the most obvious `flicker points' in emacs); the result
was that the thumb shrank quite bit with a few pastes, but the
scrollbar update was rock-stable, no flicker at all.
It could be, of course, that gedit has some sort of additional
graphic optimization to prevent flicker since it uses GTK for all
its display.
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
next prev parent reply other threads:[~2003-03-19 1:26 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 5:39 Emacs GTK scroll-bar flickering Miles Bader
2003-03-14 10:19 ` Kai Großjohann
2003-03-14 11:52 ` Andreas Schwab
2003-03-14 12:44 ` Kai Großjohann
2003-03-14 13:35 ` Miles Bader
2003-03-14 18:46 ` Jan D.
2003-03-14 20:04 ` Stefan Monnier
2003-03-14 20:35 ` Jan D.
2003-03-17 5:58 ` Miles Bader
2003-03-17 23:26 ` Jan D.
2003-03-18 1:33 ` Miles Bader
2003-03-18 5:39 ` Jan D.
2003-03-18 6:15 ` Miles Bader
2003-03-18 6:44 ` Luc Teirlinck
2003-03-18 6:54 ` Miles Bader
2003-03-18 7:05 ` Luc Teirlinck
2003-03-18 7:56 ` Miles Bader
2003-03-18 8:09 ` Miles Bader
2003-03-19 8:48 ` Richard Stallman
2003-03-18 22:15 ` Jan D.
2003-03-18 22:42 ` Kevin Rodgers
2003-03-19 6:05 ` Jan D.
2003-03-18 23:28 ` Miles Bader
2003-03-19 1:07 ` Kim F. Storm
2003-03-19 1:26 ` Miles Bader [this message]
2003-03-19 22:27 ` Jan D.
2003-03-20 1:19 ` Miles Bader
2003-03-21 19:06 ` Richard Stallman
2003-03-26 18:17 ` Jan D.
2003-03-27 1:22 ` Miles Bader
2003-03-27 6:54 ` Miles Bader
2003-03-27 22:12 ` Richard Stallman
2003-03-28 1:29 ` Miles Bader
2003-03-29 18:38 ` Richard Stallman
2003-03-27 18:06 ` Jan D.
2003-03-27 19:04 ` Richard Stallman
2003-03-20 8:45 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buo65qg87uv.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=jan.h.d@swipnet.se \
--cc=miles@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.