From: martin rudalics <rudalics@gmx.at>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Not a regression, but shuld go into emacs-24
Date: Mon, 02 Jun 2014 20:02:23 +0200 [thread overview]
Message-ID: <538CBC2F.1050306@gmx.at> (raw)
In-Reply-To: <66A6FA1C-3A31-4331-8421-50E5B012CB6F@swipnet.se>
> Only for a jump scroll. When dragging or scrolling by page, PORTION
> passed to x_send_scroll_bar_event is zero, as is WHOLE.
IIUC in XmCR_DRAG we set PORTION to 'cs->value', in xg_scroll_callback
we set PORTION to 'position' and in xaw_scroll_callback we explicitly
pass 'position' as PORTION argument. So in all three cases we pass a
position. And IIUC we pass zero for PORTION and WHOLE iff when we end
scrolling (when the user releases the slider).
> For jump scroll, PORTION is the position of the scroll bar thumb that we jump to.
I didn't look into jump scroll so far. But what you say here indicates
that jump scroll also passes a position via the PORTION argument.
> 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.
Yes (in my experience Gtk+ can handle WHOLE directly as is).
> 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.
But the values passed to x_send_scroll_bar_event are in characters too
(and the value of WHOLE is supposed to be the same as when setting the
thumb). Or am I missing something?
martin
next prev parent reply other threads:[~2014-06-02 18:02 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
2014-06-02 18:02 ` martin rudalics [this message]
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=538CBC2F.1050306@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/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).