unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: sandipchitale@yahoo.com (Sandip Chitale)
Subject: Re: how and why does keyboard input unhighlight the mouse-selected region?
Date: 4 Sep 2003 18:40:15 -0700	[thread overview]
Message-ID: <b607d812.0309041740.e7484e2@posting.google.com> (raw)
In-Reply-To: 3F575F5D.3040600@yahoo.com

This may be the answer.

deactivate-mark's value is t

Documentation:
If an editing command sets this to t, deactivate the mark afterward.
The command loop sets this to nil before each command,
and tests the value when the command returns.
Buffer modification stores t in this variable.




Kevin Rodgers <ihs_4664@yahoo.com> wrote in message news:<3F575F5D.3040600@yahoo.com>...
> If I select the region with the mouse (with transient mark mode
> disabled), it is highlighted using the `region' face.  I think that is
> implemented via `mouse-drag-overlay' in lisp/mouse.el.  Then any
> subsequent keyboard input -- even typing a prefix key like `C-x' --
> causes it to be unhighlighted; `C-h v' shows
> 
> | mouse-drag-overlay's value is
> | #<overlay in no buffer>
> 
> I don't see any references to mouse-drag-overlay in the src/*.c files,
> or anywhere outside of lisp/mouse.el and lisp/mouse-sel.el for that
> matter.  So how is the unhighlighting of the selected region
> implemented?  And why is that the default behavior -- no command has
> been executed, certainly not any command that modifies the buffer or
> alters the region.  Finally, can the unhighlighting be disabled?

  reply	other threads:[~2003-09-05  1:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04 15:50 how and why does keyboard input unhighlight the mouse-selected region? Kevin Rodgers
2003-09-05  1:40 ` Sandip Chitale [this message]
2003-09-05 18:43   ` Kevin Rodgers
2003-09-05 21:06     ` Sandip Chitale
2003-09-08 16:13       ` Kevin Rodgers
2003-09-08 16:16         ` Stefan Monnier
2003-09-08 20:49           ` Kevin Rodgers
2003-09-08 21:35             ` Stefan Monnier
2003-09-09 16:58               ` Kevin Rodgers
2003-09-09 20:19                 ` Stefan Monnier

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=b607d812.0309041740.e7484e2@posting.google.com \
    --to=sandipchitale@yahoo.com \
    /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.
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).