[comp.emacs] Using the dribble file?

iwm@doc.ic.ac.uk (Ian Moor) (04/06/88)

For those people who have missed the references in the GNU emacs manual,
the dribble file is a record of every single keystroke, created by
open-dribble-file. I think it is mainly intended for debugging purposes.

When I edit a large file (thousands of lines), I find the  pauses as the
autosave file is written annoyingly long, not to mention the extra disk space
required, but I dont want to turn off autosave for the obvious reason. 
The VMS editors EDT and EVE don't save the file periodically but record 
keystrokes, recovery consists of replaying the session and then reading from
the terminal (its quite fun to watch the editor working away by itself).
There are disadvantages to this method, you must still have the orignal file,
the screen/window must be the same size as in the orignal session, and 
running commands that change other files in subprocesses may cause problems.

What I would like to know is - is there a command for replaying a file of
keystrokes or perhaps for converting it to a file of lisp that can be obeyed
(the latter would certainly be easier to modify) ?

Ian W Moor
  UUCP: seismo!mcvax!ukc!icdoc!iwm
  ARPA: iwm@doc.ic.ac.uk
  JANET: iwm@uk.ac.ic.doc
           
 Department of Computing   Whereat a great and far-off voice was heard, saying,
 Imperial College.         Poop-poop-poopy, and it was even so; and the days
 180 Queensgate            of Poopy Panda were long in the land.
 London SW7 Uk.         

jr@PEBBLES.BBN.COM (John Robinson) (04/11/88)

>> What I would like to know is - is there a command for replaying a file of
>> keystrokes or perhaps for converting it to a file of lisp that can be obeyed
>> (the latter would certainly be easier to modify) ?

Yes to the first: read in the file and pick it up as a string to pass
to execute-kbd-macro (see below).  There have also been attempts at a
macro-to-elisp converter posted here, but I don't think I saved one.

 execute-kbd-macro:
 Execute MACRO as string of editor command characters.
 If MACRO is a symbol, its function definition is used.
 COUNT is a repeat count, or nil for once, or 0 for infinite loop.

/jr
jr@bbn.com or jr@bbn.uucp