From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: "Text is read-only"... except it isn't... or shouldn't be Date: Mon, 13 May 2013 19:13:58 +0300 Message-ID: <83y5bi97sp.fsf@gnu.org> References: <5190B6C2.3060801@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368461702 2680 80.91.229.3 (13 May 2013 16:15:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 16:15:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 13 18:15:00 2013 Return-path: Envelope-to: geh-help-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 1UbvOu-00010f-NG for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 18:15:00 +0200 Original-Received: from localhost ([::1]:38454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvOu-0001Rm-5x for geh-help-gnu-emacs@m.gmane.org; Mon, 13 May 2013 12:15:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvOg-0001QN-Ue for help-gnu-emacs@gnu.org; Mon, 13 May 2013 12:14:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbvOf-0001gs-Ek for help-gnu-emacs@gnu.org; Mon, 13 May 2013 12:14:46 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:33757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvOf-0001gg-77 for help-gnu-emacs@gnu.org; Mon, 13 May 2013 12:14:45 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MMQ00B00VQLL600@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 May 2013 19:14:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMQ00BZXVRJKC10@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 May 2013 19:14:08 +0300 (IDT) In-reply-to: <5190B6C2.3060801@mousecar.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90697 Archived-At: > Date: Mon, 13 May 2013 05:47:46 -0400 > From: ken > > A file which I've been opening in emacs and editing for a few years in > emacs suddenly with emacs version 22.1.1 became read-only. I open it, > can navigate around in it (though the cursor/mark isn't visible), but > when I try to edit it, I'm not allowed. I get a message in the > minibuffer saying, "Text is read-only". The beginning of the modeline > is "-u: --". I can open this same file in vi and edit it (as the same > user) without any problem at all. I don't have this problem with any > other file I edit in emacs, just this one. The OS is linux, kernel > version 2.6.18.384, and the permissions for this file are 664 and I am > the owner of the file. If I change (i.e., mv) the name of the file to > something else, emacs behaves normally and lets me edit the file just > like any other file. So I'm pretty sure that the problem is that emacs > has a problem with the file name and thinks I shouldn't be allowed to > edit it. How do I turn this behavior off? What does Emacs say if you type this: M-: major-mode RET in the buffer that visits this file you aren't allowed to edit?