aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorPaul Eggert2018-03-04 17:16:39 -0800
committerPaul Eggert2018-03-04 17:16:39 -0800
commitbd6c1976fba03bd2e4ca0a52cea562c8ecf23ef8 (patch)
treef5611596b3c70cdd536adfc06e9880bdd1bfc211 /lisp/textmodes
parent78589529a7e7ea21f78c972c87b9e2c94ef27610 (diff)
parentf2caf08ca625f64c7eeea8dfa8f65a5b1bac58e2 (diff)
downloademacs-bd6c1976fba03bd2e4ca0a52cea562c8ecf23ef8.tar.gz
emacs-bd6c1976fba03bd2e4ca0a52cea562c8ecf23ef8.zip
Merge from origin/emacs-26
f2caf08ca6 ; Spelling fixes f0e5f220b6 * lisp/progmodes/grep.el (zrgrep): a0f71260f8 Minor copyedits in doc/emacs/text.texi adfe2f580f Remove outdated comment in syntax.el b80e15b6a6 Prevent Flyspell from changing unrelated words e385599457 Avoid errors in flymake in builds --without-x d691e30cb0 More improvements of the Emacs manual
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/flyspell.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index d87cb5e72ed..e4626696262 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1944,6 +1944,10 @@ spell-check."
1944 (call-interactively flyspell--prev-meta-tab-binding) 1944 (call-interactively flyspell--prev-meta-tab-binding)
1945 (let ((pos (point)) 1945 (let ((pos (point))
1946 (old-max (point-max))) 1946 (old-max (point-max)))
1947 ;; Flush a possibly stale cache from previous invocations of
1948 ;; flyspell-auto-correct-word.
1949 (if (not (eq last-command 'flyspell-auto-correct-word))
1950 (setq flyspell-auto-correct-region nil))
1947 ;; Use the correct dictionary. 1951 ;; Use the correct dictionary.
1948 (flyspell-accept-buffer-local-defs) 1952 (flyspell-accept-buffer-local-defs)
1949 (if (and (eq flyspell-auto-correct-pos pos) 1953 (if (and (eq flyspell-auto-correct-pos pos)