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#2066: Face `unspecified' inheritance ignores face-remapping-alist Date: Tue, 27 Jan 2009 14:16:40 -0500 Message-ID: <87ocxs4l0n.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 2066@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 1233085473 6747 80.91.229.12 (27 Jan 2009 19:44:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 19:44:33 +0000 (UTC) Cc: 2066@emacsbugs.donarmstrong.com To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 20:45:45 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 1LRtsW-00041i-SO for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 20:45:45 +0100 Original-Received: from localhost ([127.0.0.1]:33091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRtrE-0006HG-Tn for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 14:44:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRtqR-0005n7-N1 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:43:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRtqP-0005mA-Rd for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:43:34 -0500 Original-Received: from [199.232.76.173] (port=33779 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRtqP-0005m1-MA for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:43:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35967) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRtqP-00006r-1Y for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:43:33 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RJhTTF019692; Tue, 27 Jan 2009 11:43:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0RJP32Q014941; Tue, 27 Jan 2009 11:25:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 27 Jan 2009 19:25:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2066 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2066-submit@emacsbugs.donarmstrong.com id=B2066.123308377313658 (code B ref 2066); Tue, 27 Jan 2009 19:25:03 +0000 Original-Received: (at 2066) by emacsbugs.donarmstrong.com; 27 Jan 2009 19:16:13 +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.13.8/8.13.8/Debian-3) with ESMTP id n0RJGAQm013650 for <2066@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 11:16:11 -0800 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id EA0F957E197; Tue, 27 Jan 2009 14:16:40 -0500 (EST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 27 Jan 2009 14:43:34 -0500 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:24632 Archived-At: > Faces with an unspecified `inherit' attribute inherit from `default', > right? > > Unfortunately, this mechanism does not respect remapped faces (face- > remapping-alist). Faces, by default, seem to inherit from the frame > default. To demonstrate: > > emacs -Q > (fundamental-mode) > (setq face-remapping-alist '((default . highlight))) > (insert (propertize "test" 'face 'fringe)) I don't see any bug here. The "test" string inserted into the buffer has a background different from `highlight', but that's because its background is not unspecified: (defface fringe '((((class color) (background light)) :background "grey95") (((class color) (background dark)) :background "grey10") (t :background "gray")) "Basic face for the fringes to the left and right of windows under X." :version "21.1" :group 'frames :group 'basic-faces)