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: Sun, 19 May 2013 08:10:54 -0400 Message-ID: <5198C14E.2080905@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> <5194EC96.6040409@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 1368965493 15154 80.91.229.3 (19 May 2013 12:11:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 May 2013 12:11:33 +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 Sun May 19 14:11:31 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 1Ue2SY-0003Aq-3d for geh-help-gnu-emacs@m.gmane.org; Sun, 19 May 2013 14:11:30 +0200 Original-Received: from localhost ([::1]:50878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue2SX-0006hK-KH for geh-help-gnu-emacs@m.gmane.org; Sun, 19 May 2013 08:11:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue2SH-0006h9-VQ for help-gnu-emacs@gnu.org; Sun, 19 May 2013 08:11:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ue2SD-00037U-49 for help-gnu-emacs@gnu.org; Sun, 19 May 2013 08:11:13 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:56354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue2SC-00037L-VK for help-gnu-emacs@gnu.org; Sun, 19 May 2013 08:11:09 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0LcRiA-1UFC643s7q-00jr5l; Sun, 19 May 2013 08:11:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 In-Reply-To: X-Provags-ID: V02:K0:CpXkZgN+30xtuJ/ajU5/fa6mSBLwFPVYSLaiw9k1qvu 9zVDXAJ1CCSuWKXALrZMsGNKs++mFt1P07kzaQ8x/bbIpF9tjT 4RxqpaoArHMt/4ObXXvgPPEKVLq3MoZZlt0JSydVytYOX+Ngn/ bXaxfGOSvuT+/ggMzsW3pC8dEbTZTmFnwCQ1xZrngFdSNEe4YI 8OHlNwyxbC7JJy+I8eAWLvsx6zu+I9V+QFcGI7/J+8IWa99RO5 P/nnLWr4PLaQIZTwltxgbn7l82Sh7K2RCweBQcRIhR8ROzyGyP 3CrUhjqq14/VX0M3jySY1UrKODMU1UqszOQPGLXNxk3/g55vN1 5ZpK5IKxEVg3CW3vTAGWUXpfYNudF2mROdDIoKO7O X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.195 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:90919 Archived-At: On 05/18/2013 09:59 AM Kevin Rodgers wrote: > On 5/16/13 8:26 AM, ken wrote: >> On 05/16/2013 09:30 AM Kevin Rodgers wrote: >>> On 5/16/13 5:08 AM, ken wrote: >>>> 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 > > The first step in getting emacs to emulate the file command is > > (setq auto-mode-alist nil) > > Then map /etc/magic into magic-mode-alist and interpreter-mode-alist. > Thanks, Kevin. But there are already way too many projects in front of me for the foreseeable future (including some emacs development). I simply can't take on any more. Moreover, this wasn't an issue in all the previous versions of emacs I've used for at least ten years, so probably something was changed in this or a recent version which maybe shouldn't have been. So the regular developers would be in a much better position to address this issue than I would. Because it might be useful to those developers, I'll put into the record here the version used last (in which this issue didn't exist): $ yum info emacs |grep -i 'version\|release' Version : 21.4 Release : 24.el5 In the past I've filed a few bug reports/feature requests and for the most part found the experience unpleasant and not useful. So I don't do that anymore. However, if anyone else wants to write up a ticket, most all the information needed is already contained in this thread. Thanks again.