> > Initial Comment: > > Maybe this is just a subject of point of view, but I > > understand bookmarks as "pointing to some text at the > > given line". However, when I delete a bookmarked line, > > the bookmark persist - pointing to different line now. > > IMHO bookmarks should be removed as well, when I > > delete the marked line. > > Your are not alone. :) > > However, the author of Scintilla does not agree... the bottom line is > that what we call "bookmarks" use Scintilla's "markers", which are > actually a fairly powerful idea - but have a somewhat > different approach. > > I think that adding a "transient" state bit to markers is a way of > solving this. It would default to false (to give backward > compatibility), but could be set to true - which would mean that when > deleting a line with a "transient" bit set to true, to toss > the marker > also. > > Of course, there are a few issues: > > 1) where to put this state bit > 2) how [best] to set (and test?) it > 3) what happens if there are multiple markers (with different states)? > 4) to name but a few...
Hmm, to me it would be enough if I could switch it globally atleast. The best would be to have two types: transient and persistent markers. Moreover - if that persistent one could be saved with a session let's say, I'd be happy man ;-). But I'm afraid it touches bowels of Scintilla too deeply ;-). Anyway I see it's not any of near future feature. As I said (said I that ;-)?), I can live with it with no serious problem (delete line(s), then switch marker off [uhm]), it's just a weird behaviour to me. Another thing is that I still don't understand it completely. When I delete let's say 5 lines with markers at the 2nd, 3rd and 4th line, then one marker stays, the rest disappears. Who can say WHICH ONE is it hen? To me it would be logical if ALL markers would be deleted or NO marker would be deleted, this looks like it's somewhere in the middle ;-). Yes, then you coud get a grasp of lone markers flying around empty lines ;-), but if not, I just don't understand how it decides which marker survives ... maybe a russian roulette ;-)? Mike _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
