It seems like the option pane needs to be updated a little, please
correct me if I'm wrong:
- If bufferset scope is set to "global", the option to select what new
buffersets contain should be disabled because it has no meaning.
- If bufferset scope is not set to "global", the value "an empty
buffer" in "new buffersets contain" is problematic. What is supposed
to happen if you split the current edit pane horizontally or
vertically? Should the resulting edit pane use the "empty buffer"
option, or should it use the same buffer as the edit pane from which
it was split? I think the purpose of splitting an edit pane is to have
2 separate edit panes opened on the same active buffer, so you can see
different locations in the buffer at the same time, but I may be
wrong. If I am not wrong, I think the initial bufferset of new edit
panes should depend on how these edit panes were created - by
splitting or as part of a new view.
On Tue, Nov 18, 2008 at 10:43 PM, Alan Ezust <alan.ezust@...> wrote:
> On Sat, Nov 15, 2008 at 10:06 AM, Dale Anson <danson@...> wrote:
>> I've been looking into how buffersets work, and I'm not sure I
>> understand the what is supposed to happen with the various settings and
>> user actions. There are these situations:
>> 1. Global bufferset scope, and new bufferset contains:
>> a. copy
>> b. empty buffer
>> c. current buffer
>> In all 3 of these cases, should the new view contain a copy of the
>> bufferset from the previous view? I think so, but I'm not sure.
> In a global buffersets, a new view does not result in a new bufferset
> being created. Therefore, the new view should have the SAME bufferset
> as the old one.
>> 2. View bufferset scope and new bufferset contains:
>> a. copy -- bufferswitcher in the new view contains a copy of the
>> bufferset from the previous view, view displays current buffer from
>> previous view
>> b. empty buffer -- bufferswitcher in new view contains an empty
>> buffer, and the new view displays an empty buffer
>> c. current buffer -- bufferswitcher in the new view contains the
>> current buffer from the previous view and the new view is displaying
>> that buffer
> That sounds reasonable.
>> I always get a copy, so I think there is a bug here.
>> 3. EditPane scope is same as #2.
>> 4. Within a view a new edit pane is created in one of the various ways a
>> new edit pane can be created. With "new bufferset contains" set to:
>> a. copy -- bufferswitcher in new edit pane contains a copy of the
>> bufferset from the previous bufferset, edit pane shows the current
>> buffer from the previous edit pane
>> b. empty buffer -- bufferswitcher in the new edit pane has only an
>> "untitled" buffer, new edit pane displays an empty buffer. (This
>> doesn't work, so I think it's a bug.)
>> c. current buffer -- bufferswitcher in the new edit pane has only the
>> current buffer from the previous edit pane, new edit pane displays that
>> buffer. (This doesn't work either, it shows the first buffer in the
>> bufferswitcher from the previous edit pane, so I think this is a bug too.)
> Sounds like you understand how it is supposed to work, and may have
> uncovered some bugs.
>> What is supposed to happen when a view has 2 or more edit panes open,
>> and the view is unsplit?
> I believe the buffers from the destroyed bufferset are supposed to be
> merged into the bufferset of the editpane that gets focus afterwards.
>> I'm not sure if the following is a bug or a
>> 1. In a View with a single edit pane, open several files. Open a new,
>> untitled buffer and enter some text so it is dirty.
>> 2. set buffer set scope to 'edit pane' and new buffersets contain to
>> 'empty buffer'.
>> 3. Press Ctrl-2 to split the view horizontally. Notice the bottom edit
>> pane does not have an empty buffer, so that's a bug for sure.
>> 4. Click into the bottom buffer
>> 5. Press Ctrl-0 to unsplit the view
>> 6. Where did my dirty buffer go? To all appearances, it is no longer
>> available. It is not actually gone, and there are at least 2 ways to
>> get it back. One is to close jEdit, that will cause the prompt about
>> saving the dirty buffer to appear. The other is to change the bufferset
>> scope to 'view' and split the view again. The second edit pane will
>> have all of the previously opened files from #1 in it. Bug or feature?
> I've noticed that dirty untitled buffers are sometimes disappearing
> due to reasons I do not yet understand. I will have to test this
> further when I am back.
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> jEdit Developers' List