all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Proposed patch: allow user to disable lockfile creation
Date: Fri, 29 Jul 2011 21:59:36 +0200	[thread overview]
Message-ID: <87fwlo3ljr.fsf@fencepost.gnu.org> (raw)
In-Reply-To: E1Qmqtz-00085p-RT@fencepost.gnu.org

Richard Stallman <rms@gnu.org> writes:

>     These days, advisory file locks (fcntl with F_GETLK and F_SETLK) should be
>     reliable enough over NFS (and on local file systems) on practical GNU and
>     GNU-like machines, and should be able to do everything that Emacs's symlink
>     lock files do.  (This wasn't true way back when the symlink scheme was
>     originally introduced.)  If we used advisory file locks, I daresay we
>     could get rid of those symlinks.
>
> That sounds nice.  If we can do the same job in a way that never
> bothers anyone, let's.

One of the most annoying things most PDF previewers under Windows
exhibit is that they lock the file they are displaying, meaning that
compilations generating PDF files will fail.  The nice way to do this is
to just watch the file and try reloading on redisplay when it has
changed.

Any locking scheme should make sure that it does not interact with other
programs: quite often I start a compilation and continue editing the
file in question, making sure I don't save until the compilation has
finished.

This sort of workflow should continue to be possible.

-- 
David Kastrup




  reply	other threads:[~2011-07-29 19:59 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-27  2:42 Proposed patch: allow user to disable lockfile creation Dave Abrahams
2011-07-27 15:32 ` Andreas Schwab
2011-07-27 16:25   ` Dave Abrahams
2011-07-27 18:56     ` John Wiegley
2011-07-28  1:57       ` Stephen J. Turnbull
2011-07-28 16:46         ` Richard Stallman
2011-07-28 16:54           ` Lennart Borgman
2011-07-28 23:00             ` Richard Stallman
2011-07-29  0:12               ` Tim Cross
2011-07-29  0:51                 ` Dave Abrahams
2011-07-29 23:40                   ` Richard Stallman
2011-07-30  3:29                     ` Dave Abrahams
2011-07-30  7:21                       ` Eli Zaretskii
2011-07-30 12:32                         ` Dave Abrahams
2011-07-30 18:12                       ` Richard Stallman
2011-07-31  2:13                   ` Tim Cross
2011-07-29 23:40                 ` Richard Stallman
2011-07-30 12:46                   ` Dave Abrahams
2011-07-28 18:22           ` chad
2011-07-28 23:00             ` Richard Stallman
2011-07-28 19:21           ` Paul Eggert
2011-07-29 17:31             ` Richard Stallman
2011-07-29 19:59               ` David Kastrup [this message]
2011-07-30  4:35                 ` Richard Stallman
2011-07-30  7:36                   ` David Kastrup
2011-07-29  3:31           ` Stephen J. Turnbull
2011-07-28 21:20 ` Evil Boris
2011-07-30 14:20 ` Daniel Colascione
2011-07-30 18:12   ` Richard Stallman
2011-07-31  2:22     ` Tim Cross

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=87fwlo3ljr.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --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.