all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4594: -Q does not ignore all X resources
@ 2009-09-30  1:36 Glenn Morris
  2009-09-30  1:55 ` Juanma Barranquero
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Glenn Morris @ 2009-09-30  1:36 UTC (permalink / raw
  To: bug-gnu-emacs


Current CVS trunk on GNU/Linux.

If I have items like:

Emacs.pane.menubar.*.Foreground: Red
Emacs.menu*.Foreground: Blue
Emacs.dialog*.foreground: Green

in my ~/.Xdefaults file, then `emacs -Q' continues to respect these
settings. I expected it to ignore _all_ Emacs-related X resources.
This feature would be more useful if it did so.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4594: -Q does not ignore all X resources
  2009-09-30  1:36 bug#4594: -Q does not ignore all X resources Glenn Morris
@ 2009-09-30  1:55 ` Juanma Barranquero
  2009-09-30  1:56 ` Glenn Morris
  2009-09-30  4:50 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2009-09-30  1:55 UTC (permalink / raw
  To: Glenn Morris; +Cc: 4594

On Wed, Sep 30, 2009 at 03:36, Glenn Morris <rgm@gnu.org> wrote:

> If I have items like:
>
> Emacs.pane.menubar.*.Foreground: Red
> Emacs.menu*.Foreground: Blue
> Emacs.dialog*.foreground: Green
>
> in my ~/.Xdefaults file, then `emacs -Q' continues to respect these
> settings. I expected it to ignore _all_ Emacs-related X resources.
> This feature would be more useful if it did so.

Hmm. The only (non-Windows) function I modified to obey
inhibit_x_resources was xrdb.c:x_get_string_resource.

I don't have an X environment. If you can determine which other
functions should be modified, that'd be great.

    Juanma





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4594: -Q does not ignore all X resources
  2009-09-30  1:36 bug#4594: -Q does not ignore all X resources Glenn Morris
  2009-09-30  1:55 ` Juanma Barranquero
@ 2009-09-30  1:56 ` Glenn Morris
  2009-09-30  4:50 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2009-09-30  1:56 UTC (permalink / raw
  To: 4594

Glenn Morris wrote:

> Current CVS trunk on GNU/Linux.

I forgot to say, using the lucid toolkit (probably relevant).





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4594: -Q does not ignore all X resources
  2009-09-30  1:36 bug#4594: -Q does not ignore all X resources Glenn Morris
  2009-09-30  1:55 ` Juanma Barranquero
  2009-09-30  1:56 ` Glenn Morris
@ 2009-09-30  4:50 ` Stefan Monnier
  2009-09-30  6:15   ` Jan Djärv
  2 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2009-09-30  4:50 UTC (permalink / raw
  To: Glenn Morris; +Cc: bug-gnu-emacs, 4594

> Current CVS trunk on GNU/Linux.

> If I have items like:

> Emacs.pane.menubar.*.Foreground: Red
> Emacs.menu*.Foreground: Blue
> Emacs.dialog*.foreground: Green

> in my ~/.Xdefaults file, then `emacs -Q' continues to respect these
> settings. I expected it to ignore _all_ Emacs-related X resources.
> This feature would be more useful if it did so.

Yes, the handling of X resources with -Q is imperfect:
the X-resources that affect toolkit elements are still obeyed
(because they access the X-resources more directly, without going
through x_get_string_resource).  That's what you're seeing.

Patches welcome,


        Stefan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#4594: -Q does not ignore all X resources
  2009-09-30  4:50 ` Stefan Monnier
@ 2009-09-30  6:15   ` Jan Djärv
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Djärv @ 2009-09-30  6:15 UTC (permalink / raw
  To: Stefan Monnier, 4594@emacsbugs.donarmstrong.com
  Cc: bug-gnu-emacs@gnu.org, 4594@emacsbugs.donarmstrong.com



30 sep 2009 kl. 06.50 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

>> Current CVS trunk on GNU/Linux.
>
>> If I have items like:
>
>> Emacs.pane.menubar.*.Foreground: Red
>> Emacs.menu*.Foreground: Blue
>> Emacs.dialog*.foreground: Green
>
>> in my ~/.Xdefaults file, then `emacs -Q' continues to respect these
>> settings. I expected it to ignore _all_ Emacs-related X resources.
>> This feature would be more useful if it did so.
>
> Yes, the handling of X resources with -Q is imperfect:
> the X-resources that affect toolkit elements are still obeyed
> (because they access the X-resources more directly, without going
> through x_get_string_resource).  That's what you're seeing.
>
> Patches welcome,


Widgets managed by Xt reads resources automatically inside Xt code.
It is considered a feature. You probably can work around this but it  
isn't something as simply not calling a function or setting some  
variable.

Too much work for a small gain IMHO.

         Jan D.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-30  6:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30  1:36 bug#4594: -Q does not ignore all X resources Glenn Morris
2009-09-30  1:55 ` Juanma Barranquero
2009-09-30  1:56 ` Glenn Morris
2009-09-30  4:50 ` Stefan Monnier
2009-09-30  6:15   ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.