Skip to content

Commit

Permalink
Use cl-remove-duplicates
Browse files Browse the repository at this point in the history
Emacs complains no more. No need to require cl without warnings anymore.
  • Loading branch information
tuhdo committed Nov 17, 2016
1 parent a66b756 commit f981724
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions srefactor-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
;;
;;; Code:
(require 'semantic/bovine/el)
(with-no-warnings
(require 'cl))

(defcustom srefactor-newline-threshold 40
"If a token is about to be inserted, if the current posistion
Expand Down Expand Up @@ -213,9 +211,9 @@
(cond
((and (fboundp 'clojure-mode)
(eq major-mode 'clojure-mode))
(remove-duplicates (append srefactor-lisp-symbol-to-skip srefactor-clojure-symbol-to-skip)
:test (lambda (a b)
(equal (car a) (car b)))))
(cl-remove-duplicates (append srefactor-lisp-symbol-to-skip srefactor-clojure-symbol-to-skip)
:test (lambda (a b)
(equal (car a) (car b)))))
(t srefactor-lisp-symbol-to-skip)))

(defun srefactor-lisp-format-buffer ()
Expand Down

0 comments on commit f981724

Please sign in to comment.