From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Sven Joachim , 148@debbugs.gnu.org Resent-From: Sven Joachim Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Sven Joachim , Bernardo Dal Seno , Emacs Bugs Resent-Date: Sat, 19 Apr 2008 07:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.120858942014116 (code B ref -1); Sat, 19 Apr 2008 07:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=4.0 tests=AWL,FOURLA,HAS_PACKAGE, X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Apr 2008 07:17:00 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m3J7GuRD014110 for ; Sat, 19 Apr 2008 00:16:57 -0700 Received: (qmail invoked by alias); 19 Apr 2008 07:16:50 -0000 Received: from p54867BB3.dip.t-dialin.net (EHLO debian) [84.134.123.179] by mail.gmx.net (mp032) with SMTP; 19 Apr 2008 09:16:50 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+BkJd4KbGBAB3z/HybDG3Dw3G/Rlx/nAC7jOjGmJ atrhREBovQW1Yb From: Sven Joachim To: submit@debbugs.gnu.org Date: Sat, 19 Apr 2008 09:14:00 +0200 Message-ID: <87r6d2nwp3.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Y-GMX-Trusted: 0 --=-=-= Package: emacs Version: 22.1, 22.2.50, 23.0.60 I received the attached message via the Debian bug tracking system. The described redisplay problem is reproducible in both EMACS_22_BASE and the trunk. While the scrollbar and the modeline are updated upon C-v, the buffer window is not. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: bounces+20080311-svenjoac=gmx.de@packages.qa.debian.org Tue Mar 11 23:03:30 2008 Return-Path: X-Flags: 1001 Delivered-To: GMX delivery to svenjoac@gmx.de Received: (qmail invoked by alias); 11 Mar 2008 21:58:44 -0000 Received: from master.debian.org (EHLO master.debian.org) [70.103.162.29] by mx0.gmx.net (mx054) with SMTP; 11 Mar 2008 22:58:44 +0100 Received: from qa by master.debian.org with local (Exim 4.50) id 1JZCUd-0004Hn-W6 for svenjoac@gmx.de; Tue, 11 Mar 2008 21:58:44 +0000 Received: from rietz.debian.org ([140.211.166.43]) by master.debian.org with esmtp (Exim 4.50) id 1JZCK8-0000QU-PK for emacs22@packages.qa.debian.org; Tue, 11 Mar 2008 21:47:53 +0000 Received: from debbugs by rietz.debian.org with local (Exim 4.63) (envelope-from ) id 1JZC9i-0004U0-Bq; Tue, 11 Mar 2008 21:37:22 +0000 X-Loop: owner@bugs.debian.org Subject: Bug#470556: emacs22: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Bernardo Dal Seno , 470556@bugs.debian.org Resent-From: Bernardo Dal Seno Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Rob Browning Resent-Date: Tue, 11 Mar 2008 21:37:02 +0000 Resent-Message-Id: X-Debian-PR-Message: report 470556 X-Debian-PR-Package: emacs22 X-Debian-PR-Source: emacs22 Received: via spool by submit@bugs.debian.org id=B.120527130412970 (code B ref -1); Tue, 11 Mar 2008 21:37:02 +0000 Received: (at submit) by bugs.debian.org; 11 Mar 2008 21:35:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 (2006-07-26) on rietz.debian.org X-Spam-Status: No, score=-9.6 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE, RCVD_ILLEGAL_IP autolearn=no version=3.1.4-bugs.debian.org_2005_01_02 Received: from aa001msb.fastweb.it ([85.18.95.80]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1JZC7H-00036m-Dl for submit@bugs.debian.org; Tue, 11 Mar 2008 21:34:44 +0000 Received: from alpha.pippo.bogus (1.255.82.91) by aa001msb.fastweb.it (8.0.013.5) id 47CFF5C800973CC1; Tue, 11 Mar 2008 22:34:29 +0100 Received: from bernardo by alpha.pippo.bogus with local (Exim 4.69) (envelope-from ) id 1JZC7B-0001rl-Ea; Tue, 11 Mar 2008 22:34:29 +0100 From: Bernardo Dal Seno To: Debian Bug Tracking System Message-Id: <20080311213429.7145.30235.reportbug@alpha.pippo.bogus> X-Mailer: reportbug 3.39 Date: Tue, 11 Mar 2008 22:34:29 +0100 Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS Resent-Date: Tue, 11 Mar 2008 21:37:06 +0000 Delivered-To: emacs22@packages.qa.debian.org Precedence: list X-Loop: emacs22@packages.qa.debian.org X-PTS-Package: emacs22 X-PTS-Keyword: bts List-Unsubscribe: X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Htest: 0.52 X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: 9Gy8L9c9TlIuA0N12GlrIw1GU2poZdn7 Lines: 67 Xref: debian mail.debian.bugs-dist:548 mail.debian.bts:1338 MIME-Version: 1.0 Package: emacs22 Version: 22.1+1-3 Severity: normal With this very minimal '.emacs' file ---BEGIN--- (custom-set-variables '(scroll-margin 2) '(scroll-preserve-screen-position t) ) ---END--- hitting page-up and page-down (or C-v and M-v) in any order just after having open an exiting file does not update the buffer view immediatly. In other words, you open a file, and you hit page-down a couple of times; the scroll bar and the status bar get updated immediatly, while the content of the window is update only after some time, which could be less than a second (but the delay is noticeable) or also a few seconds. If you move the cursor using the arrow keys, the problem disappear. If you move the cursor to the very first line of the buffer, though, and then hit page-down, you'll see the problem again. I'm using X. In a terminal window Emacs seems to work fine. I've experienced this problem for a while, but only now I found the cause. It's more apparent with files of a few hundred lines. Best regards, Bernardo -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.23 (PREEMPT) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages emacs22 depends on: ii emacs22-bin-common 22.1+1-3 The GNU Emacs editor's shared, arc ii libasound2 1.0.16-1 ALSA library ii libc6 2.7-8 GNU C Library: Shared libraries ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libncurses5 5.6+20080203-1 Shared libraries for terminal hand ii libpng12-0 1.2.15~beta5-3 PNG library - runtime ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii libx11-6 2:1.0.3-7 X11 client-side library ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar ii libxmu6 2:1.0.4-1 X11 miscellaneous utility library ii libxpm4 1:3.5.7-1 X11 pixmap library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii xaw3dg 1.5+E-15 Xaw3d widget set ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime emacs22 recommends no packages. -- no debconf information --=-=-=-- From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Stefan Monnier , 148@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 19 Apr 2008 14:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 148-submit@emacsbugs.donarmstrong.com id=B148.12086148624391 (code B ref 148); Sat, 19 Apr 2008 14:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148) by emacsbugs.donarmstrong.com; 19 Apr 2008 14:21:02 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3JEKveV004385 for <148@emacsbugs.donarmstrong.com>; Sat, 19 Apr 2008 07:20:59 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAOicCUhMCqsI/2dsb2JhbACBYKkw X-IronPort-AV: E=Sophos;i="4.25,683,1199682000"; d="scan'208";a="18771368" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 19 Apr 2008 10:20:52 -0400 Received: from pastel.home ([76.10.171.8]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id ZSN04552; Sat, 19 Apr 2008 10:20:52 -0400 Received: by pastel.home (Postfix, from userid 20848) id BFBBD8DDE; Sat, 19 Apr 2008 10:20:51 -0400 (EDT) From: Stefan Monnier To: Sven Joachim Cc: 148@debbugs.gnu.org Message-ID: References: <87r6d2nwp3.fsf@gmx.de> Date: Sat, 19 Apr 2008 10:20:51 -0400 In-Reply-To: <87r6d2nwp3.fsf@gmx.de> (Sven Joachim's message of "Sat, 19 Apr 2008 09:14:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I received the attached message via the Debian bug tracking system. The > described redisplay problem is reproducible in both EMACS_22_BASE and > the trunk. While the scrollbar and the modeline are updated upon C-v, > the buffer window is not. This behavior is not a bug in itself, it's just a symptom: it means that redisplay was interrupted by user input before it had time to terminate. See redisplay-dont-pause. So, the problem you're reporting is that Emacs's redisplay is too slow to keep up with the scrolling (which is indeed a problem). This may of course depend on the file's content and the major-mode (since part of the redisplay time might be used by font-locking, for example). Stefan From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Sven Joachim , 148@debbugs.gnu.org Resent-From: Sven Joachim Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 20 Apr 2008 14:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 148-submit@emacsbugs.donarmstrong.com id=B148.12087000268686 (code B ref 148); Sun, 20 Apr 2008 14:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148) by emacsbugs.donarmstrong.com; 20 Apr 2008 14:00:26 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m3KE0M9m008312 for <148@emacsbugs.donarmstrong.com>; Sun, 20 Apr 2008 07:00:23 -0700 Received: (qmail invoked by alias); 20 Apr 2008 14:00:16 -0000 Received: from p54864E3B.dip.t-dialin.net (EHLO debian) [84.134.78.59] by mail.gmx.net (mp057) with SMTP; 20 Apr 2008 16:00:16 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/TZZ1LD3PTNe7Ek7+0p7nbSCu0F6fUOnXXQPQH4L 5eK5g90Ac1EU7B From: Sven Joachim To: Stefan Monnier Cc: 148@debbugs.gnu.org References: <87r6d2nwp3.fsf@gmx.de> Date: Sun, 20 Apr 2008 15:57:18 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 19 Apr 2008 10:20:51 -0400") Message-ID: <87d4okpr29.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 On 2008-04-19 16:20 +0200, Stefan Monnier wrote: > This behavior is not a bug in itself, it's just a symptom: it means that > redisplay was interrupted by user input before it had time > to terminate. See redisplay-dont-pause. Okay, maybe the submitter of the Debian bug should set redisplay-dont-pause to t to work around the problem. > So, the problem you're reporting is that Emacs's redisplay is too slow > to keep up with the scrolling (which is indeed a problem). This may of > course depend on the file's content and the major-mode (since part of the > redisplay time might be used by font-locking, for example). Do you have an explanation why the combination of (setq scroll-margin 2) (setq scroll-preserve-screen-position) slows down redisplay so much on C-v, especially if point is in the middle of the window? I've never seen the problem in the default settings. Sven From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Stefan Monnier , 148@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 21 Apr 2008 11:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 148-submit@emacsbugs.donarmstrong.com id=B148.120877829811896 (code B ref 148); Mon, 21 Apr 2008 11:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148) by emacsbugs.donarmstrong.com; 21 Apr 2008 11:44:58 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3LBiqmK011890 for <148@emacsbugs.donarmstrong.com>; Mon, 21 Apr 2008 04:44:54 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAHUaDEhMCpdU/2dsb2JhbACBUahM X-IronPort-AV: E=Sophos;i="4.25,689,1199682000"; d="scan'208";a="18812008" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 21 Apr 2008 07:44:47 -0400 Received: from pastel.home ([76.10.151.84]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id BPN06747; Mon, 21 Apr 2008 07:44:47 -0400 Received: by pastel.home (Postfix, from userid 20848) id C2A57895A; Mon, 21 Apr 2008 07:44:46 -0400 (EDT) From: Stefan Monnier To: Sven Joachim Cc: 148@debbugs.gnu.org Message-ID: References: <87r6d2nwp3.fsf@gmx.de> <87d4okpr29.fsf@gmx.de> Date: Mon, 21 Apr 2008 07:44:46 -0400 In-Reply-To: <87d4okpr29.fsf@gmx.de> (Sven Joachim's message of "Sun, 20 Apr 2008 15:57:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> This behavior is not a bug in itself, it's just a symptom: it means that >> redisplay was interrupted by user input before it had time >> to terminate. See redisplay-dont-pause. > Okay, maybe the submitter of the Debian bug should set > redisplay-dont-pause to t to work around the problem. Yes, that should work around the problem. >> So, the problem you're reporting is that Emacs's redisplay is too slow >> to keep up with the scrolling (which is indeed a problem). This may of >> course depend on the file's content and the major-mode (since part of the >> redisplay time might be used by font-locking, for example). > Do you have an explanation why the combination of > (setq scroll-margin 2) > (setq scroll-preserve-screen-position) > slows down redisplay so much on C-v, especially if point is in the > middle of the window? I've never seen the problem in the default > settings. I do not have an explanation, no. Stefan From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: "Bernardo Dal Seno" , 148@debbugs.gnu.org Resent-From: "Bernardo Dal Seno" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 22 Apr 2008 15:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 148-submit@emacsbugs.donarmstrong.com id=B148.120887605115842 (code B ref 148); Tue, 22 Apr 2008 15:00:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148) by emacsbugs.donarmstrong.com; 22 Apr 2008 14:54:11 +0000 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3MEs18m015836 for <148@emacsbugs.donarmstrong.com>; Tue, 22 Apr 2008 07:54:03 -0700 Received: by ti-out-0910.google.com with SMTP id b8so719277tic.1 for <148@emacsbugs.donarmstrong.com>; Tue, 22 Apr 2008 07:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=+zGRG3EcdQBkvkpDodARub1v9jAKzVngixJ5zU17sjk=; b=Hby0gU8FJ0jbqw4XZ3Eig+WO9mHwzZGnrf8WC3VLswaHBifVAGP8kCr4Lr4bVF2LAV1rkWeNArzt6uZrysPCFGNAuqor+fR0NPnO80l4pOeaKtGJZzRQ25C3cBLOeUIwY+OyzI/kSBKneDfdq3kr8C3i2zpDnU+a9YPaCvFi1bs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=cvF7YYlqF5mzUj+FRsbXyAdpCHkvYwa0FwF8lLaHcbi4WJTmVJCcNUk+yNJ04t0qbiQmHMt9un3b7kZI0l5Xdrh/oXu9nBE8k16epeTBTfHpGAXInFVMXNjT5JYsIQ768fYY3UvtoR5+mxy9ueN4dWfaGuuhZ+lZztX8XWKEci8= Received: by 10.150.202.8 with SMTP id z8mr333223ybf.14.1208876038643; Tue, 22 Apr 2008 07:53:58 -0700 (PDT) Received: by 10.65.73.3 with HTTP; Tue, 22 Apr 2008 07:53:58 -0700 (PDT) Message-ID: <4a89a2e90804220753g32225408hc811cf1795723bd@mail.gmail.com> Date: Tue, 22 Apr 2008 16:53:58 +0200 From: "Bernardo Dal Seno" To: "Stefan Monnier" Cc: 148@debbugs.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > This behavior is not a bug in itself, it's just a symptom: it means that > redisplay was interrupted by user input before it had time > to terminate. See redisplay-dont-pause. I tried the following .emacs: ---BEGIN--- (custom-set-variables '(scroll-margin 2) '(scroll-preserve-screen-position t) '(redisplay-dont-pause t) ) ---END--- and the bug appeared as before. > This may of > course depend on the file's content and the major-mode (since part of the > redisplay time might be used by font-locking, for example). In order to avoid font-locking and strange hooks, I copied a plain text file to '/tmp/xxyyzz' and opened it with Emacs. Same problem. Actually, the display isn't updated if I scroll the buffer when the cursor is in the first two lines of the window. A partial work-around I've found is adding this to .emacs: ---CUT--- (add-hook 'find-file-hook (function (lambda () (goto-line (+ 1 scroll-margin)) ))) ---CUT--- When I open a file I can scroll it immediately, as the cursor is on the third line, but whenever I move the cursor to the beginning of the buffer, the bug shows up again. I don't know anything about Emacs internals, but it seems a very strange behavior. Bernardo From unknown Sat Aug 16 18:42:40 2025 X-Loop: don@donarmstrong.com Subject: bug#148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Stefan Monnier , 148@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 22 Apr 2008 17:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 148 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 148-submit@emacsbugs.donarmstrong.com id=B148.120888392922179 (code B ref 148); Tue, 22 Apr 2008 17:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148) by emacsbugs.donarmstrong.com; 22 Apr 2008 17:05:29 +0000 Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3MH5LV7022173 for <148@emacsbugs.donarmstrong.com>; Tue, 22 Apr 2008 10:05:22 -0700 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D19512CF8B7; Tue, 22 Apr 2008 13:05:20 -0400 (EDT) Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D2BBA3FE1; Tue, 22 Apr 2008 13:05:07 -0400 (EDT) Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B8624AF5C7; Tue, 22 Apr 2008 13:05:07 -0400 (EDT) From: Stefan Monnier To: "Bernardo Dal Seno" Cc: 148@debbugs.gnu.org Message-ID: References: <4a89a2e90804220753g32225408hc811cf1795723bd@mail.gmail.com> Date: Tue, 22 Apr 2008 13:05:07 -0400 In-Reply-To: <4a89a2e90804220753g32225408hc811cf1795723bd@mail.gmail.com> (Bernardo Dal Seno's message of "Tue, 22 Apr 2008 16:53:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca >> This behavior is not a bug in itself, it's just a symptom: it means that >> redisplay was interrupted by user input before it had time >> to terminate. See redisplay-dont-pause. > I tried the following .emacs: > ---BEGIN--- > (custom-set-variables > '(scroll-margin 2) > '(scroll-preserve-screen-position t) > '(redisplay-dont-pause t) > ) > ---END--- > and the bug appeared as before. > Actually, the display isn't updated if I scroll the buffer when the > cursor is in the first two lines of the window. A partial work-around Oh, indeed, I see something very odd going on, now. It's not just the redisplay-dont-pause, it's a real bug: it looks like if the cursor starts inside the `scroll-margin' (e.g. (point-min)) and we scroll a page forward, the cursor is moved ans so is point, but the text is not updated. Stefan From unknown Sat Aug 16 18:42:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Sven Joachim Subject: bug#148 closed by Chong Yidong (Re: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem) Message-ID: References: <87myjrxemv.fsf@stupidchicken.com> <87r6d2nwp3.fsf@gmx.de> X-Emacs-PR-Message: they-closed 148 X-Emacs-PR-Package: emacs Reply-To: 148@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217976906-27800-1" This is a multi-part message in MIME format... ------------=_1217976906-27800-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #148: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-positio= n cause refresh problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 148: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D148 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217976906-27800-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Tue Aug 5 15:47:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.2 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 148-done) by emacsbugs.donarmstrong.com; 5 Aug 2008 22:47:44 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m75MleSE026075 for <148-done@emacsbugs.donarmstrong.com>; Tue, 5 Aug 2008 15:47:42 -0700 Received: by cyd (Postfix, from userid 1000) id 2392357E338; Tue, 5 Aug 2008 18:48:08 -0400 (EDT) From: Chong Yidong To: Sven Joachim Cc: 148-done@debbugs.gnu.org Subject: Re: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem Date: Tue, 05 Aug 2008 18:48:08 -0400 Message-ID: <87myjrxemv.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > With this very minimal '.emacs' file > > (custom-set-variables > '(scroll-margin 2) > '(scroll-preserve-screen-position t)) > > hitting page-up and page-down (or C-v and M-v) in any order just after > having open an exiting file does not update the buffer view immediatly. I've just checked in a fix. Thanks. ------------=_1217976906-27800-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From svenjoac@gmx.de Sat Apr 19 00:17:00 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=4.0 tests=AWL,FOURLA,HAS_PACKAGE, X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Apr 2008 07:17:00 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m3J7GuRD014110 for ; Sat, 19 Apr 2008 00:16:57 -0700 Received: (qmail invoked by alias); 19 Apr 2008 07:16:50 -0000 Received: from p54867BB3.dip.t-dialin.net (EHLO debian) [84.134.123.179] by mail.gmx.net (mp032) with SMTP; 19 Apr 2008 09:16:50 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+BkJd4KbGBAB3z/HybDG3Dw3G/Rlx/nAC7jOjGmJ atrhREBovQW1Yb From: Sven Joachim To: submit@debbugs.gnu.org Subject: [Bernardo Dal Seno]: scroll-margin and scroll-preserve-screen-position cause refresh problem X-Debbugs-Cc: Sven Joachim , Bernardo Dal Seno Date: Sat, 19 Apr 2008 09:14:00 +0200 Message-ID: <87r6d2nwp3.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Y-GMX-Trusted: 0 --=-=-= Package: emacs Version: 22.1, 22.2.50, 23.0.60 I received the attached message via the Debian bug tracking system. The described redisplay problem is reproducible in both EMACS_22_BASE and the trunk. While the scrollbar and the modeline are updated upon C-v, the buffer window is not. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: bounces+20080311-svenjoac=gmx.de@packages.qa.debian.org Tue Mar 11 23:03:30 2008 Return-Path: X-Flags: 1001 Delivered-To: GMX delivery to svenjoac@gmx.de Received: (qmail invoked by alias); 11 Mar 2008 21:58:44 -0000 Received: from master.debian.org (EHLO master.debian.org) [70.103.162.29] by mx0.gmx.net (mx054) with SMTP; 11 Mar 2008 22:58:44 +0100 Received: from qa by master.debian.org with local (Exim 4.50) id 1JZCUd-0004Hn-W6 for svenjoac@gmx.de; Tue, 11 Mar 2008 21:58:44 +0000 Received: from rietz.debian.org ([140.211.166.43]) by master.debian.org with esmtp (Exim 4.50) id 1JZCK8-0000QU-PK for emacs22@packages.qa.debian.org; Tue, 11 Mar 2008 21:47:53 +0000 Received: from debbugs by rietz.debian.org with local (Exim 4.63) (envelope-from ) id 1JZC9i-0004U0-Bq; Tue, 11 Mar 2008 21:37:22 +0000 X-Loop: owner@bugs.debian.org Subject: Bug#470556: emacs22: scroll-margin and scroll-preserve-screen-position cause refresh problem Reply-To: Bernardo Dal Seno , 470556@bugs.debian.org Resent-From: Bernardo Dal Seno Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Rob Browning Resent-Date: Tue, 11 Mar 2008 21:37:02 +0000 Resent-Message-Id: X-Debian-PR-Message: report 470556 X-Debian-PR-Package: emacs22 X-Debian-PR-Source: emacs22 Received: via spool by submit@bugs.debian.org id=B.120527130412970 (code B ref -1); Tue, 11 Mar 2008 21:37:02 +0000 Received: (at submit) by bugs.debian.org; 11 Mar 2008 21:35:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 (2006-07-26) on rietz.debian.org X-Spam-Status: No, score=-9.6 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE, RCVD_ILLEGAL_IP autolearn=no version=3.1.4-bugs.debian.org_2005_01_02 Received: from aa001msb.fastweb.it ([85.18.95.80]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1JZC7H-00036m-Dl for submit@bugs.debian.org; Tue, 11 Mar 2008 21:34:44 +0000 Received: from alpha.pippo.bogus (1.255.82.91) by aa001msb.fastweb.it (8.0.013.5) id 47CFF5C800973CC1; Tue, 11 Mar 2008 22:34:29 +0100 Received: from bernardo by alpha.pippo.bogus with local (Exim 4.69) (envelope-from ) id 1JZC7B-0001rl-Ea; Tue, 11 Mar 2008 22:34:29 +0100 From: Bernardo Dal Seno To: Debian Bug Tracking System Message-Id: <20080311213429.7145.30235.reportbug@alpha.pippo.bogus> X-Mailer: reportbug 3.39 Date: Tue, 11 Mar 2008 22:34:29 +0100 Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS Resent-Date: Tue, 11 Mar 2008 21:37:06 +0000 Delivered-To: emacs22@packages.qa.debian.org Precedence: list X-Loop: emacs22@packages.qa.debian.org X-PTS-Package: emacs22 X-PTS-Keyword: bts List-Unsubscribe: X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Htest: 0.52 X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: 9Gy8L9c9TlIuA0N12GlrIw1GU2poZdn7 Lines: 67 Xref: debian mail.debian.bugs-dist:548 mail.debian.bts:1338 MIME-Version: 1.0 Package: emacs22 Version: 22.1+1-3 Severity: normal With this very minimal '.emacs' file ---BEGIN--- (custom-set-variables '(scroll-margin 2) '(scroll-preserve-screen-position t) ) ---END--- hitting page-up and page-down (or C-v and M-v) in any order just after having open an exiting file does not update the buffer view immediatly. In other words, you open a file, and you hit page-down a couple of times; the scroll bar and the status bar get updated immediatly, while the content of the window is update only after some time, which could be less than a second (but the delay is noticeable) or also a few seconds. If you move the cursor using the arrow keys, the problem disappear. If you move the cursor to the very first line of the buffer, though, and then hit page-down, you'll see the problem again. I'm using X. In a terminal window Emacs seems to work fine. I've experienced this problem for a while, but only now I found the cause. It's more apparent with files of a few hundred lines. Best regards, Bernardo -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.23 (PREEMPT) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages emacs22 depends on: ii emacs22-bin-common 22.1+1-3 The GNU Emacs editor's shared, arc ii libasound2 1.0.16-1 ALSA library ii libc6 2.7-8 GNU C Library: Shared libraries ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libncurses5 5.6+20080203-1 Shared libraries for terminal hand ii libpng12-0 1.2.15~beta5-3 PNG library - runtime ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii libx11-6 2:1.0.3-7 X11 client-side library ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar ii libxmu6 2:1.0.4-1 X11 miscellaneous utility library ii libxpm4 1:3.5.7-1 X11 pixmap library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii xaw3dg 1.5+E-15 Xaw3d widget set ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime emacs22 recommends no packages. -- no debconf information --=-=-=-- ------------=_1217976906-27800-1--