From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dimitrios Apostolou Newsgroups: gmane.emacs.bugs Subject: bug#32921: emacsclient obeys Xresources even when launched with -nw Date: Wed, 3 Oct 2018 19:49:31 +0200 (CEST) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1538588898 5577 195.159.176.226 (3 Oct 2018 17:48:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2018 17:48:18 +0000 (UTC) User-Agent: Alpine 2.21 (LFD 202 2017-01-01) To: 32921@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 19:48:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7lFs-0001JG-7W for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Oct 2018 19:48:12 +0200 Original-Received: from localhost ([::1]:51433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7lHy-0001Zk-QK for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Oct 2018 13:50:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7lHm-0001YK-N8 for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:50:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7lHg-0000Dz-Ds for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:50:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7lHe-0000D9-N4 for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7lHe-0006PG-KN for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dimitrios Apostolou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Oct 2018 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153858899624607 (code B ref -1); Wed, 03 Oct 2018 17:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2018 17:49:56 +0000 Original-Received: from localhost ([127.0.0.1]:35920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7lHY-0006On-2P for submit@debbugs.gnu.org; Wed, 03 Oct 2018 13:49:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7lHU-0006OY-SY for submit@debbugs.gnu.org; Wed, 03 Oct 2018 13:49:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7lHO-00005o-Fx for submit@debbugs.gnu.org; Wed, 03 Oct 2018 13:49:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7lHO-00005T-8p for submit@debbugs.gnu.org; Wed, 03 Oct 2018 13:49:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7lHK-0001Ij-1C for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:49:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7lHD-0008TL-O3 for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:49:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:60207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7lHD-0008SY-E7 for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2018 13:49:35 -0400 Original-Received: from jimisX1 ([84.209.119.197]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMkgl-1g4lff0WyN-008Yoy for ; Wed, 03 Oct 2018 19:49:32 +0200 Original-Received: from jimisX1 ([84.209.119.197]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMkgl-1g4lff0WyN-008Yoy for ; Wed, 03 Oct 2018 19:49:32 +0200 X-Provags-ID: V03:K1:NARWPcDiqG+EplfRIFkEP6UwDW/ij6g8wtXDS6o1byOo+iOLUve Sw6YKap+Yp1XKF00L64LQaALgOy9UcafLn8Tp/lsgRIrMTUuqaAGA5CHUlszJ8w2/GsfkIJ AwkzGzkk8V1vFUXmlu+nn7DzWgnmdKfOFkRYltAdRtZIQHyLAFAHrlxcTcRUJajkNGpWr1I O0cYzdqtgrwdnOZOZ6XsQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:obe5E6ol1VA=:pb92TRFBHJRMPhFkdztuUq 5aY8mfHPfep2bGYkYuixgRKHr2pqE3ooaLkzZwzSHvcb9YVqJyn5sjfTMjXhANJU+LgIL9nYE 1YE4o2AARYze+wFCB4rJvZuplI2SrWzfgSfF2TAKvZxgzzLk226M4P793x3pmAELdAGO9bF1h TKIpK7exzjqqVUDxTVviWT87HiHTtLSXVoXtiOEYrX7CdI7AKTIFYMw6jUkOwuO6rn4s3ItWu pYAOrp47PvyB3h+n35RWuKd3bDTpjhtRa6VmMu8A0NDxeUgfeqjF6bIig3YQm+ZtsV4Py2JqT 5tbeWIN0RH2T52wzMMYmVswJ28vTXFqeD0jHbQIg4AXppjcziUfC0jn1L8r4m0wv6KZe/Rqcu jVbTArRlZKvkMDE+8dSaQQrnIrbNns19WY1JGSfTm0Rxc9n9P7C7f++E33u/iZDIjf7m+pVsT f8HacaFhkk5HdZ4PWKQxW+8awgfM30NQtgM+s3g5fOTzir8SukXbUdAB31KLLdFIoO+C1NUCE mwan7npZJ+aQiavD57dZaKfOQJiKnTNs1TGAoCczthcAXiuidNsMaf52pGmi1may9e/+eMU+1 xO1o1J54Tuv3J4BXM1vXnSFGqz2oFfTVA290euLit62LrYiLWeCZq8C03D2cBcleM3mKWQSlA Mqg5eewTrqO5mpXYksNL7iP+Hetmg7cc7p490YHb5zm4p1bM3PFyYoNOlcz0xzo1gGfSCZNBN w9icaJSKJo51rgEyp0msVDPmtfPz2erypFnft2Tw2JcGdc66wpdj6QfZjkE/BqlkL3359T0q X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:150914 Archived-At: GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 2018-06-26 I have set the Xresource *reverseVideo to true, and as expected emacs reverses the colours when launched under X, and does not when launched with -nw thus keeping the terminal colour selections. However emacsclient obeys the Xresources even when launched with -nw. This leads to colour reversal in text mode, which is unwanted since the xterm has already been configured as desired. It seems the reason is that emacs-server loads the Xresources and sets some internal state that instructs all new emacsclient instances to reverse colours, regardless of them being an X client app or not. A very quick way to reproduce and see the different behaviour of emacs and emacsclient is to run the following commands: emacs -xrm 'emacs*reverseVideo: true' --exec \ '(progn (setq server-name "reverseVideo_TRUE_server") (server-start) (insert server-name))' & emacs -xrm 'emacs*reverseVideo: false' --exec \ '(progn (setq server-name "reverseVideo_FALSE_server") (server-start) (insert server-name))' & sleep 2 xterm -e emacsclient -nw -s reverseVideo_TRUE_server & xterm -e emacsclient -nw -s reverseVideo_FALSE_server & Credits to Javier who posted this script at [1]. Please read the full thread for more information on the topic. [1] http://lists.gnu.org/archive/html/help-gnu-emacs/2018-09/msg00193.html Thanks, Dimitris