X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/0cdc945e2cdc9e1f7a72ed03639cff7edecc12ea..41ef088456675919e4b56a41f964d50a81a781dc:/packages/company/company-xcode.el diff --git a/packages/company/company-xcode.el b/packages/company/company-xcode.el index ac8d13345..91ae60b85 100644 --- a/packages/company/company-xcode.el +++ b/packages/company/company-xcode.el @@ -26,7 +26,7 @@ ;;; Code: (require 'company) -(eval-when-compile (require 'cl)) +(require 'cl-lib) (defgroup company-xcode nil "Completion back-end for Xcode projects." @@ -62,8 +62,7 @@ valid in most contexts." (const "Structure") (const "Type") (const "Union") (const "Variable") (const "Function"))) -(defvar company-xcode-project 'unknown) -(make-variable-buffer-local 'company-xcode-project) +(defvar-local company-xcode-project 'unknown) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -109,7 +108,7 @@ valid in most contexts." (defun company-xcode (command &optional arg &rest ignored) "`company-mode' completion back-end for Xcode projects." (interactive (list 'interactive)) - (case command + (cl-case command (interactive (company-begin-backend 'company-xcode)) (prefix (and company-xcode-xcodeindex-executable (company-xcode-tags)