[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] The undo feature

From: Mark Majeres
Subject: Re: [Nano-devel] The undo feature
Date: Tue, 21 Oct 2014 13:33:16 -0700

On 10/21/14, Benno Schulenberg <address@hidden> wrote:
> On Tue, Oct 21, 2014, at 19:36, Erik Lundin wrote:
>> I've been thinking about the whole undo feature in nano. Isn't it too
>> complex for the task at hand?
> Possibly.  Mark has become the expert in this area, so you'd better
> ask him.  (Mark is on a digest, so if you want a timely answer from
> him, you have to keep him in the CC or the To.)

Please look at do_wrap(), it shows how to use sub-undo's by only using
the existing undo structure.   Try to do all of the work in "tabs to
spaces" by using the do_delete() functions and wrapping the addition
of spaces with add_undo(ADD) and update_undo(ADD)

--Mark Majeres

reply via email to

[Prev in Thread] Current Thread [Next in Thread]