SourceForge.net wrote:
Bugs item #1227907, was opened at 2005-06-26 22:24
Summary: Bookmark at deleted line
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...
BTW, when using Scintilla as an editing component, you can choose to
handle a Scintilla "notification" which will let you know that a line
is about to be deleted - in this handler, you can remove the
"offending" marker, and then allow the delete to take place.
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest