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: Tue, 31 Mar 2015 22:53:44 -0400 Message-ID: References: <20150331130427.20388.74881@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427856861 7572 80.91.229.3 (1 Apr 2015 02:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 02:54:21 +0000 (UTC) Cc: Oleh Krehel To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 04:54:07 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 1Yd8n8-0004uo-JY for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 04:54:06 +0200 Original-Received: from localhost ([::1]:41359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8n7-00018G-Uc for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 22:54:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8mu-00018B-4s for emacs-devel@gnu.org; Tue, 31 Mar 2015 22:53:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd8mn-00073N-Oo for emacs-devel@gnu.org; Tue, 31 Mar 2015 22:53:52 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:21397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd8mn-00073I-LN for emacs-devel@gnu.org; Tue, 31 Mar 2015 22:53:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhYJAGvvdVRBbthL/2dsb2JhbAA3gVOhHVKBCIF2AQVWIxALNBIUGA2qSIt4ChxGCQECAQKBVIFqA1KDHgSoOw X-IPAS-Result: AhYJAGvvdVRBbthL/2dsb2JhbAA3gVOhHVKBCIF2AQVWIxALNBIUGA2qSIt4ChxGCQECAQKBVIFqA1KDHgSoOw X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115111072" 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; 31 Mar 2015 22:53:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B712F1054; Tue, 31 Mar 2015 22:53:44 -0400 (EDT) In-Reply-To: (Oleh Krehel's message of "Tue, 31 Mar 2015 13:04:29 +0000") 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:184686 Archived-At: > + (and (eq w mark-active) > + w)) I think there's a good chance some code out there still sets mark-active to t, so we should handle this case conservatively (i.e. highlight in all windows displaying this buffer). Stefan