From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: Essential question [re: Re: "Text is read-only"... except it isn't... or shouldn't be] Date: Thu, 16 May 2013 10:26:30 -0400 Message-ID: <5194EC96.6040409@mousecar.com> References: <5190B6C2.3060801@mousecar.com> <83y5bi97sp.fsf@gnu.org> <51911A2B.6070100@mousecar.com> <83r4ha959c.fsf@gnu.org> <5191A2BA.7080108@mousecar.com> <83bo8e83ef.fsf@gnu.org> <6DBF2725-3120-4A0D-A23B-C1C16CA8AF22@Web.DE> <51922C68.1030700@mousecar.com> <8338tp8yuu.fsf@gnu.org> <5192A11F.1080003@mousecar.com> <51937603.1050304@mousecar.com> <5194BE49.4070105@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368714417 19050 80.91.229.3 (16 May 2013 14:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 14:26:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 16 16:26:56 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ucz8y-0000Wq-2n for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 16:26:56 +0200 Original-Received: from localhost ([::1]:46094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucz8x-0006m3-LS for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 10:26:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucz8k-0006l6-Qv for help-gnu-emacs@gnu.org; Thu, 16 May 2013 10:26:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucz8g-0005bW-6j for help-gnu-emacs@gnu.org; Thu, 16 May 2013 10:26:42 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:54273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucz8g-0005bR-02 for help-gnu-emacs@gnu.org; Thu, 16 May 2013 10:26:38 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0Lgq1W-1U7ToN0EdC-00nZTt; Thu, 16 May 2013 10:26:37 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 In-Reply-To: X-Provags-ID: V02:K0:3qiuEBM+Q1RMZiuFRrq6dWMv0Lb1HRXUXTRgVqzKm/8 kF1QkeoYfELgRAnMYcAZ+GAUir6rqIa981pSiu2kF+Uc9C2Ldv LcB9df5JXczz5zhLt5uqLVKH9xJFzwNXZsildJM39+8j7fchU1 fD2O40Nb6oJHAkwxJ/NmjP7l+o0dYnleSirVD1fa6PsMLO+8ON zy0svHHvX9xUY3TkmOCBfAsLeKhryNrhVubXOrxi43eXqdZ5l4 nXb1vh32oIRI4dLAtoN9SRcvfKzO8i/NsHbtoNejLYFhPUrkMH aB0R4f2+EUNdsryGUqKJ4O6TPvotu6/o7Wy/Yge8sElglBPzUw Vepma3B8FiQzT+LiWert3brsV5Y6YBWUt5zrbpnZ9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.194 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90843 Archived-At: On 05/16/2013 09:30 AM Kevin Rodgers wrote: > 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 > $ echo This is not an image file. > list.gif; file list.gif list.gif: ASCII text