all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: CLASH_DETECTION option in configure
       [not found] <20130130145503.54e2572bafd6283f61956823@lavabit.com>
@ 2013-01-30 23:16 ` Glenn Morris
       [not found]   ` <20130203151143.b0e727fa15c48fccee3a4dbc@lavabit.com>
       [not found]   ` <mailman.18953.1359933124.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Glenn Morris @ 2013-01-30 23:16 UTC (permalink / raw)
  To: rh; +Cc: help-gnu-emacs

rh wrote:

> Will CLASH_DETECTION become a configure option?

No, but `create-lockfiles' will exist as a user option from 24.3
onwards.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CLASH_DETECTION option in configure
       [not found]   ` <20130203151143.b0e727fa15c48fccee3a4dbc@lavabit.com>
@ 2013-02-03 23:36     ` Bob Proulx
       [not found]       ` <20130204163259.69cffecc682fa6d6390d66cb@lavabit.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Proulx @ 2013-02-03 23:36 UTC (permalink / raw)
  To: help-gnu-emacs

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.

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.

Bob



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CLASH_DETECTION option in configure
       [not found]   ` <mailman.18953.1359933124.855.help-gnu-emacs@gnu.org>
@ 2013-02-04  2:56     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2013-02-04  2:56 UTC (permalink / raw)
  To: help-gnu-emacs

> It seems like an antiquated feature and it doesn't make sense to
> have it enabled by default.

AFAICT LibreOffice has the same "antiquated" feature, and I expect many
other "editors" would have it as well.


        Stefan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CLASH_DETECTION option in configure
       [not found]       ` <20130204163259.69cffecc682fa6d6390d66cb@lavabit.com>
@ 2013-02-12 20:55         ` Bob Proulx
  0 siblings, 0 replies; 4+ messages in thread
From: Bob Proulx @ 2013-02-12 20:55 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-12 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
     [not found]   ` <mailman.18953.1359933124.855.help-gnu-emacs@gnu.org>
2013-02-04  2:56     ` Stefan Monnier

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.