From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Re: how and why does keyboard input unhighlight the mouse-selected region? Date: 4 Sep 2003 18:40:15 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3F575F5D.3040600@yahoo.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1062749834 29937 80.91.224.253 (5 Sep 2003 08:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2003 08:17:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 10:17:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19vBmJ-00028T-00 for ; Fri, 05 Sep 2003 10:17:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19vBmB-0001TW-HD for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Sep 2003 04:17:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1062726016 27252 127.0.0.1 (5 Sep 2003 01:40:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 5 Sep 2003 01:40:16 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:116376 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12295 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12295 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 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 > | # > > 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?