From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: emacsclient and reverseVideo in Xresources Date: Mon, 24 Sep 2018 17:09:10 +0000 (UTC) Organization: Aioe.org NNTP Server 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 X-Trace: blaine.gmane.org 1537808911 14508 195.159.176.226 (24 Sep 2018 17:08:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 17:08:31 +0000 (UTC) User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) 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 19:08:27 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 1g4ULT-0003gl-CS for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 19:08:27 +0200 Original-Received: from localhost ([::1]:46196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4UNZ-0002fi-Si for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 13:10:37 -0400 X-Received: by 2002:a05:6000:a:: with SMTP id h10mr1097467wrx.13.1537808952310; Mon, 24 Sep 2018 10:09:12 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Original-Path: usenet.stanford.edu!143-v6no860076wmm.0!news-out.google.com!z184-v6ni2225wmz.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.uzoreto.com!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: aPJVVR0E0beUwQdJulDzVg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:223873 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:117998 Archived-At: 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 &