I notice that when one tells the IDE to "Set a free bookmark", if the cursor is on a line with a bookmark in increments the bookmark number rather than clearing it which I would have thought was more logical.
looking at SrcNotebookEditorDoSetBookmark in ide/main.pp, I see
while (ID <= 9) and (Project1.Bookmarks.BookmarkWithID(ID) <> nil) do
inc(ID);
...
if (OldEdit<>nil) and OldEdit.EditorComponent.GetBookMark(ID,OldX{%H-},OldY{%H-}) then
begin
if (not Toggle) and (OldX=NewXY.X) and (OldY=NewXY.Y) then
exit; // no change
...
I've not tried stepping through that, but since ID has been stepped to the first unused bookmark won't that exit never be taken?
MarkMLl