Menu

#3217 LineFilter breaks Marker

open
nobody
macros (56)
5
2009-01-12
2009-01-12
No

Hi, the LineFilter macro do not keep the Markers.
The reason is that it rewrite entirely the buffer. I think it could be faster if it would change the Buffer instead and use Segment

Discussion

  • Matthieu Casanova

    • assigned_to: jgellene --> nobody
     
  • Robert Schwenn

    Robert Schwenn - 2009-01-17
     
  • Robert Schwenn

    Robert Schwenn - 2009-01-17

    Attached is the macro with the following changes:

    1. When deleting lines Markers are preserved now.
    This is achieved by removing every matched line via buffer.remove(), which seems to take some time. This action is now much slower (about factor 5)!

    2. Using Segment instead of String (but can't see a performance push).

    Could someone take a look at this please, especially at the deleting performance? Thanks.

    File Added: Line_Filter.bsh

     

Log in to post a comment.