X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/cb0a58684509ba5d3546d7d08a11b136ca294c11..779de03e226b161a00c3428ffdadd89ecbc422d0:/company-tempo.el diff --git a/company-tempo.el b/company-tempo.el index 1dda49e8f..0fa5c75c3 100644 --- a/company-tempo.el +++ b/company-tempo.el @@ -1,6 +1,6 @@ -;;; company-tempo.el --- A company-mode completion back-end for tempo +;;; company-tempo.el --- company-mode completion backend for tempo -;; Copyright (C) 2009-2011 Free Software Foundation, Inc. +;; Copyright (C) 2009-2011, 2015 Free Software Foundation, Inc. ;; Author: Nikolaj Schumacher @@ -26,7 +26,7 @@ ;;; Code: (require 'company) -(eval-when-compile (require 'cl)) +(require 'cl-lib) (require 'tempo) (defsubst company-tempo-lookup (match) @@ -48,15 +48,14 @@ ;;;###autoload (defun company-tempo (command &optional arg &rest ignored) - "A `company-mode' completion back-end for tempo." + "`company-mode' completion backend for tempo." (interactive (list 'interactive)) - (case command + (cl-case command (interactive (company-begin-backend 'company-tempo 'company-tempo-insert)) (prefix (or (car (tempo-find-match-string tempo-match-finder)) "")) (candidates (all-completions arg (tempo-build-collection))) (meta (company-tempo-meta arg)) - (require-match t) (sorted t))) (provide 'company-tempo)