|
From: Dale A. <da...@gr...> - 2008-11-15 20:06:09
|
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. 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 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.) What is supposed to happen when a view has 2 or more edit panes open, and the view is unsplit? I'm not sure if the following is a bug or a feature: 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? Thanks, Dale |