From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#14825: 24.3.50; split-window-below miscounts window lines Date: Tue, 09 Jul 2013 11:09:17 +0200 Message-ID: <51DBD33D.4000307@gmx.at> References: <83hag5vszy.fsf@gnu.org> 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 1373361018 11871 80.91.229.3 (9 Jul 2013 09:10:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 09:10:18 +0000 (UTC) Cc: 14825@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 11:10: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 1UwTw9-0004XB-PY for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 11:10:17 +0200 Original-Received: from localhost ([::1]:34137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwTw9-0001A8-Ab for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 05:10:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwTvz-000162-Mp for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 05:10:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwTvu-0000uA-O7 for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 05:10:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwTvu-0000tX-GR for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 05:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwTvt-0008IH-Vt for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 05:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 09:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14825 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14825-submit@debbugs.gnu.org id=B14825.137336097731826 (code B ref 14825); Tue, 09 Jul 2013 09:10:01 +0000 Original-Received: (at 14825) by debbugs.gnu.org; 9 Jul 2013 09:09:37 +0000 Original-Received: from localhost ([127.0.0.1]:41281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwTvU-0008HG-LR for submit@debbugs.gnu.org; Tue, 09 Jul 2013 05:09:36 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:62474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwTvR-0008Gp-Q7 for 14825@debbugs.gnu.org; Tue, 09 Jul 2013 05:09:34 -0400 Original-Received: from [62.47.46.161] ([62.47.46.161]) by mail.gmx.com (mrgmx003) with ESMTPA (Nemesis) id 0MFMEG-1V20FF43cK-00EJEe; Tue, 09 Jul 2013 11:09:26 +0200 In-Reply-To: <83hag5vszy.fsf@gnu.org> X-Provags-ID: V03:K0:m1Xqju7cCNwvK/ZaA+bHpuJezRtNhRDYxkTN7puIMPqoJL3kNlh gGJ0IBns0OGdgPdEyOOMHmrhFQ78BtTthGl+r/ZD2+kUa9Xg/rKqBIsTUQyRLEspiGIrr7K +A8yMm0zEi3r1vM24ioIO6WUCilHdIUeFAyBbMpSY0c5M1FweQa8BZQL4jj9sh+cT+bsjJF KfPDgr/zs7eM0k/o79w0w== 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:76121 Archived-At: > The reason for this seems to be that window.el and window.c do all > calculations in canonical lines, which is incorrect when the font of the > default face changes. Moreover, the documentation barely hints on the > fact that "lines" actually means "canonical-height lines" in almost all > window-* functions that deal with vertical dimensions. Currently, all window and frame sizing functions are based on canonical character sizes. This will change when we do resizing pixelwise. However, your example seems contrived: You don't change the default face but the buffer's default face. In many cases, split-window is followed by displaying another buffer in the new window so this buffer's default might not be appropriate for the other buffer anyway. martin