From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5557: is undefined Date: Sat, 15 Aug 2020 20:40:01 +0300 Message-ID: <835z9jkdu6.fsf@gnu.org> References: <87k19o32b2.fsf@gnus.org> <838sq4a1mm.fsf@gnu.org> <87sgoczbe5.fsf@gnus.org> <835zl8a0ur.fsf@gnu.org> <87o8z0zasn.fsf@gnus.org> <834l0sa0d0.fsf@gnu.org> <87v9t5suxx.fsf@gnus.org> <83pn7un19h.fsf@gnu.org> <835z9lkpm8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25102"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 5557@debbugs.gnu.org, larsi@gnus.org, lennart.borgman@gmail.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 15 19:41:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k70B9-0006Nq-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 19:41:15 +0200 Original-Received: from localhost ([::1]:35212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k70B8-00085l-EJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 13:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k70Aw-00084p-Dg for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 13:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k70Aw-00053A-30 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 13:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k70Aw-0006QR-0c for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Aug 2020 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 5557-submit@debbugs.gnu.org id=B5557.159751322624647 (code B ref 5557); Sat, 15 Aug 2020 17:41:01 +0000 Original-Received: (at 5557) by debbugs.gnu.org; 15 Aug 2020 17:40:26 +0000 Original-Received: from localhost ([127.0.0.1]:56403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k70AL-0006PT-Sx for submit@debbugs.gnu.org; Sat, 15 Aug 2020 13:40:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k70AJ-0006PC-IP for 5557@debbugs.gnu.org; Sat, 15 Aug 2020 13:40:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52372) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k70AD-0004qZ-Dj; Sat, 15 Aug 2020 13:40:17 -0400 Original-Received: from [176.228.60.248] (port=4525 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k70AC-0001m2-TF; Sat, 15 Aug 2020 13:40:17 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 14 Aug 2020 14:34:25 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185249 Archived-At: > From: Stefan Kangas > Date: Fri, 14 Aug 2020 14:34:25 -0700 > Cc: rudalics@gmx.at, larsi@gnus.org, 5557@debbugs.gnu.org, > lennart.borgman@gmail.com > > Plus I really don't know why someone would want to do anything but > scroll using the mouse wheel ??? We do that already: C-wheel-up increases the font size. It shouldn't be hard to imagine similar bindings on the fringe, for example. > OK, I guess we will have to agree to disagree. Yes. > One thing I don't understand is how binding to scroll-bar is supposed to > work. I tried the following, but it didn't work (tested in GTK and > lucid): > > (global-set-key [vertical-scroll-bar mouse-5] 'foo-mouse-message) > (defun foo-mouse-message (event) > (interactive "e") > (message "%s" (format-time-string "%H:%M:%S"))) > > (Change vertical-scroll-bar to left-fringe to see that it works there.) First, you don't need to do anything for vertical-scroll-bar, as the mouse wheel is already handled there, at least on my system. On a horizontal scroll-bar, if I use this: (global-set-key [horizontal-scroll-bar wheel-up] 'foo-mouse-message) I get the expected result on my system. What do you see Emacs say if you turn the wheel on the horizontal scroll-bar in "emacs -Q"?