]> git.eshelyaron.com Git - emacs.git/commit
Don't remove highlight of misspelled word on pdict save
authorEli Zaretskii <eliz@gnu.org>
Sun, 6 May 2018 18:20:31 +0000 (21:20 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Jun 2018 09:35:42 +0000 (12:35 +0300)
commit35c1ab1419174f72010c745d963a55b6c183443c
treeef34c1f128009ff1c03b645b338e2ebb3dba258c
parentaac541e75e2c22d05752025c2087ae2eea4cb525
Don't remove highlight of misspelled word on pdict save

* lisp/textmodes/ispell.el (ispell-pdict-save): Don't restart
flyspell-mode, as bug#11963, which this was supposed to fix, is
fixed better by ispell-command-loop, when the user types 'i' or
'a'.  Restarting Flyspell mode when the personal dictionary is
saved caused bug#31372 as side effect.
(ispell-command-loop): Test 'flyspell-mode', not whether
flyspell-unhighlight-at is fboundp, to determine whether Flyspell
mode is turned on in the current buffer.
(flyspell-unhighlight-at): Add declare-function form for it.

(cherry picked from commit 91e582a31ada28fab5ae55bdbf959a9d30796587)
lisp/textmodes/ispell.el