From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Idea: Be able to use text properties as face attributes Date: Tue, 28 Mar 2017 18:45:42 -0400 Message-ID: References: <7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> <30d920b0-e1de-497d-98de-8b69e835e855@default>>> <30eb5a49-2d98-4f37-8f8c-32a88cd76827@default>>> <83bmsm938f.fsf@gnu.org>>> <7f98847c-9b5e-47cf-85f2-247c2045d0af@default>> <834lye8s1k.fsf@gnu.org>> <93aa220a-35c8-4be1-bfb5-299c46c9eba9@default> <83tw6d785i.fsf@gnu.org> <4f28c64b-400a-4902-8d8d-84bab71a7c2a@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490741180 23756 195.159.176.226 (28 Mar 2017 22:46:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2017 22:46:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 29 00:46:15 2017 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 1cszsM-0004hh-Pk for ged-emacs-devel@m.gmane.org; Wed, 29 Mar 2017 00:46:06 +0200 Original-Received: from localhost ([::1]:55561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cszsS-0007vn-NH for ged-emacs-devel@m.gmane.org; Tue, 28 Mar 2017 18:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cszsM-0007vi-Tg for emacs-devel@gnu.org; Tue, 28 Mar 2017 18:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cszsI-0005nu-1e for emacs-devel@gnu.org; Tue, 28 Mar 2017 18:46:06 -0400 Original-Received: from [195.159.176.226] (port=50206 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cszsH-0005no-Qs for emacs-devel@gnu.org; Tue, 28 Mar 2017 18:46:01 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cszs1-0002kV-3o for emacs-devel@gnu.org; Wed, 29 Mar 2017 00:45:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:BA52x6UhiXoxw+cPU1Izx9txKjQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:213468 Archived-At: >> This said, I think using face attributes is a bad idea. > Reason? I can be convinced, but only by reasons. Faces (and face attributes) are handled by the display engine, which is a delicate and performance sensitive piece of code. Messing with that is tricky and can easily impose serious performance problems. > locations. But my proposal is purposely aimed at > FACES and where they are applied, for the reasons > given above. It's not _only_ about packaging text > props together to act on them in an abstract way. I'd rather use another property, and then make font-lock use that new property instead. Stefan