From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Bold by moving pixels problem Date: 19 Dec 2002 21:25:49 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87bs3i5h6a.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <20021120220834.GC29543@gnu.org> <200211210133.gAL1XiP23941@rum.cs.yale.edu> <5xfzsvqzqx.fsf@kfs2.cua.dk> <5xu1ha42xc.fsf@kfs2.cua.dk> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040300902 14731 80.91.224.249 (19 Dec 2002 12:28:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2002 12:28:22 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Ozmn-0003pQ-00 for ; Thu, 19 Dec 2002 13:28:21 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Oznu-0007c4-00 for ; Thu, 19 Dec 2002 13:29:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Ozm4-00057L-05 for emacs-devel@quimby.gnus.org; Thu, 19 Dec 2002 07:27:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Ozlk-00055m-00 for emacs-devel@gnu.org; Thu, 19 Dec 2002 07:27:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Ozli-00050o-00 for emacs-devel@gnu.org; Thu, 19 Dec 2002 07:27:15 -0500 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Ozl4-0004XO-00; Thu, 19 Dec 2002 07:26:34 -0500 Original-Received: from tc-2-165.kawasaki.gol.ne.jp ([203.216.25.165] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 18Ozkz-000678-00; Thu, 19 Dec 2002 21:26:29 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 3AA52302D; Thu, 19 Dec 2002 21:25:49 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 32 X-Abuse-Complaints: abuse@gol.com Original-cc: bob@rattlesnake.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10278 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10278 BTW, there's another possibility, which might be better than either the `macro' or `plist' approaches -- A while back I toyed with the idea of using face-vectors as `anonymous' faces, since it's often a pain to have to name a face. On reason I didn't really do anything was that I figured there are probably places, in the redisplay code especially, which wouldn't work well without a named face (though at the time I wanted to make anonymous faces to inherit from, which should work fine). However, in many places, it's trival -- in particular `internal-get-lisp-face-attribute' and `internal-set-lisp-face-attribute', since they use vectors internally and just translate the face-symbol into a vector at their start (the latter function would require a bit more tweaking, but as far as I could see, it's still fair to call it `trivial'). Now if those two functions were changed to allow `anonymous' faces (face vectors), then such functions as `face-attribute', `set-face-attribute', `make-face-bold', etc., would all start working on face-vectors too! That way, functions in realize-face-filter-functions could still accept face- vectors, avoiding the plist translation step, but also use the same familiar face functions that users already know about; this seems like a huge win to me... [p.s. I'd still like to also allow anonymous faces in more places, but that's a separate issue] -Miles -- 80% of success is just showing up. --Woody Allen