GNU bug report logs - #18828
24.4; Early collision warning when 'create-lockfiles' is set to nil

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sat, 25 Oct 2014 15:08:01 UTC

Severity: normal

Found in version 24.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#18828: closed (24.4; Early collision warning when
 'create-lockfiles' is set to nil)
Date: Fri, 08 May 2015 09:23:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 08 May 2015 12:22:04 +0300
with message-id <83pp6bpgoz.fsf <at> gnu.org>
and subject line Re: bug#18828: 24.4; Early collision warning when 'create-lockfiles' is set to nil
has caused the debbugs.gnu.org bug report #18828,
regarding 24.4; Early collision warning when 'create-lockfiles' is set to nil
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
18828: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18828
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: 24.4; Early collision warning when 'create-lockfiles' is set to nil
Date: Sat, 25 Oct 2014 17:07:25 +0200
Recipe:
0. emacs -Q
1. Eval: (setq create-lockfiles nil)
2. Visit some file
3. With another program, update the visited file.
4. Try to make some change to the buffer.

------------

Without step 1, Emacs does TRT, i.e., it detects that I'm trying to
make the first change to a buffer whose file has already changed since
it was visited, so it warns me with:

 foo changed on disk; really edit the buffer? (y, n, r or C-h)

But with step 1, Emacs doesn't warn me until I try to save the buffer;
then it shows me this:

  foo has changed since visited or saved.  Save anyway? (yes or no)

(BTW: the above message does not get archived in the *Messages*
buffer.  Why not?  I think it should, as with the first warning)

Well, I think that Emacs should warn me on step 4, regardles of
whether I did step 1 or not.

I set `create-lockfiles' to nil in my init file because I don't want
Emacs to create temporary files of any kind, but obviously I want to
be warned whenever I am about to change a buffer whose file has
changed on disk after it was last read by Emacs.

I observe this bug both with the last 24.4 release and with the trunk.

In GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

-- 
Dani Moncayo


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 18828-done <at> debbugs.gnu.org
Subject: Re: bug#18828: 24.4;
 Early collision warning when 'create-lockfiles' is set to nil
Date: Fri, 08 May 2015 12:22:04 +0300
> Date: Mon, 4 May 2015 23:12:54 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: 18828 <at> debbugs.gnu.org
> 
> > Here you go (if no one objects, I will push this in a few days):
> 
> Hi Eli,
> 
> I've tested your patch and seems to fix the problem.
> 
> Thank you so much.

Thanks, I pushed it.


This bug report was last modified 10 years and 95 days ago.

Previous Next


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