From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Mon, 08 Jan 2007 18:32:33 +0100 Message-ID: <45A28031.5010107@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168277581 26167 80.91.229.12 (8 Jan 2007 17:33:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 17:33:01 +0000 (UTC) Cc: dooglus@gmail.com, rms@gnu.org, lekktu@gmail.com, c.a.rendle@gmail.com, emacs-devel@gnu.org, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 18:32:58 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3yMi-0002cm-QG for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 18:32:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3yMi-0000J6-7J for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 12:32:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3yMS-0000IL-Nn for emacs-devel@gnu.org; Mon, 08 Jan 2007 12:32:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3yMR-0000Hi-7J for emacs-devel@gnu.org; Mon, 08 Jan 2007 12:32:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3yMR-0000Hf-2y for emacs-devel@gnu.org; Mon, 08 Jan 2007 12:32:39 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H3yMP-0006fQ-Sp; Mon, 08 Jan 2007 12:32:38 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64399 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H3yMN-00085t-43; Mon, 08 Jan 2007 18:32:35 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: "Kim F. Storm" In-Reply-To: X-Antivirus: avast! (VPS 0701-5, 2007-01-08), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H3yMN-00085t-43. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H3yMN-00085t-43 906dc8395badd14017a846ef86ac8958 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64984 Archived-At: Kim F. Storm wrote: > Stefan Monnier writes: ... >> Basically, I think that determining the major mode for a given file should >> neither give precedence to auto-mode-alist nor magic-mode-alist. Instead it >> should consider both. Each one can associate a file with a set of possible >> major modes (typically the set will be singleton) or say "don't know" >> (which would be basically the set of all major modes). ... > This is definitely the best proposal I've seen so far for solving this. Agree + including mime header info as someone said.