GNU bug report logs -
#32921
emacsclient obeys Xresources even when launched with -nw
Previous Next
Reported by: Dimitrios Apostolou <jimis <at> gmx.net>
Date: Wed, 3 Oct 2018 17:50:02 UTC
Severity: normal
Tags: moreinfo
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 32921 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 32921 <at> debbugs.gnu.org, jimis <at> 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?
This bug report was last modified 2 years and 332 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.