From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 10:04:26 -0400 Message-ID: References: <20150331130427.20388.74881@vcs.savannah.gnu.org> <87d23otjmp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427897086 15549 80.91.229.3 (1 Apr 2015 14:04:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 14:04:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 16:04:40 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 1YdJG3-0003xK-PF for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 16:04:39 +0200 Original-Received: from localhost ([::1]:52853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJG3-0006iE-5Q for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 10:04:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJFv-0006hx-Vb for emacs-devel@gnu.org; Wed, 01 Apr 2015 10:04:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdJFs-0007bT-15 for emacs-devel@gnu.org; Wed, 01 Apr 2015 10:04:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:30710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdJFr-0007Zm-Th for emacs-devel@gnu.org; Wed, 01 Apr 2015 10:04:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYxkCQMBAoM+A4NwBKg7 X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYxkCQMBAoM+A4NwBKg7 X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115142173" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Apr 2015 10:04:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DFE7AEA0; Wed, 1 Apr 2015 10:04:26 -0400 (EDT) In-Reply-To: <87d23otjmp.fsf@gmail.com> (Oleh Krehel's message of "Wed, 01 Apr 2015 09:03:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:184712 Archived-At: > OK, updated to check for t as well. Thanks. Looks OK. How does it behave? >> IIUC the problem that annoys you, it comes from the fact that the >> region is defined to be "anything between point and mark" but point is >> a per-window attribute while mark is a per-buffer attribute. > Could we possibly have the mark to be per-window as well? Everything is possible. It sounds like it might require a fair bit of code changes, but feel free to try it out. Stefan