From: ken <gebser@mousecar.com>
To: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: "Text is read-only"... except it isn't... or shouldn't be
Date: Tue, 14 May 2013 08:22:00 -0400 [thread overview]
Message-ID: <51922C68.1030700@mousecar.com> (raw)
In-Reply-To: <6DBF2725-3120-4A0D-A23B-C1C16CA8AF22@Web.DE>
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.
next prev parent reply other threads:[~2013-05-14 12:22 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 9:47 "Text is read-only"... except it isn't... or shouldn't be ken
2013-05-13 16:13 ` Eli Zaretskii
2013-05-13 16:51 ` ken
2013-05-13 17:08 ` Eli Zaretskii
2013-05-14 2:34 ` ken
2013-05-14 6:46 ` Eli Zaretskii
2013-05-14 8:59 ` Peter Dyballa
2013-05-14 12:22 ` ken [this message]
2013-05-14 13:39 ` Eli Zaretskii
2013-05-14 20:39 ` ken
2013-05-14 20:42 ` Eli Zaretskii
2013-05-14 20:45 ` Jai Dayal
2013-05-14 21:39 ` Óscar Fuentes
2013-05-14 23:23 ` How to unsubscribe (was: "Text is read-only"... except it isn't... or shouldn't be) Bob Proulx
2013-05-15 2:16 ` Jai Dayal
2013-05-15 7:23 ` Eli Zaretskii
2013-05-16 12:50 ` Suvayu Ali
2013-05-14 21:36 ` "Text is read-only"... except it isn't... or shouldn't be ken
2013-05-15 5:17 ` Kevin Rodgers
2013-05-15 7:28 ` Eli Zaretskii
2013-05-15 11:56 ` ken
2013-05-15 12:30 ` Eli Zaretskii
[not found] ` <mailman.25840.1368618972.855.help-gnu-emacs@gnu.org>
2013-05-16 3:49 ` Jason Rumney
2013-05-15 11:48 ` ken
2013-05-16 6:27 ` Kevin Rodgers
2013-05-16 11:08 ` Essential question [re: Re: "Text is read-only"... except it isn't... or shouldn't be] ken
2013-05-16 13:30 ` Kevin Rodgers
2013-05-16 14:26 ` ken
2013-05-16 14:39 ` Peter Dyballa
2013-05-18 13:59 ` Kevin Rodgers
2013-05-19 12:10 ` ken
2013-05-16 14:23 ` ken
2013-05-16 14:41 ` Peter Dyballa
2013-05-16 14:48 ` Dmitry Gutov
2013-05-16 22:00 ` Xue Fuqiao
2013-05-14 11:58 ` "Text is read-only"... except it isn't... or shouldn't be ken
2013-05-13 17:59 ` ken
2013-05-13 18:10 ` Eli Zaretskii
2013-05-13 18:15 ` Bob Proulx
2013-05-14 2:26 ` ken
[not found] ` <mailman.25692.1368498372.855.help-gnu-emacs@gnu.org>
2013-05-14 2:38 ` Barry Margolin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51922C68.1030700@mousecar.com \
--to=gebser@mousecar.com \
--cc=Peter_Dyballa@Web.DE \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.