Skip to content

Commit d3ffbc1

Browse files
committed
Fix GH-198 - "package cl is deprecated" in emacs27.
1 parent 2ffe2f3 commit d3ffbc1

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

elisp/yatt-lint-any-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
;; TODO: lint *before* real file saving, for safer operation.
88

9-
(require 'cl)
9+
(require 'cl-lib)
1010

1111
(require 'plist-bind "yatt-utils")
1212

elisp/yatt-utils.el

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(provide 'plist-bind)
1+
(require 'cl-lib)
22

33
(defmacro plist-bind (vars form &rest body)
44
"Extract specified VARS from FORM result
@@ -19,12 +19,13 @@ is expanded into:
1919

2020
;; This code is heavily borrowed from cl-macs.el:multiple-value-bind
2121
(let ((temp (make-symbol "--plist-bind-var--")))
22-
(list* 'let* (cons (list temp form)
23-
(mapcar (function
24-
(lambda (v)
25-
(list v (list 'plist-get temp `(quote ,v)))))
26-
vars))
27-
body)))
22+
(cl-list* 'let*
23+
(cons (list temp form)
24+
(mapcar (function
25+
(lambda (v)
26+
(list v (list 'plist-get temp `(quote ,v)))))
27+
vars))
28+
body)))
2829

2930
(unless (get 'plist-bind 'edebug-form-spec)
3031
(put 'plist-bind 'edebug-form-spec '((&rest symbolp) form &rest form)))
@@ -34,3 +35,5 @@ is expanded into:
3435
;; (macroexpand
3536
;; '(plist-bind (file line err) (list 'file "foo" 'line 3 'err "ERR")
3637
;; (message "file: %s line: %s err: %s" file line err)))
38+
39+
(provide 'plist-bind)

0 commit comments

Comments
 (0)