From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/highlight-n-windows 6da5ca1 2/2: Set `mark-active' to selected window Date: Wed, 01 Apr 2015 19:11:56 +0200 Message-ID: <551C26DC.4070309@gmx.at> References: <20150331130427.20388.74881@vcs.savannah.gnu.org> <87d23otjmp.fsf@gmail.com> <87oan7g8bk.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1427908451 20198 80.91.229.3 (1 Apr 2015 17:14:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 17:14:11 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Oleh Krehel , Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 19:14:02 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YdMDK-0006SS-9v for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 19:14:02 +0200 Original-Received: from localhost ([::1]:54209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMDJ-00014k-Lb for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 13:14:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMBc-0006Z2-9U for emacs-devel@gnu.org; Wed, 01 Apr 2015 13:12:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdMBW-00038m-QL for emacs-devel@gnu.org; Wed, 01 Apr 2015 13:12:16 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdMBW-00038Z-En for emacs-devel@gnu.org; Wed, 01 Apr 2015 13:12:10 -0400 Original-Received: from [178.189.205.46] ([178.189.205.46]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MaJPk-1YsphZ1wUa-00Jnuy; Wed, 01 Apr 2015 19:12:01 +0200 In-Reply-To: <87oan7g8bk.fsf@gmail.com> X-Provags-ID: V03:K0:spxbVUDOh1lHrp4fhrb7ndnihcHrivdgE+dTzqKEfeZA8WPcI9b 0Rjw2ncnCLUA3fBpgVpPyNFfCz2e7/vHdDUSMtFQ379d6tvc/6oM9s3qe+VSUlmWsOMxY2l MvDuE/8st7rtMr1Y1AmbeMRhHDVQ27QjRdmNX+Qazok7dsVyueuIYrnsZPeyYTMwRPUyrXj k1kWPU/B7gWcvq6WQkLkw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184748 Archived-At: > I will try to make the mark and `mark-active' window-local instead of > just `buffer-local'. I don't agree with the "instead". I suppose we'd want functions, say `window-mark' and `window-mark-active' which would be handled as `window-point' as well as `set-window-mark' and `set-window-mark-active' which would be handled as `set-window-point'. So two new entries for the window structure in window.h. `select-window' would have to set the buffer's mark and mark-active like it sets point from the respective window slots and restore the old window's mark and mark-active. And window configurations would have to save and restore mark and mark-active too. And obvious `mark-active' is slightly different since that's a variable. I would like it but it's probably a bit tedious to implement. martin