all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <kn2n10$bm7$1@ger.gmane.org> (raw)
In-Reply-To: <5194BE49.4070105@mousecar.com>

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




  reply	other threads:[~2013-05-16 13:30 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
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 [this message]
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='kn2n10$bm7$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --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.