[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 19:11:56 +0200
> I will try to make the mark and `mark-active' window-local instead of
> just `buffer-local'.
I don't agree with the "instead". I suppose we'd want functions, say
`window-mark' and `window-mark-active' which would be handled as
`window-point' as well as `set-window-mark' and `set-window-mark-active'
which would be handled as `set-window-point'. So two new entries for
the window structure in window.h.
`select-window' would have to set the buffer's mark and mark-active like
it sets point from the respective window slots and restore the old
window's mark and mark-active. And window configurations would have to
save and restore mark and mark-active too.
And obvious `mark-active' is slightly different since that's a variable.
I would like it but it's probably a bit tedious to implement.