From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Idea: Be able to use text properties as face attributes Date: Sun, 26 Mar 2017 16:01:13 -0400 Message-ID: <8800c317-f4c1-d1b2-a9cf-c871d6190c53@gmail.com> References: <7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> 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 1490558485 1378 195.159.176.226 (26 Mar 2017 20:01:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Mar 2017 20:01:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 26 22:01:21 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 1csELo-0008Ec-Kg for ged-emacs-devel@m.gmane.org; Sun, 26 Mar 2017 22:01:20 +0200 Original-Received: from localhost ([::1]:42124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csELu-0002QZ-Bx for ged-emacs-devel@m.gmane.org; Sun, 26 Mar 2017 16:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csELm-0002QP-Km for emacs-devel@gnu.org; Sun, 26 Mar 2017 16:01:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csELj-00084t-Lk for emacs-devel@gnu.org; Sun, 26 Mar 2017 16:01:18 -0400 Original-Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:35291) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csELj-00084T-Ht for emacs-devel@gnu.org; Sun, 26 Mar 2017 16:01:15 -0400 Original-Received: by mail-qt0-x22b.google.com with SMTP id x35so23559285qtc.2 for ; Sun, 26 Mar 2017 13:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=bAQoKoPAKmyz34P7xAMoHgqLylRkIWbU36atUGYGQfI=; b=V1MpCJLkMFImwTSzgBzUjKr5gwS/QDFOjUzLZmM7rXfJESBc691AhBeyL11MTFtkVr QUSFsQ/CA3YeiiSfhPXH9wCX538tNplfqf6sR3HrBxmbZKCBdo4FWwoaZxVUiVujYd2k iNgyvIPKHNx4KSY8GXo1D7a7PCLK7HpPXJekA7mVYyfX29hULABCUpR8SK1ku1FPHSKQ aJjits/X2f8XSFwW7HjjLYSbVCZnE+2AA2vUP02pduf8OVS/n6iTJfBnknJ9JgCaznxL f3AFIsyqcM7VF8eW0AnQvkDBl9Yf5JYeP//6292OGobDIiCrgGEE3kOzLAxoSUxKlxsj E9FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bAQoKoPAKmyz34P7xAMoHgqLylRkIWbU36atUGYGQfI=; b=qHyw5KktvZkIhBKko2iqX1Obp2J/UXG3crSt9EvxEblgJVQ5Er/i6EmOLNxA7qCVUO DRJdaA1eubGSYvKzLhF5686o4NdFv+XtRXKNbiSA033iUjaEF7IR6SxFYH1JQhoRAtY2 lBcRC4cWPI5U4nILx7SCzho/B2BB4iQv0U8FZfpovF4k5CgpiEvdncpbZO8PtxTNMmXI CDGTpb40WYFd7O0s2jFC1ZEqE0geFEmAKKFZfJ7dRYpbzt+WmOanfFQQ3LKmgoVa67Z5 MacIQPt/geJS0171yOV5OECao1vyS8wvAxAi4P4UIxaI47+bhr3B/qygkmQPKqtWNMxM rkEA== X-Gm-Message-State: AFeK/H2DrIh5wq/KQ5F5oGvZLIi2tgLxpjLfl2wJ/LYPAnbjeyz7pbU3oglugJv0ibmlEA== X-Received: by 10.237.42.194 with SMTP id t60mr19297317qtd.269.1490558474692; Sun, 26 Mar 2017 13:01:14 -0700 (PDT) Original-Received: from [18.189.26.125] (dhcp-18-189-26-125.dyn.mit.edu. [18.189.26.125]) by smtp.gmail.com with ESMTPSA id r60sm6415371qtd.53.2017.03.26.13.01.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Mar 2017 13:01:14 -0700 (PDT) In-Reply-To: <7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::22b 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:213390 Archived-At: On 2017-03-26 15:14, Drew Adams wrote: > WDOT? Is this something that would be useful? If so, would > someone like to work on implementing it? 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. I wonder if your suggestion could be generalized. Fundamentally, is there a good reason to have a distinction between face properties and text properties ? Then faces would work in a similar fashion to overlay categories (a quick way to set consistent properties on many chunks of text) Clément.