Subject: bug#4594: -Q does not ignore all X resources

From: Jan Djärv <[email-masked]>
Date: Wed, 30 Sep 2009 08:15:27 +0200

30 sep 2009 kl. 06.50 skrev Stefan Monnier <[email-masked]>:

>> 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.