diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2008-10-29 15:51:12 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2008-10-29 15:51:12 +0000 |
commit | ea03187d0d21f9ed87fd171c779f1942a4247fbe (patch) | |
tree | a2241c70b406739fb41933bea469c645370e285d /lisp/textmodes | |
parent | 21d57aa225ef3ac88768bc5e1f06b3d98bba4f94 (diff) | |
download | emacs-ea03187d0d21f9ed87fd171c779f1942a4247fbe.tar.gz |
(ispell-word): Use use-region-p.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/ispell.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index d6a5da48d35..ff5cb5ec0c9 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1568,8 +1568,7 @@ nil word is correct or spelling is accepted. quit spell session exited." (interactive (list ispell-following-word ispell-quietly current-prefix-arg t)) (cond - ((and region transient-mark-mode mark-active - (not (eq (region-beginning) (region-end)))) + ((and region (use-region-p)) (ispell-region (region-beginning) (region-end))) (continue (ispell-continue)) (t |