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#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll Date: Sun, 15 Apr 2012 23:41:00 +0300 Message-ID: <83zkaczq1v.fsf@gnu.org> References: <20120415192439.GA9139@c3po.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334522620 11592 80.91.229.3 (15 Apr 2012 20:43:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2012 20:43:40 +0000 (UTC) Cc: 11249@debbugs.gnu.org To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 15 22:43:39 2012 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 1SJWIL-0003Yu-6c for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Apr 2012 22:43:37 +0200 Original-Received: from localhost ([::1]:40349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJWIK-0003br-G6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Apr 2012 16:43:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJWIH-0003bl-Mj for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 16:43:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJWIF-0002Fz-Ke for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 16:43:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJWIF-0002Fk-H2 for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 16:43:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJWJi-0002eW-7h for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 16:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Apr 2012 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11249 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11249-submit@debbugs.gnu.org id=B11249.133452267010146 (code B ref 11249); Sun, 15 Apr 2012 20:45:02 +0000 Original-Received: (at 11249) by debbugs.gnu.org; 15 Apr 2012 20:44:30 +0000 Original-Received: from localhost ([127.0.0.1]:59960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJWJC-0002db-EO for submit@debbugs.gnu.org; Sun, 15 Apr 2012 16:44:30 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37999) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJWJ8-0002dQ-TB for 11249@debbugs.gnu.org; Sun, 15 Apr 2012 16:44:28 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M2J00800G581A00@a-mtaout22.012.net.il> for 11249@debbugs.gnu.org; Sun, 15 Apr 2012 23:42:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2J0062SG7GR7K0@a-mtaout22.012.net.il>; Sun, 15 Apr 2012 23:42:53 +0300 (IDT) In-reply-to: <20120415192439.GA9139@c3po.home> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59095 Archived-At: > Date: Sun, 15 Apr 2012 21:24:39 +0200 > From: Toby Cubitt > > Steps to reproduce: > > 1. emacs -Q > 2. M-x calendar > 3. M-: (setq o (make-overlay 1 2)) > 4. M-: (overlay-put o 'face 'font-lock-warning-face) > 5. Use C-n to move point to date in the last line of calendar > > > Symptoms: > > When the point moves to the last line of the calendar in step 5., the > calendar buffer scrolls down, so that the top part of the calendar > scrolls off the top of the window and can't be seen. This is not a bug, but a feature: Emacs does not allow the cursor to enter a partially visible line; it scrolls the buffer to make the line with the cursor fully visible. Displaying characters in the font-lock-warning-face makes them slightly larger (because that face makes the characters bold), and that can cause the last line to exceed the visible portion of the window. > The above steps are a minimal sequence needed to reproduce the bug. In > everyday Emacs use, the bug is triggered by date selection via > `org-read-date' in org-mode (which uses an overlay with non-null 'face > property in the calendar buffer to highlight the current date). If that face also enlarges the characters, this is a feature of the Emacs display engine.