Neil has answered with the way to do the equivalent of 
host->Save() from an extension, and I see that you don't 
need to do this any more since you found a better way to do 
it.  But anyway, for the sake of completeness, I'll answer 
the second part even though you probably don't need that 
anymore either...

If an extension requires knowledge of the buffer state, it 
should override the InitBuffer / ActivateBuffer / 
RemoveBuffer virtual functions.  See 
http://scintilla.sourceforge.net/SciTEExtension.html.

LuaExtension uses this technique to associate data with the 
current buffer.  (It also remembers the current buffer 
index, but that's an implementation detail.)

Cheers,
Bruce

"April White" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> This may be of primary interest to Neil.
>
> I've found that using
>    host->Save()
> and
>    host->CurrentBuffer()
> with LuaExtension.cxx fails because these two methods are 
> not part of Extender.h
>
> Could they?
> Should they?
>
> I may have to re-think having LuaExtension scite.Execute() 
> to be able to utilize these tool properties
>
> April
>
> -- 
> With my last breath I spit at thee...
> 'The Wrath of Khan' 



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

Reply via email to