X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/a73cbc5c6f456d875d18e232998a2d0767747dc0..41ef088456675919e4b56a41f964d50a81a781dc:/packages/company/company-tempo.el diff --git a/packages/company/company-tempo.el b/packages/company/company-tempo.el index d1fe8ed83..ac9198862 100644 --- a/packages/company/company-tempo.el +++ b/packages/company/company-tempo.el @@ -1,6 +1,6 @@ -;;; company-tempo.el --- a company-mode completion back-end for tempo +;;; company-tempo.el --- company-mode completion back-end for tempo -;; Copyright (C) 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 2009-2011 Free Software Foundation, Inc. ;; Author: Nikolaj Schumacher @@ -19,10 +19,14 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . + +;;; Commentary: +;; + ;;; Code: (require 'company) -(eval-when-compile (require 'cl)) +(require 'cl-lib) (require 'tempo) (defsubst company-tempo-lookup (match) @@ -44,16 +48,16 @@ ;;;###autoload (defun company-tempo (command &optional arg &rest ignored) - "A `company-mode' completion back-end for tempo." + "`company-mode' completion back-end for tempo." (interactive (list 'interactive)) - (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))) + (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) ;;; company-tempo.el ends here