[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] scratch/highlight-n-windows 6da5ca1 2/2: Set `mark-act
Re: [Emacs-diffs] scratch/highlight-n-windows 6da5ca1 2/2: Set `mark-active' to selected window
Wed, 01 Apr 2015 09:03:58 +0200
Gnus/5.13 (Gnus v5.13) Emacs/24.4.91 (gnu/linux)
Stefan Monnier <address@hidden> writes:
>> + (and (eq w mark-active)
>> + w))
> I think there's a good chance some code out there still sets mark-active
> to t, so we should handle this case conservatively (i.e. highlight in all
> windows displaying this buffer).
OK, updated to check for t as well.
> IIUC the problem that annoys you, it comes from the fact that the
> region is defined to be "anything between point and mark" but point is
> a per-window attribute while mark is a per-buffer attribute.
Could we possibly have the mark to be per-window as well?
It would automatically solve my problem, as well as allow for some
features that users think they might like. For instance, swap two
regions in two windows of the same buffer.