From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Note on e65c307 breaks font-height Date: Fri, 27 May 2016 15:18:02 +0200 Message-ID: <5748490A.6020906@gmx.at> References: <5746D38F.4010203@gmx.at> <4cdc1b55-2fe2-2457-1115-33ff68a9a65d@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464357067 23960 80.91.229.3 (27 May 2016 13:51:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 13:51:07 +0000 (UTC) To: Paul Eggert , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 27 15:50:57 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b6IAC-0001MI-Vh for ged-emacs-devel@m.gmane.org; Fri, 27 May 2016 15:50:57 +0200 Original-Received: from localhost ([::1]:45970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6IAA-0005k9-Bk for ged-emacs-devel@m.gmane.org; Fri, 27 May 2016 09:50:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6Hed-0007oX-9h for emacs-devel@gnu.org; Fri, 27 May 2016 09:18:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6HeZ-0006W3-VK for emacs-devel@gnu.org; Fri, 27 May 2016 09:18:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:58056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6HeZ-0006Vx-Kq for emacs-devel@gnu.org; Fri, 27 May 2016 09:18:15 -0400 Original-Received: from [192.168.1.101] ([212.95.7.4]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lg6op-1brUJR27dz-00pYn3; Fri, 27 May 2016 15:18:06 +0200 In-Reply-To: <4cdc1b55-2fe2-2457-1115-33ff68a9a65d@cs.ucla.edu> X-Provags-ID: V03:K0:6PDikXDU+VWnJ7fRFeaZPHcSHS9VUtM4Cn/yaa6KnoXmxE+rqsT mwtAClNF36DhU2aXq8CrkEkyBzBikyxTo2NyfE8x0V9uBQv3u6X++jsCWtAh/D6YECspPmY AAiJYkB4Mqtg4+ab8W5xmTogN+BgT5HYslQTkCB0ZuU1Pv6WnKUUMrsu5XRo89EFVUALxUm 8YG1lma9RPCIu1+PKkYWQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Cz75wsHIBfI=:9H3URVDZUDx7nZwG2tDfLM nmgQk/5RquEQHDnpdN1fP2o5WQ9v8pqTyyJ3OULoYKwBJupiDRxVcFqhJ8jSEfoDcdMoRYWNY O3NSqkfm0O8nr9ZquXaGJ8zga8yq/aKMd2TsjJFtxMfyXr1sU+YKJk16ixDJ0kdIFy2Hg/Z41 e16Aa+NXbbMMcuQkJzf8dzfLioaEm5g5Yu76YAaeqoip7C0dzJl1vSWP7B+Tr9w0Xz9FcxkW5 lgM7teURgLvDZ/hZxtsgOw4wT8zHd1iLhDsMOLavn3wRTHWKTpCD6cMXLVlI/9hnx0bukZjEZ x+qiW5Ol1yjEJ6ZOTlJrSNsNGerz/5+oAg+Yk4+FS2KtV/PtPxAeFC2QapiWF5SkOLCJqlWro 1WT1myFe03BBYO2ADB/daDpBiFDYw3kQeMysLwFv6IPxkZPY00E5W5zlKzPdQteqMzbVSK2vK B0ipQKrTfDfTbIVajDddf70vcuBb+BSrX3cKq30I5jCyniWPLUvtbOL38S/sxnVH/nXCHVilM UHgHH1vTCYIa8HVeV8ccrlZix0yD6OnRvRn3HeZaXrbAyFAVc1squi5hm9PD83Y4WTEjXLs3Q gHBqZC/QIDEMnhrei13Cr7V9WTQSs7H1byifOE+ZKaQa4FvkqegtB8fhiki7mc3J5+r5rJjGb czLoiseDfQRrfjOHTVsfsJHyyE4EeuO14wy14gUEKJ58r78HOfyDtnHsYxxtzpET1BPZ9GBlP 7Jyk3CXIzDvmYVXn9HwjgXRaqtcHUTPMQh+NUs9g4sSsmdzPjyIU5cTleKJKHKkVPyXgUqWx X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204071 Archived-At: > What exactly is in your .emacs file? That is, can you give a recipe to= reproduce the problem? It's reproducible here with my (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "grey92" :foreground "black" :i= nverse-video nil :box nil :strike-through nil :overline nil :underline ni= l :slant normal :weight normal :height 98 :width normal :foundry "outline= " :family "Courier New"))))) > Is there anything in your configuration (e.g., saved-desktop?) that me= ntions :user-spec or user-spec? No. > Only one place in the Emacs Lisp code uses :user-spec: font-setting-ch= ange-default-font. Perhaps it is causing the bug. Does the attached patch= fix the problem? I suppose so but didn't try it yet. IIUC it would defy the purpose of that function. I have no idea what =E2=80=98font-setting-change-default-= font=E2=80=99 is really about. I suppose it's related to themes but maybe someone knows more. My analysis so far is as follows: In =E2=80=98font-setting-change-default= -font=E2=80=99 the disjunct (frame-parameter f 'font-parameter) always evaluates to nil here. Before your patch, the disjunct (or (font-get (face-attribute 'default :font f 'default) :user-spec) always evaluated to nil. After your patch it returns "Monospace 11" and =E2=80=98frame-font=E2=80=99 gets set to that and the frame's default fon= t too. IIUC the height of the default face gets set to that value too but a new frame gets the value from my .emacs. As a consequence, customizing the default face will present me different height values corresponding to the frame where I start the customization from. That is awfully weird. Please try with my .emacs setting on your system and tell me what you get. Windows doesn't have (fboundp 'font-get-system-font) so the issue is moot there. martin