From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32921: emacsclient obeys Xresources even when launched with -nw Date: Thu, 19 May 2022 16:23:41 +0300 Message-ID: <83r14pd5b6.fsf@gnu.org> References: <87o7zvc8xi.fsf@gnus.org> <835ym3f0xt.fsf@gnu.org> <875ym3c7bj.fsf@gnus.org> <834k1nezs3.fsf@gnu.org> <87ee0raqy2.fsf@gnus.org> <87czgal2tt.fsf@yahoo.com> <838rqydmy8.fsf@gnu.org> <878rqyklqj.fsf@yahoo.com> <831qwqdj2w.fsf@gnu.org> <87fsl5sxse.fsf@yahoo.com> <83y1yxdffv.fsf@gnu.org> <87czg93juo.fsf@yahoo.com> <83sfp5d7ad.fsf@gnu.org> <87h75l1xeo.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 32921@debbugs.gnu.org, larsi@gnus.org, jimis@gmx.net To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 19 15:24:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrg8Q-0000q7-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 15:24:10 +0200 Original-Received: from localhost ([::1]:50842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrg8O-0003fF-Pm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 09:24:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrg8I-0003f2-Fi for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 09:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrg8H-0004Vm-Ur for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 09:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrg8H-0000p4-My for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 09:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 May 2022 13:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 32921-submit@debbugs.gnu.org id=B32921.16529666333147 (code B ref 32921); Thu, 19 May 2022 13:24:01 +0000 Original-Received: (at 32921) by debbugs.gnu.org; 19 May 2022 13:23:53 +0000 Original-Received: from localhost ([127.0.0.1]:34804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrg89-0000oh-9P for submit@debbugs.gnu.org; Thu, 19 May 2022 09:23:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrg87-0000oT-BL for 32921@debbugs.gnu.org; Thu, 19 May 2022 09:23:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrg82-0004UX-0l; Thu, 19 May 2022 09:23:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FrEKW7TaDjgnUhl8hsuRMFJPcr6iJGlM44/ym+rewoc=; b=i2ZboCBeqCdY CcQHXufOCSwTQuAnyLob1gvyg9O1F2uJKQ+XG+ltHKbOH4MAh3AxveDSFb4PJS03yhRmecf+GSApU XFN4UycsrL7LXFtbzReP5dtnCWsOeyOTz6o5RVh7hXKocASYis/REqWXByI2iLHHpb8gZFu5JY4XY jIhiF+Gn1LdYOllincijyJ9wH+Pjl/dgdzNfL+H0yLomkiXT5i+gpAugBqe6aRvXzIJ1fTHTyKWKi pcp4+oxdRTWD/8jaM0CH8EpSeiZhRaXDHlNMiFn+ohHs1cTnae9Q8HGQ+TPBOYe8Lcd19+gSkMFqr TmFKOhuT2S9oQxk5YnRbYw==; Original-Received: from [87.69.77.57] (port=3190 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrg81-00061M-Gg; Thu, 19 May 2022 09:23:45 -0400 In-Reply-To: <87h75l1xeo.fsf@yahoo.com> (message from Po Lu on Thu, 19 May 2022 21:09:51 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232643 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, 32921@debbugs.gnu.org, jimis@gmx.net > Date: Thu, 19 May 2022 21:09:51 +0800 > > Eli Zaretskii writes: > > > We already do that, see the information and the backtrace posted by > > Lars a while ago. > > Hmm... then why does this code still exist at all? That's what we are trying to understand, among other things. I posted one possible explanation. > x-create-frame-with-faces should take care of setting the `reverse' > parameter entirely. I'm not sure this is 100% true. > Could you please explain what you meant by "startup timer" here? > > > So the difference is between (a) taking notice of the reverseVideo > > resource at startup timer as opposed to (b) at frame creation time, is > ^^^^^^^^^^^^^ > > that right? If so, I think this might affect the use case whereby > > someone changes the X resources after Emacs has already started, or > > something? It's a typo: I meant "at startup time". > > The code in x-win.el does something beyond that: it caters for people > > who have X resources specified on their user-private files, and want > > those settings to be in effect on all displays. > > But then why only a single resource, and not all of them? Especially > an obscure one like reverseVideo? I don't know. I guess for some kind of backward compatibility. This is very old code. > > People who want Emacs to behave like you describe can simply remove > > this setting from their ~/.Xdefaults. > > That wouldn't be useful, since Emacs doesn't even load ~/.Xdefaults if > the X server it connected to already has some resources loaded. You assume that those hypothetical people didn't take care of that. > > Not necessarily, because frame-parameters applied by > > gui_default_parameter could override those we took from ~/.Xdefaults. > > I meant the parameters applied by gui_default_parameter when the > parameter is not present in `default-frame-alist' or the ALIST argument. Then I don't understand your objection at all: when Emacs starts up, there's only one X server that can be relevant: the one where Emacs shows its first frame.