I am a Emacs newbie, so please forgive me if there is a obvious solution to this question. Is there a package which logs everything a user inputs into a emacs buffer? For example if I were to open a test.txt file and input this is a test could the input be logged into a seperate file with timestamps upon saving test.txt?

1 Answer 1


view-lossage (bound to C-h l by default) is limited to a fixed number of events, and doesn't keep time stamps, but it might be good enough for your use case. To store a longer log, you can try open-dribble-file.

See also https://stackoverflow.com/questions/9761401 for a similar question.

  • OP: See the Emacs manual, node Recording Input for more info.
    – Drew
    Jun 16, 2017 at 17:05
  • @Drew You mean the elisp manual.
    – JeanPierre
    Jun 17, 2017 at 19:42
  • @JeanPierre: Yes; sorry. Too late to edit that comment, I guess. Thx.
    – Drew
    Jun 17, 2017 at 23:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.