<div class="gmail_quote"><div>My apologies for any confusion. My code style is very terse, and I don't put in as many comments as other programmers (I started off in machine code on 64K machines, and have never properly got into the habit of  commenting properly.)<br>
<br>GTK_RESPONSE_ACCEPT is the default code as we hit the switch. This is the case if we haven't encountered any problems while opening the document (no one has edited the file since it was last saved by geany, and so the line numbers where the bookmarks are, and the number of folds should be the same).<br>
<br>GTK_RESPONSE_OK is only possible if the file has changed. It is used to indicate that the file has changed and that the user is ok with the advice to not try to apply the saved positions to the file in case it makes a mess of things. So there is no case in the switch for this (it's caught by the default statement) as we ignore the bookmark and fold data.<br>
<br>GTK_RESPONSE_REJECT is again only possible if the file has changed. It is used to indicate that the file has changed, but that the user wants to ignore the program's advice and try to apply bookmarks anyway accepting that they might be in the wrong place. Fold data could be a real mess if it's attempted to be applied in the wrong place, so it doesn't even try.<br>
<br>When testing I opened a file in another editor and then saved it again, so that I would only get GTK_RESPONSE_REJECT or GTK_RESPONSE_OK messages when the program reached the switch statement. I'm fairly sure that this isn't the cause of the problem...<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Not sure if its part of the problem, but I notice that line 436<br>
responds GTK_RESPONSE_OK which is not a case in the switch(l)<br>
statement at line 445 so it should do default which makes it do<br>
nothing.<br>
<br>
Cheers<br>
Lex<br>
<br></blockquote></div>