From fb4ca8417a1fc7a39d36162a80647063aadb0b41 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 21 May 2014 16:07:27 -0400 Subject: [PATCH] * lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once. --- lisp/ChangeLog | 4 ++++ lisp/nxml/nxml-mode.el | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index df22726d882..a06cc0c1209 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-05-21 Glenn Morris + + * nxml/nxml-mode.el (xml-mode): Only define this alias once. + 2014-05-21 Eli Zaretskii * frame.el (set-frame-font): Doc fix. diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index cd50bce2152..b3ce7aaac25 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -2630,8 +2630,9 @@ With a prefix argument, inserts the character directly." (put 'entity-ref 'nxml-friendly-name "entity reference") (put 'char-ref 'nxml-friendly-name "character reference") -;;;###autoload -(defalias 'xml-mode 'nxml-mode) +;; Only do this in loaddefs, so that if someone defines a different +;; alias in .emacs, loading this file afterwards does not clobber it. +;;;###autoload(defalias 'xml-mode 'nxml-mode) (provide 'nxml-mode) -- 2.39.2