Skip to content

Commit

Permalink
Unbreak tests for Emacs 24.4
Browse files Browse the repository at this point in the history
* lib/sly-completion.el: Check if completion-category-defaults is
bound.
  • Loading branch information
joaotavora committed Feb 7, 2019
1 parent be91138 commit 9485940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/sly-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ ANNOTATION) describing each completion possibility."
;; TODO: this `basic' completion style is actually a `backend'
;; completion style, meaning a completion style where the filtering is
;; done entirely by the backend.
(add-to-list 'completion-category-defaults
'(sly-completion (styles . (basic))))
(when (boundp 'completion-category-defaults)
(add-to-list 'completion-category-defaults
'(sly-completion (styles . (basic)))))

(defun sly--completion-function-wrapper (fn)
(let (cached-result cached-arg)
Expand Down

0 comments on commit 9485940

Please sign in to comment.