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 12:58:26 +0300 Message-ID: <83vbpaguyl.fsf@gnu.org> References: <874mwv40ja.fsf@rosalinde.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1409392831 10468 80.91.229.3 (30 Aug 2014 10:00:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 10:00:31 +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 Sat Aug 30 12:00: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 1XNfSJ-00059t-3A for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 12:00:23 +0200 Original-Received: from localhost ([::1]:45868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNfSI-00080f-MJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2014 06:00:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNfS7-0007yB-Ua for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 06:00:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNfS0-0002Lc-CG for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 06:00:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNfS0-0002KF-8V for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 06:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XNfRz-0004Nh-AN for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2014 06:00:03 -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 10:00:03 +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.140939277016766 (code B ref 18357); Sat, 30 Aug 2014 10:00:03 +0000 Original-Received: (at 18357) by debbugs.gnu.org; 30 Aug 2014 09:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:53992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNfRR-0004MM-Jn for submit@debbugs.gnu.org; Sat, 30 Aug 2014 05:59:30 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:45531) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XNfRM-0004M3-Tu for 18357@debbugs.gnu.org; Sat, 30 Aug 2014 05:59:27 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NB400K0066WCP00@mtaout29.012.net.il> for 18357@debbugs.gnu.org; Sat, 30 Aug 2014 12:58:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NB400KRN6D36Q00@mtaout29.012.net.il>; Sat, 30 Aug 2014 12:58:15 +0300 (IDT) In-reply-to: <874mwv40ja.fsf@rosalinde.fritz.box> 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:92848 Archived-At: > From: Stephen Berman > Date: Fri, 29 Aug 2014 20:24:09 +0200 > > 0. emacs -Q > (sanity check) M-x calendar => The Calendar is fully displayed in the > lower fitted window. > 1. M-x customize-option RET calendar-week-start-day RET, set value to 1 > and save for current session. > M-x customize-face RET mode-line RET, show all attributes, check > `Overline' set its value to `On' and save for current session. > 2. M-x calendar => Only the last four lines of the Calendar are > displayed in the lower fitted window. > > It looks as if point is centered in the Calendar window, but if I type > `C-l', it displays the last five lines, not just the last four. Also, > the date could be relevant, since point is on today's date, which is on > the last line of the displayed Calendar; if this changes on September 1, > I'll report back. > > I'm not sure but I think I first observed this problem in my build of > 2014-08-20. I don't remember seeing it in my previous build of > 2014-07-22, but if I do the above recipe with the executable from the > that build, I do see the problematic display, which suggests it is due > to a change in a non-pre-loaded lisp file, though nothing in the > ChangeLog looks relevant, so perhaps my memory of when this began is > failing me. > > The Calendar display problem also happens in my 2014-08-21 build from > the trunk, but only when configured --without-toolkit-scroll-bars; a > trunk build with (GTK+) scroll bars (including the new horizontal scroll > bar) does not show the problem. However, I just rebuilt the current > emacs-24 --without-toolkit-scroll-bars and still see the problem there. Sorry, I don't see any problem here: with the customized face of the mode line, the window showing the calendar buffer is not tall enough to show all of the buffer _and_ show the cursor on today's date (we don't allow point to be in a partially visible line). So Emacs scrolls the display to make the line with point fully visible. That's perfectly normal, not a problem. calendar.el includes a facility to fit the window to the buffer's contents, but it only does so when "M-x calendar" is invoked from the window that displays the calendar: ;; Don't do any window-related stuff if we weren't called from a ;; window displaying the calendar. (when in-calendar-window (if (window-combined-p) ;; Adjust the window to exactly fit the displayed calendar. (fit-window-to-buffer nil nil calendar-minimum-window-height) ;; For a full height window or a window that is horizontally ;; combined don't fit height to that of its buffer. (set-window-vscroll nil 0)) (sit-for 0)) This code has been there for ages, so I don't believe some change done lately changed anything there. Rather, I'm guessing that this is caused by the fact that today's date is on the last line of the buffer, which wasn't so before. You can customize calendar-minimum-window-height to work around "the problem".