Philippe Lhoste | 3 May 2011 11:32
Picon

Re: Closing SciTE discarding unsaved changes without asking

On 03/05/2011 08:25, Lorenzo Donati wrote:
> Is there an option/trick to suppress the "are you sure" dialog even when there is unsaved
> data in a buffer and the data must be discarded by default.

Make a Lua function doing only:

editor:SetSavePoint()

Associate a keyboard shortcut to it.
If you don't want any intervention, you might try to put it in one of the OnXxx events, 
eg. OnBeforeSave, with are.you.sure=0 (auto save, but won't save? to try...).

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.


Gmane