GNU bug report logs - #4594
-Q does not ignore all X resources

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 30 Sep 2009 01:45:03 UTC

Severity: wishlist

Tags: wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4594 in the body.
You can then email your comments to 4594 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 01:45:04 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: -Q does not ignore all X resources
Date: Tue, 29 Sep 2009 21:36:13 -0400
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.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 02:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 30 Sep 2009 02:05:05 GMT) Full text and rfc822 format available.

Message #8 received at 4594 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 4594 <at> debbugs.gnu.org
Subject: Re: bug#4594: -Q does not ignore all X resources
Date: Wed, 30 Sep 2009 03:55:26 +0200
On Wed, Sep 30, 2009 at 03:36, Glenn Morris <rgm <at> 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



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 02:05:07 GMT) Full text and rfc822 format available.

Message #11 received at 4594 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 4594 <at> debbugs.gnu.org
Subject: Re: bug#4594: -Q does not ignore all X resources
Date: Tue, 29 Sep 2009 21:56:07 -0400
Glenn Morris wrote:

> Current CVS trunk on GNU/Linux.

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



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 05:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 30 Sep 2009 05:00:04 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 4594 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#4594: -Q does not ignore all X resources
Date: Wed, 30 Sep 2009 00:50:02 -0400
> 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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 05:00:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 30 Sep 2009 05:00:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 06:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 30 Sep 2009 06:25:04 GMT) Full text and rfc822 format available.

Message #26 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>,
        "4594 <at> debbugs.gnu.org" <4594 <at> debbugs.gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>,
        "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>,
        "4594 <at> debbugs.gnu.org" <4594 <at> debbugs.gnu.org>
Subject: Re: bug#4594: -Q does not ignore all X resources
Date: Wed, 30 Sep 2009 08:15:27 +0200

30 sep 2009 kl. 06.50 skrev Stefan Monnier <monnier <at> 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.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4594; Package emacs. (Wed, 30 Sep 2009 06:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 30 Sep 2009 06:25:07 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 30 Sep 2009 16:25:07 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jan 2010 19:06:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 4594 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 22 Feb 2012 02:49:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Mar 2012 11:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.