changeset 77524:7be6bca439a5

(flyspell-auto-correct-previous-word): Use window-start and window-end.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 27 Apr 2007 18:56:26 +0000
parents 98b058621040
children 591a9ac5b183
files lisp/textmodes/flyspell.el
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/flyspell.el	Fri Apr 27 18:56:16 2007 +0000
+++ b/lisp/textmodes/flyspell.el	Fri Apr 27 18:56:26 2007 +0000
@@ -1961,12 +1961,8 @@
 But don't look beyond what's visible on the screen."
   (interactive "d")
 
-  (let (top bot)
-    (save-excursion
-      (move-to-window-line 0)
-      (setq top (point))
-      (move-to-window-line -1)
-      (setq bot (point)))
+  (let ((top (window-start))
+	(bot (window-end)))
     (save-excursion
       (save-restriction
 	(narrow-to-region top bot)