summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-05-21 16:07:27 -0400
committerGlenn Morris <rgm@gnu.org>2014-05-21 16:07:27 -0400
commitfb4ca8417a1fc7a39d36162a80647063aadb0b41 (patch)
tree2c5af8bcede87e512dfa81380a94d5c59e571c8e /lisp
parent13a83f0501d080de5ae775b770925d535eb3ac83 (diff)
downloademacs-fb4ca8417a1fc7a39d36162a80647063aadb0b41.tar.gz
* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/nxml/nxml-mode.el5
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 <rgm@gnu.org>
+
+ * nxml/nxml-mode.el (xml-mode): Only define this alias once.
+
2014-05-21 Eli Zaretskii <eliz@gnu.org>
* 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)