[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouse and horizontal scrolling with long lines

From: Glenn Morris
Subject: mouse and horizontal scrolling with long lines
Date: Wed, 29 Nov 2006 04:42:09 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Scrolling with the mouse in a buffer with lines wider than the window
(with truncate-lines enabled) is problematic. As an example:

emacs -q --no-site-file

Delete the newlines in the initial message in the scratch buffer (so
as to get a single long line of text wider than the window).

M-x toggle-truncate-lines

Click with the mouse within 5 columns of the right margin, but do not
release the mouse button.

At this stage, the window scrolls to centre point horizontally.
The mouse cursor remains where it was, close to the right margin.
The buffer basically looks as one would want it to.

Release the mouse.

Now point jumps to where the mouse cursor is, and the region between
here and where point just was gets selected. The window scrolls
horizontally again so as to centre the new point.

This last behaviour is unwanted, and makes it quite difficult to
scroll horizontally with the mouse, let along click and drag to create
a selection across the initial window edge.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]