[Top][All Lists]

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

Recording a macro that preserves timing

From: Juha Nieminen
Subject: Recording a macro that preserves timing
Date: Thu, 4 Oct 2012 10:21:32 +0000 (UTC)
User-agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/3.1.10-grbfs-kapsi (x86_64))

I can record (and then replay) keyboard macros in emacs. However, I would
like a variant that also records the timing between the keypresses so
that when it's played back, it does the exact same thing as when recording,
with the same timing.

Then I would like to be able to play said macro with a speed factor. In
other words, I would like to be able to multiply all the recorded timings
by a value (so that if I multiply them eg. by 0.5 the macro will play at
twice the original speed).

If possible, it would be nice if this macro could be saved to a file
where it could be edited by hand (to eg. add or modify timings). In fact,
it would be really great if it was saved in a format that would allow
defining different factors for different groups of recorded keypresses
(so that by editing the file I could define "this part should be played
back with a factor of 0.5, this part with a factor of 0.2, etc.")

How difficult would such elisp code be to make?

reply via email to

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