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: [patch] XPM in gamegrid.el Date: 08 Jul 2002 10:34:50 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200207021946.g62Jkd802100@aztec.santafe.edu> <200207041824.g64IO3906414@aztec.santafe.edu> <200207041910.g64JApB31201@rum.cs.yale.edu> <200207052205.g65M5Qp08476@aztec.santafe.edu> <873cuxu513.fsf@tc-1-100.kawasaki.gol.ne.jp> <200207062331.g66NVo010527@aztec.santafe.edu> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026104217 26952 127.0.0.1 (8 Jul 2002 04:56:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2002 04:56:57 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, epameinondas@gmx.de, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17RQa1-00070b-00 for ; Mon, 08 Jul 2002 06:56:57 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17RQhn-00022g-00 for ; Mon, 08 Jul 2002 07:04:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17RQaS-0007og-00; Mon, 08 Jul 2002 00:57:24 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173] helo=monty-python) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17RPif-0000Jt-02; Mon, 08 Jul 2002 00:01:49 -0400 Original-Received: from [202.32.8.214] (helo=TYO201.gate.nec.co.jp) by monty-python with esmtp (Exim 4.05) id 17RNRE-0002sP-00; Sun, 07 Jul 2002 21:35:41 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g681YvR29844; Mon, 8 Jul 2002 10:34:57 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.190]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g681Yua10259; Mon, 8 Jul 2002 10:34:56 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g681Ys423683; Mon, 8 Jul 2002 10:34:54 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g681YoK20781; Mon, 8 Jul 2002 10:34:50 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 781FB37D5; Mon, 8 Jul 2002 10:34:50 +0900 (JST) Original-To: rms@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200207062331.g66NVo010527@aztec.santafe.edu> Original-Lines: 20 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5548 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5548 For making faces buffer-local, I think it would be nice if we could somehow use emacs' variable mechanism, since it already allows both buffer-local and frame-local values, and is fairly featureful and familiar to developers. One suggestion I made a while ago would be to have face names be global, but to allow a remapping step via a variable, which the programmer could use to select a different face, for instance, if it were an alist [maybe a hash-table etc would also be good], you might do: (setq face-remappings '((default . my-buffer-default))) to give your buffer a different default face. I remember when I suggested this idea before, Gerd didn't like it, but unfortunately, I don't remember his reasons; does anyone else? -Miles -- Occam's razor split hairs so well, I bought the whole argument!