From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#4169: 23.1.50; default mode for xml files not correct Date: Mon, 17 Aug 2009 16:35:29 +0200 Message-ID: References: <48317C0E1A69429482B1548C992F0FFC@xahPC> Reply-To: Lennart Borgman , 4169@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250520439 21305 80.91.229.12 (17 Aug 2009 14:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 14:47:19 +0000 (UTC) To: Xah Lee , 4169@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 17 16:47:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md3UH-0006y6-4P for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 16:47:05 +0200 Original-Received: from localhost ([127.0.0.1]:60530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md3UG-00029H-IT for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 10:47:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md3UB-00028H-6L for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 10:46:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md3U6-00026V-N4 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 10:46:58 -0400 Original-Received: from [199.232.76.173] (port=39649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md3U6-00026C-6A for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 10:46:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49071) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md3U5-0003oP-37 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2009 10:46:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7HEkoPY028206; Mon, 17 Aug 2009 07:46:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7HEeAen027139; Mon, 17 Aug 2009 07:40:10 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 17 Aug 2009 14:40:10 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4169 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4169-submit@emacsbugs.donarmstrong.com id=B4169.125051973126515 (code B ref 4169); Mon, 17 Aug 2009 14:40:10 +0000 Original-Received: (at 4169) by emacsbugs.donarmstrong.com; 17 Aug 2009 14:35:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7HEZTnF026512 for <4169@emacsbugs.donarmstrong.com>; Mon, 17 Aug 2009 07:35:30 -0700 Original-Received: by an-out-0708.google.com with SMTP id b2so1310775ana.31 for <4169@emacsbugs.donarmstrong.com>; Mon, 17 Aug 2009 07:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=GS8S72nQ3uB1fFr5Z6WZfSM7pQFNRlo8YcpBkitnwY4=; b=UMCwCVrZ30/LYhqiGGLmN6jUP397vUh7/54yEFhEVZj2s+MSmwJ0tCPN/uemW5ADLe 5hYgxprtBgckR+ixvPyyeR4eYaUnN3n058C7jSbbI6fMD4CDdTCQbMXntiA1Y0y08pcM hUmQoCFIoEmQ3hLWwnmQYeHXSitmQwXQnLCTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uDojW1uD65lHxEnSxdBgjuLqxzsxtVj56aBoHhMz9eguFlXvC9vywFl8bKm/blMOuH bbSRPhkC0dcMdKpo+y6eJgOa7LfVMwSaFTjGm8BcK+lJac3WXMz7+u95bUvnXxx5LPcs P7TojpCPI6xbqRfiKhMfw+6IFoXZlsTBdhqlU= Original-Received: by 10.101.21.17 with SMTP id y17mr3393881ani.152.1250519729074; Mon, 17 Aug 2009 07:35:29 -0700 (PDT) In-Reply-To: <48317C0E1A69429482B1548C992F0FFC@xahPC> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 17 Aug 2009 10:46:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30305 Archived-At: On Mon, Aug 17, 2009 at 4:33 AM, Xah Lee wrote: >> I wrote majmodpri.el (part of nXhtml) to take care of this kind of >> problem and suggested that something like it should be included in >> Emacs. There has not been any positive response to it yet. >> >> The reason I wrote it was that this problem is much more prominent >> when there are multi major modes as an alternative too. (For an xhtml >> file for example you could use html-mode, nxml-mode, html-mumamo-mode, >> nxhtml-mumamo-mode etc.) > > I'm not sure how emacs choose modes, or the policies, mechanisms, file > locations...etc, or what majmodpri.el is supposed to do. Anyway, i thought > this warrant a bug report for the record. Thanks. Major modes are choosen by searching auto-mode-alist etc. The first hit is choosen. (Sometimes the lists are searched several times though.) majmodpri.el sorts the list so that the major modes (or multi major modes) that the user prefers comes first.