From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#32921: emacsclient obeys Xresources even when launched with -nw Date: Thu, 19 May 2022 16:59:29 +0800 Message-ID: <87fsl5sxse.fsf@yahoo.com> 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> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35259"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 32921@debbugs.gnu.org, larsi@gnus.org, jimis@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 19 11:01:50 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 1nrc2Y-0008zP-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 11:01:50 +0200 Original-Received: from localhost ([::1]:50806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrc2W-0008WQ-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 05:01:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrc0p-0008Ul-BY for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 05:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrc0p-0003Hw-1F for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 05:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrc0o-00063b-US for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 May 2022 09:00:02 +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.165295079023235 (code B ref 32921); Thu, 19 May 2022 09:00:02 +0000 Original-Received: (at 32921) by debbugs.gnu.org; 19 May 2022 08:59:50 +0000 Original-Received: from localhost ([127.0.0.1]:34475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrc0c-00062h-3I for submit@debbugs.gnu.org; Thu, 19 May 2022 04:59:50 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:46876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrc0a-00062S-Ks for 32921@debbugs.gnu.org; Thu, 19 May 2022 04:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652950783; bh=82fqh/EG1CzBYEsgqZnEnunYrIyie7S5iE2SmPDAe9k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=kwY3vSQ0MQO5r03oP/VPtnmVHhKmSYrMiTZjWPrxohfT4patezMuVyPC8dGxxGk4AheopyGMukAc1+rAZlmXrsT6bc0arJM1PR6uxndy0BIy9NMzqpuNpgavGjw5WEI42F/yd6AqG7ygs9C4e74+VBixsyVL8GrsOmaCETU3ZkXwZRdlRIc0f+eIYPPk3YpnpI/wcd9XcgqGKRIMcEBDR5fC0ssvjlWJqKCqdwf4eHQxdtRHZmYxdv/PrT8zko6IRozQiGsJdCU1xU5NSOkHOfu8Ggn9IMD69dsHN6VDef3dm8LUDE4IFF2HNql35IbJXGETHKx+zaUKn672mOOSkQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652950783; bh=7fScJLogo2nyTYDIi6lgivCSthVRjlc1wgTGDNTjcdv=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=D9/SydOpLcYl+DXg78tFI1hp02TMhKtAxrNj7yEllpSrw5E6j+AGk6h6V1eGzVx66MwbPndNPekx6E5sYIr4xm60s2psCVvKYALr1+lptEg06q89ZIKxMe4cA/uxhBBTvbDuWKbzVTp2XsuHJQFzmK3VZ0meWh75DTSwxExuVPcrOCidfFuqgxntEFiFUHu8RJQeEEr2L82PbzCEPYRbAA1LcaQZjxjv8qFv/GkqMhIITggR+uSdW842KJdoEIQrtb4vsc21UHcVpLMuKT+5Q+8Kl4wFSpTc2VbsmSAYtF8bpaISui15z03wfJU0MxB5CkJGs3pUCwhPkfQcTdKj+g== X-YMail-OSG: Vipl8zkVM1mzhSmzB30yka8s12JfigTh_J3S8XsSGJsxkyeRO_ILcL0HHHUKDDB tlU1m_.JUXpnaJa75q2S7xlXe4i.txo8RqbP6LuqbxmVzlSu5uRwyTGxF.wz1d.BJhhoQ6.NjiEd ufZw0KEfZsF1lmJ.T4hUwj3CRsQD.IBH5ZB4nFhAa5Z7qRC4JHL1_cXZblbBvEgdjFLHLqqHq_Gg 0eXW5Qmjej59LBrCK412JW.4IXtLmRey81_SLv.mHi_GsY8pWJZxVXgt9RqucsFm7Z6NxAoIcSSU yig5ind2k_C3BdDVB3bjurjhZLNl5vybq1EUMHghmfkVo6DCuX77nighaf4_o2s2kbr7XO1..ney drCmBQjFnBZMdNZWq2q8YoSeVvRPD.GpTW0XHXBzCPX2WJgwTx_UAW4Z7r1nep0l5TjYWTN8Btrt o6Ydsz6u_sf9_8MAge_oF3lzAik6HXjix5PBlZYS1tTkeFi5jdbRZrvaoN8n4OBBaLWwOHGEAHCk LTg8GTmvjyt0BesIkWFw0YqAqHrRilLsBlW9Se2W.OrLC0wXwoJ28vY5pvPqcNhTcWCAX5bgISCU sBEbH9cGKUnrJwIvKCWIZZsza8dmabtFauY08ZyGEtQM9kYNbUAEgqbrHfDfdvnvUOCrA4xzxvnB dquNzW25FVIYyGimkFslq3.mL84nM6GHfyMVvtAJkVvY0xM2fTjS.Qli7Bekc64_4aKQV9RJqaYE Pvf47IyKlLyeiNbVQBU6W2O41dl.EAPi1pmO3Zmo6zTFKNgID2qd1bVmFPamYC7Z245dFlIcpBkn I9ClciUxdaAHHncp6GOcTXccT9Cxattc2YL5hxRWEP X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 19 May 2022 08:59:43 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-b4hml (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 30ef9b5b36024781c1086912d9a3d53e; Thu, 19 May 2022 08:59:38 +0000 (UTC) In-Reply-To: <831qwqdj2w.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 May 2022 11:26:15 +0300") X-Mailer: WebService/1.1.20225 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:232631 Archived-At: Eli Zaretskii writes: > We may be miscommunicating. The offending code in x-win.el is called > at startup, only once, and sets up default-frame-alist for all the > future frames, including those on displays this Emacs session did not > yet open and knows nothing about. How would you define > default-frame-alist that is specific to those as-yet-unknown displays? I would leave it empty. > And if you are saying that the code in x-win.el should only affect the > display on which Emacs was started, then that would be an even more > seriously breaking change. Why should we assume that the user > intended his/her X resources to be only honored on the (random) > display where Emacs shows its first frame? The files ~/.Xresources > and ~/.Xdefaults are not specific to any display, AFAIU, they are > global for the user. Right? Emacs _never_ honored any other X resource that happened to be on the first display for every display, and I have a feeling this code was a mistake left over from the refactoring of `x-win.el' when multi-TTY was developed. Emacs, like all other X programs, takes resources from several different sources: - The system's locale-specific X resources. This is normally empty on modern systems. - The user's personal X resource files for Emacs. This is also mostly empty on modern systems. - The user's X defaults that were loaded into the X server. Only if the no X resources were loaded into the X server will Emacs try to load them itself from ~/.Xdefaults. - The environment defaults. Also empty on modern systems. This is why X resources are typically specific to each X server, which is also why Emacs keeps a different resource database for each display connection, and does not try to apply resources (other than `reverseVideo') from one display connection to another.