2005-05-25 05:44:27 -04:00
|
|
|
(define-syntax run/strings-status
|
|
|
|
(syntax-rules ()
|
|
|
|
((_ epf)
|
|
|
|
(call-with-values
|
|
|
|
(lambda ()
|
|
|
|
(run/port+proc epf))
|
|
|
|
(lambda (port proc)
|
|
|
|
(let ((string-list (port->string-list port))
|
|
|
|
(status (wait proc)))
|
|
|
|
(close-input-port port)
|
|
|
|
(values string-list status)))))))
|
|
|
|
|
2005-05-22 11:05:25 -04:00
|
|
|
(define (directory-files . optional-args)
|
|
|
|
(let-optionals optional-args
|
|
|
|
((dir (cwd))
|
|
|
|
(dotfiles? #f))
|
2005-05-27 17:32:21 -04:00
|
|
|
(let ((abs-dir (absolute-file-name dir)))
|
|
|
|
(map (lambda (file)
|
|
|
|
(make-fs-object file abs-dir))
|
|
|
|
(scsh-directory-files abs-dir dotfiles?)))))
|
2005-06-01 07:26:56 -04:00
|
|
|
|
|
|
|
(define *focus-table* (make-empty-focus-table))
|
|
|
|
|
|
|
|
(define (focus-table)
|
|
|
|
*focus-table*)
|
|
|
|
|
2005-07-06 04:57:44 -04:00
|
|
|
(define (focus-value-ref id)
|
2005-06-01 07:26:56 -04:00
|
|
|
(get-focus-object (focus-table) id))
|
|
|
|
|