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 07:01:24 -0700 (PDT) Message-ID: <35c9a786-fafc-47a4-9077-a4a9186b0b57@default> 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: quoted-printable X-Trace: blaine.gmane.org 1490623310 9745 195.159.176.226 (27 Mar 2017 14:01:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2017 14:01:50 +0000 (UTC) Cc: Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 27 16:01:42 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 1csVDH-0001lH-UQ for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 16:01:40 +0200 Original-Received: from localhost ([::1]:46948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csVDN-0000gx-VX for ged-emacs-devel@m.gmane.org; Mon, 27 Mar 2017 10:01:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csVDB-0000dR-Fr for emacs-devel@gnu.org; Mon, 27 Mar 2017 10:01:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csVD8-0004gd-96 for emacs-devel@gnu.org; Mon, 27 Mar 2017 10:01:33 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:22824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1csVD7-0004gG-Vg for emacs-devel@gnu.org; Mon, 27 Mar 2017 10:01:30 -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 v2RE1Qn3015054 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Mar 2017 14:01:27 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v2RE1Q0o014587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Mar 2017 14:01:26 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v2RE1QVC029710; Mon, 27 Mar 2017 14:01:26 GMT In-Reply-To: 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:213413 Archived-At: > > One open question would be whether to allow the text > > properties `face', `font-lock-face', and `mouse-face' as > > properties for themselves and each other. E.g., be able > > to do this: > > > > (set-face-attribute 'face-1 nil 'face 'face-2) >=20 > :inherit already does something similar. No, I don't think it does (depending on what you mean by "similar"). In what I'm describing that sexp would make all occurrences of `face-1' have the effect of being occurrences of `face-2'. That's not what face inheritance does.