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: Ping Date: Tue, 28 Feb 2012 14:30:20 +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 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330439568 26025 80.91.229.3 (28 Feb 2012 14:32:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2012 14:32:48 +0000 (UTC) To: 10748 <10748@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 28 15:32:46 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 1S2O6e-0007L7-OM for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2012 15:32:44 +0100 Original-Received: from localhost ([::1]:47070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2O6d-0005MF-SQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2012 09:32:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2O6N-0005Kh-EQ for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 09:32:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2O6H-0005S6-4R for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 09:32:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2O6G-0005Ry-UC for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 09:32:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S2O8s-0001wW-Cq for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 09:35:02 -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: Tue, 28 Feb 2012 14:35:02 +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.13304396487405 (code B ref 10748); Tue, 28 Feb 2012 14:35:02 +0000 Original-Received: (at 10748) by debbugs.gnu.org; 28 Feb 2012 14:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:60961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2O7t-0001up-Sw for submit@debbugs.gnu.org; Tue, 28 Feb 2012 09:34:07 -0500 Original-Received: from mail-lpp01m010-f44.google.com ([209.85.215.44]:61494) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2O7R-0001u7-AE for 10748@debbugs.gnu.org; Tue, 28 Feb 2012 09:33:49 -0500 Original-Received: by lagj5 with SMTP id j5so3136936lag.3 for <10748@debbugs.gnu.org>; Tue, 28 Feb 2012 06:30:20 -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 iq4mr15550532lab.28.1330439420396 (num_hops = 1); Tue, 28 Feb 2012 06:30:20 -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 :content-transfer-encoding; bh=HZ311WyU0JKHHuRBCC1XDCHnA/sdYVCvsgLr/LPkAEs=; b=FXS3Bd+81bONq4gBNYofMdMiIqt8ir8GDROyN3zNbNZQCPUsInSG1dGuC0F/+pXrX8 bZ273g8wp08jbPzVporfQaQNK+VFkwBqj/ozc40g3MR4CE4bYAYEGUCsm7Dn8Tj/9EAf uS4qMc1q0jOkqXx7HMJlBwkb6aAbq3ZIcw/Kw= Original-Received: by 10.152.112.132 with SMTP id iq4mr12963046lab.28.1330439420028; Tue, 28 Feb 2012 06:30:20 -0800 (PST) Original-Received: by 10.152.21.97 with HTTP; Tue, 28 Feb 2012 06:30:20 -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:57361 Archived-At: To save you reading the thread linked in the original bug report, here is how to reproduce the bug: 1. emacs -Q 2. M-x server-start 3. Open a terminal with nonstandard foreground and/or background colors. =C2=A0 For the sake of example, I assume that you've run "xterm -bg yellow= ". 4. Run "emacsclient -t" in the terminal. The observed behavior: the background becomes grey, whereas the expected behavior is that Emacs honors the terminal background color (yellow). I normally set the background to white in .Xresources. =C2=A0I've used yell= ow color only to make my point. This behavior is a regression in Emacs 24. =C2=A0I've chased it down to thi= s commit: commit 27528399fd429b2f510e13f361affb1e2211ceb3 Author: Chong Yidong Date: =C2=A0 Tue Jan 31 16:38:58 2012 +0800 =C2=A0 =C2=A0Fix menu-set-font interaction with Custom themes. =C2=A0 =C2=A0In particular, prevent it from setting non-font-related attrib= utes =C2=A0 =C2=A0like the foreground and background color. =C2=A0This requires = a bugfix to =C2=A0 =C2=A0face-spec-reset-face to make "resetting" the default face work= . =C2=A0 =C2=A0* lisp/faces.el (face-spec-reset-face): Don't apply unspecifie= d =C2=A0 =C2=A0attribute values to the default face. =C2=A0 =C2=A0* lisp/frame.el (set-frame-font): New arg ALL-FRAMES. =C2=A0 =C2=A0* lisp/menu-bar.el (menu-set-font): Use set-frame-font. `face-spec-reset-face' has been changed to reset only non-default faces. While I understand the rationale of this change, it seems to break handling of fore- and background colors in terminal. =C2=A0If I evaluate th= e old definition of `face-spec-reset-face' in the *scratch* buffer, connecting to Emacs with "emacsclient -t" works the way I am used to. --=20 Oleksandr Manzyuk http://oleksandrmanzyuk.wordpress.com