mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-04 08:47:11 +00:00
Fix error handling in 'ispell-init-process'
* lisp/textmodes/ispell.el (ispell-init-process): When Ispell initialization reports an error, call 'ispell-accept-output' only if the Ispell process is still alive. (Bug#50370) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
e6f936eb4d
commit
ba84ec8bd9
@ -2923,7 +2923,14 @@ Keeps argument list for future Ispell invocations for no async support."
|
||||
;; But first wait to see if some more output is going to arrive.
|
||||
;; Otherwise we get cool errors like "Can't open ".
|
||||
(sleep-for 1)
|
||||
(ispell-accept-output 3)
|
||||
;; Only call `ispell-accept-output' if the Ispell process
|
||||
;; is alive, to avoid showing an unhelpful error message
|
||||
;; about a missing process, instead of the error which
|
||||
;; reports why the Ispell process died.
|
||||
(when (if ispell-async-processp
|
||||
(process-live-p ispell-process)
|
||||
ispell-process)
|
||||
(ispell-accept-output 3))
|
||||
(error "%s" (mapconcat #'identity ispell-filter "\n"))))
|
||||
(setq ispell-filter nil) ; Discard version ID line
|
||||
(let ((extended-char-mode (ispell-get-extended-character-mode)))
|
||||
|
Loading…
Reference in New Issue
Block a user