emacs-devel
[Top][All Lists]
Advanced

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

Re: Issue with rectangle mouse selection


From: Mattias Engdegård
Subject: Re: Issue with rectangle mouse selection
Date: Sat, 30 Nov 2019 12:08:47 +0100

29 nov. 2019 kl. 15.39 skrev Ergus <address@hidden>:

> YES!!! this seems to work now. :)

Perhaps the workaround should be mentioned in the docs for xterm-mouse-mode?

> So the only issue now is what I reported on yesterday about the distance
> between rectangle border (point) and pointer in white spaces (or empty
> lines). But it seems to be related with display-line-numbers-mode.

That's clearly wrong, thanks for spotting it. There were problems with 
side-by-side windows as well. In addition, the mouse tracking was sometimes one 
cell off.

Please try the attached patch.

I couldn't make up my mind whether to have the mouse track the cursor or the 
rectangle corner. Tracking the cursor mirrors the behaviour of plain (linear) 
text selection, but corner tracking works better up to the right margin.

You can set mouse--rectangle-track-cursor to select either behaviour; I'm not 
sure if it should be a defcustom, or what the default should be. Right now it's 
nil (tracks the corner).

Attachment: 0001-Improved-mouse-rectangle-selection-robustness-bug-38.patch
Description: Binary data


reply via email to

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