emacs-devel
[Top][All Lists]
Advanced

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

persistent file locks (was: How to successively log stuff to a file?)


From: Michael Heerdegen
Subject: persistent file locks (was: How to successively log stuff to a file?)
Date: Thu, 06 Feb 2014 04:54:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stephen Berman <address@hidden> writes:

> > I want that you can define a dribble file where all my logged output
> > would be written to. [...]
> > What is the smartest way to do that (in LISP, of course)?

I want now to use `write-region' for that.

When the user runs multiple Emacs processes, my lib should not cause
both processes to append to one and the same file.  I want to use Emacs
file locks for preventing that.  After reading
(info "(elisp) File Locks"), it seems that locks are handled only
implicitly, and are removed when the associated buffer is not modified
any more.  I need a persistent lock.  Is there a way to achieve this?
Or what would you recommend to do instead?

Thanks a lot,

Michael.




reply via email to

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