all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Xue Fuqiao <xfq.free@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: A question about file lock
Date: Mon, 10 Jun 2013 18:26:27 +0300	[thread overview]
Message-ID: <83mwqym1gc.fsf@gnu.org> (raw)
In-Reply-To: <CAAF+z6EiciR_QsJBFQEA1z5cEZkqLtpWcvrUJo9vMgYbQu0N7Q@mail.gmail.com>

> Date: Mon, 10 Jun 2013 15:23:59 +0800
> From: Xue Fuqiao <xfq.free@gmail.com>
> 
>  -- 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	other threads:[~2013-06-10 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10  7:23 A question about file lock Xue Fuqiao
2013-06-10 15:26 ` Eli Zaretskii [this message]

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=83mwqym1gc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=xfq.free@gmail.com \
    /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.