From 56bdf4df8048b4053719e33d08753a2eb088dc57 Mon Sep 17 00:00:00 2001 From: Daniel Pettersson Date: Mon, 11 Mar 2024 15:01:32 +0100 Subject: [PATCH] Flyspell (flyspell-word): do not force 'save-excursion' on timers * lisp/textmode/flyspell.el (flyspell-word): Do not force save-excursion on timers. This especially needed here as flyspell-word is fired from an post command hook. --- lisp/textmodes/flyspell.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index de59294e9f0..5dfe0f17aef 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -1150,7 +1150,9 @@ flyspell-word (set-process-query-on-exit-flag ispell-process nil) ;; Wait until ispell has processed word. (while (progn - (accept-process-output ispell-process) + ;; don't force save-excursion to timers. + ;; only accept output from ispell-process. + (accept-process-output ispell-process nil nil t) (not (string= "" (car ispell-filter))))) ;; (ispell-send-string "!\n") ;; back to terse mode. -- 2.39.3 (Apple Git-145)