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: 24.3.50; NS: scroll-bar not draggable Date: Sun, 17 Mar 2013 12:02:57 +0100 Message-ID: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363518219 461 80.91.229.3 (17 Mar 2013 11:03:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Mar 2013 11:03:39 +0000 (UTC) Cc: 13979@debbugs.gnu.org, Darren Hoo To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 17 12:04:04 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 1UHBNi-0001hc-UH for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 12:04:03 +0100 Original-Received: from localhost ([::1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHBNM-00011o-3c for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Mar 2013 07:03:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHBNI-00011j-Oz for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2013 07:03:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHBNH-0001AL-J4 for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2013 07:03:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHBNH-0001AH-Fc for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2013 07:03:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UHBOg-0000G3-Iv for bug-gnu-emacs@gnu.org; Sun, 17 Mar 2013 07:05:02 -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: Sun, 17 Mar 2013 11:05:02 +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.1363518277931 (code B ref 13979); Sun, 17 Mar 2013 11:05:02 +0000 Original-Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 11:04:37 +0000 Original-Received: from localhost ([127.0.0.1]:58600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHBOG-0000Ew-Rf for submit@debbugs.gnu.org; Sun, 17 Mar 2013 07:04:37 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:59348) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHBOD-0000EZ-0x for 13979@debbugs.gnu.org; Sun, 17 Mar 2013 07:04:35 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id AEF6D9CAC for <13979@debbugs.gnu.org>; Sun, 17 Mar 2013 12:02:58 +0100 (CET) Original-Received: (qmail 1066 invoked by uid 89); 17 Mar 2013 10:02:54 -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; 17 Mar 2013 10:02:54 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 5C1597FA06C; Sun, 17 Mar 2013 12:02:58 +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:72627 Archived-At: Hello. 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)) Gtk does not have y or timestamp, but that hardly matters. If I remove modifier down, so NS also produces mouse-1, I get: is undefined. If I bind that to ns-handle-scroll-bar-event, everything works OK. Which code has changed to care about mouse-1 versus down-mouse-1? As I said, this problem does not exist on 24.3. Jan D. 17 mar 2013 kl. 10:45 skrev Jan Dj=E4rv : > Hello. >=20 > 17 mar 2013 kl. 03:43 skrev Stefan Monnier : >=20 >>> turn on scroll-bar mode >>> (scroll-bar-mode t) >>=20 >> They're on by default, aren't they? >>=20 >>> then open a file and drag the scroll bar, it shows: >>> `mouse-on-link-p: Wrong type argument: listp, handle' >>> the stacktrace: >>> Debugger entered--Lisp error: (wrong-type-argument listp handle) >>> mouse-posn-property((# >>> vertical-scroll-bar (4 . 428) 95079520 handle) follow-link) >>=20 >> I can't reproduce it here on GNU/Linux. I'm not sure if the format = of >> the posn object quoted above is correct, but can you try the patch >> below (which is either a fix, or a workaround)? >>=20 >=20 > It may be a NS-specific error. I can reproduce it on OSX. Emacs-24.3 = works fine though, so I assume there has been some change in common = code, and that the NS code was not adjusted. >=20 >>> Also with scroll-bar turned on, horizontally splitted windows can = not be >>> resized by dragging. >>=20 >> I can't reproduce the problem here, either. >>=20 >=20 > I can on OSX. > The patch below only changes the error message to >=20 > mouse-posn-property: Wrong type argument: integer-or-marker-p, = vertical-scroll-bar >=20 > Jan D. >=20 >>=20 >> Stefan >>=20 >>=20 >> =3D=3D=3D modified file 'lisp/mouse.el' >> --- lisp/mouse.el 2013-03-09 17:14:24 +0000 >> +++ lisp/mouse.el 2013-03-17 02:39:03 +0000 >> @@ -709,7 +713,7 @@ >> (if (consp pos) >> (let ((w (posn-window pos)) (pt (posn-point pos)) >> (str (posn-string pos))) >> - (or (and str >> + (or (and (consp str) >> (get-text-property (cdr str) property (car str))) >> (and pt >> (get-char-property pt property w)))) >>=20 >>=20 >=20