(function
(lambda ()
(funcall chess-engine-response-handler 'undo
- (string-to-int (match-string 1))))))
+ (string-to-number (match-string 1))))))
(cons "accept\\(\\s-+\\(.+\\)\\)?$"
(function
(lambda ()
(if (fboundp 'open-network-stream-server)
(open-network-stream-server "*chess-network*"
(current-buffer)
- (read-string "Port: "))
+ (string-to-number
+ (read-string "Port: ")))
(start-process "*chess-network*"
(current-buffer) "/usr/bin/nc"
"-l" "-p" (read-string "Port: ")))
(open-network-stream "*chess-network*" (current-buffer)
(read-string "Host: ")
(read-string "Port: "))))
- (setq chess-network-kind (if (eq which ?s) 'server 'client))
+ (setq chess-engine-process proc
+ chess-network-kind (if (eq which ?s) 'server 'client))
t))
((eq event 'ready) ; don't set active yet