[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to test whether region is active during a mouse event?
From: |
Stefan Monnier |
Subject: |
Re: how to test whether region is active during a mouse event? |
Date: |
Thu, 06 Aug 2009 11:47:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
> Suppose the region is active (I'm using transient-mark mode), and I click
> mouse-1.
> When I look at the events generated by the mouse-button click action,
> and whether the region is active for each of those events, I see three
> events for a single button click (press + release):
> down, and the region is active
> down, and the region is not active
> click, and the region is not active
The second down event looks odd but guess it's the result of a (push foo
unread-command-events) somewhere in the processing of the first.
> I want to be able to check whether the region is active during the overall
> button-click action.
I don't know what that means. Could you describe it more precisely?
Stefan
Re: how to test whether region is active during a mouse event?,
Stefan Monnier <=