nano-devel
[Top][All Lists]
Advanced

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

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


From: Benno Schulenberg
Subject: Re: [Nano-devel] implementing macro recording and playback
Date: Sun, 8 Oct 2017 21:59:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0


Op  8-10-2017 om 16:16 schreef Marco Diego Aurélio Mesquita:
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 problems?  What macro have you tested it with?  What do you mean
with "sequentially"?  Many times in a row?  Holding down the runmacro
key?

For the small test that I did, it worked fine.  The only problem is
that it beeps every time that I type the runmacro key.

What else should be done to get this feature in?

Rename the bindable functions to 'recordmacro' and 'runmacro' instead
of just 'macro' and 'play'.  Bind the functions record_macro() and
run_macro() to M-: and M-" by default.  Move those macro functions
to src/winio.c, because they are keyboard stuff.  Use normal /* */
style comments, and don't put comments in the wrong place ("//Do
nothing if macro is playing!").  Don't use ALERT for starting and
stopping the recording.  Use recording = !recording for toggling
the state.  Remove the changes from nano.h and rcfile.c -- they are
not options.  Put your additions to proto.h in the proper place --
don't just dump them somewhere.  And fix the add_to_funcs() calls,
so things look good and correct in the ^G help text.

Benno




reply via email to

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