From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: How to successively log stuff to a file?
Date: Tue, 04 Feb 2014 00:41:00 +0100 [thread overview]
Message-ID: <87wqhbaho3.fsf@web.de> (raw)
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
next reply other threads:[~2014-02-03 23:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-03 23:41 Michael Heerdegen [this message]
2014-02-04 12:36 ` How to successively log stuff to a file? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqhbaho3.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.