From d0397f4a5764d3be93be3e3d35bccc1bf27522cf Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 17 Apr 2017 20:09:27 -0400 Subject: [PATCH] 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. --- lisp/textmodes/ispell.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index db733fe661b..773023a34a6 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -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) -- 2.39.5