From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.help Subject: Re: Difference in major mode autoload between 21.3.x and 22.0.x? Date: Fri, 14 Oct 2005 14:20:22 +0200 Message-ID: <20051014140554.240E.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <434f677a$0$10226$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1129293525 26095 80.91.229.2 (14 Oct 2005 12:38:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2005 12:38:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 14:38:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQOnj-0001VY-HH for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2005 14:36:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQOni-0008Dz-9e for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Oct 2005 08:36:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQOYk-0000uC-4v for help-gnu-emacs@gnu.org; Fri, 14 Oct 2005 08:21:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQOYd-0000qE-Hs for help-gnu-emacs@gnu.org; Fri, 14 Oct 2005 08:21:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQOY3-0000QF-TV for help-gnu-emacs@gnu.org; Fri, 14 Oct 2005 08:20:32 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EQOY3-0007kd-MQ for help-gnu-emacs@gnu.org; Fri, 14 Oct 2005 08:20:32 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.12.11/8.12.11/perf-jw-tr) with ESMTP id j9ECKUN3019008 for ; Fri, 14 Oct 2005 14:20:30 +0200 (CEST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <434f677a$0$10226$9b4e6d93@newsread2.arcor-online.net> X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.21.04 [en] X-MIME-Autoconverted: from 8bit to quoted-printable by himmelsborg.cs.lth.se id j9ECKUN3019008 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:30231 Archived-At: On Fri, 14 Oct 2005 10:08:25 +0200 Markus Ni=C3=9Fl wrote: #> Slawomir Nowaczyk wrote: #> > On Wed, 12 Oct 2005 17:15:53 +0200 #> > Markus Ni=C3=9Fl wrote: #> >=20 #> > #> Using Emacs 22.0.50.1, xsl-mode is only loaded automatically when= =20 #> > #> I create a new xsl file. When I open an existing xsl file, xml=20 #> > #> mode is loaded instead. #> > I suppose you should take a look at magic-mode-alist #> Thank you very much for your information. I now see where the=20 #> different behaviour comes from. A question to the rest of the list: I have seen this being asked a couple of time recently... maybe it would make sense to change default value of magic-mode-alist to not include "xml-mode" and "html-mode" ? It seems to me that magic-mode-alist makes sense if there is only one mode for visiting certain type of files... and there seems to be a couple different modes commonly used for xml and html. #> By far, I'm no Emacs expert ... so, can you give me a hint in=20 #> which way I have to modify magic-mode-alist so that xsl-mode is=20 #> being started whenever a file with the extension ".xsl" is loaded? Well, try this (not tested): (push magic-mode-alist '("<\\?xml " . nil)) I am sure those better versed in elisp can suggest a nicer solution :) #> In 21.x, it was a breeze for an elisp novice to copy those two=20 #> lines and to adjust them to my needs. I agree, auto-mode-alist is much easier to customise. --=20 Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?