From unknown Fri Aug 15 21:26:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12403: 24.2; scroll-margin breaks emacs24 Resent-From: Yuri D'Elia Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12403@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134729257213027 (code B ref -1); Mon, 10 Sep 2012 15:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 15:56:12 +0000 Received: from localhost ([127.0.0.1]:52452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB6LL-0003O3-C3 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 11:56:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55477) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB5Kc-0001tE-7t for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:51:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB5Jv-0004VH-Bi for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:50:47 -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]:36466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jv-0004V9-8p for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:50:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jq-0006LO-RR for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB5Jm-0004Ob-6e for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:34 -0400 Received: from e.thregr.org ([80.68.88.20]:53639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jl-0004Mq-WB for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:30 -0400 Received: from [193.106.183.18] (helo=[10.20.220.66]) by e.thregr.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1TB5Jj-0004cp-Gd for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 16:50:27 +0200 Message-ID: <504DFE2E.7040007@thregr.org> Date: Mon, 10 Sep 2012 16:50:22 +0200 From: Yuri D'Elia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.9 (------) X-Mailman-Approved-At: Mon, 10 Sep 2012 11:56:09 -0400 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 (------) emacs24 as shipped by debian breaks "scroll-margin". http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681991 It seems that setting scroll-margin on *any* value breaks the redisplay while scrolling. Try with the following (under a graphical session): emacs -q open the tutorial, scroll with the arrow keys until you reach the bottom. Everything looks ok. kill emacs. Start again, this time: C-x set-variable scroll-margin 5 open the tutorial, scroll down with the arrow keys until you reach the bottom. Text on the page looks *badly* garbled (this is not just character left-overs from the previous screenfull, a lot of lines look repeated at some point in the same line). In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11203902 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50pymacs.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50python-mode.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done Loading /etc/emacs/site-start.d/50yaml-mode.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: /usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.2/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.2/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.2/lisp/textmodes/rst Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view debian-el debian-el-loaddefs w3m-load mmm-auto mmm-vars mmm-compat cl emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode 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 system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Fri Aug 15 21:26:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12403: 24.2; scroll-margin breaks emacs24 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuri D'Elia Cc: 12403@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 12403-submit@debbugs.gnu.org id=B12403.134729522920582 (code B ref 12403); Mon, 10 Sep 2012 16:41:02 +0000 Received: (at 12403) by debbugs.gnu.org; 10 Sep 2012 16:40:29 +0000 Received: from localhost ([127.0.0.1]:52596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB72D-0005Lu-4A for submit@debbugs.gnu.org; Mon, 10 Sep 2012 12:40:29 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:53562) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB72A-0005Lm-OJ for 12403@debbugs.gnu.org; Mon, 10 Sep 2012 12:40:27 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MA5001007KHYO00@a-mtaout21.012.net.il> for 12403@debbugs.gnu.org; Mon, 10 Sep 2012 19:39:37 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MA5001NB7LXKVB0@a-mtaout21.012.net.il>; Mon, 10 Sep 2012 19:39:34 +0300 (IDT) Date: Mon, 10 Sep 2012 19:39:41 +0300 From: Eli Zaretskii In-reply-to: <504DFE2E.7040007@thregr.org> X-012-Sender: halo1@inter.net.il Message-id: <83har5ltma.fsf@gnu.org> References: <504DFE2E.7040007@thregr.org> X-Spam-Score: -1.2 (-) 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: -1.2 (-) > Date: Mon, 10 Sep 2012 16:50:22 +0200 > From: Yuri D'Elia > > emacs24 as shipped by debian breaks "scroll-margin". > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681991 > > It seems that setting scroll-margin on *any* value breaks the redisplay > while scrolling. > > Try with the following (under a graphical session): > > emacs -q > > open the tutorial, scroll with the arrow keys until you reach the bottom. > Everything looks ok. > > kill emacs. Start again, this time: > > C-x set-variable scroll-margin 5 > > open the tutorial, scroll down with the arrow keys until you reach the > bottom. Text on the page looks *badly* garbled (this is not just > character left-overs from the previous screenfull, a lot of lines look > repeated at some point in the same line). Confirmed :-(. However, this bug was present even in the first pretest of Emacs 24, 24.0.90. I will take a look. From unknown Fri Aug 15 21:26:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Yuri D'Elia Subject: bug#12403: closed (Re: bug#12403: 24.2; scroll-margin breaks emacs24) Message-ID: References: <83bohbw4bs.fsf@gnu.org> <504DFE2E.7040007@thregr.org> X-Gnu-PR-Message: they-closed 12403 X-Gnu-PR-Package: emacs Reply-To: 12403@debbugs.gnu.org Date: Wed, 12 Sep 2012 17:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1347470162-23359-1" This is a multi-part message in MIME format... ------------=_1347470162-23359-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12403: 24.2; scroll-margin breaks emacs24 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12403@debbugs.gnu.org. --=20 12403: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12403 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1347470162-23359-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12403-done) by debbugs.gnu.org; 12 Sep 2012 17:15:53 +0000 Received: from localhost ([127.0.0.1]:57405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBqXZ-00064P-52 for submit@debbugs.gnu.org; Wed, 12 Sep 2012 13:15:53 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:42910) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBqXW-00064H-Ph for 12403-done@debbugs.gnu.org; Wed, 12 Sep 2012 13:15:52 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MA800100YHZRB00@a-mtaout20.012.net.il> for 12403-done@debbugs.gnu.org; Wed, 12 Sep 2012 20:14:52 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MA8000XOYKSE7P0@a-mtaout20.012.net.il>; Wed, 12 Sep 2012 20:14:52 +0300 (IDT) Date: Wed, 12 Sep 2012 20:15:03 +0300 From: Eli Zaretskii Subject: Re: bug#12403: 24.2; scroll-margin breaks emacs24 In-reply-to: <83har5ltma.fsf@gnu.org> To: wavexx@thregr.org Message-id: <83bohbw4bs.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <504DFE2E.7040007@thregr.org> <83har5ltma.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 12403-done Cc: 12403-done@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: Mon, 10 Sep 2012 19:39:41 +0300 > From: Eli Zaretskii > Cc: 12403@debbugs.gnu.org >=20 > > Try with the following (under a graphical session): > >=20 > > emacs -q > >=20 > > open the tutorial, scroll with the arrow keys until you reach the= bottom. > > Everything looks ok. > >=20 > > kill emacs. Start again, this time: > >=20 > > C-x set-variable scroll-margin 5 > >=20 > > open the tutorial, scroll down with the arrow keys until you reac= h the > > bottom. Text on the page looks *badly* garbled (this is not just > > character left-overs from the previous screenfull, a lot of lines= look > > repeated at some point in the same line). >=20 > Confirmed :-(. However, this bug was present even in the first > pretest of Emacs 24, 24.0.90. >=20 > I will take a look. Fixed in revision 108138 on the emacs-24 branch, with the following patch: =3D=3D=3D modified file 'src/ChangeLog' --- src/ChangeLog=092012-09-12 14:59:56 +0000 +++ src/ChangeLog=092012-09-12 17:10:02 +0000 @@ -1,3 +1,11 @@ +2012-09-12 Eli Zaretskii + +=09* xdisp.c (try_window_reusing_current_matrix): Under bidi +=09reordering, locate the cursor by calling set_cursor_from_row; if +=09that fails, clear the desired glyph matrix before returning a +=09failure indication to the caller. Fixes leaving garbled display +=09when fast scrolling with a down-key. (Bug#12403) + 2012-09-12 Jan Dj=C3=A4rv =20 =09* gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it =3D=3D=3D modified file 'src/xdisp.c' --- src/xdisp.c=092012-05-30 18:09:17 +0000 +++ src/xdisp.c=092012-09-12 16:58:45 +0000 @@ -16593,28 +16593,33 @@ try_window_reusing_current_matrix (struc =09 } =09 if (row < bottom_row) =09 { -=09 struct glyph *glyph =3D row->glyphs[TEXT_AREA] + w->cursor.= hpos; -=09 struct glyph *end =3D row->glyphs[TEXT_AREA] + row->used[TE= XT_AREA]; - -=09 /* Can't use this optimization with bidi-reordered glyph -=09=09 rows, unless cursor is already at point. */ +=09 /* Can't simply scan the row for point with +=09=09 bidi-reordered glyph rows. Let set_cursor_from_row +=09=09 figure out where to put the cursor, and if it fails, +=09=09 give up. */ =09 if (!NILP (BVAR (XBUFFER (w->buffer), bidi_display_reorderi= ng))) =09=09{ -=09=09 if (!(w->cursor.hpos >=3D 0 -=09=09=09&& w->cursor.hpos < row->used[TEXT_AREA] -=09=09=09&& BUFFERP (glyph->object) -=09=09=09&& glyph->charpos =3D=3D PT)) -=09=09 return 0; +=09=09 if (!set_cursor_from_row (w, row, w->current_matrix, +=09=09=09=09=09 0, 0, 0, 0)) +=09=09 { +=09=09 clear_glyph_matrix (w->desired_matrix); +=09=09 return 0; +=09=09 } =09=09} =09 else -=09=09for (; glyph < end -=09=09 && (!BUFFERP (glyph->object) -=09=09=09 || glyph->charpos < PT); -=09=09 glyph++) -=09=09 { -=09=09 w->cursor.hpos++; -=09=09 w->cursor.x +=3D glyph->pixel_width; -=09=09 } +=09=09{ +=09=09 struct glyph *glyph =3D row->glyphs[TEXT_AREA] + w->cursor.h= pos; +=09=09 struct glyph *end =3D row->glyphs[TEXT_AREA] + row->used[TEX= T_AREA]; + +=09=09 for (; glyph < end +=09=09=09 && (!BUFFERP (glyph->object) +=09=09=09 || glyph->charpos < PT); +=09=09 glyph++) +=09=09 { +=09=09 w->cursor.hpos++; +=09=09 w->cursor.x +=3D glyph->pixel_width; +=09=09 } +=09=09} =09 } =09} =20 ------------=_1347470162-23359-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 15:56:12 +0000 Received: from localhost ([127.0.0.1]:52452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB6LL-0003O3-C3 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 11:56:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55477) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB5Kc-0001tE-7t for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:51:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB5Jv-0004VH-Bi for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:50:47 -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]:36466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jv-0004V9-8p for submit@debbugs.gnu.org; Mon, 10 Sep 2012 10:50:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jq-0006LO-RR for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB5Jm-0004Ob-6e for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:34 -0400 Received: from e.thregr.org ([80.68.88.20]:53639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB5Jl-0004Mq-WB for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 10:50:30 -0400 Received: from [193.106.183.18] (helo=[10.20.220.66]) by e.thregr.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1TB5Jj-0004cp-Gd for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 16:50:27 +0200 Message-ID: <504DFE2E.7040007@thregr.org> Date: Mon, 10 Sep 2012 16:50:22 +0200 From: Yuri D'Elia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.2; scroll-margin breaks emacs24 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 10 Sep 2012 11:56:09 -0400 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 (------) emacs24 as shipped by debian breaks "scroll-margin". http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681991 It seems that setting scroll-margin on *any* value breaks the redisplay while scrolling. Try with the following (under a graphical session): emacs -q open the tutorial, scroll with the arrow keys until you reach the bottom. Everything looks ok. kill emacs. Start again, this time: C-x set-variable scroll-margin 5 open the tutorial, scroll down with the arrow keys until you reach the bottom. Text on the page looks *badly* garbled (this is not just character left-overs from the previous screenfull, a lot of lines look repeated at some point in the same line). In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11203902 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50pymacs.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50python-mode.el (source)...done Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done Loading /etc/emacs/site-start.d/50yaml-mode.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: /usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.2/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.2/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.2/lisp/textmodes/rst Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view debian-el debian-el-loaddefs w3m-load mmm-auto mmm-vars mmm-compat cl emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode 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 system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) ------------=_1347470162-23359-1--