all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 9607@debbugs.gnu.org, david_lawless@flumedata.com
Subject: bug#9607: incorrect behavior with "auto-hscroll-mode nil" in ncurses/vt220 text operation; wrong in 23 but ok in 22.1
Date: Tue, 27 Sep 2011 02:07:20 -0400	[thread overview]
Message-ID: <E1R8Qp6-0006b6-6J@fencepost.gnu.org> (raw)
In-Reply-To: <gg7h4u8wgh.fsf@fencepost.gnu.org> (message from Glenn Morris on Tue, 27 Sep 2011 00:01:50 -0400)

> From: Glenn Morris <rgm@gnu.org>
> Date: Tue, 27 Sep 2011 00:01:50 -0400
> Cc: David Lawless <david_lawless@flumedata.com>
> 
> emacs -Q --eval '(setq auto-hscroll-mode nil)'
> 
> Evaluate:
> (dotimes (j 5)
>   (insert "\n")
>   (dotimes (i 10)
>     (insert "0123456890 ")))
> 
> Put point at start of first line of digits.
> M-x scroll-left RET y
> ;; Window now scrolled to right-hand end of lines
> Down arrow  ; first time is ok
> Down arrow
>   -> second time window scrolls back to left-hand end of line
> 
> 
> (setq line-move-visual nil)
> 
> avoids the problem.
> 
> I guess it's related to the 2009-07 changes to line-move-visual for hscroll.

The problem is that line-move-visual assumes that the move begins with
cursor positioned at point, which is false when auto-hscroll-mode is
turned off and point is scrolled out of view.

Before I dive into this mess (again), do we even want to support
auto-hscroll-mode nil _and_ visual line movement?  What if we tell
line-move to invoke logical line movement instead when
auto-hscroll-mode is off?  Would someone object?





  reply	other threads:[~2011-09-27  6:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201109262119.p8QLJ5eU004406@siobhan.>
2011-09-26 21:36 ` bug#9607: David Lawless
2011-09-27  0:33 ` bug#9607: incorrect behavior with "automatic-hscroll-mode nil" in ncurses/vt220 text operation; wrong in 23 but ok in 22.1 Glenn Morris
2011-09-27  0:47   ` David Lawless
2011-09-27  2:29     ` Stefan Monnier
2011-09-27  2:43       ` bug#9607: incorrect behavior with "auto-hscroll-mode " David Lawless
2011-09-27  4:01         ` Glenn Morris
2011-09-27  6:07           ` Eli Zaretskii [this message]
2011-09-29 13:06             ` Eli Zaretskii
2011-09-27  3:10 ` bug#9607: incorrect behavior with "auto-hscroll-mode nil" in ncurses/vt220 text operation; wrong in 23.2 but ok in 23.1 David Lawless

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

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

  git send-email \
    --in-reply-to=E1R8Qp6-0006b6-6J@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=9607@debbugs.gnu.org \
    --cc=david_lawless@flumedata.com \
    --cc=rgm@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.