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 17:36:11 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130402 Thunderbird/17.0.5

On 05/14/2013 04:42 PM Eli Zaretskii wrote:
Date: Tue, 14 May 2013 16:39:59 -0400
From: ken <gebser@mousecar.com>
CC: help-gnu-emacs@gnu.org

On 05/14/2013 09:39 AM Eli Zaretskii wrote:
Date: Tue, 14 May 2013 08:22:00 -0400
From: ken <gebser@mousecar.com>
CC: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org

[...] 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.

Emacs does look at the magic signature, see magic-mode-alist.


They why didn't it see that my file was (obviously) a text file and not
an image file?

I have no idea, and won't have one, unless you disclose the name of
that file.


list.gif

Would it make a difference if the basename (without the extension) were named something else?




reply via email to

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