From unknown Tue Jun 17 01:31:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11249 <11249@debbugs.gnu.org> To: bug#11249 <11249@debbugs.gnu.org> Subject: Status: 24.1.50; Overlay with face property causes calendar buffer to scroll Reply-To: bug#11249 <11249@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:31:41 +0000 retitle 11249 24.1.50; Overlay with face property causes calendar buffer to= scroll reassign 11249 emacs,org-mode submitter 11249 Toby Cubitt severity 11249 normal tag 11249 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 15:33:31 2012 Received: (at submit) by debbugs.gnu.org; 15 Apr 2012 19:33:31 +0000 Received: from localhost ([127.0.0.1]:59925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJVCU-000137-FI for submit@debbugs.gnu.org; Sun, 15 Apr 2012 15:33:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44485) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJVCR-00012y-Gj for submit@debbugs.gnu.org; Sun, 15 Apr 2012 15:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJVAw-0001Bk-G1 for submit@debbugs.gnu.org; Sun, 15 Apr 2012 15:31:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJVAw-0001Bf-Cs for submit@debbugs.gnu.org; Sun, 15 Apr 2012 15:31:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJVAu-0008St-6Y for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 15:31:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJVAr-0001B3-PJ for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 15:31:51 -0400 Received: from sanddollar.geekisp.com ([216.168.135.167]:27888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJVAr-0001AS-KP for bug-gnu-emacs@gnu.org; Sun, 15 Apr 2012 15:31:49 -0400 Received: (qmail 6781 invoked by uid 1003); 15 Apr 2012 19:25:06 -0000 Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Sun, 15 Apr 2012 15:25:04 -0400 Date: Sun, 15 Apr 2012 21:24:39 +0200 To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Overlay with face property causes calendar buffer to scroll Message-ID: <20120415192439.GA9139@c3po.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://www.dr-qubit.org/gpg-toby.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Toby Cubitt X-Primary-Address: toby@dr-qubit.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Toby Cubitt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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 scrolling bug doesn't occur if a calendar buffer is displayed normally, without creating any overlays (i.e. skipping steps 3. and 4. above). Indeed, skipping just step 4. is sufficient to avoid triggering the scrolling bug. So it looks like the bug is triggered by the presence of an overlay with non-null 'face property in the calendar buffer. (One futher point that might be useful to note: the bug is *not* triggered by zero-length overlays.) 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). In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.8) of 2012-04-10 on c3po Windowing system distributor `The X.Org Foundation', version 11.0.11102000 Configured using: `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-24' '--infodir=/usr/share/info/emacs-24' '--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../lib' '--with-gameuser=games' '--without-compress-info' '--disable-maintainer-mode' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--without-gnutls' '--without-xml2' '--without-selinux' '--without-sound' '--with-x' '--without-ns' '--without-gconf' '--without-gsettings' '--with-toolkit-scroll-bars' '--without-wide-int' '--without-gif' '--without-jpeg' '--with-png' '--with-rsvg' '--without-tiff' '--with-xpm' '--without-imagemagick' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' 'EBZR_BRANCH=trunk' 'EBZR_REVNO=107836' '--build=i686-pc-linux-gnu' '--disable-dependency-tracking' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=prescott -O2 -pipe -O2' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Calendar Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils jka-compr find-func org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec help-mode view debug mule-util cal-move regexp-opt cal-menu easymenu calendar cal-loaddefs time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: tsc25@cantab.net web: www.dr-qubit.org From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 16:44:30 2012 Received: (at 11249) by debbugs.gnu.org; 15 Apr 2012 20:44:30 +0000 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 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 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) 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) Date: Sun, 15 Apr 2012 23:41:00 +0300 From: Eli Zaretskii Subject: Re: bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll In-reply-to: <20120415192439.GA9139@c3po.home> X-012-Sender: halo1@inter.net.il To: Toby Cubitt Message-id: <83zkaczq1v.fsf@gnu.org> References: <20120415192439.GA9139@c3po.home> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11249 Cc: 11249@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 17:46:35 2012 Received: (at 11249) by debbugs.gnu.org; 15 Apr 2012 21:46:35 +0000 Received: from localhost ([127.0.0.1]:60015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJXHG-00041X-Mj for submit@debbugs.gnu.org; Sun, 15 Apr 2012 17:46:35 -0400 Received: from sanddollar.geekisp.com ([216.168.135.167]:30765) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJWeH-00037k-B8 for 11249@debbugs.gnu.org; Sun, 15 Apr 2012 17:06:18 -0400 Received: (qmail 22445 invoked by uid 1003); 15 Apr 2012 21:04:45 -0000 Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Sun, 15 Apr 2012 17:04:41 -0400 Date: Sun, 15 Apr 2012 23:04:16 +0200 To: Eli Zaretskii Subject: Re: bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll Message-ID: <20120415210416.GA28522@c3po.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83zkaczq1v.fsf@gnu.org> X-PGP-Key: http://www.dr-qubit.org/gpg-toby.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Toby Cubitt Mail-Followup-To: emacs-orgmode@gnu.org X-Primary-Address: toby@dr-qubit.org X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 11249 X-Mailman-Approved-At: Sun, 15 Apr 2012 17:46:33 -0400 Cc: emacs-orgmode@gnu.org, 11249@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.4 (/) On Sun, Apr 15, 2012 at 11:41:00PM +0300, Eli Zaretskii wrote: > > 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. Aha, that makes sense. > > 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. Yup, I chose `font-lock-warning-face' in the steps to reproduce because org-mode sets `org-warning' face to this by default. Even if this behaviour is related to a display engine feature, this is nonetheless a bug in `org-read-date'. It's very irritating to have the top part of the calendar scroll off the top of the window. Apart from being ugly, it hides the month and day names (in addition to half the dates), making it very difficult to select the desired date. The obvious solution is for org-mode to use a face that doesn't enlarge the characters. I imagine that would mean defining a separate org-mode face specifically for highlighting the date in the calendar, since `org-warning' is used for all kinds of other things in org-mode for which bold characters make sense (e.g. warning about todo items whose deadline is due). I've copied this to the org-mode mailing list, since presumably the org-mode maintainers will have to take care of this. Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: tsc25@cantab.net web: www.dr-qubit.org From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 15 22:53:26 2012 Received: (at 11249) by debbugs.gnu.org; 16 Apr 2012 02:53:26 +0000 Received: from localhost ([127.0.0.1]:50961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJc4D-0001jI-Ud for submit@debbugs.gnu.org; Sun, 15 Apr 2012 22:53:26 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:47367) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJc4A-0001j3-V0 for 11249@debbugs.gnu.org; Sun, 15 Apr 2012 22:53:24 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M2J00B00X5VQE00@a-mtaout22.012.net.il> for 11249@debbugs.gnu.org; Mon, 16 Apr 2012 05:52:43 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2J00BTEXBUPB10@a-mtaout22.012.net.il>; Mon, 16 Apr 2012 05:52:43 +0300 (IDT) Date: Mon, 16 Apr 2012 05:50:50 +0300 From: Eli Zaretskii Subject: Re: bug#11249: 24.1.50; Overlay with face property causes calendar buffer to scroll In-reply-to: <20120415210416.GA28522@c3po.home> X-012-Sender: halo1@inter.net.il To: Toby Cubitt Message-id: <83wr5gz8xh.fsf@gnu.org> References: <20120415210416.GA28522@c3po.home> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11249 Cc: emacs-orgmode@gnu.org, 11249@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sun, 15 Apr 2012 23:04:16 +0200 > Cc: 11249@debbugs.gnu.org, emacs-orgmode@gnu.org > From: Toby Cubitt > > The obvious solution is for org-mode to use a face that doesn't enlarge > the characters. Another solution would be to enlarge the calendar window by one line. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 16 04:06:13 2012 Received: (at control) by debbugs.gnu.org; 16 Apr 2012 08:06:13 +0000 Received: from localhost ([127.0.0.1]:35687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJgwv-0005L6-2J for submit@debbugs.gnu.org; Mon, 16 Apr 2012 04:06:13 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40737 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJgws-0005Kz-Rh for control@debbugs.gnu.org; Mon, 16 Apr 2012 04:06:11 -0400 Received: from [155.69.18.17] (port=38969 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SJgwq-0006Kp-Mp for control@debbugs.gnu.org; Mon, 16 Apr 2012 04:06:09 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11249 Date: Mon, 16 Apr 2012 16:06:02 +0800 Message-ID: <87iph0yuc5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) tags 11249 + notabug close 11249 thanks From unknown Tue Jun 17 01:31:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 May 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator