help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nxml-mode autoload?


From: Lennart Borgman
Subject: Re: nxml-mode autoload?
Date: Mon, 31 Oct 2005 08:57:50 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Arturius mac Aidan wrote:

and proposed the following:
   (defcustom drkm-misc:magic-modes-to-delete
       '(html-mode sgml-mode xml-mode)
     "List of mode symbols whose entries to delete in
      `magic-mode-alist'."
     :type  '(repeat symbol)
     :group 'drkm)

   (when (boundp 'magic-mode-alist)
     (setq magic-mode-alist
           (delete-if (lambda (cell)
                        (memq (cdr cell)
                              drkm-misc:magic-modes-to-delete))
                      magic-mode-alist)))

   (push '("\\`<\\?xml" . nxml-mode) magic-mode-alist)

This works well, provided you load cl (before these commands) if it is not
already loaded:

(require 'cl)

I cannot explain these lines but they have to do with the
"magic-mode-alist" interfering in some way with "auto-mode-alist".

hth,

To whom shall I report the bug, James Clark, or the Emacs developers?
Can you tell what C-h push RET shows before and after loading cl?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]