From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dimitrios Apostolou Newsgroups: gmane.emacs.help Subject: Re: emacsclient and reverseVideo in Xresources Date: Mon, 24 Sep 2018 22:03:47 +0200 (CEST) Message-ID: References: <83lg7ygace.fsf@gnu.org> <83fty6g35q.fsf@gnu.org> <20180920174110627290316@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1537820326 6003 195.159.176.226 (24 Sep 2018 20:18:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 20:18:46 +0000 (UTC) User-Agent: Alpine 2.21 (LFD 202 2017-01-01) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 24 22:18:42 2018 Return-path: Envelope-to: geh-help-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 1g4XJa-0001Sk-GW for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 22:18:42 +0200 Original-Received: from localhost ([::1]:47035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4XLe-0003Uo-5H for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 16:20:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4XJL-0000Vb-GK for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 16:18:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4X5K-0001CD-Ke for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 16:04:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:54123) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4X5K-00015G-6O for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 16:03:58 -0400 Original-Received: from jimisX1 ([84.209.119.197]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LbMb0-1fL42r3v3a-00kvsL for ; Mon, 24 Sep 2018 22:03:48 +0200 In-Reply-To: X-Provags-ID: V03:K1:cAYbClf2iDMfuK3ULnqfDW4BVYcxkj5bbwrGt1k8TbCUedzJMss MwdhwG30O+UYoKIL2bYc41qy1cl5VSN16Xb3NRWQF9Go+8Mg7LBwE3YWY2k9dp55Bwb+5XZ dlHdZWOnIni+XZI7qbOxDuIOfs5sYDjyOo1CLyuASvKzLgfhzz4LifOF7E0Ur9MR1t7aiKh 9Zi3Qjou/kxP5OqcZNu2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:RQ+yHNuNdIw=:RZrLLFr63wpVlmWxwlK6Gk kLR/xRz+snW1XlK2ZqzY9xYigbDZt/+JwMuJBE+sma5cHisc1g1yjlhQukIaVDFja8SCCGXpX 5tNhjsw+qULuxe0OnFTlSPhZ5S8XPnt2sl9bApP4/sG/AcNPWRBrOhZvDGhDcy7nyBjKOL/98 zKGcEZkVicHiJOYGM3RoW4escPQUFTtVE+e87/LAQBQBCDAvKjNxFH3ZFP0dyNaCxrHk1Zobr snU4ci35fod5HF3YR4gLK1OhtnJP04ITdq+418fScES5EThGj7VUVSQhkz1WE9FYr12xjDAWx fWX8iYeX45YzeFnRYCr2S9gzIIORy5O4Ys05NHQK21qJGKkkJbaOLU6ApqBwq2v8yPSIG9Y7P QJ0g3iwkHjx+LUg4DKF5VFHxYfDvY+jKCGlUvHjnGJQa9QQtFUBSwKwkSt3C7M9f+xgM0LyZ6 cp2uyQ5Q9L/BtH2+Gv0dfbkINrDy+AJak+VLxLUc5uAbnn8QPQo5seCbLMsNtx0z9m5dGTjhp QOhj+lnFDlyPyCw4rR0BsgUCAjvOH7yvvwbTfEUU3tPTqurtw5QHMHTWrRg56kMRL7n/dYVWF HNb4JbQJJF1je1Y6Qj5osud4reY1J0SzB1ZLOdeto/JWd+PGwg4+hiEEh5uvp+rxLtu6FyN11 F21gjXfick4KYQQmVdmQqGEjcpRFLCn8WyuhUG5JG3yvT8zjv5+6G60jv7S7MkCUOarAuP2Td 4Lgl+CajN4Ukzjajsn+edH9V0T03C9QO6lwdqMof0wP2bPQY7OyIrQ0/nnW41ttieh3avkZf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118000 Archived-At: On Mon, 24 Sep 2018, Javier wrote: > Dimitrios Apostolou wrote: >> - I am launching emacs from within a dark xterm, all commands are manual >> - "emacs -nw" launches emacs with the same (dark) background *in the same terminal* >> - "emacs -Q -nw" behaves the same (-Q explicitly skips processing of Xresources) >> - "emacsclient -nw" launches emacs with white background *in the same terminal*, i.e. it reverses the colours! >> - My .Xresources instructs all X applications to reverse colours with this line: "*reverseVideo: true" >> - The same colour reversals mentioned above happen also when I start emacs from a white-background xterm (using "xterm +rv") >> >> My findings so far indicate that emacs-server loads my Xresources file and >> sets some internal state that instructs all new emacsclient instances to >> reverse colours. I believe that this should happen only if emacsclient is >> not opening the new frame as a console application. > > I get the same as you. To make the thing faster to reproduce: > > 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 & > Thanks, this makes it easy to demonstrate the issue. Dimitris