* lisp/textmodes/ispell.el (ispell-get-word): Use user-error.
(debug-ignored-errors): No longer modify.
(if ispell-check-only
;; return dummy word when just flagging misspellings
(list "" (point) (point))
- (error "No word found to check!"))
+ (user-error "No word found to check!"))
(setq start (copy-marker (match-beginning 0))
end (point-marker)
word (buffer-substring-no-properties start end))
(insert comment-end)))))
(insert (concat " " word))))))))
-;;FIXME: Use `user-error' instead!
-(add-to-list 'debug-ignored-errors "^No word found to check!$")
-
(provide 'ispell)
\f