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#18357: 24.3.93; Calendar not fully displayed Date: Sat, 30 Aug 2014 19:15:54 +0200 Message-ID: <540206CA.40204@gmx.at> 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> 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 1409419049 6113 80.91.229.3 (30 Aug 2014 17:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 17:17:29 +0000 (UTC) Cc: 18357@debbugs.gnu.org, stephen.berman@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 30 19:17:22 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 1XNmHA-00011r-JS for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 19:17:20 +0200 Original-Received: from localhost ([::1]:47264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmHA-0007G7-3X for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 13:17:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmH0-0007Ex-2b for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNmGs-0004cU-JO for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:17:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNmGs-0004cO-Fk for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XNmGs-000887-1e for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 13:17: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: Sat, 30 Aug 2014 17:17: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.140941896531179 (code B ref 18357); Sat, 30 Aug 2014 17:17:01 +0000 Original-Received: (at 18357) by debbugs.gnu.org; 30 Aug 2014 17:16:05 +0000 Original-Received: from localhost ([127.0.0.1]:54593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNmFv-00086o-Pt for submit@debbugs.gnu.org; Sat, 30 Aug 2014 13:16:04 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:64181) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNmFt-00086C-K1 for 18357@debbugs.gnu.org; Sat, 30 Aug 2014 13:16:02 -0400 Original-Received: from [93.82.13.122] ([93.82.13.122]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M1zFf-1YGiBd3q8Z-00u1Qq; Sat, 30 Aug 2014 19:15:55 +0200 In-Reply-To: <83k35qgc2d.fsf@gnu.org> X-Provags-ID: V03:K0:ESvjTiApLvOewPbT8AA9dmMfHmHxO5FF1ZB8O2wKunLz/U6/9YA LszADScqIvlYMC9/smW0t1ok99P2qnJiH01kNkrGMYljnGVgycwlzUe8Dl1KEZBIlr7dtpp DodHnHjzymzvk6ILlfuMyz0eIJW27+cl4sT/qUL3Wg2INvp4OoeeOOVqKzYkMUKBqHWSGCa r0xzPKfwNfVwOpc1hulkw== X-UI-Out-Filterresults: notjunk:1; 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:92873 Archived-At: >> The mode line face specifies the height of the mode line. IIUC >> `fit-window-to-buffer' gets this height via CURRENT_MODE_LINE_HEIGHT (in >> dispextern.h) which is likely wrong if the font has not been applied yet >> to the target window. > > Yes, but the original recipe involved Customize to change the > mode-line face, so in that case the changes in the mode-line face have > propagated long ago by the time "M-x calendar" is invoked. They propagated to the selected window only. The calendar window does not even exist at that time. > 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. For Stephen's the estimate is for a non-selected window and `calendar' selects the window _after_ `fit-window-to-buffer' was executed. If you have a better explanation, I'll be all ears. >> 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. martin