Re: [code] [textadept] Undo stack information

From: Mitchell <m.att.foicica.com>
Date: Sat, 27 Feb 2016 16:46:38 -0500 (EST)

Hi Chris,

On Sat, 27 Feb 2016, Chris Emerson wrote:

> Hi,
>
> I think the answer is "no, Scintilla does't support this", but in case I
> missed anything, is there any way to either programatically query the undo
> state, or attach other information to it? My current use case is restoring
> other information along with an undo (eg cursor position to the start of
> the affected area).
>
> Any of these would probably do the trick:
> * Tagging undo entries with extra data when calling undo(), and retrieving
> it later.
> * Actually finding out the region affected by the topmost undo entry
> * Finding the depth of the undo buffer (so I could keep a matching table
> which would mostly be right)

I'm pretty sure the answer is that Scintilla doesn't support any of this
:) However, asking on the Scintilla mailing list would give you
confirmation. I haven't seen anything API related to access undo state
though.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 27 Feb 2016 - 16:46:38 EST

This archive was generated by hypermail 2.2.0 : Sun 28 Feb 2016 - 06:28:19 EST