unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Joe Wells <jbw@macs.hw.ac.uk>
To: jidanni@jidanni.org
Cc: 373@emacsbugs.donarmstrong.com
Subject: bug#373: scroll-up, scroll-down don't respect current column
Date: Sun, 08 Jun 2008 20:54:52 +0100	[thread overview]
Message-ID: <86iqwjitwz.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <mailman.12770.1212765753.18990.bug-gnu-emacs@gnu.org> (jidanni@jidanni.org's message of "Fri\, 06 Jun 2008 07\:38\:40 +0800")

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.







       reply	other threads:[~2008-06-08 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12770.1212765753.18990.bug-gnu-emacs@gnu.org>
2008-06-08 19:54 ` Joe Wells [this message]
2008-06-09  4:39   ` bug#373: scroll-up, scroll-down don't respect current column jidanni
     [not found] <handler.373.D373.121276843021631.notifdone@emacsbugs.donarmstrong.com>
2008-06-06 17:28 ` jidanni
2008-06-05 23:38 jidanni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86iqwjitwz.fsf@macs.hw.ac.uk \
    --to=jbw@macs.hw.ac.uk \
    --cc=373@emacsbugs.donarmstrong.com \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).