all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gsettings and daemonized emacs: wrong font in second frame
@ 2011-08-22 22:15 Ulrich Mueller
  2011-08-23 10:29 ` Jan Djärv
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2011-08-22 22:15 UTC (permalink / raw)
  To: emacs-devel

Following scenario:
1. Start emacs --daemon from Linux console.
2. From within an X session, execute emacsclient -c to create a first
   Emacs frame.
3. Create a second Emacs frame (with C-x 5 2 in the first frame or
   with another emacsclient -c, it doesn't matter how).

Now, in the first frame, I get Droid Sans Mono as text font, which is
what I set in my .Xresources. Whereas in the second frame (and all
following frames) the font is DejaVu Sans Mono.

What is going on?

This happens with Emacs from today's BZR trunk. I think the relevant
configure options are:
--with-dbus --with-gconf --with-gsettings --with-x-toolkit=lucid

If I configure --without-gsettings then the problem doesn't occur,
i.e. then the font from .Xresources will appear in all frames.

Ulrich



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

* Re: gsettings and daemonized emacs: wrong font in second frame
  2011-08-22 22:15 gsettings and daemonized emacs: wrong font in second frame Ulrich Mueller
@ 2011-08-23 10:29 ` Jan Djärv
  2011-08-23 12:20   ` Ulrich Mueller
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Djärv @ 2011-08-23 10:29 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: emacs-devel



Ulrich Mueller skrev 2011-08-23 00:15:
> Following scenario:
> 1. Start emacs --daemon from Linux console.
> 2. From within an X session, execute emacsclient -c to create a first
>     Emacs frame.
> 3. Create a second Emacs frame (with C-x 5 2 in the first frame or
>     with another emacsclient -c, it doesn't matter how).
>
> Now, in the first frame, I get Droid Sans Mono as text font, which is
> what I set in my .Xresources. Whereas in the second frame (and all
> following frames) the font is DejaVu Sans Mono.
>
> What is going on?

GSettings and GConf override Xresources, so if GSettings have DejaVu Sans Mono 
and font-use-system-font is t, that is the expected behaviour.  The bug is 
then why the first frame doesn't use DejaVu.

If you don't have font-use-system-font set to t, then that is another matter.
Does this happen if you start emacs -daemon -q?

I can not reproduce this issue.

	Jan D.

>
> This happens with Emacs from today's BZR trunk. I think the relevant
> configure options are:
> --with-dbus --with-gconf --with-gsettings --with-x-toolkit=lucid
>
> If I configure --without-gsettings then the problem doesn't occur,
> i.e. then the font from .Xresources will appear in all frames.
>
> Ulrich



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

* Re: gsettings and daemonized emacs: wrong font in second frame
  2011-08-23 10:29 ` Jan Djärv
@ 2011-08-23 12:20   ` Ulrich Mueller
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Mueller @ 2011-08-23 12:20 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

>>>>> On Tue, 23 Aug 2011, Jan Djärv wrote:

>> 1. Start emacs --daemon from Linux console.
>> 2. From within an X session, execute emacsclient -c to create a first
>> Emacs frame.
>> 3. Create a second Emacs frame (with C-x 5 2 in the first frame or
>> with another emacsclient -c, it doesn't matter how).
>> 
>> Now, in the first frame, I get Droid Sans Mono as text font, which is
>> what I set in my .Xresources. Whereas in the second frame (and all
>> following frames) the font is DejaVu Sans Mono.
>> 
>> What is going on?

> GSettings and GConf override Xresources, so if GSettings have DejaVu
> Sans Mono and font-use-system-font is t, that is the expected
> behaviour. The bug is then why the first frame doesn't use DejaVu.

> If you don't have font-use-system-font set to t, then that is
> another matter.

font-use-system-font is set to nil in my case.

> Does this happen if you start emacs -daemon -q?

Yes, it still happens with emacs -daemon -q (and site-start.el
removed). It also happens for a newly created user.

> I can not reproduce this issue.

I'm using Xfce as desktop environment, in case it should matter.

Ulrich



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

end of thread, other threads:[~2011-08-23 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 22:15 gsettings and daemonized emacs: wrong font in second frame Ulrich Mueller
2011-08-23 10:29 ` Jan Djärv
2011-08-23 12:20   ` Ulrich Mueller

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.