From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Simplification of faces Date: Tue, 2 Oct 2007 08:05:14 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191337626 22147 80.91.229.12 (2 Oct 2007 15:07:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2007 15:07:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 02 17:07:02 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IcjKT-0000Ma-4M for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2007 17:06:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcjKO-0006n7-Qz for ged-emacs-devel@m.gmane.org; Tue, 02 Oct 2007 11:06:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcjKL-0006mU-Nn for emacs-devel@gnu.org; Tue, 02 Oct 2007 11:06:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcjKJ-0006lU-4e for emacs-devel@gnu.org; Tue, 02 Oct 2007 11:06:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcjKI-0006lK-R1 for emacs-devel@gnu.org; Tue, 02 Oct 2007 11:06:22 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IcjKE-0005oL-9G; Tue, 02 Oct 2007 11:06:18 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l92F6FD5002142; Tue, 2 Oct 2007 10:06:15 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l92AHj7N016434; Tue, 2 Oct 2007 09:06:15 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-229.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3261006651191337513; Tue, 02 Oct 2007 08:05:13 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80133 Archived-At: > Could you give a simple example of how a current use of > `modify-face' would be replaced with a call to `face-spec-set' > or `defface' in your proposal? > > You need to write a function like `modify-face' that constructs a face > spec out of the args, and then calls `face-spec-set'. > > If you want it to change only certain attributes and leave the others > unchanged, you would need to call frame-attribute to get the values of > the other attributes, and perhaps put them into the spec you > construct, so as to make sure they won't be altered. What does "call frame-attribute" mean? I see no such function in Emacs 22.1. Could you please give a more concrete example? Assuming I could understand and do what you describe, why would each person need to do all of that, just to be able to change a face attribute? Can't we have an Emacs function that does exactly that, change certain attributes only? What was wrong with `modify-face', for that matter? This is an important feature, for me at least. I need to be able to do this, whether such a function is available or I need to roll my own. If there will not be such a function, please let me know just how it can be done.