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: Tue, 17 Dec 2002 18:54:05 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20021217235405.GA11365@gnu.org> References: <20021120220834.GC29543@gnu.org> <200211210133.gAL1XiP23941@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040169307 2583 80.91.224.249 (17 Dec 2002 23:55:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 23:55:07 +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 18ORYH-0000fU-00 for ; Wed, 18 Dec 2002 00:55:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ORYe-0004Ju-00 for ; Wed, 18 Dec 2002 00:55:29 +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 18ORXh-0004vK-04 for emacs-devel@quimby.gnus.org; Tue, 17 Dec 2002 18:54:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ORXM-0004vB-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 18:54:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ORXK-0004v0-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 18:54:07 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ORXK-0004uu-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 18:54:06 -0500 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.10) id 18ORXJ-0003B9-00; Tue, 17 Dec 2002 18:54:05 -0500 Original-To: "Robert J. Chassell" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Blat: Foop 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:10237 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10237 On Tue, Dec 17, 2002 at 04:38:57PM +0000, Robert J. Chassell wrote: > My only issue is semantic: I continue to have `bold' faces, but I > set `bold' to be a color, not a weight. What it seems you are doing > is not so much `unboldifying' the face as removing a > > :weight bold > > attribute. Should we not call the defun `face-normal-weight'? Well, I didn't think very much about the name of that function. It probably shouldn't really use the work `face', because it doesn't operate on normal faces, but rather the low-level internal representation of them (for which the term `lface' is sometimes used). You can make it translate bold into a color too, by similarly (defun lface-change-bold-to-yellow (lface) (if (memq (aref lface 4) '(bold heavy ...)) ; whatever weights you need (progn (aset lface 4 'normal) ; unboldify (aset lface 8 "yellow")))) WARNING: When I was trying a more complicated function like this yesterday, my emacs aborted (in UNBLOCK_INPUT), so something funny is going on, I'm not sure exactly what. However it might still be too dangerous for casual use (luckily emacs is great at not losing data, but it's still no fun when it crashes). -Miles -- [|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that will make every christian in the world foamm at the mouth? [iddt] nurg, that's the goal