File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; ;;
2
+ ; ;; Macro used to exporting edwin-specific bindings.
3
+ ; ;;
4
+ ; ;; (edwin:export (variable a)
5
+ ; ;; (command b)
6
+ ; ;; (mode c))
7
+ ; ;; This is equivalent to
8
+ ; ;;
9
+ ; ;; (export edwin-variable$a
10
+ ; ;; edwin-command$b
11
+ ; ;; edwin-mode$c)
12
+ ; ;;
13
+ (define-syntax edwin:export
14
+ (lambda (form rename compare )
15
+ `(,(rename 'export )
16
+ ,@(apply append
17
+ (map (lambda (specifier )
18
+ (let ((category (car specifier))
19
+ (names (cdr specifier)))
20
+ (map (lambda (name )
21
+ (string->symbol
22
+ (apply string-append
23
+ (map symbol->string
24
+ `(edwin - ,category $ ,name)))))
25
+ names)))
26
+ (cdr form)))))
27
+ (export))
Original file line number Diff line number Diff line change 10
10
11
11
(user)
12
12
13
+ ; ;; EDWIN-EXPORT
14
+ (config ' (load " config-macros.scm" ))
15
+
13
16
(config ' (load " terminfo/interfaces.scm"
14
17
" terminfo/scsh-packages.scm" ))
15
18
You can’t perform that action at this time.
0 commit comments