> To ensure people don't
> override the original examples, we made them
> read-only.... so you see what happens when they press
> Alt+F5. They get prompted to save the script to
> another file.

For the first scenario, you should use the savebefore:no option.

> Second reason is that i created a LUA script that will
> create x number of backups when Save is performed. I
> don't want to create a backup when the script isn't
> changed and ALT+F5 is performed.

As a workaround, if the behavior stays as it is, you could check whether the 
document has been modified from your Lua script (editor.Modify) before 
making the backup.

But should you have to do that?  After all, in that situation, the Save menu 
option is disabled, so why should your script have to worry about it?

The question will be, which way is the least surprising: having 
savebefore:yes sometimes not save, or having your document saved even when 
you can't save?  For me, I don't think it will make a difference either way. 
For some, it's clear that it does make a difference.  But, I'm pretty sure 
it doesn't warrant a fourth option.  The difference is so subtle that 
another option would be hard to describe, and would just add confusion.  We 
should just decide what makes the most sense, make it work that way, and 
document it.



_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to