From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs 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 Message-ID: <585C113D.7030706@gmx.at> References: <83oa074y73.fsf@gnu.org> <5858289B.2070500@gmx.at> <83fulj4uhu.fsf@gnu.org> <58584121.1070404@gmx.at> <83d1gn4pl2.fsf@gnu.org> <58590F28.9040309@gmx.at> <83vaue37ib.fsf@gnu.org> <58595B67.7030305@gmx.at> <83pokm34yd.fsf@gnu.org> <58596B9B.4050001@gmx.at> <83mvfq32pg.fsf@gnu.org> <585975DB.3040203@gmx.at> <83inqe30od.fsf@gnu.org> <83fuli2y48.fsf@gnu.org> <585A3266.1000904@gmx.at> <585B903B.8010003@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1482428782 9058 195.159.176.226 (22 Dec 2016 17:46:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2016 17:46:22 +0000 (UTC) Cc: 25228@debbugs.gnu.org To: Rostislav Svoboda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 22 18:46:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK7RV-0000ur-JL for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 18:46:13 +0100 Original-Received: from localhost ([::1]:35499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK7RY-0000Ik-9g for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 12:46:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK7RP-0000HD-GA for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cK7RK-0005Ok-I1 for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:46:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cK7RK-0005OY-DW for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cK7RK-0002OM-6j for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2016 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25228 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25228-submit@debbugs.gnu.org id=B25228.14824287469158 (code B ref 25228); Thu, 22 Dec 2016 17:46:02 +0000 Original-Received: (at 25228) by debbugs.gnu.org; 22 Dec 2016 17:45:46 +0000 Original-Received: from localhost ([127.0.0.1]:51820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK7R4-0002Ne-8e for submit@debbugs.gnu.org; Thu, 22 Dec 2016 12:45:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:54140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK7R2-0002NR-JI for 25228@debbugs.gnu.org; Thu, 22 Dec 2016 12:45:45 -0500 Original-Received: from [192.168.1.100] ([212.95.7.91]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lx83d-1ceQMA2gQL-016ie8; Thu, 22 Dec 2016 18:45:35 +0100 In-Reply-To: X-Provags-ID: V03:K0:XisCtXYu91GdOqrspQj/j12X0RRAPQ4gFctrLzhXvsbgodla4M8 YtAHN0NSI6gHpO6jUnWksSEbRdV5Ck88rb6Ipful2jSOJ1eMeIe+teWohFb5yGqpursYhgM LNidHpyb9BUQ+zTRbkeEv2altgrZDYeuu/l0Rh9U4348qH38NT9cBLoAcOtUmv4e8uKlBqU kE5/m2/zVJxLytrmuPmaQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:G9tw2m8Id3E=:ILF/fCeu3EREBSm217ZOS8 UpxKlHXROWYOog8wROAJFUdLeqyMwj9k2D+FX5Ck41O2qPcYTkf4Oh6K7V+LVVgVYaOUm70tp +hYRNQL+CaTqpYAzMOB4uBRT7rQhqUq7XEN+1VpikrrVfXyZutKKilThQUks5kWelg9QK9lPZ VsR/ne3NonGrbBgug3eNG0EMMWpKrVnTF6BzsO+ZJ4agLr5gPSrKI/yDDdtmsDZhSJJBAn+Yy a1dfVG+8b8IZpimcBugsFMrnQFc3YxvD9kNCGKFzDISz3Rz4tEvXuoyKlG8VU8sDGZo0KsA2z G5DDF/ys+DPIlW51UfSNSWb5JwAklepE1ppla7EVjHu5QEB5gkR0MFt0dIXsNIHz3L1SkkUYW xV+Q9WeIJXb3G6wfAzWargz+y0OYt0AM99q/E29wdvzyVHfY+zDMi9V96FsdFjDqzq+0EJNbU wxdFknA9QOVtTOp4rWkmvfrEPzB/hVb4hb7/skOiYWWKfI8BnRZm18v02keUpQwS25EtSf2Bf qqPAa2JDzpW0MwI6jH8coBGY6cSWjYcU1CdP9RRY6rWkn8n5nkJdHcSWyepyFVYV0XI//4C+S cscdzIxOrKJxb8F/WFl0aBGiQvWYT70DyF0V09zM+snx1VjgPiHnPZfkbVKVneJocZDeqkdtj 06m81+thzte7+FAjberFQrcggbb97xFp7rQ95zd8ZxSYO9yMKP9JYW0y6O7lKxZ1LhYK+sXl7 me+Ao0+dY1/oAbqpONJiKpWykcsG7f9oSELRAsDkhrDvI5ZgpsVfYuKoADSRCZDvpREMNe8a X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127335 Archived-At: >>> 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