From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#13979: NS: scroll-bar not draggable Date: Tue, 19 Mar 2013 19:47:40 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363718908 27200 80.91.229.3 (19 Mar 2013 18:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 18:48:28 +0000 (UTC) Cc: 13979@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 19:48:54 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UI1af-0003FX-OM for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 19:48:53 +0100 Original-Received: from localhost ([::1]:43446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI1aI-0000WM-Nj for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 14:48:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI1aB-0000T4-8q for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 14:48:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI1a9-0007Ey-MY for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 14:48:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI1a9-0007Ek-Ir for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 14:48:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UI1bl-0005Pb-QP for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 14:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Mar 2013 18:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13979-submit@debbugs.gnu.org id=B13979.136371896620754 (code B ref 13979); Tue, 19 Mar 2013 18:50:01 +0000 Original-Received: (at 13979) by debbugs.gnu.org; 19 Mar 2013 18:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:35999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI1bC-0005Oh-4W for submit@debbugs.gnu.org; Tue, 19 Mar 2013 14:49:26 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:35255) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI1b8-0005OW-Qp for 13979@debbugs.gnu.org; Tue, 19 Mar 2013 14:49:23 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id F3B4299A6 for <13979@debbugs.gnu.org>; Tue, 19 Mar 2013 19:47:39 +0100 (CET) Original-Received: (qmail 18345 invoked by uid 89); 19 Mar 2013 18:47:39 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 19 Mar 2013 18:47:39 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 9446C7FA06C; Tue, 19 Mar 2013 19:47:39 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72717 Archived-At: It does. Jan D. 19 mar 2013 kl. 13:41 skrev Stefan Monnier : >>>>>> Jan said: >> On OSX the event produced when clicking below the handle looks like: >> (down-mouse-1 (# vertical-scroll-bar (0 = . 428) 83281193 below-handle)) >> On Gtk3 it looks like: >> (mouse-1 (# vertical-scroll-bar (0 . 0) 0 = below-handle)) >=20 > So it seems that we need the patch below instead. Can you try it = (after > removing your earlier patch) and confirm that it also fixes the = problem? >=20 >=20 > Stefan >=20 >=20 > =3D=3D=3D modified file 'lisp/subr.el' > --- lisp/subr.el 2013-03-08 08:11:59 +0000 > +++ lisp/subr.el 2013-03-19 12:40:38 +0000 > @@ -1044,14 +1044,16 @@ > (nth 1 position)))) > (and (symbolp area) area))) >=20 > -(defsubst posn-point (position) > +(defun posn-point (position) > "Return the buffer location in POSITION. > POSITION should be a list of the form returned by the `event-start' > -and `event-end' functions." > +and `event-end' functions. > +Returns nil if POSITION does not correspond to any buffer location = (e.g. > +a click on a scroll bar)." > (or (nth 5 position) > - (if (consp (nth 1 position)) > - (car (nth 1 position)) > - (nth 1 position)))) > + (let ((pt (nth 1 position))) > + (or (car-safe pt) > + (if (integerp pt) pt))))) >=20 > (defun posn-set-point (position) > "Move point to POSITION. > @@ -1124,12 +1126,14 @@ > and `event-end' functions." > (nth 3 position)) >=20 > -(defsubst posn-string (position) > +(defun posn-string (position) > "Return the string object of POSITION. > Value is a cons (STRING . STRING-POS), or nil if not a string. > POSITION should be a list of the form returned by the `event-start' > and `event-end' functions." > - (nth 4 position)) > + (let ((x (nth 4 position))) > + ;; Apparently this can also be `handle' or `below-handle' = (bug#13979). > + (when (consp x) x))) >=20 > (defsubst posn-image (position) > "Return the image object of POSITION. >=20 >=20 >=20