Fixed: ‘nxml-complete’ is an obsolete command (as of 26.1); use ‘completion-at-point’ instead.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 25 Jul 2018 21:52:30 +0300
changeset 1567 3a880076385d
parent 1566 0e7f4d5153d1
child 1568 c4b43eed6b3d
Fixed: ‘nxml-complete’ is an obsolete command (as of 26.1); use ‘completion-at-point’ instead.
.emacs-my
--- a/.emacs-my	Thu Jul 19 15:06:02 2018 +0300
+++ b/.emacs-my	Wed Jul 25 21:52:30 2018 +0300
@@ -3509,7 +3509,9 @@
 (add-to-list 'auto-mode-alist '("\.atom\\'" . nxml-mode))
 
 (my--eval-after-load nxml-mode
-  (define-key nxml-mode-map [C-return] 'nxml-complete))
+  (if (<= emacs-major-version 25)
+      (define-key nxml-mode-map [C-return] 'nxml-complete)
+    (define-key nxml-mode-map [C-return] 'completion-at-point))
 
 (defun my-nxml-pp ()
   "Pretty-print XML."