From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: NS port horizontal scroll-bars Date: Tue, 26 Apr 2016 18:07:32 +0100 Message-ID: <20160426170732.GA14438@breton.local> References: <20160424160123.GA37657@breton.local> <20160425203420.GA37698@breton.local> <571F0C30.6080100@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1461690479 4414 80.91.229.3 (26 Apr 2016 17:07:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 17:07:59 +0000 (UTC) Cc: martin rudalics , Anders Lindgren , emacs-devel To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 26 19:07:47 2016 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 1av6Sg-0005GD-W0 for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2016 19:07:47 +0200 Original-Received: from localhost ([::1]:38870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av6Sf-0007gY-Mc for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2016 13:07:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av6SX-0007e3-BC for emacs-devel@gnu.org; Tue, 26 Apr 2016 13:07:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1av6SW-00047y-AP for emacs-devel@gnu.org; Tue, 26 Apr 2016 13:07:37 -0400 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:38509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av6SW-00047i-3P for emacs-devel@gnu.org; Tue, 26 Apr 2016 13:07:36 -0400 Original-Received: by mail-wm0-x22d.google.com with SMTP id u206so14914948wme.1 for ; Tue, 26 Apr 2016 10:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OmVMqy/5hdAtm0X49nOkBEicc7SXy5VrryxY0rcZR40=; b=cDmOtVcaGIhx4PSSGyU7wTuStbaUq4t5xm4TVBMZ0Qrf6v7M3qL2ESayoMlu57ULLT 6AHm64alNfXJ5H2F9xoC2uejzN/hL1KWTG8ZSBGMnAiSIMGyYTx9SGdqjCat5abVHmBv AYm9EgmIQnlDcbYKeugtKaNIHbyzxaYc0U2Q/ZrCKSaTDq1nvZ+uuC/8f31nR9hDGZyL lZLc2rVG1pLe9m0Ig2bG4a8gM85XqZX7g4Td4BRCLo4ChVFCaibOU1ve1gu6g1ib57ww d1XqlIWGVbcdDtTvbkPa8udUgNWmG03XEAjQlw7PZ/Qv5XX7rN4zMdjD/uAoUJtShDuT 4QnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=OmVMqy/5hdAtm0X49nOkBEicc7SXy5VrryxY0rcZR40=; b=F6JBI2302yFsZWiR9Xh1cKwgwSGdurA8M3X5gw7qgXB7H3EmgPfxt/R2tyIOP+SOCy jHUigDTQVlib5oC6Bz7j9cwxlb2cu43QUuWyqLAb9/ZTifgJL25doAplHruVOKxqDQ68 uH78+jm8DH0gLQfR1u1I37AVSqRO0fC+/rrp8EHgNz6VsjOZFwi53q2rCcDU00nx66cH EL3mAeuS8fX6tGFmjENum/miV67Bp/vWwppbK907HTXkXD7lqLdgODL7nErLSCB1dylb w+4ir95O52ASGjw/Kr5KnG1XDxwjkFxMEzuGqE3pgNvviMtmjLyHRcVzx/CfOfdtuplJ H69Q== X-Gm-Message-State: AOPr4FWh4Ms49mnnoOMoJsOqD4ylbMkebuRp9nk5pDbeQJyQauRPtacyosYtjkHMkIk/pA== X-Received: by 10.28.20.144 with SMTP id 138mr4983737wmu.103.1461690455473; Tue, 26 Apr 2016 10:07:35 -0700 (PDT) Original-Received: from breton.local (ip6-2001-08b0-03f8-8129-a511-f6e7-4418-5b6d.holly.idiocy.org. [2001:8b0:3f8:8129:a511:f6e7:4418:5b6d]) by smtp.gmail.com with ESMTPSA id a127sm4116661wmc.17.2016.04.26.10.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Apr 2016 10:07:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:203350 Archived-At: On Tue, Apr 26, 2016 at 08:27:35PM +0900, YAMAMOTO Mitsuharu wrote: > >>>>> On Tue, 26 Apr 2016 10:51:57 +0100, Alan Third said: > > > It's actually the other end of the process that I'm struggling > > with. I write pixel values for dragging the scroll-bar into an > > emacs_event struct (location of mouse in scroll-bar and total length > > of scroll-bar), and when that data pops back out in scroll-bar.el it > > doesn't seem to be any use to the standard scroll-bar functions. > > Ah, that reminds me of something. You can see how the Mac port > handles that (in the `work' branch based on Emacs 25.0.93 pretest). > That's cracked it! Thanks! I've now got the horizontal scroll bar working with the standard handler. > The Mac port (and its predecessors) has been using the standard > toolkit scroll bar handler in scroll-bar.el as it is, and there has > been no problem even in the old OS X versions having the directional > arrows. I'm none-the-wiser as to why the NS port is using a custom handler then. I've discovered that it's got a bug where scrolling an unselected window also scrolls the selected window if they're displaying the same buffer. I'm feeling inclined towards trying to get rid of the custom handler altogether. -- Alan Third