Menu

#3262 BufferSet Scope should be the same for all editpanes

closed-fixed
None
7
2010-06-08
2009-05-10
Alan Ezust
No

Open 2 views, each with editpane bufferset scope.
Open file#1 in view#1, open file#2 in view#2

Each bufferset contains only one file.

Then switch from editpane to global in view#1

I would expect at this point, to see file#1 and file#2 in view#1. However, the bufferset and the buffertabs only show file#1.

Discussion

  • Alan Ezust

    Alan Ezust - 2009-05-10
    • priority: 5 --> 7
     
  • Anonymous

    Anonymous - 2009-05-12

    Why would you expect to see both files in view#1? None of the 2 views uses the global bufferset, so the global bufferset should be empty, at least as far as I understand it. If my understanding is correct, the global bufferset does not share anything in common with editpane-specific buffersets, except maybe for the initial value of these editpane-specific buffersets.

     
  • Alan Ezust

    Alan Ezust - 2009-05-12

    My understanding of a "global bufferset" is that it should contain all of the buffers open from any views/editpane.

    And that's how I documented it.

     
  • Anonymous

    Anonymous - 2009-05-12

    I just took a look in the code, and it's like I thought. There is no relation between the global buffer set and other buffer sets. Buffers can be added and removed from any buffer set, the global one is not the union of all others.

     
  • Alan Ezust

    Alan Ezust - 2009-05-14

    If you close a buffer from the global bufferset, that should also cause it to be closed in ALL of the other buffersets.

    If you close a buffer from the View bufferset, it should close it from all the editpane buffersets that are in that view.

    If you open a buffer from an EditPane bufferset, it should be added to the containing View and Global buffersets.

    If you open a buffer from a View bufferset, it should also be added to the Global bufferset.

     
  • Alan Ezust

    Alan Ezust - 2009-05-15
    • summary: Switching from Editpane to Global bufferset scope works not --> Superset:Subset relation between bufferset scopes borked
     
  • Alan Ezust

    Alan Ezust - 2009-05-15
    • assigned_to: kpouer --> ezust
     
  • Alan Ezust

    Alan Ezust - 2009-05-18
    • assigned_to: ezust --> k_satoda
     
  • Alan Ezust

    Alan Ezust - 2009-12-05

    So this ticket will be closed when the bufferset scope changes apply to all editpanes simultaneously. We don't need to have different bufferset scopes for different editpanes. Either it's "E" "V" or "G" throughout.

     
  • Alan Ezust

    Alan Ezust - 2009-12-05
    • summary: Superset:Subset relation between bufferset scopes borked --> BufferSet Scope should be the same for all editpanes
     
  • Alan Ezust

    Alan Ezust - 2010-06-08
    • assigned_to: k_satoda --> kpouer
    • status: open --> closed-fixed
     
  • Alan Ezust

    Alan Ezust - 2010-06-08

    Fixed in jEdit 4.4.

     

Log in to post a comment.