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?