emacs-devel
[Top][All Lists]
Advanced

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

Re: A question about file lock


From: Eli Zaretskii
Subject: Re: A question about file lock
Date: Mon, 10 Jun 2013 18:26:27 +0300

> Date: Mon, 10 Jun 2013 15:23:59 +0800
> From: Xue Fuqiao <address@hidden>
> 
>  -- Function: unlock-buffer
> [...]
>      If the buffer is not modified, then the file should not be locked,
>      so this function does nothing.
> 
> What if Emacs or the operating system crashes?  Will the lock files
> disappear?

No.

> If not, after the crash, does this function work?

Yes.  The information recorded in the name of the lock file includes
the system start time, so Emacs knows that the lock file is stale and
ignores it.



reply via email to

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