GNU bug report logs - #12404
24.2; fails to load X11 resources

Previous Next

Package: emacs;

Reported by: Yuri D'Elia <wavexx <at> thregr.org>

Date: Mon, 10 Sep 2012 15:57:03 UTC

Severity: normal

Found in version 24.2

Done: Jan Djärv <jan.h.d <at> swipnet.se>

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 12404 in the body.
You can then email your comments to 12404 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-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Mon, 10 Sep 2012 15:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuri D'Elia <wavexx <at> thregr.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Sep 2012 15:57:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuri D'Elia <wavexx <at> thregr.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; fails to load X11 resources
Date: Mon, 10 Sep 2012 16:55:44 +0200
emacs24 seems to ignore X11 resources completely. I'm trying Debian's 
GTK and "Lucid" variants of emacs 24.2 and both completely ignore my X11
font resources that emacs23 has been accepting for years.

I have the following set:

emacs.font:		-*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1

emacs24 ignores it completely (emacs23 works as expected).
I tried both emacs24/-lucid, and both end up using the following font as 
frame's default:

  -bitstream-Bitstream Vera Sans 
Mono-normal-normal-normal-*-15-*-*-*-m-0-fontset-startup

which is not even my default GTK font!


In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-09 on trouble, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11203902
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'

'--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50pymacs.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
Loading /etc/emacs/site-start.d/50python-mode.el (source)...done
Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done
Loading /etc/emacs/site-start.d/50yaml-mode.el (source)...done
Loading /etc/emacs/site-start.d/51debian-el.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Load-path shadows:
/usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides 
/usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides 
/usr/share/emacs/24.2/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides 
/usr/share/emacs/24.2/lisp/textmodes/flyspell
/usr/share/emacs/site-lisp/rst hides 
/usr/share/emacs/24.2/lisp/textmodes/rst

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu view debian-el
debian-el-loaddefs w3m-load mmm-auto mmm-vars mmm-compat cl
emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Tue, 11 Sep 2012 07:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 12404 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Yuri D'Elia <wavexx <at> thregr.org>
Cc: 12404 <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Tue, 11 Sep 2012 03:21:36 -0400
Yuri D'Elia wrote:

> emacs24 seems to ignore X11 resources completely. I'm trying Debian's
> GTK and "Lucid" variants of emacs 24.2 and both completely ignore my
> X11 font resources that emacs23 has been accepting for years.
>
> I have the following set:
>
> emacs.font:		-*-terminus-*-*-*-*-20-*-*-*-*-*-iso10646-1
>
> emacs24 ignores it completely (emacs23 works as expected).
> I tried both emacs24/-lucid, and both end up using the following font
> as frame's default:
>
>   -bitstream-Bitstream Vera Sans
> Mono-normal-normal-normal-*-15-*-*-*-m-0-fontset-startup
>
> which is not even my default GTK font!

It works fine for me using Debian's 24.1 package (ie, the GTK+ version),
started with -q (not -Q because that ignores X resources), under XFCE,
with an X resource of the form:

   Emacs.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1

I can't remember whether Gnome settings will take precedence if Gnome
services are running. So suggestion 1 is to recompile --without-gconf
--without-gsettings and see if it makes a difference.

Suggestion 2 is to try specifying the font completely in X resources.

> In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
>  of 2012-09-09 on trouble, modified by Debian




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Tue, 11 Sep 2012 15:14:01 GMT) Full text and rfc822 format available.

Message #11 received at 12404 <at> debbugs.gnu.org (full text, mbox):

From: Yuri D'Elia <wavexx <at> thregr.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12404 <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Tue, 11 Sep 2012 17:12:37 +0200
On 09/11/2012 09:21 AM, Glenn Morris wrote:
> It works fine for me using Debian's 24.1 package (ie, the GTK+ version),
> started with -q (not -Q because that ignores X resources), under XFCE,
> with an X resource of the form:
>
>     Emacs.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
>
> I can't remember whether Gnome settings will take precedence if Gnome
> services are running. So suggestion 1 is to recompile --without-gconf
> --without-gsettings and see if it makes a difference.

Whoa... that was completely unexpected:

  gsettings get org.gnome.desktop.interface monospace-font-name
  'Monospace 11'

funny thing is, I absolutely have no gnome/kde installed, so I had 
*absolutely* no idea what I had to use to query this crap...

Also, I tried the emacs24-lucid package which has --without-gconf, but 
not --without-gsettings and thus I have the same behavior.

How can I force emacs to use X11 resources over gsettings? I have been 
using *font for years now to configure the default font globally, 
including with emacs23.

This is probably a default setting pulled from the 
gsettings-desktop-schemas package which is in turn pulled by some weird 
dependencies, not something I can avoid. Also, I never configured it in 
the first place.

I don't mind the gconf/gsettings dependency on the package, so I would 
like to avoid asking Debian's maintaines to build another packaged just 
for this.

Ideas?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Tue, 11 Sep 2012 16:31:02 GMT) Full text and rfc822 format available.

Message #14 received at 12404 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Yuri D'Elia <wavexx <at> thregr.org>
Cc: 12404 <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Tue, 11 Sep 2012 12:30:06 -0400
Yuri D'Elia wrote:

> Also, I tried the emacs24-lucid package which has --without-gconf, but
> not --without-gsettings and thus I have the same behavior.

I'm only guessing that this is a factor (the manual implies it only is
if font-use-system-font is non-nil).
It should be straightforward to compile your own Emacs on Debian, then
you check for yourself. Start with `apt-get build-dep emacs24'.

Also, I certainly have Gnome things installed, and as I said X11
resources seem to work for me with Debian's GTK Emacs 24. So do try a
more complete font specification.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Tue, 11 Sep 2012 18:11:01 GMT) Full text and rfc822 format available.

Message #17 received at 12404 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Yuri D'Elia <wavexx <at> thregr.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 12404 <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Tue, 11 Sep 2012 20:09:40 +0200
11 sep 2012 kl. 17:12 skrev Yuri D'Elia <wavexx <at> thregr.org>:

> On 09/11/2012 09:21 AM, Glenn Morris wrote:
>> It works fine for me using Debian's 24.1 package (ie, the GTK+ version),
>> started with -q (not -Q because that ignores X resources), under XFCE,
>> with an X resource of the form:
>> 
>>    Emacs.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
>> 
>> I can't remember whether Gnome settings will take precedence if Gnome
>> services are running. So suggestion 1 is to recompile --without-gconf
>> --without-gsettings and see if it makes a difference.
> 

X resources for font take precedencde, last in x_default_font_parameter:

  /* This call will make X resources override any system font setting.  */
  x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);

> 
> How can I force emacs to use X11 resources over gsettings? I have been using *font for years now to configure the default font globally, including with emacs23.
> 

X11 resources for font already takes precedence over other sources.
Do you see emacs.font when you do:
% xrdb -query
?

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12404; Package emacs. (Thu, 13 Sep 2012 09:44:01 GMT) Full text and rfc822 format available.

Message #20 received at 12404 <at> debbugs.gnu.org (full text, mbox):

From: Yuri D'Elia <wavexx <at> thregr.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Glenn Morris <rgm <at> gnu.org>, 12404 <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Thu, 13 Sep 2012 11:42:04 +0200
On 09/11/2012 08:09 PM, Jan Djärv wrote:
> X resources for font take precedencde, last in x_default_font_parameter:
>
>    /* This call will make X resources override any system font setting.  */
>    x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
>
>> How can I force emacs to use X11 resources over gsettings? I have been using *font for years now to configure the default font globally, including with emacs23.
>>
>
> X11 resources for font already takes precedence over other sources.
> Do you see emacs.font when you do:
> % xrdb -query

Yes, the resource is set. I was able to run emacs24 with the font 
resource correctly by executing it as "emacs" as opposed to "emacs24" (I 
guess the class name is inherited from the executable name?).




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Thu, 13 Sep 2012 11:17:02 GMT) Full text and rfc822 format available.

Notification sent to Yuri D'Elia <wavexx <at> thregr.org>:
bug acknowledged by developer. (Thu, 13 Sep 2012 11:17:03 GMT) Full text and rfc822 format available.

Message #25 received at 12404-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Yuri D'Elia <wavexx <at> thregr.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 12404-done <at> debbugs.gnu.org
Subject: Re: bug#12404: 24.2; fails to load X11 resources
Date: Thu, 13 Sep 2012 13:15:10 +0200
13 sep 2012 kl. 11:42 skrev Yuri D'Elia <wavexx <at> thregr.org>:

> On 09/11/2012 08:09 PM, Jan Djärv wrote:
>> X resources for font take precedencde, last in x_default_font_parameter:
>> 
>>   /* This call will make X resources override any system font setting.  */
>>   x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
>> 
>>> How can I force emacs to use X11 resources over gsettings? I have been using *font for years now to configure the default font globally, including with emacs23.
>>> 
>> 
>> X11 resources for font already takes precedence over other sources.
>> Do you see emacs.font when you do:
>> % xrdb -query
> 
> Yes, the resource is set. I was able to run emacs24 with the font resource correctly by executing it as "emacs" as opposed to "emacs24" (I guess the class name is inherited from the executable name?).

No, the class is Emacs, but you used emacs.font.  Good that it solved itself, closing this bug as there is no Emacs error here.

	Jan D.





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

This bug report was last modified 12 years and 310 days ago.

Previous Next


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