emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d0397f4 1/3: ispell.el: use user-error rather than


From: Glenn Morris
Subject: [Emacs-diffs] master d0397f4 1/3: ispell.el: use user-error rather than debug-ignored-errors
Date: Mon, 17 Apr 2017 20:16:43 -0400 (EDT)

branch: master
commit d0397f4a5764d3be93be3e3d35bccc1bf27522cf
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    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 db733fe..773023a 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)
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]