unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Rostislav Svoboda <rostislav.svoboda@gmail.com>
Cc: 25228@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 18:45:33 +0100	[thread overview]
Message-ID: <585C113D.7030706@gmx.at> (raw)
In-Reply-To: <CAEtmmeyX4qEsU06LDeB+-V-LnNtbc8ZEEGukqJ58YifizWmMUQ@mail.gmail.com>

 >>> 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?
 >
 > I think it's better to show you some screenshots:
 >
 > http://picpaste.com/first.png
 > Size is 522 x 486 - I think this is too small (a bug?)

I can't say - what does evaluating (frame-height) give - if you can read
it?

 > http://picpaste.com/second-fdbVUcuU.png
 > Size is 762 x 695 pixels - expected size

You mean the first picture was from a first invocation of Emacs and the
second picture from a second?  Funny.  Anyway - it's the menu bar.

I forgot for the umpteenth time where these GTK errors come from.  So
anybody who reads this please remember with me:

   Whenever you see in your Emacs session something like

   Gtk-CRITICAL **: gtk_distribute_natural_allocation:
   assertion 'extra_space >= 0' failed

   then most likely your GTK menubar has become too large for the
   (implicitly) specified frame width and GTK will deliberately widen
   your frame to make the menubar fit.

I haven't yet found out how to truncate menubars with GTK.

This behavior reaches its highest level of annoyance when switching
buffers in a window, a few menu bar items get added and the frame gets
wider ... I have to mention this in the Emacs 25.2 manual.

 >>> 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.
 >
 > I run my emacs on Ubuntu 16.10 with Xfce installed in Virtual Machine running
 > on Windows 7. Is Windows API the culprit here? I don't think so.

I have no idea.  Does the menu bar fit there?

martin





  reply	other threads:[~2016-12-22 17:45 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-19 10:03 bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored Dr. Werner Fink
2016-12-19 15:09 ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-19 17:37 ` Eli Zaretskii
2016-12-19 18:36   ` martin rudalics
2016-12-19 18:57     ` Eli Zaretskii
2016-12-19 20:20       ` martin rudalics
2016-12-19 20:43         ` Eli Zaretskii
2016-12-20 10:59           ` martin rudalics
2016-12-20 16:11             ` Eli Zaretskii
2016-12-20 16:25               ` martin rudalics
2016-12-20 17:06                 ` Eli Zaretskii
2016-12-20 17:28                   ` Dr. Werner Fink
2016-12-20 17:34                   ` martin rudalics
2016-12-20 17:55                     ` Eli Zaretskii
2016-12-20 18:18                       ` martin rudalics
2016-12-20 18:39                         ` Eli Zaretskii
2016-12-20 18:49                           ` martin rudalics
2016-12-20 19:31                             ` Eli Zaretskii
2016-12-20 19:11                           ` Rostislav Svoboda
2016-12-20 19:24                             ` Rostislav Svoboda
2016-12-20 19:34                               ` Eli Zaretskii
2016-12-20 21:50                                 ` Rostislav Svoboda
2016-12-21  7:42                                   ` martin rudalics
2016-12-21 11:03                                     ` Rostislav Svoboda
2016-12-21 17:25                                       ` Eli Zaretskii
2016-12-22  8:35                                       ` martin rudalics
2016-12-22 11:59                                         ` Rostislav Svoboda
2016-12-22 17:45                                           ` martin rudalics [this message]
2016-12-20 19:29                             ` martin rudalics
2016-12-21  8:11             ` Dr. Werner Fink
2016-12-21  8:47               ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-21  8:56                 ` martin rudalics
2016-12-21 11:08                   ` Dr. Werner Fink
2016-12-22  8:35                     ` martin rudalics
2016-12-22 11:46                       ` Dr. Werner Fink
2016-12-22 17:44                         ` martin rudalics
2016-12-23  7:20                           ` Dr. Werner Fink
2016-12-21 17:24                 ` Eli Zaretskii
2016-12-21 17:39                   ` Dr. Werner Fink
2016-12-21 18:04                     ` Eli Zaretskii
2016-12-21  8:48               ` martin rudalics
2016-12-21 12:08                 ` Dr. Werner Fink
2016-12-21 17:34                   ` Eli Zaretskii
2016-12-22  8:35                     ` martin rudalics
2016-12-22 17:30                       ` Eli Zaretskii
2016-12-22 17:45                         ` martin rudalics
2016-12-23  7:29                           ` Dr. Werner Fink
2016-12-20 11:18           ` Dr. Werner Fink
2016-12-20 16:15             ` Eli Zaretskii
2016-12-20 16:41               ` Dr. Werner Fink
2016-12-20 16:56                 ` bug#25228: [emacs-bug] " Dr. Werner Fink
2016-12-20 17:58                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=585C113D.7030706@gmx.at \
    --to=rudalics@gmx.at \
    --cc=25228@debbugs.gnu.org \
    --cc=rostislav.svoboda@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).