GNU bug report logs - #25228
25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored

Previous Next

Package: emacs;

Reported by: werner <at> suse.de (Dr. Werner Fink)

Date: Mon, 19 Dec 2016 11:57:01 UTC

Severity: normal

Tags: patch

Merged with 24482, 26340, 40419, 40461

Found in versions 25.1, 26.0.50, 26.3

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, werner <at> suse.de, 25228 <at> debbugs.gnu.org
Subject: bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored
Date: Thu, 22 Dec 2016 09:35:07 +0100
> The patch works! The font-height stays the same.

Installed now for Emacs 25.2.

> FYI - this is most probably unrelated to the font-height problem, anyway:
> 1. On my "font-height-works" machine (Ubuntu 16.10) the first invocation of:
>      ./src/emacs -q --eval "(set-face-attribute 'default nil :height 40)" &
> creates a rather small frame (I mean gtk window).

With 40 lines though.  What did you expect?

> The consequent
> invocations of this
> command create frames of normal size.

With "consequent invocations" you mean what?  C-x 5 2 here creates yet
another frame of the same size.  The size of the initial frame is
derived from the ‘height’ and ‘width’ frame parameters, if specified,
and the height of the default font.

> 2. On my "font-height-works" machine the command above produces warnings:
>
> ** (emacs:21762): WARNING **: Couldn't connect to accessibility bus:
> Failed to connect to socket /tmp/dbus-CV9wAFvBnL: Connection refused

No ideas about this one.

> (emacs:21762): Gtk-CRITICAL **: gtk_distribute_natural_allocation:
> assertion 'extra_space >= 0' failed
>
> where the "... Gtk-CRITICAL ..." line gets repeated

gtk_distribute_natural_allocation is a pain.  You could try to set
‘frame-resize-pixelwise’ to t but I doubt that it will help.

> 3. On my "font-height-buggy" machine (Ubuntu 16.10 in VirtBox under Windows 7) I
> always get small frames of the same size and I never see any Gtk errors or
> warnings.

The Windows API has no idea of window sizes based on the metrics of some
default font.  The "round frame sizes to multiples of the default font
height" paradigm is among the most irksome legacies the Emacs frame code
has to deal with.

martin





This bug report was last modified 105 days ago.

Previous Next


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