From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; XML conf file Date: Sat, 22 Dec 2007 20:02:24 -0500 Message-ID: References: <9F6DFBB8-0692-4179-A6F1-29050A382705@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198371763 31393 80.91.229.12 (23 Dec 2007 01:02:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2007 01:02:43 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rms@gnu.org To: Peter Dyballa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 23 02:02:55 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 1J6FF0-0003B8-2T for ged-emacs-devel@m.gmane.org; Sun, 23 Dec 2007 02:02:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6FEg-0006zY-1K for ged-emacs-devel@m.gmane.org; Sat, 22 Dec 2007 20:02:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6FEc-0006xv-FG for emacs-devel@gnu.org; Sat, 22 Dec 2007 20:02:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6FEb-0006x8-RL for emacs-devel@gnu.org; Sat, 22 Dec 2007 20:02:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6FEb-0006x1-Ni for emacs-devel@gnu.org; Sat, 22 Dec 2007 20:02:29 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6FEb-0004hd-GG for emacs-devel@gnu.org; Sat, 22 Dec 2007 20:02:29 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6FEb-0006vE-5X for emacs-pretest-bug@gnu.org; Sat, 22 Dec 2007 20:02:29 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1J6FEY-0004gL-8F for emacs-pretest-bug@gnu.org; Sat, 22 Dec 2007 20:02:29 -0500 Original-Received: from zue-tix-bbcs-dynip-162-001.vtx.ch ([83.228.162.1] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6FEX-0004fo-Lb; Sat, 22 Dec 2007 20:02:25 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id BFACEB40F4; Sat, 22 Dec 2007 20:02:24 -0500 (EST) In-Reply-To: <9F6DFBB8-0692-4179-A6F1-29050A382705@Freenet.DE> (Peter Dyballa's message of "Sat, 22 Dec 2007 20:43:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:85395 gmane.emacs.pretest.bugs:20472 Archived-At: > Can it be that conf-mode comes too early into play? Wouldn't it make more > sense to first check the type of a file, and when it is something not > binary and not XML (i.e. something fundamental) then the file's name and > extension are checked? I found the bug with /etc/ fonts/fonts.conf, in case > someone needs an object to work on. conf-mode is very "generic" and broad in its application. It's kind of a default mode for a class of files, so it should be improved to check for other classes of conf-files, such as XML. No need to change anything to magic-mode-alist (which would have much further-reaching consequences). Stefan