From: Glenn Morris Date: Fri, 14 Apr 2017 00:17:08 +0000 (-0400) Subject: Use user-error for customize's "invalid face" error X-Git-Tag: emacs-26.0.90~521^2~632 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a855473b7079b467ac01dbcee89cb57b3599fdac;p=emacs.git 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". --- 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)