unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12404: 24.2; fails to load X11 resources
@ 2012-09-10 14:55 Yuri D'Elia
  2012-09-11  7:21 ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Yuri D'Elia @ 2012-09-10 14:55 UTC (permalink / raw)
  To: 12404

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)





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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-10 14:55 bug#12404: 24.2; fails to load X11 resources Yuri D'Elia
@ 2012-09-11  7:21 ` Glenn Morris
  2012-09-11 15:12   ` Yuri D'Elia
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2012-09-11  7:21 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: 12404

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





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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-11  7:21 ` Glenn Morris
@ 2012-09-11 15:12   ` Yuri D'Elia
  2012-09-11 16:30     ` Glenn Morris
  2012-09-11 18:09     ` Jan Djärv
  0 siblings, 2 replies; 7+ messages in thread
From: Yuri D'Elia @ 2012-09-11 15:12 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 12404

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?





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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-11 15:12   ` Yuri D'Elia
@ 2012-09-11 16:30     ` Glenn Morris
  2012-09-11 18:09     ` Jan Djärv
  1 sibling, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2012-09-11 16:30 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: 12404

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.





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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-11 15:12   ` Yuri D'Elia
  2012-09-11 16:30     ` Glenn Morris
@ 2012-09-11 18:09     ` Jan Djärv
  2012-09-13  9:42       ` Yuri D'Elia
  1 sibling, 1 reply; 7+ messages in thread
From: Jan Djärv @ 2012-09-11 18:09 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: 12404


11 sep 2012 kl. 17:12 skrev Yuri D'Elia <wavexx@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.






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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-11 18:09     ` Jan Djärv
@ 2012-09-13  9:42       ` Yuri D'Elia
  2012-09-13 11:15         ` Jan Djärv
  0 siblings, 1 reply; 7+ messages in thread
From: Yuri D'Elia @ 2012-09-13  9:42 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 12404

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





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

* bug#12404: 24.2; fails to load X11 resources
  2012-09-13  9:42       ` Yuri D'Elia
@ 2012-09-13 11:15         ` Jan Djärv
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Djärv @ 2012-09-13 11:15 UTC (permalink / raw)
  To: Yuri D'Elia; +Cc: 12404-done


13 sep 2012 kl. 11:42 skrev Yuri D'Elia <wavexx@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.






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

end of thread, other threads:[~2012-09-13 11:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 14:55 bug#12404: 24.2; fails to load X11 resources Yuri D'Elia
2012-09-11  7:21 ` Glenn Morris
2012-09-11 15:12   ` Yuri D'Elia
2012-09-11 16:30     ` Glenn Morris
2012-09-11 18:09     ` Jan Djärv
2012-09-13  9:42       ` Yuri D'Elia
2012-09-13 11:15         ` Jan Djärv

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).