diff options
author | Glenn Morris <rgm@gnu.org> | 2014-05-21 16:07:27 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-05-21 16:07:27 -0400 |
commit | fb4ca8417a1fc7a39d36162a80647063aadb0b41 (patch) | |
tree | 2c5af8bcede87e512dfa81380a94d5c59e571c8e /lisp | |
parent | 13a83f0501d080de5ae775b770925d535eb3ac83 (diff) | |
download | emacs-fb4ca8417a1fc7a39d36162a80647063aadb0b41.tar.gz |
* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <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) |