On Saturday, June 8, 2013 2:39:01 AM UTC+2, Yakov wrote:
>
>
> There's one more bug I've run into, rather complicated one. Previously I 
> mentioned that I get the
>
>> "Are you sure you want to abandon your changes to '...'?"
>>
> dialogue in cmEdit when I changed something but in the end the content is 
> the same. No I've found a situation when the dialogue appears even if I 
> haven't done any changes literally, and not only in the cmEdit mode, but 
> also in the edit mode! How to reproduce.. as far as I can tell those are 
> tiddlers created in a tiddlywiki without CodeMirrorPlugin(s). That's a 
> behaviour that tiddlers created before CodeMirror had, and they lose it 
> after I "edit" and save with CodeMirror; such behaviour is given to 
> tiddlers that I create when I disable CodeMirrorPlugin(s) (disable - 
> restart - create - enable - restart - open to "edit" and cancel).
>

There is a TW2 option "chkForceMinorUpdate" in the "backstage: tweaks" 
area. 
If this opton is set and you open a tiddler it will be marked as dirty. It 
activates the dialog, even if you didn't change anything. In the background 
modifier and modified are allready updated. 

When I initialize the cm-editor and you press "any key", I do set the 
tiddler to dirty, otherwise there will be no core "you may loose data 
dialog" at all. I know, this behaviour isn't nice but imo loosing data is 
worse. I don't know a mechanism in the codemirror library, that can tell 
you if you actually did change something. eg: Type "asdf" then delete it, 
will result in the same content ... There is no handling of those 
situations at the moment. ... Probably simple navigation shouldn't set the 
tiddler dirty... but it would need custom key handlers :/

-m


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to