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 18:19:43 +0800 Message-ID: <87czg93juo.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> <87fsl5sxse.fsf@yahoo.com> <83y1yxdffv.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="3836"; 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 12:21:37 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 1nrdHk-0000r2-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 12:21:37 +0200 Original-Received: from localhost ([::1]:44962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrdHj-0006Io-Dy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 06:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrdHC-0006IR-PY for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 06:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrdHC-0006pY-GW for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 06:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrdHC-00089l-9m for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 06:21: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 10:21: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.165295560631254 (code B ref 32921); Thu, 19 May 2022 10:21:02 +0000 Original-Received: (at 32921) by debbugs.gnu.org; 19 May 2022 10:20:06 +0000 Original-Received: from localhost ([127.0.0.1]:34530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrdGH-000882-Ph for submit@debbugs.gnu.org; Thu, 19 May 2022 06:20:06 -0400 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:39952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrdGF-00087R-W5 for 32921@debbugs.gnu.org; Thu, 19 May 2022 06:20:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652955597; bh=k2AdsEMnhnN27sks12JKVcngcDJJ+D7kWOBohT52QlI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=fE4eMQFYt89r+FRLZpe1uDzS1i1SaB+43gMvpWyNQ/u7alxwnFF4g58597vdc8P+O08cKf4Wu40h42c27WGAQsVevLBqsgQ/Anl1oDPOlxSVjCeyyeL5WWekbHhvaAn/WJR0dr2fAiGNmFhEK9zRHbZ5BBjnEAdS3TmVSgaWAtLiuZ6IDl8R/tIjzwVPTFl8jvUa42B2S8tWiaBbF1Ji7AW5xrXuwIKsRJozX8Wy1S+3OiFKwmvlNmRahM0IySnt+KfbPhFH0mP9bnmVp9sP9+GvpSrPkNi/QdC3Csf2UoHNPY4Hf+oDOKCrV2d481Q/uAGeiRT/G2BSTrpEKDaSVQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652955597; bh=6E0HMHiLBgPE8F6Gqm0Xdutb1AYEJYmYH0WEs3yRfnl=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=sVwPEUn4z9dqtcnxhx31/LJGteVZRmGyOYpE3JozJ0L1/Y0NmFeKwyi0PwokUHkkrDpmSPXs5Q4ExfBKKpGXyX/BUgdyIk/ZbNAK8FnLtI8X31LzGrpen2ZwT4sT7kSIpJ+3nyo03NcalX5I/8Auy2jnzJ7kyRxIL9hTimffxTDTfT79ZVajTOn6Eza3H0TLx+iinFdrugHgnniKRA0OvzcIfTkrTa6gq2I1vJ3eH36eUNLeZBGKQtGakY3FDpAYSd1Qi9rNVT8rePx06y4nAdgTHAm2vTFlPZDU+K/VNKW1DQewvzlusOvXlyUYesIK/PBiQTz4cTsV/wUeWAOb6g== X-YMail-OSG: ptD6fvkVM1lzo8mcpncKus0zYeu0wfWfUC9xc76AQhxifEwLs16hUXc070A7Df3 oeEjzU.B5ZMe.TQZ5hROP5JBBsWJt5oQHaBKEB_BJ4A_wnRtpervucCsaIdOV4Vt8P494MXUfYfp Phq7Z6taauzvY2PspxmJuFJ6_D0h698IzzWmX7DJlI0VE6zpjCQZgxDtZsR4asf662kH3yHeczp_ UftOPmuHGi7E8JfMuA0k_I3Jr694ZDr1vm40etlMI.VzjuA2ZUBAqzXx04uMCgqXMx.cAs4CRGTx pgKMZBfFLK_QJ5GkanN.D8MYqfAhHsoB68GuEHKvRiXj22yiqzwGZaM95lBb2w1g38VR0VHehj77 bfIdxCPTOKb8lbWb7Pq.mf_7JOpMGPFVMrBawDjLJARbQ6_ofn7zGuruutBc0VAvK57MDbdK0W9N Fr87BPBL_V_3U2WbDMAyd_XuCyO6eOUyjhm64YVxANvGggkOHZvFEUPfs2K.bC1t9DT9lyvV8W4_ IIWY2cRWAUjHIGUo0FzVjOS_E8LzQEIp0bQX7jjVpcvojnHRZHBjV8uZMUVNMva1ctZHXG56yQuZ EKukTILJG2hFcvN9jfvyzOwCLbGopHyxmEA48Pf0uvRVFJWePBl.xH9NLXhDIRRtnO5W7jCHDwlZ mYO7QpttYtyEssJDcFoSrIUeE1iDqIxE5L3USk44lbh1eIFJdRLhEklmYjhQ2W3X075h0uR2II2g aqRqeceSNwfn16ykcoHJoFktAMeTXWK2ME0GNM5E7e6eoIPsE8bFeliZ9dbGtnvbr_5Au3CdzPeo uG5aVytakVxgvBDYra8KZRexQ9H2HvZNKChC8L1jYG X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Thu, 19 May 2022 10:19:57 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-426jq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0ffdd89f7c0eb1cb7770ea878db03c20; Thu, 19 May 2022 10:19:50 +0000 (UTC) In-Reply-To: <83y1yxdffv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 May 2022 12:44:52 +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:232636 Archived-At: Eli Zaretskii writes: > How do you mean "never"? We have here the code in x-win.el which does > that and is very old, so "never" doesn't seem to be a good description > of the situation. And multi-TTY support has nothing to do with > multiple X displays. AFAIU, you suggested to take the X resources > into consideration only for the first X display on which Emacs opens > its first frame. What does this have to do with multi-TTY? No, I suggested to take the value of Emacs.reverseVideo of each display (yes, they are different between different displays) into account only for frames created that display. > This is completely irrelevant. We supported X resources in Emacs > forever, and I see no reason to unsupport them now. We need to > discuss this under the assumption that ~/.Xresources and ~/.Xdefaults > will continue to have the same effect on Emacs as they did before, at > least optionally if not by default. Thus, suggestions to toss that > support are non-starters from where I stand. Why? My point was that X resources in Emacs are loaded from the X server, and as such reverseVideo could be different from one display to the other. This works fine with frame parameters that are set with gui_default_parameter, since that calls gui_display_get_resource with the dpyinfo the frame is on. However, the existing code applies the value of reverseVideo of the first display to all frames, even those created on subsequently opened displays, which means the `reverse' frame parameter of those frames will not match the value of Emacs.reverseVideo on any display other than the first display that was created. > What about the suggestion to have specially-named frame parameters in > default-frame-alist, which are defined from X resources and only > applied to GUI frames? That would work incorrectly if Emacs was connected to two different X servers, each with different values of reverseVideo.