(defvar ispell-process nil
"The process object for Ispell.")
-(defvar ispell-async-processp (and (fboundp 'kill-process)
+(defvar ispell-async-processp (and (fboundp 'delete-process)
(fboundp 'process-send-string)
(fboundp 'accept-process-output)
;;(fboundp 'start-process)
(or no-error
(error "There is no ispell process running!"))
(if ispell-async-processp
- (progn
- (process-send-eof ispell-process)
- (if (eq (ispell-process-status) 'run)
- (ispell-accept-output 1))
- (if (eq (ispell-process-status) 'run)
- (kill-process ispell-process))
- (while (not (or (eq (ispell-process-status) 'exit)
- (eq (ispell-process-status) 'signal)))
- (sleep-for 0.25)))
+ (delete-process ispell-process)
;; synchronous processes
(ispell-send-string "\n") ; make sure side effects occurred.
(kill-buffer ispell-output-buffer)