unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: Not a regression, but shuld go into emacs-24
Date: Mon, 2 Jun 2014 17:50:49 +0200	[thread overview]
Message-ID: <66A6FA1C-3A31-4331-8421-50E5B012CB6F@swipnet.se> (raw)
In-Reply-To: <538C2250.1090805@gmx.at>

Hello.

2 jun 2014 kl. 09:05 skrev martin rudalics <rudalics@gmx.at>:

> So the term PORTION in x_send_scroll_bar_event seems semantically
> equivalent to the term POSITION in x_set_toolkit_scroll_bar_thumb and
> not to the term PORTION in x_set_toolkit_scroll_bar_thumb.  Is that
> interpretation correct?

Only for a jump scroll.  When dragging or scrolling by page, PORTION passed to x_send_scroll_bar_event is zero, as is WHOLE. 
For jump scroll, PORTION is the position of the scroll bar thumb that we jump to.
 
The values of PORTION in x_send_scroll_bar_event and x_set_toolkit_scroll_bar_thumb are different.  The first has values as defined by the scroll bar.  For Gtk+, Motif and Xaw this is a value between 0 or 1 and 10000000.

The values to x_set_toolkit_scroll_bar_thumb are in characters, i.e. show PORTION characters for the buffer, starting at character POSITION.  The buffer has a total of WHOLE characters.

	Jan D.




  reply	other threads:[~2014-06-02 15:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-01 10:43 Not a regression, but shuld go into emacs-24 Jan Djärv
2014-06-01 12:31 ` martin rudalics
2014-06-01 18:11   ` Jan Djärv
2014-06-02  7:05     ` martin rudalics
2014-06-02 15:50       ` Jan Djärv [this message]
2014-06-02 18:02         ` martin rudalics
2014-06-02 18:14           ` martin rudalics
2014-06-03  5:10           ` Jan Djärv
2014-06-03  7:23             ` martin rudalics
2014-06-03  7:47               ` Jan D.
2014-06-03  9:41                 ` martin rudalics
2014-06-03 10:13                   ` Jan D.
2014-06-03 12:40                     ` martin rudalics
2014-06-01 14:15 ` Stefan Monnier
2014-06-01 18:01   ` Jan Djärv

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=66A6FA1C-3A31-4331-8421-50E5B012CB6F@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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).