From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Not a regression, but shuld go into emacs-24 Date: Mon, 02 Jun 2014 20:02:23 +0200 Message-ID: <538CBC2F.1050306@gmx.at> References: <538B03D4.6030502@swipnet.se> <538B1D0D.3010102@gmx.at> <538B6CC4.1060309@swipnet.se> <538C2250.1090805@gmx.at> <66A6FA1C-3A31-4331-8421-50E5B012CB6F@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401732184 8469 80.91.229.3 (2 Jun 2014 18:03:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 18:03:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 02 20:02:58 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrWZV-0006bf-WA for ged-emacs-devel@m.gmane.org; Mon, 02 Jun 2014 20:02:58 +0200 Original-Received: from localhost ([::1]:48569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrWZV-0002bx-9w for ged-emacs-devel@m.gmane.org; Mon, 02 Jun 2014 14:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrWZJ-0002Ne-KT for emacs-devel@gnu.org; Mon, 02 Jun 2014 14:02:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrWZB-0005qC-8I for emacs-devel@gnu.org; Mon, 02 Jun 2014 14:02:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:58233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrWZA-0005pU-Vj for emacs-devel@gnu.org; Mon, 02 Jun 2014 14:02:37 -0400 Original-Received: from [91.113.5.175] ([91.113.5.175]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Metpl-1XBdsa0IbR-00OZgV; Mon, 02 Jun 2014 20:02:29 +0200 In-Reply-To: <66A6FA1C-3A31-4331-8421-50E5B012CB6F@swipnet.se> X-Provags-ID: V03:K0:dUmsPhxKgoTXsg6nVOcCDimOwPuHWRG4XGNMaL5OGlMfVfvjb14 +GMnX9yYQlhfkAXlxbD3R0zI7XbmLsvFOk6m+1f5WXbvglbcXFb3iyuV80bqsIdVJMh3nq8 A7mAWmVBMGxeoMfhXPWKqiqpvplznVZFTV9WkmzYuBNJQ3PYEcv0ohhfbPVFXuYzl9OcbEh 3no05DFQVcaQ9ZUdo8wCw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172265 Archived-At: > 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