From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#32921: emacsclient obeys Xresources even when launched with -nw Date: Wed, 18 May 2022 15:52:21 +0200 Message-ID: <87ee0raqy2.fsf@gnus.org> References: <87o7zvc8xi.fsf@gnus.org> <835ym3f0xt.fsf@gnu.org> <875ym3c7bj.fsf@gnus.org> <834k1nezs3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 32921@debbugs.gnu.org, jimis@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 15:53:53 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 1nrK7c-0003s6-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 15:53:52 +0200 Original-Received: from localhost ([::1]:55042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrK7a-0002kk-2v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 09:53:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrK6o-0001Fz-HR for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrK6o-0006hx-83 for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrK6o-0000sZ-6w for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2022 13:53: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.16528819533342 (code B ref 32921); Wed, 18 May 2022 13:53:02 +0000 Original-Received: (at 32921) by debbugs.gnu.org; 18 May 2022 13:52:33 +0000 Original-Received: from localhost ([127.0.0.1]:59550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrK6K-0000rq-OM for submit@debbugs.gnu.org; Wed, 18 May 2022 09:52:32 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrK6J-0000rd-Kh for 32921@debbugs.gnu.org; Wed, 18 May 2022 09:52:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uI507t96NJlQUdI7ukGRu/V1HKLsJbp3ew+8ueGTskA=; b=m5JI0CdJUKSzdGs4pPSxeD3Z9m RxZI2S0I/ew4gpyegjorzYlwKc8BBeIXFODYW5Ldleq2hFIEXoppRWHb7mnCv3g6Nnpow+q0h9SOf ADABz4ZtNmSLQDxKl7A7I/3yR1W3h2efwIWjQZOBvpqPdqwjo5aTTqKfy30xOKzS5RZ0=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrK6A-0007wX-FH; Wed, 18 May 2022 15:52:24 +0200 X-Now-Playing: Porridge Radio's _Every Bad_: "Lilac" In-Reply-To: <834k1nezs3.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 May 2022 16:27:56 +0300") 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:232572 Archived-At: Eli Zaretskii writes: > 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? Yes, it would change that behaviour... but I think we'd want that? If the user changes reverseVideo, then I think it's natural to expect subsequent frames to heed that. (Not that I think that's very important -- people generally don't do that.) > Maybe it would be safer to add a special frame-parameter which will > record the fact that some parameters came from X resources, and will > then refrain from applying those parameters to TTY frames? Or maybe > we should have some other special construct in default-frame-alist > that prevents some parameters from being applied to TTY frames? > Because I think reverseVideo is just one example of such parameters. Yes, a default-frame-parameters-for-window-system (or something like that) variable might make sense in general. Then users could specify these things separately for TTY and GUI. But are there many parameters like this? Most of the frame parameters are ignored on TTY... >> It might not be redundant on Windows, which presumably doesn't call >> these X functions, but does heed reverseVideo in the w32 version of >> window-system-initialization. > > Yes, we emulate X resources using the Registry on MS-Windows (although > I think this is largely unknown and unused). I see. I wondered whether this was for using X servers under Windows, somehow... (I think that existed a long time ago, at least?) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no