X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fguile%2Fautodl;h=fe454e8db6fe00be18156df616b0bc8dcf072ae6;hb=d9d1283ed0a42621e9cb76ee63e2dbd3a8227cca;hp=b70fa8f5b549e113c92ec8e60695038eaac23469;hpb=94b2ada170760408d9c2a80ba648003e47c89c96;p=doldaconnect.git diff --git a/lib/guile/autodl b/lib/guile/autodl index b70fa8f..fe454e8 100755 --- a/lib/guile/autodl +++ b/lib/guile/autodl @@ -378,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)) @@ -516,7 +516,8 @@ ((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)) + (begin (set-cdr! (assoc 'search-mode session) 'normal) + (logf "reverting to normal mode"))) (if (and ires (= (vector-ref ires 0) srchid)) (apply handlesr (map (lambda (n) (vector-ref ires n)) '(1 2 3 4 5 7 8)))))) )