help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make dragging with mouse 1 not do highlighting or marking?


From: Ian Kelling
Subject: Re: How to make dragging with mouse 1 not do highlighting or marking?
Date: Fri, 21 Dec 2012 09:30:59 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/21/2012 08:58 AM, Dmitry Gutov wrote:
Ian Kelling <ianowl@gmail.com> writes:

When I hold down mouse-1 and move it around in a buffer, I just want the cursor
to follow the mouse as I move it. So far, my best guess is to copy
mouse-drag-track function and remove mark related code.
Have you tried rebinding [down-mouse-1] to 'mouse-set-point?



Yes. It does not update the point location while dragging.

Specifically
(global-set-key (kbd "<down-mouse-1>") 'mouse-set-point)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]