summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-04-20 08:07:43 -0700
committerGlenn Morris <rgm@gnu.org>2018-04-20 08:07:43 -0700
commit2a8f8f75639505b0f04757a1034480843fbd8398 (patch)
treed17b3a2c7ea7c51aecb9de9466b9505378dacafb /lisp/textmodes
parente927a36f3cf974a57094d10023ee075bb4596fb9 (diff)
parent5de608f3edb54b4f8d9774e159d0fa99484d3ac8 (diff)
downloademacs-2a8f8f75639505b0f04757a1034480843fbd8398.tar.gz
Merge from origin/emacs-26
5de608f (origin/emacs-26) Update the documentation of 'perform-replace' 06245b6 * etc/NEWS: Another fix for the last change (noted by Juri Li... 8f6293c Fix use of @key in Texinfo manuals f4c9894 Improve documentation of actual arglist ce0e253 ; * etc/NEWS: Improve last change as proposed by Phil Sainty b89ff0e Don't assume term-current-row cache is valid (Bug#31193) 326a296 ; * etc/NEWS: Mention 'display-buffer-in-major-side-window' c... 3bdc9a1 Fix flyspell-auto-correct-previous-word broken by recent change a539eb5 * test/src/lread-tests.el (lread-test-bug-31186): New test. 3fa472b Fix undefined behaviour while looking for lexical-binding fil... 4341aac Minor wording improvement in "Bookmarks" Conflicts: test/src/lread-tests.el
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/flyspell.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index b5c841403a1..2d0307845ca 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1950,8 +1950,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)