From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#18828: 24.4; Early collision warning when 'create-lockfiles' is set to nil Date: Sat, 25 Oct 2014 17:07:25 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1414249695 4929 80.91.229.3 (25 Oct 2014 15:08:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2014 15:08:15 +0000 (UTC) To: 18828@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 25 17:08:09 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xi2wp-0007g3-Ii for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Oct 2014 17:08:07 +0200 Original-Received: from localhost ([::1]:53728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wp-0004wW-2q for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Oct 2014 11:08:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wl-0004wR-K8 for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi2wk-0001v0-HA for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:08:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wk-0001uw-Dt for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xi2wj-0002NH-UP for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Oct 2014 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18828 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.14142496579095 (code B ref -1); Sat, 25 Oct 2014 15:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Oct 2014 15:07:37 +0000 Original-Received: from localhost ([127.0.0.1]:35384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi2wK-0002Mc-8C for submit@debbugs.gnu.org; Sat, 25 Oct 2014 11:07:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50658) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi2wI-0002MO-6S for submit@debbugs.gnu.org; Sat, 25 Oct 2014 11:07:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi2wC-0001eP-2V for submit@debbugs.gnu.org; Sat, 25 Oct 2014 11:07:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wC-0001eL-0V for submit@debbugs.gnu.org; Sat, 25 Oct 2014 11:07:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wB-0004bh-7t for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:07:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi2wA-0001e9-FY for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:07:27 -0400 Original-Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:61315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi2wA-0001e3-8h for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 11:07:26 -0400 Original-Received: by mail-wi0-f177.google.com with SMTP id ex7so3291192wid.16 for ; Sat, 25 Oct 2014 08:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=umf/CVu/AqwlPLo6sFNmmKq4dhyJtIdR9drHpFMUd8s=; b=VDxwSY0eU493cqXcXPWvThZu2QHnAiwSzpBpt0xEGBEo7bUsp7Rl5P5Tdw0tQPO8el MBoU4QkT286La0eK6IE28DdlSYd+vO5HMgJ3bZJbbGV+kSxvtIV+Xv6L0tkG+tQtp+vO t9CsBt+IesFgCzMko35R8oyE6vYW16wtdMRj0u3tBnYaAEvuYve+9Cw/C3YwsTzC4MnT ItWv00qXPxboJpAQ6aTusRh3Y4YIZ6GeccfETSbGyb4Q9NyEOL5IybbhLq5qSpXu1uQy p4u/TK+W9O66j6CDo4m+j3UWzKrEb3dDC66xM6Z0UAPzMl4fliWBIVdFvkUMIpvr4p2m zr1Q== X-Received: by 10.194.170.167 with SMTP id an7mr12185757wjc.57.1414249645408; Sat, 25 Oct 2014 08:07:25 -0700 (PDT) Original-Received: by 10.217.152.70 with HTTP; Sat, 25 Oct 2014 08:07:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95072 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