|
From: | Kevin Rodgers |
Subject: | Re: Essential question [re: Re: "Text is read-only"... except it isn't... or shouldn't be] |
Date: | Thu, 16 May 2013 07:30:51 -0600 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 5/16/13 5:08 AM, ken wrote:
On 05/16/2013 02:27 AM Kevin Rodgers wrote:On 5/15/13 5:48 AM, ken wrote:On 05/15/2013 01:17 AM Kevin Rodgers wrote:On 5/14/13 2:39 PM, ken wrote:On 05/14/2013 09:39 AM Eli Zaretskii wrote:Emacs does look at the magic signature, see magic-mode-alist.....Yes: Instead of trying to detect text files by their content, detect all the other kinds of files by their content or name (and then default to Fundamental mode).So given this: echo This is not an image file. > list.gif; emacs list.gif & which mode should emacs invoke?
If you agree with the convention that .gif files are GIF images, then image-mode. If you choose to violate that convention, then I suggest: echo -e "-*- mode: Text;-*-\nThis is not an image file." > list.gif; emacs list.gif -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |