From 4638b80645e62c31911f669a7248449f21caaa44 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 12 Jul 1994 07:15:24 +0000 Subject: [PATCH] (ispell-word): Call ispell-dehighlight. --- lisp/textmodes/ispell4.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index 5776d2d3a28..2ee40028ceb 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el @@ -370,10 +370,12 @@ With a prefix argument, resume handling of the previous Ispell command." (if resume (ispell-next) (condition-case err - (catch 'ispell-quit - (save-window-excursion - (ispell-point (point) "at point.")) - (ispell-dump)) + (unwind-protect + (catch 'ispell-quit + (save-window-excursion + (ispell-point (point) "at point.")) + (ispell-dump)) + (ispell-dehighlight)) (ispell-startup-error (cond ((y-or-n-p "Problem starting ispell, use old-style spell instead? ") (load-library "spell") -- 2.39.5