mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-14 09:39:42 +00:00
(ispell-word): Use use-region-p.
This commit is contained in:
parent
21d57aa225
commit
ea03187d0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user