From ea03187d0d21f9ed87fd171c779f1942a4247fbe Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 29 Oct 2008 15:51:12 +0000 Subject: [PATCH] (ispell-word): Use use-region-p. --- lisp/textmodes/ispell.el | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.39.2