aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-04-27 18:56:26 +0000
committerChong Yidong2007-04-27 18:56:26 +0000
commit229d40d887dc87c5a3a54453af60796a5b5bbcd3 (patch)
treeb19a3095954d5575c4083c6f2c82bbf8085fcc58
parent58f1302510451b277dedf12fae1b56adc1222a38 (diff)
downloademacs-229d40d887dc87c5a3a54453af60796a5b5bbcd3.tar.gz
emacs-229d40d887dc87c5a3a54453af60796a5b5bbcd3.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)