From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel 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 17:46:39 +0200 Message-ID: <87oan7g8bk.fsf@gmail.com> 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 1427903512 32284 80.91.229.3 (1 Apr 2015 15:51:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 15:51:52 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 17:51:51 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 1YdKvj-0001Jp-JA for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 17:51:47 +0200 Original-Received: from localhost ([::1]:53567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKvj-0001eQ-4Y for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 11:51:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKvg-0001e9-2h for emacs-devel@gnu.org; Wed, 01 Apr 2015 11:51:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdKvc-0005mB-2b for emacs-devel@gnu.org; Wed, 01 Apr 2015 11:51:44 -0400 Original-Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:37637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKvb-0005m1-Qc for emacs-devel@gnu.org; Wed, 01 Apr 2015 11:51:39 -0400 Original-Received: by wiaa2 with SMTP id a2so71992158wia.0 for ; Wed, 01 Apr 2015 08:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=HhF2dYgFWbw20fYw1l7JZ9BLwiNWN7OZ3k970DfL1PQ=; b=iL1Sy//tlb5Xj4x3i/XnP8ScGiRS9gumTG1ZfL5DFoM0KsTp1wv0sm4JhxSsv8ca4q 7DY86zMmpe8oEyBbhNnCO/5kcOtqmKtPikrAkSnG26F2mrRQI54wxubSnZjtjcsoZJzu qA7PWuRHQ5PvQhk1xt12zItRkaAi1QX4DWnP8clc5HUOSkhjOJSnBF9HnXzlLClR8Fg5 efirBLGgwr45f5qmcL5pzNpOGuk2Ya9/lWaAIUKgQwC8iy96cNAUB0NpkEmV6lDKqVYx xYPdrCGJN8P+Hq1j0xlZCLn7HYqwm82C+eruDvMJPTndD3UJMJJHpOe3evSZSiDNZ5cz kmDA== X-Received: by 10.180.95.102 with SMTP id dj6mr16384926wib.45.1427903499155; Wed, 01 Apr 2015 08:51:39 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id q6sm3745124wix.3.2015.04.01.08.51.38 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 01 Apr 2015 08:51:38 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Wed, 1 Apr 2015 08:17:13 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f 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:184734 Archived-At: Drew Adams writes: >> > 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). > > Is the intention that the use of a non-window, non-nil value > will be deprecated at some point? I think so, since if a package sets it to t, and user has `highlight-nonselected-windows' it would upset the user. A different solution would be to introduce a new variable that mirrors `mark-active'. But that would make `mark-active' redundant w.r.t. that variable. > Or is the use of a window in some way preferable/recommended? > If so, is that change in preference documented, including describing > any differences in behavior that using a window introduces? I will try to make the mark and `mark-active' window-local instead of just `buffer-local'. In that case, it will still be fine to have `mark-active' set to t. I don't yet know how hard this task would be. Oleh