File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
; ; TODO: lint *before* real file saving, for safer operation.
8
8
9
- (require 'cl )
9
+ (require 'cl-lib )
10
10
11
11
(require 'plist-bind " yatt-utils" )
12
12
Original file line number Diff line number Diff line change 1
- (provide 'plist-bind )
1
+ (require 'cl-lib )
2
2
3
3
(defmacro plist-bind (vars form &rest body )
4
4
" Extract specified VARS from FORM result
@@ -19,12 +19,13 @@ is expanded into:
19
19
20
20
; ; This code is heavily borrowed from cl-macs.el:multiple-value-bind
21
21
(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)))
28
29
29
30
(unless (get 'plist-bind 'edebug-form-spec )
30
31
(put 'plist-bind 'edebug-form-spec '((&rest symbolp) form &rest form)))
@@ -34,3 +35,5 @@ is expanded into:
34
35
; ; (macroexpand
35
36
; ; '(plist-bind (file line err) (list 'file "foo" 'line 3 'err "ERR")
36
37
; ; (message "file: %s line: %s err: %s" file line err)))
38
+
39
+ (provide 'plist-bind )
You can’t perform that action at this time.
0 commit comments