From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: "Text is read-only"... except it isn't... or shouldn't be Date: Tue, 14 May 2013 08:22:00 -0400 Message-ID: <51922C68.1030700@mousecar.com> References: <5190B6C2.3060801@mousecar.com> <83y5bi97sp.fsf@gnu.org> <51911A2B.6070100@mousecar.com> <83r4ha959c.fsf@gnu.org> <5191A2BA.7080108@mousecar.com> <83bo8e83ef.fsf@gnu.org> <6DBF2725-3120-4A0D-A23B-C1C16CA8AF22@Web.DE> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368534155 2863 80.91.229.3 (14 May 2013 12:22:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 May 2013 12:22:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 14 14:22:34 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 1UcEFU-0005Qj-UQ for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 14:22:33 +0200 Original-Received: from localhost ([::1]:55474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcEFU-0003Py-9F for geh-help-gnu-emacs@m.gmane.org; Tue, 14 May 2013 08:22:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcEFI-0003Pt-Ls for help-gnu-emacs@gnu.org; Tue, 14 May 2013 08:22:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcEFH-0003lf-C5 for help-gnu-emacs@gnu.org; Tue, 14 May 2013 08:22:20 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:59045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcEFE-0003l8-OP; Tue, 14 May 2013 08:22:16 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus3) with ESMTP (Nemesis) id 0MePod-1UsWq50luJ-00POOC; Tue, 14 May 2013 08:22:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 In-Reply-To: <6DBF2725-3120-4A0D-A23B-C1C16CA8AF22@Web.DE> X-Provags-ID: V02:K0:a+Ux+TBNn3ayg09ro67ThQ01JEh5tbqAZzII56WzgAk 9XOdJJOMdTiyJMlDqowVlBOUqMexArtHO92YrQCGm0TMmg1tJv pUr/viDEQgJU7QjpzBr86DQRPCYQeaa5nQ6fdHAoOoQODgknDU Cegr1781CIk6GGymmpo9/Tl86uhGC6hEIe+cNETPipQMBvf8FY BHvIbOdlXGz9Awibb1S6gNsJC1REFPjiamH0sMJThwsRQiTJim DuHtZYBOwePLEsEXqwloms+/R9FRtFGRJH+6bJQMo9y2Xm62Vh kn/pXQvCf/jZ52MVmMpfRJbtBa3R8Xp/re5aVbJdfpqxCp4V6y gOaX873n2iKZKJFBa+MMLEdfdPRWICUI4yw8VFMuJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.194 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:90749 Archived-At: On 05/14/2013 04:59 AM Peter Dyballa wrote: > > Am 14.05.2013 um 08:46 schrieb Eli Zaretskii: > >>>> 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) > > Since this removes all image support from PNG (or the actual type of) > files it might be more useful to either rename the file temporarily > or to create a link with an extension like .txt and edit that link. Yeah, I thought about all that. As I said in my original post though, I've been happily editing this file with this name for years. I would sooner switch to using vi on it than to change the file's name in any way. Second and more importantly, I don't care for the Windozy attitude toward users, treating then like idiots and upon that rationale, taking control away from users, or their overly simplistic strategy for determining a file type merely by looking at the filename extension, especially when this can be more suitably and accurately and intelligently accomplished by determining a file's magic number as the Linux "file" utility does.