From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22795: 25.0.91; Can't write read only file on w32 Date: Tue, 01 Mar 2016 18:27:35 +0200 Message-ID: <83oaay6u4o.fsf@gnu.org> References: <83bn6z8i9t.fsf@gnu.org> <20160229.112815.255467998.Takaaki.Ota@am.sony.com> <83a8mj8enk.fsf@gnu.org> <20160229.133436.92017905.Takaaki.Ota@am.sony.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456849902 15276 80.91.229.3 (1 Mar 2016 16:31:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2016 16:31:42 +0000 (UTC) Cc: 22795@debbugs.gnu.org To: "Ota\, Takaaki" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 17:31:31 2016 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 1aanCk-0004kx-Sg for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 17:31:23 +0100 Original-Received: from localhost ([::1]:50832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aanCk-0007vO-9T for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 11:31:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aan9b-0002JW-L1 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aan9W-0006lH-SL for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:28:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aan9W-0006lD-P7 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aan9W-0007Ge-LK for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22795-submit@debbugs.gnu.org id=B22795.145684967727919 (code B ref 22795); Tue, 01 Mar 2016 16:28:02 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 1 Mar 2016 16:27:57 +0000 Original-Received: from localhost ([127.0.0.1]:56513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aan9R-0007GF-9p for submit@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60476) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aan9Q-0007G0-87 for 22795@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aan9G-0006cR-3q for 22795@debbugs.gnu.org; Tue, 01 Mar 2016 11:27:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aan9F-0006c9-Rj; Tue, 01 Mar 2016 11:27:46 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2039 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aan9F-0005pS-6Z; Tue, 01 Mar 2016 11:27:45 -0500 In-reply-to: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114252 Archived-At: > Date: Mon, 29 Feb 2016 13:34:36 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > I just tried again with "run -Q" from gdb and the result is the same. > 24.5 never called sys_rename() and 25.0.91 called sys_rename() with > two same names. What about Frename_file? does 24.5 call it in this scenario? If it doesn't, then please look at the beginning of backup-buffer (in files.el), make sure it is called in 24.5 in this scenario, and then please tell what are the values of real-file-name and backup-info in this part at the beginning of backup-buffer: (let* ((real-file-name (file-chase-links buffer-file-name)) (backup-info (find-backup-file-name real-file-name))) Also, what are the values of make-backup-files, backup-inhibited, and buffer-backed-up in the buffer that visits the read-only file? Btw, is that file under some kind of version control, per chance? And please make sure, from now on, to test everything in "emacs -Q", to prevent any customizations from getting in the way of this investigation. Thanks.