unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: CLASH_DETECTION option in configure
Date: Tue, 12 Feb 2013 13:55:36 -0700	[thread overview]
Message-ID: <20130212205536.GA12941@hysteria.proulx.com> (raw)
In-Reply-To: <20130204163259.69cffecc682fa6d6390d66cb@lavabit.com>

rh wrote:
> Bob Proulx wrote:
> > rh wrote:
> > > It seems like an antiquated feature and it doesn't make sense to
> > > have it enabled by default. Since version control systems are every
> > > where now I can't see why anyone would want or use this feature.
> > > What's the use case?
> > 
> > If you as a single user try to edit a file from two different
> > terminals then it will be detected and a collision avoided.  I often
> > run into cases where emacs notifies me that I am already editing a
> > file in another terminal.  The use case is far from antiquated and has
> > nothing to do with version control.  Because unintended data loss can
> > result if it were disabled the feature is enabld by default.
> 
> We may or may not be talking about the same feature. It's possible
> that we are not.

Possibly! :-)

> With this feature disabled emacs stills tells asks me if I really
> want to edit this buffer. So did I think I disabled but didn't? But
> I no longer find those .#filename->hostname files laying around
> either.

There are two or three similar but related features.  One of them
looks at the timestamps of the files.  One of them looks at the lock
information stored in a symlink.  A third notifies if a buffer save is
newer than the current file.

1.
  /tmp/foo locked by rwp@example.... (pid 14294): (s, q, p, ?)?

  This uses uses a symlink in the typical way to store information.

  lrwxrwxrwx 1 40 Feb 12 13:16 .#foo -> rwp@example.14294:1358485837

2.
  foo changed on disk; really edit the buffer? (y, n, r or C-h)
  foo has changed since visited or saved.  Save anyway? (yes or no) 

3.
  foo has auto save data; consider M-x recover-this-file

  This uses a buffer save file #foo# to hold the buffer save.

> > I will turn the same question around on you.  Why would you ever want
> > to disable this feature?  Why is it causing you difficulty?  If as you
> > say you would never hit this issue then you should also by that same
> > reasoning never know it is there either.
> 
> Those .#filename->hostname files were the clue.

My takeaway from this is that the meta-data files created by emacs in
the local directory annoy you and you would like emacs to not make
those files there.  It isn't about the behavior but about the lint
that is placed in the directory to support the feature.

Since there are customizations available to turn off backups (setq
make-backup-files nil) and to move the buffer save file out of the
current directory (see backup-directory-alist variable) it would make
sense if there were also a control to change the directory for lock
symlinks too.

And actually backup-directory-alist seems like it should affect both.
But when I tried backup-directory-alist just now I couldn't get it to
function for me.  Don't know why.

Bob



  parent reply	other threads:[~2013-02-12 20:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130130145503.54e2572bafd6283f61956823@lavabit.com>
2013-01-30 23:16 ` CLASH_DETECTION option in configure Glenn Morris
     [not found]   ` <20130203151143.b0e727fa15c48fccee3a4dbc@lavabit.com>
2013-02-03 23:36     ` Bob Proulx
     [not found]       ` <20130204163259.69cffecc682fa6d6390d66cb@lavabit.com>
2013-02-12 20:55         ` Bob Proulx [this message]
     [not found]   ` <mailman.18953.1359933124.855.help-gnu-emacs@gnu.org>
2013-02-04  2:56     ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130212205536.GA12941@hysteria.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).