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: Tue, 14 May 2013 09:46:32 +0300 Message-ID: <83bo8e83ef.fsf@gnu.org> References: <5190B6C2.3060801@mousecar.com> <83y5bi97sp.fsf@gnu.org> <51911A2B.6070100@mousecar.com> <83r4ha959c.fsf@gnu.org> <5191A2BA.7080108@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368514018 17359 80.91.229.3 (14 May 2013 06:46:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 May 2013 06:46:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 14 08:46:56 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 1Uc90h-0001cT-LK for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 08:46:55 +0200 Original-Received: from localhost ([::1]:48714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uc90h-0005N1-BF for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 02:46:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uc90V-0005Mw-AC for help-gnu-emacs@gnu.org; Tue, 14 May 2013 02:46:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uc90U-0003aC-3V for help-gnu-emacs@gnu.org; Tue, 14 May 2013 02:46:43 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:62293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uc90T-0003Zx-R9 for help-gnu-emacs@gnu.org; Tue, 14 May 2013 02:46:42 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MMS00M0001YSV00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Tue, 14 May 2013 09:46:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMS00MRA05RHPD0@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Tue, 14 May 2013 09:46:39 +0300 (IDT) In-reply-to: <5191A2BA.7080108@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.172 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:90741 Archived-At: > Date: Mon, 13 May 2013 22:34:34 -0400 > From: ken > CC: help-gnu-emacs@gnu.org > > > That explains everything, doesn't it? Your file has a file-name > > extension that matches some image file, so Emacs enters the Image mode > > for it, and doesn't let you edit images (because image-editing > > capabilities are not yet part of Emacs). > > > > Solution: remove that extension from auto-mode-alist, and Bob's your > > uncle. > > Cool. That's what I want. So I guess I put something in ~/.emacs... > but what? I don't know what is the file-name extension of that file, so I cannot give a precise recipe. Assuming for a moment that its extension is .png, I see that auto-mode-alist includes this element: ("\\.png\\'" . image-mode) So to remove this, you need to do this: (delete '("\\.png\\'" . image-mode) auto-mode-alist)