[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/26: gurses: form: Use match instead of car, cdr etc.
From: |
John Darrington |
Subject: |
08/26: gurses: form: Use match instead of car, cdr etc. |
Date: |
Sun, 22 Jan 2017 12:09:24 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit bac86177f33aeaf37b9461b1743a120671a8256b
Author: John Darrington <address@hidden>
Date: Tue Jan 17 13:30:07 2017 +0100
gurses: form: Use match instead of car, cdr etc.
* gurses/form.scm (make-form) : Replace car, cdr and cadr with match.
---
gurses/form.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gurses/form.scm b/gurses/form.scm
index 58b0e4b..b2161b6 100644
--- a/gurses/form.scm
+++ b/gurses/form.scm
@@ -33,6 +33,7 @@
#:export (get-current-field)
#:use-module (ncurses curses)
+ #:use-module (ice-9 match)
#:use-module (srfi srfi-9))
(define-record-type <field>
@@ -112,7 +113,10 @@ label eq? to N"
(form-set-items! form
(list->array
1 (map-in-order
- (lambda (x) (make-field (car x) (cadr x) (caddr x) ""
0))
+ (lambda (x)
+ (match x
+ ((symbol label size)
+ (make-field symbol label size "" 0))))
items)))
form))
- 02/26: installer: Properly handle swap partitions when generating the configuration., (continued)
- 02/26: installer: Properly handle swap partitions when generating the configuration., John Darrington, 2017/01/22
- 07/26: gurses: Change highlighting from bold to inverse., John Darrington, 2017/01/22
- 04/26: installer: Do not add file systems which are invalid., John Darrington, 2017/01/22
- 10/26: installer: Check that swap spaces have not been assigned mount points, John Darrington, 2017/01/22
- 14/26: installer: Distinguish between Wifi encryption methods., John Darrington, 2017/01/22
- 01/26: installer: Extend the 'file-system' concept to include swap spaces., John Darrington, 2017/01/22
- 21/26: installer: Do not assume the root file system is of type "ext4"., John Darrington, 2017/01/22
- 17/26: installer: Note which types of file system are supported., John Darrington, 2017/01/22
- 25/26: installer: Emphasise that writing filesystems destroys existing data., John Darrington, 2017/01/22
- 05/26: installer: Fix bug where the selected item of main page was not indicated., John Darrington, 2017/01/22
- 08/26: gurses: form: Use match instead of car, cdr etc.,
John Darrington <=
- 03/26: installer: Do not allow the creation of invalid file-system specificaitons., John Darrington, 2017/01/22
- 15/26: gurses: Allow menu update to work for panel windows., John Darrington, 2017/01/22
- 18/26: gurses: Populate the choices box in forms., John Darrington, 2017/01/22
- 06/26: installer: Add an explanatory text to the main page., John Darrington, 2017/01/22
- 22/26: installer: mount-points page: Enlarge the forms window., John Darrington, 2017/01/22
- 13/26: installer: Remove unnecessary "begin"., John Darrington, 2017/01/22
- 24/26: installer: Remove redundant list of file system types., John Darrington, 2017/01/22
- 20/26: gurses: Populate dropdown boxes in forms using a menu., John Darrington, 2017/01/22
- 12/26: installer: Fix bug in config generation., John Darrington, 2017/01/22
- 26/26: doc: Remove the text which mentions there is no graphical installer., John Darrington, 2017/01/22