]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-company.el
emacs: Use `cl-lib' instead of deprecated `cl'
[notmuch] / emacs / notmuch-company.el
index 3e12e7a9f729984899dc32e5cbf2cb1b8e930710..ac998f9b4496d39f157923846329e9f301e32848 100644 (file)
@@ -27,7 +27,8 @@
 
 ;;; Code:
 
-(eval-when-compile (require 'cl))
+(eval-when-compile (require 'cl-lib))
+
 (require 'notmuch-lib)
 
 (defvar notmuch-company-last-prefix nil)
@@ -65,7 +66,7 @@
   (require 'company)
   (let ((case-fold-search t)
        (completion-ignore-case t))
-    (case command
+    (cl-case command
       (interactive (company-begin-backend 'notmuch-company))
       (prefix (and (derived-mode-p 'message-mode)
                   (looking-back (concat notmuch-address-completion-headers-regexp ".*")