From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: face-remapping patch Date: Wed, 28 May 2008 15:57:23 +0100 Message-ID: References: <87hcci4hcm.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211986702 9370 80.91.229.12 (28 May 2008 14:58:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 May 2008 14:58:22 +0000 (UTC) Cc: Emacs-Devel , Miles Bader To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 28 16:59:03 2008 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 1K1N6d-0003ly-3E for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 16:58:23 +0200 Original-Received: from localhost ([127.0.0.1]:34902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1N5r-0001uO-TX for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 10:57:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1N5m-0001sw-Nk for emacs-devel@gnu.org; Wed, 28 May 2008 10:57:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1N5l-0001qB-B1 for emacs-devel@gnu.org; Wed, 28 May 2008 10:57:30 -0400 Original-Received: from [199.232.76.173] (port=42086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1N5l-0001q4-2t for emacs-devel@gnu.org; Wed, 28 May 2008 10:57:29 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.174]:49106) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K1N5k-0005Xi-Kt for emacs-devel@gnu.org; Wed, 28 May 2008 10:57:28 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so153173ugc.48 for ; Wed, 28 May 2008 07:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=2f7lyUgAhZ/4HCsra2eQeboIVFqEDrZGR059Emf6I78=; b=lZSHQqZJLZUMMwUiIwlGuAeGOKt8tmj93hySXpCmGIuQY03iOeT+IG2xuXbXFVWo35rleOtMgOEv9epe1B10dAiEoYWUKoi9J3gPgzh+P6Xilwj5hhxPtv1uW0IgvTh6grXLU1bd1cADcdrzW1g3A3UBKKU/WzqkKtZfkyyWvlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=gjJZg81BkRsNJMDXo7WPdPI81vwrtC3JPRbihS0PL50MBqsSRom2sIfoLu/xHaFw+0sFi11xU0bThE+645fuk2AjU0aoHl1+Rc1KFJmYQgvtbc3M6UG6S+qX2UaowE2blhkHvhjoaSGiNSVYqMkJuNyD6L383icy08QUazpNRtY= Original-Received: by 10.67.87.18 with SMTP id p18mr1116541ugl.43.1211986646978; Wed, 28 May 2008 07:57:26 -0700 (PDT) Original-Received: from scarlett.inf.ed.ac.uk ( [129.215.174.113]) by mx.google.com with ESMTPS id q9sm1561640gve.5.2008.05.28.07.57.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 May 2008 07:57:26 -0700 (PDT) In-Reply-To: <87hcci4hcm.fsf@stupidchicken.com> X-Mailer: Apple Mail (2.919.2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:97905 Archived-At: On 28 May 2008, at 15:46, Chong Yidong wrote: > > Looks reasonable, but could you explain what problem this solves? > Under > what circumstances would a user or an Elisp library prefer to use > face-remapping instead of redefining faces directly? I like to edit LaTeX code and other texts with a different (variable- width) font, but I'll stick to a monospaced one for code. Also, I like to change the background color (and a bunch of further faces) so I can more easily see what buffer I'm in. These things are obviously buffer-specific. I've been using code that changes faces and frame parameters from `change-major-mode-hook', but having buffer-specific faces implemented at C level is obviously a much cleaner solution.