From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14825: 24.3.50; split-window-below miscounts window lines Date: Tue, 09 Jul 2013 19:12:31 +0300 Message-ID: <83bo6bww40.fsf@gnu.org> References: <83hag5vszy.fsf@gnu.org> <51DBD33D.4000307@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1373386390 8647 80.91.229.3 (9 Jul 2013 16:13:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 16:13:10 +0000 (UTC) Cc: 14825@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 18:13:09 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 1UwaXN-0003aA-1P for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 18:13:09 +0200 Original-Received: from localhost ([::1]:36100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwaXM-00088x-J2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 12:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwaXI-00084p-8D for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwaXH-0002M6-2j for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:13:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwaXG-0002M1-Vq for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwaXG-0006SL-8H for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 12:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 16:13:02 +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.137338637524797 (code B ref 14825); Tue, 09 Jul 2013 16:13:02 +0000 Original-Received: (at 14825) by debbugs.gnu.org; 9 Jul 2013 16:12:55 +0000 Original-Received: from localhost ([127.0.0.1]:42962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwaX7-0006Rq-Gs for submit@debbugs.gnu.org; Tue, 09 Jul 2013 12:12:53 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:35669) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwaX4-0006RS-Br for 14825@debbugs.gnu.org; Tue, 09 Jul 2013 12:12:51 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MPO00L00FNKWO00@a-mtaout20.012.net.il> for 14825@debbugs.gnu.org; Tue, 09 Jul 2013 19:12:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MPO00L7PFP7Q670@a-mtaout20.012.net.il>; Tue, 09 Jul 2013 19:12:43 +0300 (IDT) In-reply-to: <51DBD33D.4000307@gmx.at> X-012-Sender: halo1@inter.net.il 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:76151 Archived-At: > Date: Tue, 09 Jul 2013 11:09:17 +0200 > From: martin rudalics > CC: 14825@debbugs.gnu.org > > > 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. Resizing is only part of the problem. There are functions that are unrelated to resizing, which report dimensions in canonical units. They should at least document this fact in the doc string, if not fix it. (The fix is not too hard, btw; see window-screen-lines for an example.) > 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. We have this problem already: one could split the window, and _then_ change the default face in one of the child windows.