unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#373: scroll-up, scroll-down don't respect current column
@ 2008-06-05 23:38 jidanni
  0 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2008-06-05 23:38 UTC (permalink / raw)
  To: bug-gnu-emacs

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").







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#373: scroll-up, scroll-down don't respect current column
       [not found] <handler.373.D373.121276843021631.notifdone@emacsbugs.donarmstrong.com>
@ 2008-06-06 17:28 ` jidanni
  0 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2008-06-06 17:28 UTC (permalink / raw)
  To: 373

> As luck would have it, I installed a few days ago a change that
> preserves the column position (if you set
> scroll-preserve-screen-position).

Please document scroll-preserve-screen-position in the scroll-up and
scroll-down docstrings.

In emacs-version "22.2.1" one can set scroll-preserve-screen-position
to t, but it is broken as it does not correct the behavior stated in
this bug. I assume you have made fixes to address this. Thanks.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#373: scroll-up, scroll-down don't respect current column
       [not found] <mailman.12770.1212765753.18990.bug-gnu-emacs@gnu.org>
@ 2008-06-08 19:54 ` Joe Wells
  2008-06-09  4:39   ` jidanni
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Wells @ 2008-06-08 19:54 UTC (permalink / raw)
  To: jidanni; +Cc: 373

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.







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#373: scroll-up, scroll-down don't respect current column
  2008-06-08 19:54 ` bug#373: scroll-up, scroll-down don't respect current column Joe Wells
@ 2008-06-09  4:39   ` jidanni
  0 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2008-06-09  4:39 UTC (permalink / raw)
  To: 373

Maybe all this should be related to if 'truncate long lines' is
enabled, or if there is the danger that Joe Wells mentioned on the
current line(s). Anyway "why a prejudice for column 0 if column 23 was
where we were". If the column we want doesn't exist on the current
line, temporarily go the nearest column to it.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-09  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12770.1212765753.18990.bug-gnu-emacs@gnu.org>
2008-06-08 19:54 ` bug#373: scroll-up, scroll-down don't respect current column Joe Wells
2008-06-09  4:39   ` jidanni
     [not found] <handler.373.D373.121276843021631.notifdone@emacsbugs.donarmstrong.com>
2008-06-06 17:28 ` jidanni
2008-06-05 23:38 jidanni

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).