aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-04-27 18:53:31 +0000
committerChong Yidong2007-04-27 18:53:31 +0000
commit30133f6dccf222cd40b3efed975c2786589115fc (patch)
treeb727a0795d7514b5659ad21ca9de716a668457af
parent752d8efb27c1904eb27b04460edb76e827d6f2ba (diff)
downloademacs-30133f6dccf222cd40b3efed975c2786589115fc.tar.gz
emacs-30133f6dccf222cd40b3efed975c2786589115fc.zip
(flyspell-auto-correct-previous-word): Use window-start and
window-end.
-rw-r--r--lisp/textmodes/flyspell.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 185f2e8dea3..a509fdf7f6c 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1961,12 +1961,8 @@ Sets `flyspell-auto-correct-previous-pos' to nil"
1961But don't look beyond what's visible on the screen." 1961But don't look beyond what's visible on the screen."
1962 (interactive "d") 1962 (interactive "d")
1963 1963
1964 (let (top bot) 1964 (let ((top (window-start))
1965 (save-excursion 1965 (bot (window-end)))
1966 (move-to-window-line 0)
1967 (setq top (point))
1968 (move-to-window-line -1)
1969 (setq bot (point)))
1970 (save-excursion 1966 (save-excursion
1971 (save-restriction 1967 (save-restriction
1972 (narrow-to-region top bot) 1968 (narrow-to-region top bot)