From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: bug#373: scroll-up, scroll-down don't respect current column Date: Sun, 08 Jun 2008 20:54:52 +0100 Message-ID: <86iqwjitwz.fsf@macs.hw.ac.uk> References: Reply-To: Joe Wells , 373@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212955650 24245 80.91.229.12 (8 Jun 2008 20:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 20:07:30 +0000 (UTC) Cc: 373@emacsbugs.donarmstrong.com To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 08 22:08:12 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K5RBM-0007VN-NE for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jun 2008 22:08:04 +0200 Original-Received: from localhost ([127.0.0.1]:58638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5RAZ-0000Af-KY for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jun 2008 16:07:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5RAU-00008s-Lz for bug-gnu-emacs@gnu.org; Sun, 08 Jun 2008 16:07:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5RAS-00006O-OV for bug-gnu-emacs@gnu.org; Sun, 08 Jun 2008 16:07:10 -0400 Original-Received: from [199.232.76.173] (port=39766 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5RAS-00006L-LB for bug-gnu-emacs@gnu.org; Sun, 08 Jun 2008 16:07:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37040) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K5RAS-000639-HS for bug-gnu-emacs@gnu.org; Sun, 08 Jun 2008 16:07:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m58K76AN011732; Sun, 8 Jun 2008 13:07:06 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m58K03fj008787; Sun, 8 Jun 2008 13:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Joe Wells Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 08 Jun 2008 20:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 373 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 373-submit@emacsbugs.donarmstrong.com id=B373.12129549027520 (code B ref 373); Sun, 08 Jun 2008 20:00:03 +0000 Original-Received: (at 373) by emacsbugs.donarmstrong.com; 8 Jun 2008 19:55:02 +0000 Original-Received: from mail-r.hw.ac.uk (mail-r.hw.ac.uk [137.195.101.217]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m58JstfH007496 for <373@emacsbugs.donarmstrong.com>; Sun, 8 Jun 2008 12:54:57 -0700 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by mail-r.hw.ac.uk with esmtp (Exim 4.54) id 1K5QyT-0005r3-GY; Sun, 08 Jun 2008 20:54:45 +0100 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:41058 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1K5QyS-0006ji-OB; Sun, 08 Jun 2008 20:54:44 +0100 Original-Received: (nullmailer pid 13181 invoked by uid 1001); Sun, 08 Jun 2008 19:54:52 -0000 In-Reply-To: (jidanni@jidanni.org's message of "Fri\, 06 Jun 2008 07\:38\:40 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-HW-MailScanner-Information: Please contact the HW Helpdesk for more information X-HW-MailScanner: Found to be clean X-HW-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-HW-MailScanner-From: jbw@macs.hw.ac.uk X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 08 Jun 2008 16:07:10 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18299 Archived-At: jidanni@jidanni.org writes: > The nerve of scroll-up and scroll-down, always putting the cursor back > in column 0 no matter what column we were in. There should be a > variable to control this, documented in scroll-up and scroll-down's > docstrings. Same with scroll-*-*mark. > > Test in a buffer made with (compile "yes 01234567|sed 333q"). WARNING: The behavior you request can be seriously problematic in buffers with long lines. Suppose you are at column 378952 (yes, this happened to me two days ago) and you scroll forward. First, I hope if the scrolling keeps you on the same line, the column tracking would not be so stupid as to take you back to where you were. Suppose you were near the end of the (very long) line and a new line was displayed. Suppose this new line had 9191917 columns. Should we really go to column 378952 on the new line? The standard (and quite useful) behavior of scroll forward is to display another screenful of material, regardless of whether it is on a new line or not. Your proposed behavior would really break this. Just a cautionary note. -- Joe -- Heriot-Watt University is a Scottish charity registered under charity number SC000278.