From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [RFC PATCH] Per-window face support Date: Sat, 16 Jun 2018 19:09:26 +0300 Message-ID: <83bmcazpah.fsf@gnu.org> References: <5e08587a56ad528599ed5fb259be6335.squirrel@dancol.org> <83muw5vdtr.fsf@gnu.org> <83zhzvyqfy.fsf@gnu.org> <83lgbezs6q.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529165264 20990 195.159.176.226 (16 Jun 2018 16:07:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 16:07:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Daniel Colascione" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 18:07:40 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUDjo-0005Kw-0j for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 18:07:40 +0200 Original-Received: from localhost ([::1]:52045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUDlt-0006BC-GM for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 12:09:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUDlj-00069h-UQ for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:09:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUDlg-0006Rk-Oi for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:09:39 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUDlg-0006Rg-Lg; Sat, 16 Jun 2018 12:09:36 -0400 Original-Received: from [176.228.60.248] (port=3903 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fUDle-000440-Uk; Sat, 16 Jun 2018 12:09:35 -0400 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:226371 Archived-At: > Date: Sat, 16 Jun 2018 08:30:52 -0700 > From: "Daniel Colascione" > Cc: "Daniel Colascione" , > emacs-devel@gnu.org > > > That's not the Emacs way, IMO. Being able to use only integers or > > symbols as filtering parameters sounds too restrictive to me, and I > > see no reason for such restrictions. > > There's no loss of generality in allowing only eq at face filtering time: > you can set an integer or symbol to reflect the result of any other > computation That's exactly the point: one needs to modify window parameters, instead of just using what's already there. So this will restrict applications that want to modify a window's faces based on existing window parameters whose values are neither symbols nor integers. Such applications will have to add their own parameters to windows. > Contractually allowing something more powerful than eq here can really > screw us over later: what happens when we equal-compare large data > structures? Same thing that happens when an :eval form in the mode-line-format causes Emacs to solve partial differential equations in 20 dimensions: they get what they deserve. Emacs never prevented legitimate uses of power features just because those features give us enough rope to hang ourselves, should we be so stupid.