unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to successively log stuff to a file?
@ 2014-02-03 23:41 Michael Heerdegen
  2014-02-04 12:36 ` Stephen Berman
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2014-02-03 23:41 UTC (permalink / raw)
  To: emacs-devel

Hello,

I have written a little library for logging stuff, i.e. hit keys and
executed commands, messages, and file loads [1].

I want that you can define a dribble file where all my logged output
would be written to.  That would be a good help to reconstruct what you
did before a crash, or for writing bug reports (Yes, I know about
`open-dribble-file', but it's in C).

What is the smartest way to do that (in LISP, of course)?

I could save the buffer content to a file regularly.  To have a complete
log after crashes, I would have to save the buffer after each
keystroke.  This seems very dumb.

There is also `write-region'.  But that prints a message in the echo
area after each call, i.e. in my case, after each hit key.

Is there a smarter/cleverer/more low level way to do what I want?


Thanks,

Michael.


[1]  https://github.com/michael-heerdegen/interaction-log.el




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-07 12:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 23:41 How to successively log stuff to a file? Michael Heerdegen
2014-02-04 12:36 ` Stephen Berman
2014-02-06  3:37   ` Michael Heerdegen
2014-02-06  3:54   ` persistent file locks (was: How to successively log stuff to a file?) Michael Heerdegen
2014-02-06  6:21     ` Eli Zaretskii
2014-02-06  6:57       ` persistent file locks Michael Heerdegen
2014-02-06  8:34         ` Eli Zaretskii
2014-02-07 12:27           ` Michael Heerdegen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).