From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: how to test whether region is active during a mouse event?
Date: Thu, 06 Aug 2009 11:47:05 -0400 [thread overview]
Message-ID: <jwvocqtne65.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1907CCC7DE424D73AA8FD0E2F798DF49@us.oracle.com> (Drew Adams's message of "Sun, 2 Aug 2009 11:55:14 -0700")
> 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
next prev parent reply other threads:[~2009-08-06 15:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 18:55 how to test whether region is active during a mouse event? Drew Adams
2009-08-02 19:00 ` Drew Adams
2009-08-02 20:31 ` David De La Harpe Golden
2009-08-02 20:50 ` Drew Adams
2009-08-02 22:13 ` David De La Harpe Golden
2009-08-02 22:32 ` Drew Adams
2009-08-03 0:13 ` David De La Harpe Golden
2009-08-06 15:47 ` Stefan Monnier [this message]
2009-08-06 16:16 ` Drew Adams
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=jwvocqtne65.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@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.