From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#3408: customize-face not working: seems to apply to frame-face Date: Thu, 28 May 2009 13:08:18 -0400 Message-ID: <878wkhf94t.fsf@cyd.mit.edu> References: <87eiu9rfpb.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 3408@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243531775 1127 80.91.229.12 (28 May 2009 17:29:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2009 17:29:35 +0000 (UTC) Cc: 'David Reitter' , 3408@emacsbugs.donarmstrong.com To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 28 19:29:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M9jPy-0007fX-Fv for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 19:29:26 +0200 Original-Received: from localhost ([127.0.0.1]:33551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9jPx-0000dq-IV for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 13:29:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9jPr-0000cH-F6 for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9jPo-0000bE-7Y for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:19 -0400 Original-Received: from [199.232.76.173] (port=38953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9jPn-0000b3-OD for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60920) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9jPm-0004qn-PF for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 13:29:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4SHTCi5018570; Thu, 28 May 2009 10:29:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4SHF4Km016703; Thu, 28 May 2009 10:15:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 May 2009 17:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3408 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3408-submit@emacsbugs.donarmstrong.com id=B3408.124353047815951 (code B ref 3408); Thu, 28 May 2009 17:15:03 +0000 Original-Received: (at 3408) by emacsbugs.donarmstrong.com; 28 May 2009 17:07:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4SH7sna015945 for <3408@emacsbugs.donarmstrong.com>; Thu, 28 May 2009 10:07:56 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id C34D957E21E; Thu, 28 May 2009 13:08:18 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Thu, 28 May 2009 08:40:38 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 28 May 2009 13:29:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28268 Archived-At: "Drew Adams" writes: >> Mixing set-face-attribute and Customize is a bad idea in general. > > It *should not* be a bad idea - or, put as a question, why *should* it > be a bad idea? Logically, where is the problem? It's a bad idea in general because face computation has to take into account subtle interactions between face-new-frame-defaults, defface settings, X resources (which can be per-frame!), Customize, etc etc etc. Between Emacs 21 and 22, and between Emacs 22 and 23, there have been lots of changes in these subtle interactions, many of which are not easy to explain. I will take a look at this specific bug, and see if there is an acceptable fix. But my advice for the user is to settle on one single method for changing faces, and stick to it. In the long run, we need to figure out a way to simplify how faces are computed, so that this kind of problem does not arise so easily.