From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Fri, 05 Jan 2007 22:20:51 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168053709 5196 80.91.229.12 (6 Jan 2007 03:21:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2007 03:21:49 +0000 (UTC) Cc: Chris Moore , Charles Rendleman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 04:21:42 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 1H327o-0004sQ-MC for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 04:21:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H327n-0006z2-UD for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 22:21:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3274-0006Rj-Q8 for emacs-devel@gnu.org; Fri, 05 Jan 2007 22:20:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3273-0006Qq-5G for emacs-devel@gnu.org; Fri, 05 Jan 2007 22:20:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3272-0006Ql-S5 for emacs-devel@gnu.org; Fri, 05 Jan 2007 22:20:52 -0500 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3272-0000wg-HH for emacs-devel@gnu.org; Fri, 05 Jan 2007 22:20:52 -0500 Original-Received: from pastel.home ([74.12.206.167]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070106032051.GJJL5067.tomts5-srv.bellnexxia.net@pastel.home> for ; Fri, 5 Jan 2007 22:20:51 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CD6E385AE; Fri, 5 Jan 2007 22:20:51 -0500 (EST) Original-To: "Juanma Barranquero" In-Reply-To: (Juanma Barranquero's message of "Fri\, 5 Jan 2007 20\:02\:26 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:64861 Archived-At: >> I'm thinking it would be safer to use auto-mode-alist before >> magic-mode-alist. > `magic-mode-alist' is more specific. The problem is that some of these > regexps are too permissive. Supposing that anything that starts with > "#define " is a XBM file makes no sense. Just in case someone forgot: this whole problem is only due to the fact that Richard doesn't want to default auto-mode-case-fold to t (which would make it unnecessary to use magic-mode-alist). Can't we revert this whole idea of using magic-mode-alist, and then just set auto-mode-case-fold to t (and then remove this useless new configuration variable)? Again, Richard, please give us some concrete reason why you think it's more incorrect to choose sh-mode than fundamental-mode for .BASH_PROFILE. Stefan