all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Kelling <ianowl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to make dragging with mouse 1 not do highlighting or marking?
Date: Mon, 14 Jan 2013 09:58:36 -0800	[thread overview]
Message-ID: <50F4474C.507@gmail.com> (raw)
In-Reply-To: <87pq1wfdmx.fsf@adboyd.com>

On 12/26/2012 06:11 PM, J. David Boyd 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.
>>
>> Thanks,
>> Ian Kelling
>
> Then, why hold down mouse-1?  I mean, the cursor already follow the
> mouse around as you move it....
>

Because I do not want to highlight or select a region. The general idea is to be 
able to more easily identify exactly which character the mouse pointer would act on.

I've changed what I want a bit, and need some help from the elisp gurus out there. 
I want the character that the mouse pointer would act on highlighted all the time, 
not just when I press a button. I was able to get it working when a button was 
pressed down using mouse.el code as an example (and mouse+.el). However, that code 
doesn't work in the background so to speak if I try to just run it from my init file.

The critical example from mouse.el is this:

(track-mouse
              (while (progn (setq event  (read-event))
                            (or (mouse-movement-p event)
                                (memq (car-safe event) '(switch-frame 
select-window))))

How can I run code in which I would update an overlay on all on mouse movement 
events?



  reply	other threads:[~2013-01-14 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-21 15:45 How to make dragging with mouse 1 not do highlighting or marking? Ian Kelling
2012-12-21 16:58 ` Dmitry Gutov
2012-12-21 17:30   ` Ian Kelling
2012-12-21 20:26 ` Stephen Berman
2012-12-27  2:11 ` J. David Boyd
2013-01-14 17:58   ` Ian Kelling [this message]
     [not found]   ` <mailman.17411.1358186333.855.help-gnu-emacs@gnu.org>
2013-01-17  4:56     ` Michael Heerdegen
2013-01-25  8:34       ` Ian Kelling
2013-01-25 14:58         ` Ian Kelling

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

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

  git send-email \
    --in-reply-to=50F4474C.507@gmail.com \
    --to=ianowl@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.