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

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

bug#56662: 29.0.50; Funny region highlights when highlight-nonselected-w


From: Visuwesh
Subject: bug#56662: 29.0.50; Funny region highlights when highlight-nonselected-windows is t
Date: Thu, 21 Jul 2022 20:05:58 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

[வியாழன் ஜூலை 21, 2022] Eli Zaretskii wrote:

>> >> I can think of one way this could potentially work is by checking if the
>> >> mark was made when window was active so making the mark "window-aware"?
>> >> I.e., if two windows A and B show the same buffer and the user typed
>> >> C-SPC when in window A, then the region would not show up in window B.
>> >> Does this make sense?
>> >
>> > So what happens if the user then types "C-x o" to switch to B?
>> 
>> Ideally, nothing.  Only the active window changes but the region
>> highlighting before and after should be the same.
>
> But that's a bug: region highlighting should definitely work in a
> selected window.
>

It won't be a bug if the region is considered window-local.
"Window-local" because the region was made when in window A and so its
"active"-ness is confined to window A.

>> Here's another question: what about delete-selection-mode when the
>> active window is B?
>
> What about it?

If we were to make the region window-local, then should
delete-selection-mode delete the region when in window B?





reply via email to

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