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: Idea: Be able to use text properties as face attributes Date: Mon, 27 Mar 2017 17:54:26 +0300 Message-ID: <83efxi93dp.fsf@gnu.org> References: <7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> <8800c317-f4c1-d1b2-a9cf-c871d6190c53@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1490626526 5890 195.159.176.226 (27 Mar 2017 14:55:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2017 14:55:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 27 16:55:22 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 1csW3E-0000vd-Ej for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 16:55:20 +0200 Original-Received: from localhost ([::1]:47160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csW3K-000885-Gf for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 10:55:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csW2N-00083b-74 for emacs-devel@gnu.org; Mon, 27 Mar 2017 10:54:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csW2M-0000MQ-FK for emacs-devel@gnu.org; Mon, 27 Mar 2017 10:54:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csW2M-0000MH-Bw; Mon, 27 Mar 2017 10:54:26 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3748 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1csW2K-0002ey-Ty; Mon, 27 Mar 2017 10:54:25 -0400 In-reply-to: <8800c317-f4c1-d1b2-a9cf-c871d6190c53@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Sun, 26 Mar 2017 16:01:13 -0400) 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:213419 Archived-At: > From: Clément Pit-Claudel > Date: Sun, 26 Mar 2017 16:01:13 -0400 > > This sounds interesting, and the proposal is clear and nice. Can you think of > concrete examples where it would things much easier for package developers > (your example with 'invisible is nice)? > > I can think of one, if I understand correctly. Currently, if one want > font-lock to apply properties other tan face, then one must add these > properties to font-lock-extra-managed-props — and then font-lock will remove > these properties indiscriminately, regardless of where they came from. This > makes things difficult sometimes. With your proposal, these attributes could be > tucked in a face. On the other hand, one could imagine font-lock being smarter > and removing only the properties that it added. Or we could provide a JIT mechanism to apply properties other than face properties. > Fundamentally, is there a good reason to have a distinction between > face properties and text properties ? I don't think I understand the question. Face properties _are_ text properties. Or are you talking about face attributes? If the latter, then every text property can potentially have attributes, so face attributes are not special in this respect.