From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?TWFya3VzIE5pw59s?= Newsgroups: gmane.emacs.help Subject: Re: Difference in major mode autoload between 21.3.x and 22.0.x? Date: Fri, 14 Oct 2005 10:08:25 +0200 Organization: Arcor Message-ID: <434f677a$0$10226$9b4e6d93@newsread2.arcor-online.net> References: <434d28aa$0$10242$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1129281701 21554 80.91.229.2 (14 Oct 2005 09:21:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2005 09:21:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 11:21:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQLiM-0007C6-Np for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2005 11:18:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQLOe-0002iX-OO for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2005 04:58:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 30 Original-NNTP-Posting-Date: 14 Oct 2005 10:08:26 MEST Original-NNTP-Posting-Host: 0f27b9c1.newsread2.arcor-online.net Original-X-Trace: DXC=; 3; DQ_?PPMYHDPhZJXAV1fPQUjeHfPM>eNT_?d?5Djc5EQoWJNF19F]_] Original-X-Complaints-To: abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:134645 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30226 Archived-At: Slawomir Nowaczyk wrote: > On Wed, 12 Oct 2005 17:15:53 +0200 > Markus Nißl wrote: > > #> Using Emacs 22.0.50.1, xsl-mode is only loaded automatically when > #> I create a new xsl file. When I open an existing xsl file, xml > #> mode is loaded instead. > > #> Anybody an idea what's wrong? > > From the documentation of auto-mode-alist: > > See also `interpreter-mode-alist', which detects executable script modes > based on the interpreters they specify to run, > and `magic-mode-alist', which determines modes based on file contents. > > I suppose you should take a look at magic-mode-alist Thank you very much for your information. I now see where the different behaviour comes from. By far, I'm no Emacs expert ... so, can you give me a hint in which way I have to modify magic-mode-alist so that xsl-mode is being started whenever a file with the extension ".xsl" is loaded? In 21.x, it was a breeze for an elisp novice to copy those two lines and to adjust them to my needs. Thank you very much in advance, Markus