unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joachim Nilsson <joachim.nilsson@vmlinux.org>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: mouse wheel scrolling in gtk
Date: Wed, 30 Jul 2008 03:38:15 +0200	[thread overview]
Message-ID: <488FC607.7020401@vmlinux.org> (raw)
In-Reply-To: <871w1cfbdr.fsf@catnip.gol.com>

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

Solved!

Miles Bader wrote, on 07/30/2008 02:45 AM:
> Joachim Nilsson <joachim.nilsson@vmlinux.org> writes:
>   
>> This is a bit counter intuitive since other Gtk/Gnome applications honor
>> this.  I.e. you can mouse-wheel-scroll any of an applications parts
>> without having to first click/focus that part of the application.
>> Can this be fixed, or is there perhaps some configuration setting that I
>> have missed?
>>     
> C-h v mouse-wheel-follow-mouse RET
>    `mouse-wheel-follow-mouse' is a variable defined in `mwheel.el'.
>    Whether the mouse wheel should scroll the window that the mouse is over.
>    This can be slightly disconcerting, but some people prefer it.
>   

Ouch, thanks Miles!

Turns out I had the following culprit embedded deep in my .emacs:

;; setup scroll mouse settings
(defun up-slightly () (interactive) (scroll-up 5))
(defun down-slightly () (interactive) (scroll-down 5))
(global-set-key [mouse-4] 'down-slightly)
(global-set-key [mouse-5] 'up-slightly)

(defun up-one () (interactive) (scroll-up 1))
(defun down-one () (interactive) (scroll-down 1))
(global-set-key [S-mouse-4] 'down-one)
(global-set-key [S-mouse-5] 'up-one)

(defun up-a-lot () (interactive) (scroll-up))
(defun down-a-lot () (interactive) (scroll-down))
(global-set-key [C-mouse-4] 'down-a-lot)
(global-set-key [C-mouse-5] 'up-a-lot)

As soon as I'd removed it the default settings for mouse wheel mode
worked just fine for my purposes!

Many thanks!
 /Jocke


[-- Attachment #2: joachim_nilsson.vcf --]
[-- Type: text/x-vcard, Size: 167 bytes --]

begin:vcard
fn:Joachim Nilsson
n:Nilsson;Joachim
email;internet:joachim.nilsson@vmlinux.org
x-mozilla-html:TRUE
url:http://vmlinux.org/joachim/
version:2.1
end:vcard


      parent reply	other threads:[~2008-07-30  1:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30  0:31 mouse wheel scrolling in gtk Joachim Nilsson
2008-07-30  0:45 ` Miles Bader
2008-07-30  0:57   ` Drew Adams
2008-07-30  1:56     ` Stefan Monnier
2008-07-30  2:00       ` Miles Bader
2008-07-30  2:30         ` Stefan Monnier
2008-07-30  1:38   ` Joachim Nilsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=488FC607.7020401@vmlinux.org \
    --to=joachim.nilsson@vmlinux.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).