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 10:02:39 +0300 Message-ID: <838rqydmy8.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4188"; 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 09:03:56 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 1nraCR-0000zH-Ue for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 09:03:56 +0200 Original-Received: from localhost ([::1]:47482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nraCQ-0000Rc-S0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 03:03:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nraBa-0000Qg-DE for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nraBa-0003GM-3M for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nraBa-000344-0j for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 03:03:02 -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 07:03: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.165294377211763 (code B ref 32921); Thu, 19 May 2022 07:03:01 +0000 Original-Received: (at 32921) by debbugs.gnu.org; 19 May 2022 07:02:52 +0000 Original-Received: from localhost ([127.0.0.1]:34300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nraBP-00033f-Sr for submit@debbugs.gnu.org; Thu, 19 May 2022 03:02:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nraBN-00033P-6k for 32921@debbugs.gnu.org; Thu, 19 May 2022 03:02:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nraBH-0003FV-OJ; Thu, 19 May 2022 03:02:43 -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=uDkezK3+HbwMdqLv/HGaZr4RTqSu3Vlv5Un1HJiHorc=; b=fiyWHmNWEOT2 IakMd0N+rh9hLipOIjQ+Lh7gHlNYzSDyQ9PD26LsJ5xDR2/aypbTKgG3OEakJHqFq3d2ESxxZZx0x Hn5JCRkuPdHyNTsNy6kgAxXfZmT3Pf2AL4cZkASUvY1tJfcN09I23+T/9Vpk7BFIt2hP1PVG3SbqD 5fSl5T0e0pdMwbyu1eCVGJ1C4ED964gU9o9ZZnqDLwI2TW84tJDhrjK8hAbVovwJh/iNnwROB47Xv 2gK/ejOKJU50r1MdY9eauPASvWwmPdyEwcg1pEDlNTcs4k45OfELFKaNjaWz4LQlTJONwvF6wv6SF /mD7FInvqCYgSYu9qiM8wQ==; Original-Received: from [87.69.77.57] (port=3520 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 1nraBH-000592-Bz; Thu, 19 May 2022 03:02:43 -0400 In-Reply-To: <87czgal2tt.fsf@yahoo.com> (message from Po Lu on Thu, 19 May 2022 09:37:50 +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:232619 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , 32921@debbugs.gnu.org, jimis@gmx.net > Date: Thu, 19 May 2022 09:37:50 +0800 > > What we actually need is not to remove that code, but to add a > terminal-local version of `default-frame-alist': as-is I think the code > will probably also end up overwriting the default value of > `inverse-video' when connecting to a new display with a different value > of that resource. It cannot be terminal-local, I think, because we want it to be in effect for future terminals as well. In frameset.el, we have a solution for a similar problem: instead of setting the literal frame-parameter PARAM, we set a specially-named parameter GUI:PARAM. Then, when we need to actually create a frame, we consult those GUI:PARAM parameters, and apply them as needed. So my proposal is to modify window-system-initialization in x-win.el to define special XRESOURCE:FOO parameters in default-frame-alist, instead of defining FOO parameters themselves, and then change the GUI frame-parameter handlers to define the FOO parameters from the values of those XRESOURCE:FOO parameters. (We only need this special handling for frame parameters that are not ignored on TTY frames.) Does this make sense?