]> git.eshelyaron.com Git - emacs.git/commitdiff
ispell.el: use user-error rather than debug-ignored-errors
authorGlenn Morris <rgm@gnu.org>
Tue, 18 Apr 2017 00:09:27 +0000 (20:09 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 18 Apr 2017 00:09:27 +0000 (20:09 -0400)
* lisp/textmodes/ispell.el (ispell-get-word): Use user-error.
(debug-ignored-errors): No longer modify.

lisp/textmodes/ispell.el

index db733fe661bcb4134bd84d22fcf128616ce0898a..773023a34a64a1d33f881b329f1183a0a8bed19d 100644 (file)
@@ -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)
 
 \f