From unknown Mon Jun 23 00:32:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13979 <13979@debbugs.gnu.org> To: bug#13979 <13979@debbugs.gnu.org> Subject: Status: 24.3.50; NS: scroll-bar not draggable Reply-To: bug#13979 <13979@debbugs.gnu.org> Date: Mon, 23 Jun 2025 07:32:12 +0000 retitle 13979 24.3.50; NS: scroll-bar not draggable reassign 13979 emacs submitter 13979 Darren Hoo severity 13979 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 16 15:39:03 2013 Received: (at submit) by debbugs.gnu.org; 16 Mar 2013 19:39:03 +0000 Received: from localhost ([127.0.0.1]:58126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGwwY-00071m-9t for submit@debbugs.gnu.org; Sat, 16 Mar 2013 15:39:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49521) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGwwW-00071J-Gu for submit@debbugs.gnu.org; Sat, 16 Mar 2013 15:39:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGwv4-00073S-8d for submit@debbugs.gnu.org; Sat, 16 Mar 2013 15:37:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:40426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGwv4-00073N-5O for submit@debbugs.gnu.org; Sat, 16 Mar 2013 15:37:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGwv1-0006C2-Qz for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2013 15:37:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGwuy-00072V-Nu for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2013 15:37:27 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:37162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGwuy-00072F-Hq for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2013 15:37:24 -0400 Received: by mail-wg0-f46.google.com with SMTP id fg15so3927254wgb.25 for ; Sat, 16 Mar 2013 12:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=sX/bEz7/+WmN/VQSdYnHX6CzZB/MfB4R0OO9T3A3LaI=; b=ZT+f195QKgjHkYZizd7hCKN4xYmlrREJwI7OmvuW7sNeS5xgRtYGR2B+MJjeGgbZyz WKf+IUxdGYOF8k+q7z51NyBZLBH+GsBBKbx/PrFkLyGs9ar0EVqHkJM87ZPEYetwAu5L YR2WP4kCKRpEL3+omcgcwR6eG6406OFFrC7Au7JEh9XaZ6Nz/P69i9J6NuPLHVMUZZzp thYpotYjkNDEIq3DAPMooXWElmV312U0CrvMM7GrQhpbD4SNWYhkjPrEVkaiaqoxUP3V oWJxoVcoEjhe6hEMrvk1YGeBsYMUFwFwOYNPAlSVasJAbU5rHBKkK9+ts8WdXRCOSoE7 ZF3Q== MIME-Version: 1.0 X-Received: by 10.180.12.33 with SMTP id v1mr9117685wib.24.1363462643345; Sat, 16 Mar 2013 12:37:23 -0700 (PDT) Received: by 10.194.123.197 with HTTP; Sat, 16 Mar 2013 12:37:23 -0700 (PDT) Date: Sun, 17 Mar 2013 03:37:23 +0800 Message-ID: Subject: 24.3.50; NS: scroll-bar not draggable From: Darren Hoo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) turn on scroll-bar mode (scroll-bar-mode t) 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) mouse-on-link-p((# vertical-scroll-bar (4 . 428) 95079520 handle)) mouse--down-1-maybe-follows-link(nil) Also with scroll-bar turned on, horizontally splitted windows can not be resized by dragging. In GNU Emacs 24.3.50.3 (x86_64-apple-darwin12.2.1, NS apple-appkit-1187.37) of 2013-03-17 on Darren-rMBP Bzr revision: 112060 jan.h.d@swipnet.se-20130316142237-fbp077v13rwbq20y Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns' From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 16 22:44:41 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 02:44:42 +0000 Received: from localhost ([127.0.0.1]:58278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UH3aT-0000QS-Ko for submit@debbugs.gnu.org; Sat, 16 Mar 2013 22:44:41 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:17480) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UH3aR-0000QA-4o for 13979@debbugs.gnu.org; Sat, 16 Mar 2013 22:44:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxIIq/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFxIIq/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5079772" Received: from 69-196-130-42.dsl.teksavvy.com (HELO pastel.home) ([69.196.130.42]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 16 Mar 2013 22:43:06 -0400 Received: by pastel.home (Postfix, from userid 20848) id 641A467B19; Sat, 16 Mar 2013 22:43:07 -0400 (EDT) From: Stefan Monnier To: Darren Hoo Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable Message-ID: References: Date: Sat, 16 Mar 2013 22:43:07 -0400 In-Reply-To: (Darren Hoo's message of "Sun, 17 Mar 2013 03:37:23 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > turn on scroll-bar mode > (scroll-bar-mode t) They're on by default, aren't they? > 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) 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)? > Also with scroll-bar turned on, horizontally splitted windows can not be > resized by dragging. I can't reproduce the problem here, either. Stefan === 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)))) From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 05:47:24 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 09:47:24 +0000 Received: from localhost ([127.0.0.1]:58571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHABY-0006Br-CG for submit@debbugs.gnu.org; Sun, 17 Mar 2013 05:47:24 -0400 Received: from mailout.melmac.se ([62.20.26.67]:46168) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHABV-0006BZ-ND for 13979@debbugs.gnu.org; Sun, 17 Mar 2013 05:47:22 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 7F8989BDB for <13979@debbugs.gnu.org>; Sun, 17 Mar 2013 10:45:46 +0100 (CET) Received: (qmail 21727 invoked by uid 89); 17 Mar 2013 08:45:42 -0000 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 08:45:42 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id B42947FA06C; Sun, 17 Mar 2013 10:45:45 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sun, 17 Mar 2013 10:45:45 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Stefan Monnier X-Mailer: Apple Mail (2.1503) X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.2 (/) Hello. 17 mar 2013 kl. 03:43 skrev Stefan Monnier : >> 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 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. >> 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 I can on OSX. The patch below only changes the error message to mouse-posn-property: Wrong type argument: integer-or-marker-p, = vertical-scroll-bar Jan D. >=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 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 07:04:37 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 11:04:37 +0000 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 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 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) Received: (qmail 1066 invoked by uid 89); 17 Mar 2013 10:02:54 -0000 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 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) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sun, 17 Mar 2013 12:02:57 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> References: To: Stefan Monnier X-Mailer: Apple Mail (2.1503) X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 09:14:24 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 13:14:24 +0000 Received: from localhost ([127.0.0.1]:58685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHDPs-0005gh-H6 for submit@debbugs.gnu.org; Sun, 17 Mar 2013 09:14:24 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:28704) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHDPq-0005gL-RD for 13979@debbugs.gnu.org; Sun, 17 Mar 2013 09:14:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5094790" Received: from 69-165-134-75.dsl.teksavvy.com (HELO pastel.home) ([69.165.134.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Mar 2013 09:12:47 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9CE1E67BBB; Sun, 17 Mar 2013 09:12:48 -0400 (EDT) From: Stefan Monnier To: Jan =?iso-8859-1?Q?Dj=E4rv?= Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable Message-ID: References: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> Date: Sun, 17 Mar 2013 09:12:48 -0400 In-Reply-To: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> ("Jan =?iso-8859-1?Q?Dj=E4rv=22's?= message of "Sun, 17 Mar 2013 12:02:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Which code has changed to care about mouse-1 versus down-mouse-1? The code that turns mouse-1 into mouse-2 in case of follow-link (which is now run more often: it used to be done in the mouse-drag-region command, but is now done in a key-translation-map entry). Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 10:43:40 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 14:43:40 +0000 Received: from localhost ([127.0.0.1]:60005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHEoF-0001j6-U0 for submit@debbugs.gnu.org; Sun, 17 Mar 2013 10:43:40 -0400 Received: from mailout.melmac.se ([62.20.26.67]:33709) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHEoD-0001ia-Jl for 13979@debbugs.gnu.org; Sun, 17 Mar 2013 10:43:38 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 3DCA8908E for <13979@debbugs.gnu.org>; Sun, 17 Mar 2013 15:42:01 +0100 (CET) Received: (qmail 23960 invoked by uid 89); 17 Mar 2013 13:41:55 -0000 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 13:41:55 -0000 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTPSA id CD1737FA06C; Sun, 17 Mar 2013 15:42:00 +0100 (CET) Message-ID: <5145D635.1080405@swipnet.se> Date: Sun, 17 Mar 2013 15:41:57 +0100 From: "Jan D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable References: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello. Stefan Monnier skrev 2013-03-17 14:12: >> Which code has changed to care about mouse-1 versus down-mouse-1? > The code that turns mouse-1 into mouse-2 in case of follow-link (which > is now run more often: it used to be done in the mouse-drag-region > command, but is now done in a key-translation-map entry). > [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello. Stefan Monnier skrev 2013-03-17 14:12: >> Which code has changed to care about mouse-1 versus down-mouse-1? > The code that turns mouse-1 into mouse-2 in case of follow-link (which > is now run more often: it used to be done in the mouse-drag-region > command, but is now done in a key-translation-map entry). > [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4917] Hello. Stefan Monnier skrev 2013-03-17 14:12: >> Which code has changed to care about mouse-1 versus down-mouse-1? > The code that turns mouse-1 into mouse-2 in case of follow-link (which > is now run more often: it used to be done in the mouse-drag-region > command, but is now done in a key-translation-map entry). > So shall we change key-translation-map or is it better for the NS-port to use mouse-1 for scroll events? Actually, the latter is probably best, keeps it in line with other ports. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 11:39:06 2013 Received: (at 13979) by debbugs.gnu.org; 17 Mar 2013 15:39:06 +0000 Received: from localhost ([127.0.0.1]:60129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHFft-000448-Tg for submit@debbugs.gnu.org; Sun, 17 Mar 2013 11:39:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:47949) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHFfs-00043U-Up for 13979@debbugs.gnu.org; Sun, 17 Mar 2013 11:39:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av8EABK/CFFFpYZL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5099979" Received: from 69-165-134-75.dsl.teksavvy.com (HELO pastel.home) ([69.165.134.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Mar 2013 11:37:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id B18D767BBB; Sun, 17 Mar 2013 11:37:29 -0400 (EDT) From: Stefan Monnier To: "Jan D." Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable Message-ID: References: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> <5145D635.1080405@swipnet.se> Date: Sun, 17 Mar 2013 11:37:29 -0400 In-Reply-To: <5145D635.1080405@swipnet.se> (Jan D.'s message of "Sun, 17 Mar 2013 15:41:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) >>> Which code has changed to care about mouse-1 versus down-mouse-1? >> The code that turns mouse-1 into mouse-2 in case of follow-link (which >> is now run more often: it used to be done in the mouse-drag-region >> command, but is now done in a key-translation-map entry). > So shall we change key-translation-map or is it better for the NS-port to > use mouse-1 for scroll events? I don't know the backtrace for your latest problem, but for the other the bug was in mouse-on-link-p which just needs to be fixed to return the proper boolean for that case. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 13:25:44 2013 Received: (at 13979-done) by debbugs.gnu.org; 18 Mar 2013 17:25:44 +0000 Received: from localhost ([127.0.0.1]:33866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHdod-0002Eb-KC for submit@debbugs.gnu.org; Mon, 18 Mar 2013 13:25:43 -0400 Received: from mailout.melmac.se ([62.20.26.67]:55339) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHdoa-0002EL-CD for 13979-done@debbugs.gnu.org; Mon, 18 Mar 2013 13:25:41 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 2B0FC99A0 for <13979-done@debbugs.gnu.org>; Mon, 18 Mar 2013 18:23:59 +0100 (CET) Received: (qmail 18806 invoked by uid 89); 18 Mar 2013 17:23:58 -0000 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; 18 Mar 2013 17:23:58 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id BED417FA06C; Mon, 18 Mar 2013 18:23:58 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: bug#13979: 24.3.50; NS: scroll-bar not draggable From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Mon, 18 Mar 2013 18:23:56 +0100 Content-Transfer-Encoding: 7bit Message-Id: <7056EA7B-04B7-4F45-9C69-BE986D07CB19@swipnet.se> References: <127F593A-96C3-4873-8A10-78BAED991717@swipnet.se> <5145D635.1080405@swipnet.se> To: Stefan Monnier X-Mailer: Apple Mail (2.1503) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello. This has been fixed in trunk. Jan D. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4996] X-Debbugs-Envelope-To: 13979-done Cc: 13979-done@debbugs.gnu.org, Darren Hoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello. This has been fixed in trunk. Jan D. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4470] Hello. This has been fixed in trunk. Jan D. 17 mar 2013 kl. 16:37 skrev Stefan Monnier : >>>> Which code has changed to care about mouse-1 versus down-mouse-1? >>> The code that turns mouse-1 into mouse-2 in case of follow-link (which >>> is now run more often: it used to be done in the mouse-drag-region >>> command, but is now done in a key-translation-map entry). >> So shall we change key-translation-map or is it better for the NS-port to >> use mouse-1 for scroll events? > > I don't know the backtrace for your latest problem, but for the other > the bug was in mouse-on-link-p which just needs to be fixed to return > the proper boolean for that case. > > > Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 19 08:43:17 2013 Received: (at 13979) by debbugs.gnu.org; 19 Mar 2013 12:43:18 +0000 Received: from localhost ([127.0.0.1]:35160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHvsr-0003DD-FH for submit@debbugs.gnu.org; Tue, 19 Mar 2013 08:43:17 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:43588) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UHvso-0003Cz-LO for 13979@debbugs.gnu.org; Tue, 19 Mar 2013 08:43:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AssGABK/CFFFxKvA/2dsb2JhbABEtyKEE4NZF3OCe3ImGA2ISKALkRSQDo1hgykDpHqBXoMT X-IPAS-Result: AssGABK/CFFFxKvA/2dsb2JhbABEtyKEE4NZF3OCe3ImGA2ISKALkRSQDo1hgykDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5248793" Received: from 69-196-171-192.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Mar 2013 08:41:27 -0400 Received: by pastel.home (Postfix, from userid 20848) id 07844632AA; Tue, 19 Mar 2013 08:41:14 -0400 (EDT) From: Stefan Monnier To: 13979@debbugs.gnu.org Subject: NS: scroll-bar not draggable Message-ID: Date: Tue, 19 Mar 2013 08:41:13 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13979 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> 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)) 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? Stefan === 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))) -(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))))) (defun posn-set-point (position) "Move point to POSITION. @@ -1124,12 +1126,14 @@ and `event-end' functions." (nth 3 position)) -(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))) (defsubst posn-image (position) "Return the image object of POSITION. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 19 14:49:26 2013 Received: (at 13979) by debbugs.gnu.org; 19 Mar 2013 18:49:26 +0000 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 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 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) Received: (qmail 18345 invoked by uid 89); 19 Mar 2013 18:47:39 -0000 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 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) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: bug#13979: NS: scroll-bar not draggable From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Tue, 19 Mar 2013 19:47:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Stefan Monnier X-Mailer: Apple Mail (2.1503) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: It does. Jan D. 19 mar 2013 kl. 13:41 skrev Stefan Monnier : [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4567] X-Debbugs-Envelope-To: 13979 Cc: 13979@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) 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 From unknown Mon Jun 23 00:32:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Apr 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator