diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-11 11:07:33 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-11 11:07:33 +0100 |
commit | 46ea14114b6d944824de941b60862cdd7c0d35ef (patch) | |
tree | c7b3f577ca1fd8ee8f8c6dea5987bb462fd39539 /module | |
parent | Add error for invalid main. (diff) | |
download | calp-46ea14114b6d944824de941b60862cdd7c0d35ef.tar.gz calp-46ea14114b6d944824de941b60862cdd7c0d35ef.tar.xz |
Change attribute to return hash-map.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/base.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/vcomponent/base.scm b/module/vcomponent/base.scm index 2041e126..aa5b9de9 100644 --- a/module/vcomponent/base.scm +++ b/module/vcomponent/base.scm @@ -100,9 +100,12 @@ ;; Returns the properties of attribute as an assoc list. ;; @code{(map car <>)} leads to available properties. (define-public (properties attrptr) - (hash-map->list cons (get-vline-parameters attrptr))) + (hash-map->list list (get-vline-parameters attrptr))) (define-public (attributes component) + (get-component-attributes component)) + +(define-public (attribute-keys component) (map car (hash-map->list cons (get-component-attributes component)))) (define (copy-vline vline) |