Skip to content

Commit

Permalink
Deprecate company-nxml too
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutov committed Feb 26, 2018
1 parent fc81e99 commit a64d52c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* In Emacs 26 and newer, `company-css` is removed from `company-backends`.
`company-capf` is used instead.
* Same for `company-nxml`.

## 2018-02-23 (0.9.6)

Expand Down
4 changes: 2 additions & 2 deletions company-capf.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
;;
;; The CAPF back-end provides a bridge to the standard
;; completion-at-point-functions facility, and thus can support any major mode
;; that defines a proper completion function, including emacs-lisp-mode and
;; css-mode.
;; that defines a proper completion function, including emacs-lisp-mode,
;; css-mode and nxml-mode.

;;; Code:

Expand Down
2 changes: 1 addition & 1 deletion company-css.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

;;; Commentary:
;;
;; In newer versions of Emacs, company-capf is used instead.
;; In Emacs >= 26, company-capf is used instead.

;;; Code:

Expand Down
3 changes: 2 additions & 1 deletion company-nxml.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; company-nxml.el --- company-mode completion backend for nxml-mode

;; Copyright (C) 2009-2011, 2013 Free Software Foundation, Inc.
;; Copyright (C) 2009-2011, 2013, 2018 Free Software Foundation, Inc.

;; Author: Nikolaj Schumacher

Expand All @@ -22,6 +22,7 @@

;;; Commentary:
;;
;; In Emacs >= 26, company-capf is used instead.

;;; Code:

Expand Down
3 changes: 2 additions & 1 deletion company.el
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ This doesn't include the margins and the scroll bar."
(defcustom company-backends `(,@(unless (version< "24.3.51" emacs-version)
(list 'company-elisp))
company-bbdb
company-nxml
,@(unless (version<= "26" emacs-version)
(list 'company-nxml))
,@(unless (version<= "26" emacs-version)
(list 'company-css))
company-eclim company-semantic company-clang
Expand Down

0 comments on commit a64d52c

Please sign in to comment.