aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 51a4800de52..d591dc5fa85 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1893,11 +1893,14 @@ If so, ask if it needs to be saved."
1893 (interactive (list ispell-silently-savep t)) 1893 (interactive (list ispell-silently-savep t))
1894 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p)) 1894 (if (and ispell-pdict-modified-p (listp ispell-pdict-modified-p))
1895 (setq ispell-pdict-modified-p (car ispell-pdict-modified-p))) 1895 (setq ispell-pdict-modified-p (car ispell-pdict-modified-p)))
1896 (if (or ispell-pdict-modified-p force-save) 1896 (when (and (or ispell-pdict-modified-p force-save)
1897 (if (or no-query (y-or-n-p "Personal dictionary modified. Save? ")) 1897 (or no-query
1898 (progn 1898 (y-or-n-p "Personal dictionary modified. Save? ")))
1899 (ispell-send-string "#\n") ; save dictionary 1899 (ispell-send-string "#\n") ; save dictionary
1900 (message "Personal dictionary saved.")))) 1900 (message "Personal dictionary saved.")
1901 (when flyspell-mode
1902 (flyspell-mode 0)
1903 (flyspell-mode 1)))
1901 ;; unassert variable, even if not saved to avoid questioning. 1904 ;; unassert variable, even if not saved to avoid questioning.
1902 (setq ispell-pdict-modified-p nil)) 1905 (setq ispell-pdict-modified-p nil))
1903 1906