 ;;; ycmd-eldoc.el --- Eldoc support for ycmd-mode    -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2016  Peter Vasil
+;; Copyright (C) 2016, 2017  Peter Vasil
 
 ;; Author: Peter Vasil <mail@petervasil.net>
 ;; URL: https://github.com/abingham/emacs-ycmd
 ;; Version: 0.2
-;; Package-Requires: ((ycmd "0.1") (deferred "0.2.0") (s "1.9.0") (dash "2.12.1") (cl-lib "0.5") (let-alist "1.0.4"))
+;; Package-Requires: ((ycmd "0.1") (deferred "0.2.0") (s "1.9.0") (dash "2.12.1") (let-alist "1.0.4"))
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by

(defun ycmd-eldoc--generate-message (symbol result)
  "Generate eldoc message for SYMBOL from RESULT."
  (-when-let* ((filtered-list
                (cl-remove-if-not
                 (lambda (val)
                   (let-alist val
                     (and (s-equals? .insertion_text symbol)
                          (or (not .extra_menu_info)
                              (not (-contains?
                                    '("[ID]" "[File]" "[Dir]" "[File&Dir]")
                                    .extra_menu_info))))))
                 result))
               (item (car filtered-list))
               (msg (or (cdr (assq 'detailed_info item))


(eval-when-compile
  (require 'let-alist))
(require 'eldoc)
(require 'ycmd)
(require 'deferred)
