emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 3bdc9a1: Fix flyspell-auto-correct-previous-word


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 3bdc9a1: Fix flyspell-auto-correct-previous-word broken by recent change
Date: Tue, 17 Apr 2018 13:46:39 -0400 (EDT)

branch: emacs-26
commit 3bdc9a1683d803d291586e83e7275936301d94cf
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix flyspell-auto-correct-previous-word broken by recent change
    
    * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Keep
    flyspell-auto-correct-region also when repeatedly invoking
    flyspell-auto-correct-previous-word.  (Bug#31188)
---
 lisp/textmodes/flyspell.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index e462669..24e424c 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1945,8 +1945,9 @@ spell-check."
     (let ((pos     (point))
           (old-max (point-max)))
       ;; Flush a possibly stale cache from previous invocations of
-      ;; flyspell-auto-correct-word.
-      (if (not (eq last-command 'flyspell-auto-correct-word))
+      ;; flyspell-auto-correct-word/flyspell-auto-correct-previous-word.
+      (if (not (memq last-command '(flyspell-auto-correct-word
+                                    flyspell-auto-correct-previous-word)))
           (setq flyspell-auto-correct-region nil))
       ;; Use the correct dictionary.
       (flyspell-accept-buffer-local-defs)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]