--- Bruce Dodson <[EMAIL PROTECTED]> wrote:

> > 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.
> 
Don't think this would work because when working on
your own scripts and you do Alt+F5 you want SciTE to
save your script first.


> > 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.
> 
I have to say I have always assumed that the Save was
only done when the buffer was changed, since this is
what most editors do. Only noticed it when somebady
asked about it with the read-only examp files. So my
vote would go to making it save only when changes are
made.

Thanks
Jos

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to