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: Sun, 31 Aug 2014 13:28:57 +0200 Message-ID: <540306F9.6040107@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> <540206CA.40204@gmx.at> <83iol9hnhq.fsf@gnu.org> <54021337.9020800@gmx.at> <871trxrcso.fsf@rosalinde.fritz.box> 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 1409484630 28812 80.91.229.3 (31 Aug 2014 11:30:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2014 11:30:30 +0000 (UTC) Cc: 18357@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 31 13:30:23 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 1XO3Kw-0006re-Qt for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Aug 2014 13:30:22 +0200 Original-Received: from localhost ([::1]:49410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XO3Kw-0000Gt-Ai for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Aug 2014 07:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XO3Kl-0000Fh-Sn for bug-gnu-emacs@gnu.org; Sun, 31 Aug 2014 07:30:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XO3Ke-00031I-Cl for bug-gnu-emacs@gnu.org; Sun, 31 Aug 2014 07:30:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XO3Ke-0002zw-AK for bug-gnu-emacs@gnu.org; Sun, 31 Aug 2014 07:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XO3Kd-0001Ct-5b for bug-gnu-emacs@gnu.org; Sun, 31 Aug 2014 07:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Aug 2014 11:30:02 +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.14094845514542 (code B ref 18357); Sun, 31 Aug 2014 11:30:02 +0000 Original-Received: (at 18357) by debbugs.gnu.org; 31 Aug 2014 11:29:11 +0000 Original-Received: from localhost ([127.0.0.1]:54796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XO3Jm-0001BB-6k for submit@debbugs.gnu.org; Sun, 31 Aug 2014 07:29:10 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:59227) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XO3Ji-0001Ae-Vi for 18357@debbugs.gnu.org; Sun, 31 Aug 2014 07:29:07 -0400 Original-Received: from [88.117.83.58] ([88.117.83.58]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LqQzp-1Y1Wva2m3d-00e6Pj; Sun, 31 Aug 2014 13:28:59 +0200 In-Reply-To: <871trxrcso.fsf@rosalinde.fritz.box> X-Provags-ID: V03:K0:WseoETCeM5ADV6KhSxewMCkMw1a0uI81v2u24acbOMiw2fUvGQB ewlR2De1JIJXG1ddTPuFWrhJP48UH/677kd6s8tvT6+39Uiki9SWlpoVaAWoSXh5dN18NxI lhFszsLsgI12tOIlDbklU8IKvhv79l6BNpA5CKTh+ng86MdGSSv9xI4+1MQ6HhAM5jgPPRJ oFAbmQsRIowQ2CtY7Rjbw== 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:92892 Archived-At: > If I follow you (but I'm not sure I do), I think you are mistaken here: > when I step through the code, fit-window-to-buffer is called (in > calendar-generate-window, as noted above) with *Calendar* buffer window > already being the selected window. In any case, the estimate for the > mode line height should be the same in my case as in yours, see below. It seems you're right. If, with my recipe, I set a breakpoint at line 9880 in xdisp.c y = y + WINDOW_MODE_LINE_HEIGHT (w); then, for some reason I can't explain, the value of w->mode_line_height is already set to a non-negative value although from my reading of the code this should happen only if line 1428 of xdisp.c (in pos_visible_p) was executed before, a thing which doesn't happen here. I must admit that I don't understand the window mode line height caching mechanism. > In my recipe, both active and inactive mode lines have the same height: > face mode-line-inactive inherits the overline attribute from face > mode-line. > > One interesting observation (which I do not understand), is that when I > execute the recipe and step through calendar-generate-window with > Edebug, after the call to fit-window-to-buffer, the height of the > Calendar window is 9, and the Calendar is fully displayed. But when I > execute the recipe alone, the height is 8 and the display is partial. Probably edebug has the same effect as the `sit-for' in my scenario. It redisplays the window and the new mode line height is used when fitting the window. In any case the `sit-for' in my scenario makes sure that w->mode_line_height is 20 at the breakpoint mentioned above as opposed to 16 without the `sit-for'. martin