From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: overriding a face [was: 23.0.50; face-problems with multy-tty] Date: Mon, 01 Oct 2007 13:40:50 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1191260685 29176 80.91.229.12 (1 Oct 2007 17:44:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2007 17:44:45 +0000 (UTC) Cc: emacs-devel@gnu.org, bojohan+news@dd.chalmers.se To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 19:44:41 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 1IcPJx-00030X-9k for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2007 19:44:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcPJt-0007ba-95 for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2007 13:44:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcPH4-0003up-8h for emacs-devel@gnu.org; Mon, 01 Oct 2007 13:41:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcPH2-0003t1-Ul for emacs-devel@gnu.org; Mon, 01 Oct 2007 13:41:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcPH2-0003sh-NH for emacs-devel@gnu.org; Mon, 01 Oct 2007 13:41:40 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IcPH2-0006Jm-BC for emacs-devel@gnu.org; Mon, 01 Oct 2007 13:41:40 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IcPGE-0007wP-LM; Mon, 01 Oct 2007 13:40:50 -0400 In-reply-to: X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:80097 Archived-At: Maybe something like this would be a start? (defmacro set-face (face spec &optional doc &rest args) `(if (facep ',face) (face-spec-set ',face ,spec) (defface ,face ,spec ,(or doc "REPLACE ME") ,@args))) This seems like an incoherent combination of two different constructs, like a conditional choice between set and setq. I don't think it is a good idea. We might want to make `set-face' an alias for `face-spec-set'.