From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Idea: Be able to use text properties as face attributes Date: Mon, 27 Mar 2017 08:49:47 -0700 (PDT) Message-ID: <7f98847c-9b5e-47cf-85f2-247c2045d0af@default> References: <<7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> <30d920b0-e1de-497d-98de-8b69e835e855@default>> <<30eb5a49-2d98-4f37-8f8c-32a88cd76827@default>> <<83bmsm938f.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1490629816 4467 195.159.176.226 (27 Mar 2017 15:50:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2017 15:50:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 27 17:50:09 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 1csWu9-0007nL-29 for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 17:50:01 +0200 Original-Received: from localhost ([::1]:47703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csWuF-0000bz-0a for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 11:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csWu7-0000bt-1s for emacs-devel@gnu.org; Mon, 27 Mar 2017 11:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csWu6-0004xx-2U for emacs-devel@gnu.org; Mon, 27 Mar 2017 11:49:59 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:42387) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1csWu0-0004uK-FP; Mon, 27 Mar 2017 11:49:52 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v2RFnncp000468 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Mar 2017 15:49:50 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v2RFnnVf029076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Mar 2017 15:49:49 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v2RFnmHk029967; Mon, 27 Mar 2017 15:49:49 GMT In-Reply-To: <<83bmsm938f.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 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:213422 Archived-At: > > In my view, the effect of a applying a face whose spec > > contains non-face properties to some text would not > > change the text properties of that text (other than its > > `face', `font-lock-face', or `mouse-face' property). > > It would change only the rendered _effect_, i.e., what > > the display engine does. >=20 > I don't understand what that means, for most text properties, since > they don't affect the visual appearance of the text in any way. Which > properties, except 'invisible', did you have in mind? I'm confused. It's about the effect of a text property, regardless of what the effect is or where in the Emacs base code that effect is applied. It's not about only text properties that visually affect the display of the text they are applied to. I mentioned "rendered" and "display engine" only as a shortcut, and because I am not familiar with the actual code that implements the various effects. It's not important (to my general description of the feature) which code in fact makes text that has a `keymap' property behave as if the keymap at that place were the keymap that is the value of that text property. There are lots of text properties, and as you say, many have nothing really to do with how the text they are applied to "appears". They do have some relation to that text, and there is some effect of their being present. And some Emacs code manages that effect. The idea of the feature is that a face property that contains text properties as (pseudo) face attributes would produce the same effect as applying those text properties to the text. But those text properties would not in fact be applied to the text - they would remain encapsulated in the value of the applied face property (`face', `font-lock-face', or `mouse-face').