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#18357: 24.3.93; Calendar not fully displayed Date: Sat, 30 Aug 2014 20:54:25 +0300 Message-ID: <83iol9hnhq.fsf@gnu.org> References: <874mwv40ja.fsf@rosalinde.fritz.box> <83vbpaguyl.fsf@gnu.org> <87a96mqkl3.fsf@rosalinde.fritz.box> <5401C6E7.9070000@gmx.at> <5401C837.9090704@gmx.at> <83sikegla7.fsf@gnu.org> <5401D6F6.6010109@gmx.at> <83r3zygjbd.fsf@gnu.org> <5401FE87.8090207@gmx.at> <83k35qgc2d.fsf@gnu.org> <540206CA.40204@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1409421327 2128 80.91.229.3 (30 Aug 2014 17:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 17:55:27 +0000 (UTC) Cc: 18357@debbugs.gnu.org, stephen.berman@gmx.net To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 30 19:55:16 2014 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 1XNmrs-0007Yo-7r for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 19:55:16 +0200 Original-Received: from localhost ([::1]:47330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmrr-0007cH-NN for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 13:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmrj-0007Z1-Q6 for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:55:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNmre-0007eu-Ks for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmre-0007dz-IL for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XNmrd-0000cM-WF for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:55: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: Sat, 30 Aug 2014 17:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18357 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18357-submit@debbugs.gnu.org id=B18357.14094212732334 (code B ref 18357); Sat, 30 Aug 2014 17:55:01 +0000 Original-Received: (at 18357) by debbugs.gnu.org; 30 Aug 2014 17:54:33 +0000 Original-Received: from localhost ([127.0.0.1]:54602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNmrA-0000ba-EO for submit@debbugs.gnu.org; Sat, 30 Aug 2014 13:54:32 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60797) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNmr7-0000bL-LJ for 18357@debbugs.gnu.org; Sat, 30 Aug 2014 13:54:31 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NB400900S5AZO00@a-mtaout20.012.net.il> for 18357@debbugs.gnu.org; Sat, 30 Aug 2014 20:54:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NB4009JVSEMMA50@a-mtaout20.012.net.il>; Sat, 30 Aug 2014 20:54:22 +0300 (IDT) In-reply-to: <540206CA.40204@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:92875 Archived-At: > Date: Sat, 30 Aug 2014 19:15:54 +0200 > From: martin rudalics > CC: 18357@debbugs.gnu.org, stephen.berman@gmx.net > > > So I don't see how the above explanation could be relevant to the > > original issue. > > I have no other one. The scenarios differ in one point: In mine the > mode lines of all windows are the same height, but > `fit-window-to-buffer' doesn't know that height yet when it's executed. Are you sure fit-window-to-buffer was called? My reading of calendar.el is that it isn't in this scenario. > For Stephen's the estimate is for a non-selected window and `calendar' > selects the window _after_ `fit-window-to-buffer' was executed. See above: are you sure? > If you have a better explanation, I'll be all ears. I don't see what I need to explain. From my POV, what we see here is all normal, as I already explained in my original response to Stephen. > >> Note that we allow the font to change the height of the mode line which > >> may partially overwrite the last line(s) of the window text. This seems > >> to backfire here > > > > I see no "backfire". Emacs scrolls the window to make point fully > > visible, that's all. > > It backfires because `fit-window-to-buffer' can't make the window tall > enough since it doesn't yet know how large the mode line will be. And > since it never will be clairvoyant enough to know which window will be > selected, I see no chance to reliably fix Stephen's scenario. Then you agree with me: there's no problem here, just normal reaction to the fact that point entered a partially visible line.