From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Manzyuk Newsgroups: gmane.emacs.bugs Subject: bug#10748: Date: Mon, 27 Feb 2012 22:10:33 +0000 Message-ID: References: <20120207044845.GH2922@arendt.tychoish.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1330380768 14767 80.91.229.3 (27 Feb 2012 22:12:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 22:12:48 +0000 (UTC) To: 10748@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 23:12:45 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S28o4-0002HH-MQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 23:12:32 +0100 Original-Received: from localhost ([::1]:49435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S28o4-0007N7-0k for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 17:12:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S28o1-0007My-4n for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 17:12:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S28nw-0005Zt-Dy for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 17:12:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S28nw-0005Zo-75 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 17:12:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S28qT-0002ZT-SL for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 17:15:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20120207044845.GH2922@arendt.tychoish.net> Resent-From: Oleksandr Manzyuk Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2012 22:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10748 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10748-submit@debbugs.gnu.org id=B10748.13303808539813 (code B ref 10748); Mon, 27 Feb 2012 22:15:01 +0000 Original-Received: (at 10748) by debbugs.gnu.org; 27 Feb 2012 22:14:13 +0000 Original-Received: from localhost ([127.0.0.1]:60289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S28pc-0002Xa-6F for submit@debbugs.gnu.org; Mon, 27 Feb 2012 17:14:13 -0500 Original-Received: from mail-lpp01m010-f44.google.com ([209.85.215.44]:40181) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S28pC-0002Wr-6G for 10748@debbugs.gnu.org; Mon, 27 Feb 2012 17:13:56 -0500 Original-Received: by lagj5 with SMTP id j5so2262914lag.3 for <10748@debbugs.gnu.org>; Mon, 27 Feb 2012 14:10:33 -0800 (PST) Received-SPF: pass (google.com: domain of manzyuk@gmail.com designates 10.152.112.132 as permitted sender) client-ip=10.152.112.132; Authentication-Results: mr.google.com; spf=pass (google.com: domain of manzyuk@gmail.com designates 10.152.112.132 as permitted sender) smtp.mail=manzyuk@gmail.com; dkim=pass header.i=manzyuk@gmail.com Original-Received: from mr.google.com ([10.152.112.132]) by 10.152.112.132 with SMTP id iq4mr12820255lab.28.1330380633219 (num_hops = 1); Mon, 27 Feb 2012 14:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=o6JC7HCVgiFeylDV0cnATWOps20McuO18zDPGLuH2zo=; b=DJ8KI/7DGDA+mljSlI5BebOaRK+f5/VdhLFMpCIkGfs+4bcFjQuR5o9kbJmDPoccNS SXykg2xEZBDXGrnCGqzbPkv3LUW/AaFvG61vFrahjG+octVZjy+pCXrDh1ntmbsTyIek TyfUAAynRtffzJmuv10pNSeNbB7KVhqeOE3to= Original-Received: by 10.152.112.132 with SMTP id iq4mr10740097lab.28.1330380633161; Mon, 27 Feb 2012 14:10:33 -0800 (PST) Original-Received: by 10.152.21.97 with HTTP; Mon, 27 Feb 2012 14:10:33 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57335 Archived-At: I'd like to confirm this problem. I've chased it down to the function `face-spec-reset-face' from lisp/faces.el. The version from Emacs 23.2: (defun face-spec-reset-face (face &optional frame) "Reset all attributes of FACE on FRAME to unspecified." (let ((attrs face-attribute-name-alist)) (while attrs (let ((attr-and-name (car attrs))) (set-face-attribute face frame (car attr-and-name) 'unspecified)) (setq attrs (cdr attrs))))) The same function from trunk: (defun face-spec-reset-face (face &optional frame) "Reset all attributes of FACE on FRAME to unspecified." (unless (eq face 'default) (let (reset-args) (dolist (attr-and-name face-attribute-name-alist) (push 'unspecified reset-args) (push (car attr-and-name) reset-args)) (apply 'set-face-attribute face frame reset-args)))) Why does the latter not reset the default face? If I start Emacs with "emacs -Q", start the server with M-x server-start, and evaluate the former definition in the *scratch* buffer, then doing "emacsclient -t" from the terminal gives me a frame that respects my terminal background color. Best, Sasha -- Oleksandr Manzyuk http://oleksandrmanzyuk.wordpress.com