Vincent van Ravesteijn - TNW wrote:
* Close All / Close View

Close all should close all visible workareas and the
buffers that were hidden in this view. Again, I wouldn't
close buffers in another view.
There is no such thing as "buffers that were hidden in this view".

Yes, that's the very problem.

An hidden buffer is view agnostic.

Maybe the strange thing is dat a buffer that is shown in one view, is
counted as hidden in the other one (while basically the buffer isn't a
hidden buffer).

I shall rephrase the whole thing: A _buffer_ is view agnostic. There is no such thing as a "hidden Buffer" at all, this is something invented for ui purpose; but there are "shown buffer" i.e. Buffer that are shwon in a WorkArea.


Again I would rename that
to "Close All Documents" and "Close Window".
"Close All Documents": close effectively all documents in
this window and warn the user about documents that are
visible in some other window (and offer the possibility
to Cancel of course).

Pavel expected that Close All would also close hidden buffers, but
that's impossible if you don't want to close all workareas in all views.
The only case where we should close hidden Buffers is when those are child documents of a master document shown in _this_ window; in this case we should warn the use that a child of this docment is visualized somewhere else. Otherwise, we should not close hidden Buffers (except if this is the last window of course).

If you don't want that, then all hidden buffers will remain in memory
and that might not be expected either when you choose close all.
If they are in memory and if they are needed for some other WorkAreas, don't close them. If they are in memory and not visualized elsewhere, ask the user if he also want to close this list of hidden buffers.

Abdel.

Reply via email to