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: Thu, 25 Feb 2016 18:47:39 +0200 Message-ID: <83h9gwg2j8.fsf@gnu.org> References: <20160224.084402.229180137.Takaaki.Ota@am.sony.com> <83bn75hqm2.fsf@gnu.org> <20160224.135749.408852023.Takaaki.Ota@am.sony.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456418927 19757 80.91.229.3 (25 Feb 2016 16:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 16:48:47 +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 Thu Feb 25 17:48:35 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 1aYz5M-00028q-II for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 17:48:16 +0100 Original-Received: from localhost ([::1]:44455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz5M-0007cJ-2o for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 11:48:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz5D-0007U7-LW for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 11:48:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYz58-0003Ad-Pr for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 11:48:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz58-0003AX-MX for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 11:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYz58-0005mx-Ai for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 11:48: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: Thu, 25 Feb 2016 16:48: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.145641887122235 (code B ref 22795); Thu, 25 Feb 2016 16:48:02 +0000 Original-Received: (at 22795) by debbugs.gnu.org; 25 Feb 2016 16:47:51 +0000 Original-Received: from localhost ([127.0.0.1]:46316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYz4x-0005mZ-Ln for submit@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48218) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYz4w-0005mL-Hl for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYz4m-000369-Mh for 22795@debbugs.gnu.org; Thu, 25 Feb 2016 11:47:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYz4m-000365-JP; Thu, 25 Feb 2016 11:47:40 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4959 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYz4l-0004dg-KM; Thu, 25 Feb 2016 11:47:40 -0500 In-reply-to: <20160224.135749.408852023.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:113811 Archived-At: > Date: Wed, 24 Feb 2016 13:57:49 -0800 > CC: <22795@debbugs.gnu.org> > From: "Ota, Takaaki" > > Wed, 24 Feb 2016 21:09:57 +0200: Eli Zaretskii wrote: > > > > Date: Wed, 24 Feb 2016 08:44:02 -0800 > > > From: "Ota, Takaaki" > > > > > > When a file is read only on w32 platform I used to be able to write a > > > file by toggling the buffer's read-only-mode state and answering yes > > > to this question "File memo is write-protected; try to save anyway? > > > (yes or no)" but now the writing fails by an error message "Opening > > > output file: Permission denied, c:/d/ota/memo" > > > > I cannot reproduce this, neither with today's emacs-25 nor with the > > last pretest of 25.1. If I answer yes to that question, the file is > > saved without any errors. > > > > How did you make the file read-only? (I used a Windows port of > > 'chmod' and the 'attrib' command.) > > I used Windows Explorer's GUI to open the file property window and > placed a check on Read-only attribute. I am using mingw to build the > emacs. I just tried with 24.5 and it works but not on 25.0.90/91. > They are all build by the same mingw. This doesn't happen for me even if I use the Explorer. There's some other factor at work here. Does this happen with any file, anywhere on your filesystems? E.g., can you try on a drive other than C: ? Also, do you, as the user, own the directory where this file lives, or is its owner another user? And what filesystem is that? NTFS or FAT32? Finally, does this happen in "emacs -Q", or do you need some customizations for the problem to happen? Thanks.