unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "grischka" <grishka@gmx.de>
To: "Miles Bader" <miles@gnu.org>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Scrollbar thumbs
Date: Tue, 3 Nov 2009 01:48:49 +0100	[thread overview]
Message-ID: <03A2EC54153A4BB1AAE5AF2D2E2B7264@editkapc> (raw)
In-Reply-To: <buofx8xuq7x.fsf@dhlpc061.dev.necel.com>

>> I guess it is just that these GUI toolkit people usually are trained to
>> deliver good looking and pixel-precise artwork and in consequence might
>> have some difficulties to imagine how it can be "pretty much impossibe"
>> for some editor to know how many lines it is actually displaying (or
>> anyway that such editor would still want to use their scrollbars).
> 
> Emacs _does_ know how many lines it's displaying.
> 
> What it doesn't know is how many lines are in the entire file, or more
> precisely, the "height" of the entire file as rendered, which
> essentially requires rendering the _entire thing_ (it can't be
> calculated from logical number of lines because it depends on the exact
> characters rendered).  That's a pretty nasty requirement for a non-toy
> editor...

The simple rule is:  First do it right, then do it fast.  Try to make
it work for small files and then you can still think about how to get
equally good results with larger ones.

--- grischka





  reply	other threads:[~2009-11-03  0:48 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02 10:41 Scrollbar thumbs (was: Customizing the mode line) grischka
2009-11-02 11:21 ` Scrollbar thumbs Miles Bader
2009-11-03  0:48   ` grischka [this message]
2009-11-03  9:27     ` David Kastrup
2009-11-04  0:09     ` Miles Bader
2009-11-04  9:51       ` grischka
2009-11-04 11:18         ` joakim
2009-11-04 19:29           ` Jan Djärv
2009-11-04 20:57             ` Stefan Monnier
2009-11-05  1:18               ` YAMAMOTO Mitsuharu
2009-11-09 23:14                 ` YAMAMOTO Mitsuharu
2009-11-05  9:23               ` Jan D.
2009-11-05 13:59                 ` Stefan Monnier
2009-11-05 15:16               ` grischka
2009-11-05 15:32                 ` Lennart Borgman
2009-11-05 15:35                 ` Óscar Fuentes
2009-11-05 16:07                 ` David Kastrup
2009-11-05 23:55                   ` Jason Rumney
2009-11-06  0:31                     ` Miles Bader
2009-11-06  3:10                     ` Stephen J. Turnbull
2009-11-06  4:37                       ` Miles Bader
2009-11-06  8:42                     ` David Kastrup
2009-11-06  8:55                     ` Eli Zaretskii
2009-11-02 14:15 ` Stefan Monnier
2009-11-03  0:32   ` grischka
2009-11-03  1:18     ` Stefan Monnier
2009-11-03  5:37       ` grischka
2009-11-03 13:38         ` Stefan Monnier
2009-11-03 21:10           ` grischka
2009-11-03 23:00             ` Stefan Monnier
2009-11-03 10:02   ` joakim
2009-11-05  9:21     ` Jan D.
  -- strict thread matches above, loose matches on Subject: below --
2009-11-07 11:50 grischka
2009-11-07 16:38 ` Óscar Fuentes
2009-11-07 17:47   ` David De La Harpe Golden
2009-11-03 16:36 grischka
2009-11-03 17:13 ` David Kastrup
2009-10-30 11:18 Customizing the mode line Eli Zaretskii
2009-10-30 13:38 ` Stefan Monnier
2009-10-31  6:09   ` Manoj Srivastava
2009-10-31 20:38     ` Scrollbar thumbs (was: Customizing the mode line) Stefan Monnier
2009-11-01  3:11       ` Scrollbar thumbs Miles Bader
2009-11-02  6:55         ` Stefan Monnier
2009-11-02  7:41           ` Jason Rumney
2009-11-02 14:10             ` Stefan Monnier

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=03A2EC54153A4BB1AAE5AF2D2E2B7264@editkapc \
    --to=grishka@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).