From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: Bug: ruler-mode breaks scroll-conservatively (HEAD) Date: Sun, 15 Dec 2002 12:50:20 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15868.60173.1316.980178@quack.quarl.org> Reply-To: quarl@quarl.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039985679 948 80.91.224.249 (15 Dec 2002 20:54:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2002 20:54:39 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18NfmX-0000F8-00 for ; Sun, 15 Dec 2002 21:54:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Nfzg-00020y-00 for ; Sun, 15 Dec 2002 22:08:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18NfkF-0004TO-02 for emacs-devel@quimby.gnus.org; Sun, 15 Dec 2002 15:52:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Nfjr-0004S1-00 for emacs-devel@gnu.org; Sun, 15 Dec 2002 15:51:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Nfjp-0004RZ-00 for emacs-devel@gnu.org; Sun, 15 Dec 2002 15:51:50 -0500 Original-Received: from 12-208-4-115.client.attbi.com ([12.208.4.115] helo=optimus-prime.quarl.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18NfiT-00044g-00 for emacs-devel@gnu.org; Sun, 15 Dec 2002 15:50:25 -0500 Original-Received: from quack.hfb.quarl.org ([192.168.2.2] helo=quack.quarl.org ident=mail) by optimus-prime.quarl.org with esmtp (Exim 3.35 #1 (Debian)) id 18NfiQ-0005TE-00; Sun, 15 Dec 2002 12:50:22 -0800 Original-Received: from quarl by quack.quarl.org with local (Exim 3.36 #1 (Debian)) id 18NfiP-0001GR-00; Sun, 15 Dec 2002 12:50:21 -0800 Original-To: emacs-devel@gnu.org X-Mailer: VM 7.07.q1 under Emacs 21.3.50.8 X-Attribution: quarl X-Quack-Archive: 1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10148 This bug exists in Emacs HEAD 2002-12-14. Emacs 21.2 with ruler-mode.el from HEAD has a similar problem. Synopsis: emacs-21-3.50 -q # in X (the bug doesn't occur with -nw) C-x C-f file_with_more_lines_than_window_height.txt M-x set-variable scroll-conservatively 99999 ;; Scrolling occurs one line at a time when the cursor moves past the ;; first or last lines in the window (expected/desired behavior) M-x ruler-mode ;; Moving point past to/past the last line of the window recenters it ;; rather than scrolling by one line (bug). Actually if you try to even move to the last displayable line in the window (e.g. , clicking on the last line, resizing the window smaller), it recenters. So actually, ruler-mode breaks being able to have point on the last line of the window. Moving point upward isn't affected. Setting scroll-step to 1 has the same problem. In Emacs 21.2 with ruler-mode.el from HEAD, the problem exists slightly differently. Point can exist on the first and last lines in the window, but scrolling behaves non-conservatively when you move past the top/bottom. This may ahve to do with the fact that with ruler-mode on, the last line of text has one or two pixels less than without it. -- Karl Chen / quarl@quarl.org In GNU Emacs 21.3.50.8 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-12-14 on quack.quarl.org configured using `configure '--prefix=/usr/local/stow/emacs' 'CC=distcc'' 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: C locale-coding-system: nil default-enable-multibyte-characters: t