[Top][All Lists]

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

Re: how and why does keyboard input unhighlight the mouse-selected regio

From: Sandip Chitale
Subject: Re: how and why does keyboard input unhighlight the mouse-selected region?
Date: 4 Sep 2003 18:40:15 -0700

This may be the answer.

deactivate-mark's value is t

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 <address@hidden> wrote in message news:<address@hidden>...
> 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 via email to

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