GNU bug report logs - #17389
24.4.50; REGRESSION: extraneous file locking

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 2 May 2014 15:16:03 UTC

Severity: normal

Tags: notabug

Found in version 24.4.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17389 in the body.
You can then email your comments to 17389 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17389; Package emacs. (Fri, 02 May 2014 15:16:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 02 May 2014 15:16:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; REGRESSION: extraneous file locking
Date: Fri, 2 May 2014 08:15:16 -0700 (PDT)
With this build I am seeing file locking that prevents two Emacs
sessions from editing the same buffer.  Emacs pops up annoying questions
etc.  Previously, it was only if you tried to save a buffer that Emacs
let you know about possible conflicts.

In Emacs 24.3, emacs -Q:
C-x C-f iii.el
Type some text.  Do not save the buffer.  Do not exit Emacs.

Do the same thing again.  No problem.  Emacs does not annoy you, telling
you in the second session that some other user/session has file iii.el
locked.

Now do the same thing in this build.  You cannot type text into the
second session's iii.el buffer.  You must first answer the (unclear)
question.  This is quite annoying, unnecessary, and counterproductive.



In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-04-29 on ODIEONE
Bzr revision: 117031 monnier <at> iro.umontreal.ca-20140429151607-qnkgbymwfaj5ut08
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17389; Package emacs. (Fri, 02 May 2014 15:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 17389 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 17389 <at> debbugs.gnu.org
Subject: Re: bug#17389: 24.4.50; REGRESSION: extraneous file locking
Date: Fri, 02 May 2014 18:40:22 +0300
> Date: Fri, 2 May 2014 08:15:16 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> With this build I am seeing file locking that prevents two Emacs
> sessions from editing the same buffer.  Emacs pops up annoying questions
> etc.

That's the intended behavior.

> Previously, it was only if you tried to save a buffer that Emacs
> let you know about possible conflicts.

That's not true, this works like that since file locking was ported to
Windows more than a year ago.  I just tried that in a very old build,
and saw exactly what you describe, as expected.

Unless you didn't describe the recipe in enough details, that is.

> In Emacs 24.3, emacs -Q:
> C-x C-f iii.el
> Type some text.  Do not save the buffer.  Do not exit Emacs.
> 
> Do the same thing again.  No problem.  Emacs does not annoy you, telling
> you in the second session that some other user/session has file iii.el
> locked.

Indeed, this is a new feature (on Windows) in Emacs 24.4.  On other
platforms, Emacs behaved like that since a very long time ago.
etc/NEWS tells how to turn this feature off, if you don't want it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17389; Package emacs. (Fri, 02 May 2014 15:58:02 GMT) Full text and rfc822 format available.

Message #11 received at 17389 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 17389 <at> debbugs.gnu.org
Subject: RE: bug#17389: 24.4.50; REGRESSION: extraneous file locking
Date: Fri, 2 May 2014 08:57:48 -0700 (PDT)
> Indeed, this is a new feature (on Windows) in Emacs 24.4.  On other
> platforms, Emacs behaved like that since a very long time ago.
> etc/NEWS tells how to turn this feature off, if you don't want it.

That says to customize `create-lockfiles' to nil to disable file
locking.  Not sure what that means.  Will that restore the pre-Emacs
24.4 behavior?  I want Emacs to do exactly what it has done before
in this regard, neither more nor less.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17389; Package emacs. (Fri, 02 May 2014 16:16:02 GMT) Full text and rfc822 format available.

Message #14 received at 17389 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 17389 <at> debbugs.gnu.org
Subject: Re: bug#17389: 24.4.50; REGRESSION: extraneous file locking
Date: Fri, 02 May 2014 19:15:58 +0300
> Date: Fri, 2 May 2014 08:57:48 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 17389 <at> debbugs.gnu.org
> 
> > Indeed, this is a new feature (on Windows) in Emacs 24.4.  On other
> > platforms, Emacs behaved like that since a very long time ago.
> > etc/NEWS tells how to turn this feature off, if you don't want it.
> 
> That says to customize `create-lockfiles' to nil to disable file
> locking.  Not sure what that means.  Will that restore the pre-Emacs
> 24.4 behavior?  I want Emacs to do exactly what it has done before
> in this regard, neither more nor less.

It will restore the previous behavior regarding file locking,
i.e. files you modify will not be locked.  Whether that is what you
want, I don't know, but it should be easy for you to try and see.




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 02 May 2014 21:15:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17389 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 02 May 2014 21:15:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 31 May 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.