X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fguile%2Fautodl;h=f796176441e0cef33e84d235e150dcf7254a99f5;hb=f7bc13915e125177524aae0c4328698ae6e9eaf7;hp=d9e291b20a3e381b3f5859deabca5c09d100b54c;hpb=d30cc4bc2d85a606d156bad960f9f6d73c14a335;p=doldaconnect.git diff --git a/lib/guile/autodl b/lib/guile/autodl index d9e291b..f796176 100755 --- a/lib/guile/autodl +++ b/lib/guile/autodl @@ -211,7 +211,8 @@ (cons 'realsr info-numreal) (cons 'totalsr info-numtotal) (cons 'lastsrch lastsearch) - (cons 'srcheta info-searcheta)) + (cons 'srcheta info-searcheta) + (cons 'srchmode (cdr (assoc 'search-mode session)))) op) (newline op) (close-port op)))) @@ -377,7 +378,7 @@ (define (autodl-main args) (let ((dc-server #f) (done #f) (retval 0)) - (let ((getopt (make-getopt (cdr args) "hs:S:e:p:t:a:I:")) (arg #f)) + (let ((getopt (make-getopt (cdr args) "whs:S:e:p:t:a:I:")) (arg #f)) (do ((arg (getopt) (getopt))) ((not (and (pair? arg) (char? (car arg)))) (set! args arg)) (cond ((eq? (car arg) #\h) (begin (display "usage: autodl [-s server] -S sessfile\n" (current-error-port)) @@ -514,6 +515,8 @@ (write-info-file))))) ((622) ; Search result (let ((ires (list->vector (dc-intresp resp)))) + (if (eq? (cdr (assoc 'search-mode session)) 'wait) + (set-cdr! (assoc 'search-mode session) 'normal)) (if (and ires (= (vector-ref ires 0) srchid)) (apply handlesr (map (lambda (n) (vector-ref ires n)) '(1 2 3 4 5 7 8)))))) )