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: Trunk emacs infelicity with linum mode Date: Sat, 06 Sep 2014 13:18:34 +0200 Message-ID: <540AED8A.9030000@gmx.at> References: <87zjeix7hg.fsf@glaurung.internal.golden-gryphon.com> <838um1gar9.fsf@gnu.org> <87ppfdyhpf.fsf@glaurung.internal.golden-gryphon.com> <8361h5g7mv.fsf@gnu.org> <87zjehw5cs.fsf@glaurung.internal.golden-gryphon.com> <834mwog0u0.fsf@gnu.org> <87wq9kd5y3.fsf@glaurung.internal.golden-gryphon.com> <83oauve75i.fsf@gnu.org> <87lhpxaopi.fsf@glaurung.internal.golden-gryphon.com> <83vbp1deta.fsf@gnu.org> <540ACB6A.5020402@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410002374 28605 80.91.229.3 (6 Sep 2014 11:19:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2014 11:19:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Manoj Srivastava Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 06 13:19:27 2014 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 1XQE1f-0000LH-78 for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2014 13:19:27 +0200 Original-Received: from localhost ([::1]:34215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQE1e-0006LU-Eu for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2014 07:19:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQE1H-0006IV-Qp for emacs-devel@gnu.org; Sat, 06 Sep 2014 07:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQE1A-00070k-Bi for emacs-devel@gnu.org; Sat, 06 Sep 2014 07:19:03 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:58254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQE12-000704-8i; Sat, 06 Sep 2014 07:18:48 -0400 Original-Received: from [62.47.252.26] ([62.47.252.26]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MGBdv-1XeEFN0NaZ-00FFIw; Sat, 06 Sep 2014 13:18:46 +0200 In-Reply-To: <540ACB6A.5020402@gmx.at> X-Provags-ID: V03:K0:LcE5PRAklihV1fo81bZqoYVxBU1pTtfRSLzUm7dBLo2pgznppzY Ovpoo3cxIvvhJ0wFLMvDiHCPzGAutWwu0QQ1JDpiQ2QDHVNOsmRF80SwACZPhmfaJAUrumQ BeyE6Z4vhY391tFLtXhqKxmBYEtCOabiVJUp5IJAoPZ3TVh0onPTe9WYtQXYwWJi74yoByA dIHkEGzvGaqlNfXWrZbbA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174058 Archived-At: From the frame creation code everything is normal AFAICT. The problem is with `linum--face-height' added on 2014-07-08 to the linum.el code: (defun linum--face-height (face) (aref (font-info (face-font face)) 2)) ... (when (display-graphic-p) (setq width (ceiling ;; We'd really want to check the widths rather than the ;; heights, but it's a start. (/ (* width 1.0 (linum--face-height 'linum)) (frame-char-height))))) If you take these out, the frame is created as usual. martin