nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] Implement macro recording and playback


From: Marco Diego Aurélio Mesquita
Subject: Re: [Nano-devel] Implement macro recording and playback
Date: Sun, 8 Oct 2017 11:16:45 -0300

On Sun, Oct 8, 2017 at 7:17 AM, Benno Schulenberg <address@hidden> wrote:
> What should be done is this: when macro recording is switched on,
> then in get_key_buffer() each keystroke, as it comes in, is copied
> to a second key buffer, the macro_buffer (growing dynamically as
> needed, just like the normal key_buffer).  When the runmacro key
> is pressed, all that nano needs to do is: copy the macro_buffer
> into the key_buffer, copy macro_length to key_buffer_len, and let
> the normal interpretation machinery do the rest.
>

Please take a look at the attached patch.

It implements your approach, but there are some problems when running
the macro sequentially. Don't know what causes it.

What else should be done to get this feature in?

Attachment: macro.diff
Description: Text document


reply via email to

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