From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Window splitting deactivates the mark? Date: Sun, 18 Dec 2005 23:40:15 -0500 Message-ID: References: <87r78hvraw.fsf@escher.local.home> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134967490 31461 80.91.229.2 (19 Dec 2005 04:44:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 04:44:50 +0000 (UTC) Cc: David Ponce , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 19 05:44:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoCsU-0007su-Bg for ged-emacs-devel@m.gmane.org; Mon, 19 Dec 2005 05:44:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoCtJ-0003s3-PH for ged-emacs-devel@m.gmane.org; Sun, 18 Dec 2005 23:44:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoCrR-0002ie-FZ for emacs-devel@gnu.org; Sun, 18 Dec 2005 23:42:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoCrQ-0002iO-Nr for emacs-devel@gnu.org; Sun, 18 Dec 2005 23:42:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoCrQ-0002iJ-Iy for emacs-devel@gnu.org; Sun, 18 Dec 2005 23:42:56 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoCuJ-000486-Kc for emacs-devel@gnu.org; Sun, 18 Dec 2005 23:45:55 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EoCop-0000hB-R4; Sun, 18 Dec 2005 23:40:15 -0500 Original-To: Stephen Berman In-reply-to: <87r78hvraw.fsf@escher.local.home> (message from Stephen Berman on Tue, 13 Dec 2005 00:17:27 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48034 Archived-At: I don't think window splitting does anything to deactivate the mark. There is nothing in Fsplit_window that would do it. Empirically, if I set the mark (with Transient Mark mode) and then split the window, the region remains active. So this must be due, somehow, to whatever is done in tabbar.el. Remember that deactivating the mark is normally done by setting deactivate-mark to t. When the command loop sees that, it deactivates the mark. It should be pretty easy to determine whether something sets deactivate-mark to t. split-window can run window-scroll-functions and it can run window-configuration-change-hook. If either of those does editing in a buffer, it would set deactivate-mark to t.