emacs-devel
[Top][All Lists]
Advanced

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

Re: Default for editing XML files


From: Juri Linkov
Subject: Re: Default for editing XML files
Date: Wed, 23 Sep 2009 12:06:49 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

>>>> I've made nXML mode the default for editing XML files.
>>> Shouldn't `xml-mode' be replaced with `nxml-mode' in
>>> `magic-fallback-mode-alist' and `conf-mode-maybe' as well?
>
>> Yes, I missed that.  Thanks.
>
> I think this is wrong.  I think all those variable should point to
> xml-mode, and then xml-mode should be an alias for nxml-mode (which the
> user can re-alias back to sgml-mode if she so prefers).

I agree, it would be better to configure sgml-mode/nxml-mode
for all calls of xml-mode in one place.  Maybe with the help
of a new defcustom like:

(defcustom xml-mode 'nxml-mode
  "Define xml-mode."
  :type '(choice (const nxml-mode)
                 (const sgml-mode)))

(defun xml-mode ()
  (interactive)
  (funcall xml-mode))

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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