From unknown Fri Jun 20 07:29:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10905: 24.0.94; "emacsclient -t" doesn't honor terminal fore- and background colors 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 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10905@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133042975319048 (code B ref -1); Tue, 28 Feb 2012 11:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2012 11:49:13 +0000 Received: from localhost ([127.0.0.1]:60853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2LYJ-0004wY-Su for submit@debbugs.gnu.org; Tue, 28 Feb 2012 06:49:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36293) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2LY0-0004w5-Aa for submit@debbugs.gnu.org; Tue, 28 Feb 2012 06:48:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2LUe-0003PT-TH for submit@debbugs.gnu.org; Tue, 28 Feb 2012 06:45:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2LUe-0003PL-NP for submit@debbugs.gnu.org; Tue, 28 Feb 2012 06:45:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2LUY-0001RW-2i for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 06:45:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2LUH-0003HW-OJ for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 06:45:13 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:48341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2LUH-0003Gu-CS for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2012 06:44:57 -0500 Received: by wibhi20 with SMTP id hi20so270610wib.0 for ; Tue, 28 Feb 2012 03:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of manzyuk@gmail.com designates 10.180.104.4 as permitted sender) client-ip=10.180.104.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of manzyuk@gmail.com designates 10.180.104.4 as permitted sender) smtp.mail=manzyuk@gmail.com; dkim=pass header.i=manzyuk@gmail.com Received: from mr.google.com ([10.180.104.4]) by 10.180.104.4 with SMTP id ga4mr5935584wib.17.1330429494448 (num_hops = 1); Tue, 28 Feb 2012 03:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=WZi8zBe9rvpvrPvGYfMJA6yOwLerVtVIq9ei2RnkRtE=; b=R1YtmK0StLA3D8URzvxZIMEKsdzAUzWJR3K0m+Ph4VWGvtraS30snM4UQMm9YlGGKU VT2vXoUIjhKX0V7cLPMWpxEFQJ/8mZMbC54dkqJagWE8nNWavqCoZe4U7QFFG6Rr/UWq q88Q9Fr2V9PGxhaXXDXMZR1M0hx3CxKM7rtwE= Received: by 10.180.104.4 with SMTP id ga4mr4654653wib.17.1330429494340; Tue, 28 Feb 2012 03:44:54 -0800 (PST) Received: from pandora.hamilton.local (hamilton-nat.nuim.ie. [149.157.192.251]) by mx.google.com with ESMTPS id d8sm7143784wia.11.2012.02.28.03.44.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Feb 2012 03:44:53 -0800 (PST) From: Oleksandr Manzyuk Date: Tue, 28 Feb 2012 11:44:48 +0000 Message-ID: <87ehtf2ndb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: First of all, this bug is a duplicate of bug#10748, but I am submitting this bug report anyway because bug#10748 doesn't seem to receive any attention from the developers (probably because it doesn't conform to the Emacs bug reporting rules). [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manzyuk[at]gmail.com) 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: First of all, this bug is a duplicate of bug#10748, but I am submitting this bug report anyway because bug#10748 doesn't seem to receive any attention from the developers (probably because it doesn't conform to the Emacs bug reporting rules). [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manzyuk[at]gmail.com) 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid First of all, this bug is a duplicate of bug#10748, but I am submitting this bug report anyway because bug#10748 doesn't seem to receive any attention from the developers (probably because it doesn't conform to the Emacs bug reporting rules). 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. 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. I normally set the background to white in .Xresources. I've used yellow color only to make my point. This behavior is a regression in Emacs 24. I've chased it down to this commit: commit 27528399fd429b2f510e13f361affb1e2211ceb3 Author: Chong Yidong Date: Tue Jan 31 16:38:58 2012 +0800 Fix menu-set-font interaction with Custom themes. In particular, prevent it from setting non-font-related attributes like the foreground and background color. This requires a bugfix to face-spec-reset-face to make "resetting" the default face work. * lisp/faces.el (face-spec-reset-face): Don't apply unspecified attribute values to the default face. * lisp/frame.el (set-frame-font): New arg ALL-FRAMES. * 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. If I evaluate the old definition of `face-spec-reset-face' in the *scratch* buffer, connecting to Emacs with "emacsclient -t" works the way I am used to. In GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-02-28 on pandora Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Configured using: `configure '--prefix=/home/manzyuk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IE.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: paredit-mode: t eldoc-mode: t diff-auto-refine-mode: t ido-everywhere: t shell-dirtrack-mode: t savehist-mode: t icomplete-mode: t global-auto-revert-mode: t show-paren-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x o q ESC [ > 1 ; 2 4 0 3 ; 0 c C-x C-c M-x C-g ESC [ > 0 ; 2 6 1 ; 0 c C-x b C-s RET C-x C-c M-x r e p o r t SPC e m a c s SPC b u g Recent messages: Done (Total of 2 files compiled, 1 skipped) Loading /home/manzyuk/.emacs.d/elpa/haskell-mode-2.8.0/haskell-site-file.el (source)...done Loading /home/manzyuk/quicklisp/slime-helper.el (source)...done Loading /home/manzyuk/emacs-preamble/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. When done with this frame, type C-x 5 0 (No files need saving) Quit When done with this frame, type C-x 5 0 (No files need saving) Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader preamble-scheme preamble-ruby inf-ruby preamble-org org-install preamble-magit preamble-diff preamble-lisp info-look slime-autoloads preamble-haskell ghci-completion preamble-google-translate google-translate preamble-emacs-lisp preamble-paredit paredit preamble-auctex reftex reftex-vars preamble-package paredit-autoloads magit-autoloads magit-bisect magit-key-mode magit esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff iswitchb view diff-mode log-edit pcvs-util add-log inf-ruby-autoloads ruby-mode haskell-mode-autoloads imenu haskell-font-lock haskell-mode pp google-translate-autoloads json ghci-completion-autoloads parse-time auctex-autoloads timezone texinfo toolbar-x prv-emacs info reporter desktop context latex derived tex-style tex-buf tex easy-mmode tex-site easymenu warnings cl compile autoload tar-mode finder-inf executable whitespace vc-git network-stream starttls url-cache url-http tls mail-parse rfc2231 url-gw url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap package tabulated-list preamble-text preamble-shell preamble-prog preamble-makefile preamble-mail smtpmail sendmail rfc2047 rfc2045 ietf-drums mail-utils preamble-ido ido preamble-ibuffer preamble-dired preamble-comint preamble-ansi-color preamble-windows preamble-tramp tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec tramp-loaddefs regexp-opt preamble-server server preamble-mouse preamble-mode-line preamble-minibuffer savehist icomplete preamble-keyboard preamble-initialization preamble-frames preamble-files uniquify advice help-fns advice-preload autorevert preamble-env preamble-editing paren delsel edmacro kmacro preamble-data saveplace preamble-browse-url preamble-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Fri Jun 20 07:29:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10905: 24.0.94; "emacsclient -t" doesn't honor terminal fore- and background colors Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2012 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Oleksandr Manzyuk Cc: 10905@debbugs.gnu.org Received: via spool by 10905-submit@debbugs.gnu.org id=B10905.133043219722611 (code B ref 10905); Tue, 28 Feb 2012 12:30:02 +0000 Received: (at 10905) by debbugs.gnu.org; 28 Feb 2012 12:29:57 +0000 Received: from localhost ([127.0.0.1]:60876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2MBj-0005sM-VA for submit@debbugs.gnu.org; Tue, 28 Feb 2012 07:29:57 -0500 Received: from mail-pz0-f44.google.com ([209.85.210.44]:57090) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S2MB2-0005r5-HA for 10905@debbugs.gnu.org; Tue, 28 Feb 2012 07:29:24 -0500 Received: by dakl33 with SMTP id l33so1822311dak.3 for <10905@debbugs.gnu.org>; Tue, 28 Feb 2012 04:25:56 -0800 (PST) Received-SPF: pass (google.com: domain of lekktu@gmail.com designates 10.68.228.103 as permitted sender) client-ip=10.68.228.103; Authentication-Results: mr.google.com; spf=pass (google.com: domain of lekktu@gmail.com designates 10.68.228.103 as permitted sender) smtp.mail=lekktu@gmail.com; dkim=pass header.i=lekktu@gmail.com Received: from mr.google.com ([10.68.228.103]) by 10.68.228.103 with SMTP id sh7mr1190872pbc.106.1330431956314 (num_hops = 1); Tue, 28 Feb 2012 04:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AHFJlQ/ZrD+SHn/5+I9Chl/6jM+QxZ8QOxHXqadzKnU=; b=MgNgYAgqFMJtREMPWgC4bI+C5w4LoUCh0A0D7RSwcfZPko9XXZfFUKl0UQz58umxpZ sjFMRyFK/NQU/YOTlMdpLQBmSiSB1c5WH+v1+yLcMphn4QSnBq5uShPmZajw/gHyfln1 EBq4q472EhFWT28RAcsHcNeXn5xkPHBs5Qulo= Received: by 10.68.228.103 with SMTP id sh7mr1044418pbc.106.1330431956193; Tue, 28 Feb 2012 04:25:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.241.5 with HTTP; Tue, 28 Feb 2012 04:25:16 -0800 (PST) In-Reply-To: <87ehtf2ndb.fsf@gmail.com> References: <87ehtf2ndb.fsf@gmail.com> From: Juanma Barranquero Date: Tue, 28 Feb 2012 13:25:16 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) merge 10748 10905 quit > First of all, this bug is a duplicate of bug#10748, but I am submitting > this bug report anyway because bug#10748 doesn't seem to receive any > attention from the developers bug#10748 was filed three weeks ago, and there are > 2,000 open bugs. Duplicating them *on purpose* will not make things better or bugs fixed faster. If you feel a bug is important and has been neglected, just comment on the bug's thread with a "Ping", or ask about it in emacs-devel. Thanks, Juanma From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 11:31:39 2012 Received: (at control) by debbugs.gnu.org; 20 Jun 2012 15:31:39 +0000 Received: from localhost ([127.0.0.1]:50033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShMsc-0006zJ-Sq for submit@debbugs.gnu.org; Wed, 20 Jun 2012 11:31:39 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48223) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShMsa-0006zC-Cr for control@debbugs.gnu.org; Wed, 20 Jun 2012 11:31:37 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ShMpE-0005v9-BS for control@debbugs.gnu.org; Wed, 20 Jun 2012 11:28:08 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 10748 Date: Wed, 20 Jun 2012 11:28:08 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 10748 thanks