(define (write-info-file)
(if (assoc 'info-file session)
(let ((op (open-output-file (cdr (assoc 'info-file session)))))
- (write (list (cons 'numdl (length trans))
- (cons 'lastdl lastdl)
- (cons 'availsr info-numavail)
- (cons 'realsr info-numreal)
- (cons 'totalsr info-numtotal)
- (cons 'lastsrch lastsearch)
- (cons 'srcheta info-searcheta)
- (cons 'srchmode (cdr (assoc 'search-mode session))))
- op)
- (newline op)
+ (pretty-print (list (cons 'numdl (length trans))
+ (cons 'lastdl lastdl)
+ (cons 'availsr info-numavail)
+ (cons 'realsr info-numreal)
+ (cons 'totalsr info-numtotal)
+ (cons 'lastsrch lastsearch)
+ (cons 'srcheta info-searcheta)
+ (cons 'srchmode (cdr (assoc 'search-mode session))))
+ op)
(close-port op))))
(define (parseresults)