mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
ispell.el: use user-error rather than debug-ignored-errors
* lisp/textmodes/ispell.el (ispell-get-word): Use user-error. (debug-ignored-errors): No longer modify.
This commit is contained in:
parent
d5ead735a0
commit
d0397f4a57
1 changed files with 1 additions and 4 deletions
|
|
@ -2014,7 +2014,7 @@ which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'."
|
|||
(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))
|
||||
|
|
@ -4138,9 +4138,6 @@ Both should not be used to define a buffer-local dictionary."
|
|||
(insert comment-end)))))
|
||||
(insert (concat " " word))))))))
|
||||
|
||||
;;FIXME: Use `user-error' instead!
|
||||
(add-to-list 'debug-ignored-errors "^No word found to check!$")
|
||||
|
||||
(provide 'ispell)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue