From bf98fbd1988885e82129823bf189b777dd52a084 Mon Sep 17 00:00:00 2001 From: Kelsey Zapata Date: Sun, 18 Feb 2018 20:49:23 +1300 Subject: [PATCH] fix(elisp): use cl-caddr instead of caddr Current emacs (25.3 on fedora at least) does not define the alias anymore, replace it with a symbol that is still available on both old and new versions! --- counsel-projectile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 65d15cf..048f2a8 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -116,7 +116,7 @@ actions (a key, a function, and a name for each action)." ((stringp action-item) (lambda (action) (member action-item - (list (car action) (caddr action)))))) + (list (car action) (cl-caddr action)))))) (cdr action-list))) (when index (setq index (1+ index)))) @@ -225,7 +225,7 @@ If anything goes wrong, throw an error and do not modify ACTION-VAR." (setq action-list (cl-loop for a in action-list for count from 0 if (= count index) - collect (list (car a) fun (caddr a)) + collect (list (car a) fun (cl-caddr a)) else collect a)))) (`(setname ,action-item ,name)