summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-10-29 15:51:12 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-10-29 15:51:12 +0000
commitea03187d0d21f9ed87fd171c779f1942a4247fbe (patch)
treea2241c70b406739fb41933bea469c645370e285d /lisp/textmodes
parent21d57aa225ef3ac88768bc5e1f06b3d98bba4f94 (diff)
downloademacs-ea03187d0d21f9ed87fd171c779f1942a4247fbe.tar.gz
(ispell-word): Use use-region-p.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el3
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