From a855473b7079b467ac01dbcee89cb57b3599fdac Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 13 Apr 2017 20:17:08 -0400 Subject: [PATCH] Use user-error for customize's "invalid face" error * lisp/cus-edit.el (customize-face): Use user-error. (debug-ignored-errors): No more need to add "Invalid face". --- lisp/cus-edit.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index f408e835769..ca6b8a38d99 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1334,7 +1334,7 @@ suggest to customize that face, if it's customizable." (if (get face 'face-alias) (setq face (get face 'face-alias))) (unless (facep face) - (error "Invalid face %S" face)) + (user-error "Invalid face %S" face)) (funcall display-fun (list (list face 'custom-face)) (format "*Customize Face: %s*" @@ -4846,8 +4846,6 @@ if that value is non-nil." (define-obsolete-function-alias 'custom-mode 'Custom-mode "23.1") -(add-to-list 'debug-ignored-errors "^Invalid face:? ") - ;;; The End. (provide 'cus-edit) -- 2.39.2