bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16403: 24.3.50; Rectangular selection visually disturbing


From: Bastien
Subject: bug#16403: 24.3.50; Rectangular selection visually disturbing
Date: Sun, 12 Jan 2014 23:26:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>> I'll will wait for other maintainers to give feedback and apply
>>>> this on monday if it's good.
>>> It's probably fine for ttys, indeed, but it doesn't solve the problem
>>> for GUI frames.
>> I thought the behavior in GUI frames was acceptable,
>
> This OP's use-case is a GUI frame.  Daniel pointed out that it's even
> worse under ttys.

Okay.

>> Maybe in GUI the visual hint could be a change in the cursor
>> shape?  E.g. from box to vbar.
>
> The intention is not just to warn the user that we're in rectangle mode,
> but to actually show the boundaries of the 0-width rectangle.

I will commit the change about the warning independently of the way
rectangle boundaries are shown.

Two ideas:

1) using a vbar cursor, which not only warn the user, but also
   visually represent an empty rectangle.

2) reduce the width of the line inserted to reduce the glitch.

(Both are compatible, of course.)

Note that vim does not allow empty rectangle selection:
C-v y p will copy and paste the character at point.

I cannot think of situations where the user would want an empty
rectangle, but at the same time not allowing them would not be
consistent with Emacs behavior.

-- 
 Bastien





reply via email to

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