From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#16013: 24.3.50; Rows in height is interpreted as pixels. Date: Mon, 02 Dec 2013 23:03:09 +0100 Message-ID: <871u1u52si.fsf@rosalinde.fritz.box> References: <5579FC36-5F75-4679-87F6-048C5B7326F6@swipnet.se> <5299FD88.2090600@gmx.at> <529A33F4.5030606@swipnet.se> <529B0519.3010902@gmx.at> <529B1C71.9020707@gmx.at> <529CCE48.9090404@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386021853 22121 80.91.229.3 (2 Dec 2013 22:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Dec 2013 22:04:13 +0000 (UTC) Cc: 16013@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 02 23:04:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VnbbG-0002eA-DP for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2013 23:04:18 +0100 Original-Received: from localhost ([::1]:39192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnbbF-00080L-RQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2013 17:04:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnbb7-0007tb-6j for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2013 17:04:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnbb1-0006It-7A for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2013 17:04:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnbb1-0006Ip-57 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2013 17:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vnbb0-0005Ct-O0 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2013 17:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2013 22:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16013-submit@debbugs.gnu.org id=B16013.138602180019955 (code B ref 16013); Mon, 02 Dec 2013 22:04:02 +0000 Original-Received: (at 16013) by debbugs.gnu.org; 2 Dec 2013 22:03:20 +0000 Original-Received: from localhost ([127.0.0.1]:55176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnbaJ-0005Bn-NO for submit@debbugs.gnu.org; Mon, 02 Dec 2013 17:03:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:49350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnbaG-0005BW-Pk for 16013@debbugs.gnu.org; Mon, 02 Dec 2013 17:03:17 -0500 Original-Received: from rosalinde.fritz.box ([89.245.123.79]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LgptO-1VIRpY0HpO-00oGai for <16013@debbugs.gnu.org>; Mon, 02 Dec 2013 23:03:10 +0100 In-Reply-To: <529CCE48.9090404@gmx.at> (martin rudalics's message of "Mon, 02 Dec 2013 19:15:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:kdWxCqYBLyeTX8+XELX6+cjL4lXbkq0tqfWm62GfEesP2AjsOrP c57I099uFZa71nVfFLW83+0TVkw9UKhvns5lXX7UcCOIl8NRoSQL0xidLibvwK1CaRjbiOZ YSKEDPw0goxxJW2tYUKdOo7DfGBi7JiT+64hiKFePFN/CtiBsSwzzMcAhELBHzQsxmyxAJo P3V5VBFdXBSrYSW/YGsyA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81279 Archived-At: On Mon, 02 Dec 2013 19:15:36 +0100 martin rudalics wrote: >>> (/ (frame-text-height) (frame-char-height)) >> >> 47. >> >>> (/ (frame-text-width) (frame-char-width)) >> >> This is a bit random. On 5 starts, I got 79 once, 83 once and 84 >> three times. And the number of columns match, 79, 83 and 84. > > My old patch was silly - it propagated the frame's pixel sizes instead > of the text sizes to xg_frame_set_char_size. Please try the attached > one. I still have two problems here: The height of the initial frame > is by six lines too small and a new frame made via C-x 5 2 is two > lines higher than the initial one. FYI I applied the new patch and started the rebuilt Emacs with my initializations, which contain this: (modify-frame-parameters nil '((width . 85) (fullscreen . fullheight))) However, window-width in fact returned 73 (but window-height was the full height). Then I evalled this: (modify-frame-parameters nil '((width . 85))) Now, window-width was 78. (Maybe the increase despite the same passed width value is because I customize the tool bar to appear on the left side, and maybe that takes effect after the initial frame width is set.) To get a window-width of 85 columns, I had to give the width frame-parameter a value of 92. This is with the xft backend and font -unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 Steve Berman