summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2017-04-13 20:17:08 -0400
committerGlenn Morris <rgm@gnu.org>2017-04-13 20:17:08 -0400
commita855473b7079b467ac01dbcee89cb57b3599fdac (patch)
tree21b0b147fdce43911ae037643ac92efbbed4ad89 /lisp/cus-edit.el
parente8adf68824178ea25a5fda0c53233a42883de861 (diff)
downloademacs-a855473b7079b467ac01dbcee89cb57b3599fdac.tar.gz
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".
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el4
1 files changed, 1 insertions, 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)