help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Text is read-only"... except it isn't... or shouldn't be


From: ken
Subject: Re: "Text is read-only"... except it isn't... or shouldn't be
Date: Tue, 14 May 2013 07:58:38 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130402 Thunderbird/17.0.5

On 05/14/2013 02:46 AM Eli Zaretskii wrote:
Date: Mon, 13 May 2013 22:34:34 -0400
From: ken <gebser@mousecar.com>
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)


Thanks.  That worked.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]