# HG changeset patch # User Eli Zaretskii # Date 1151068625 0 # Node ID 2c067711ec9ee8f6ea75002d4587fcc2f13bec31 # Parent 69a8381b4597f25c19a1fefd5068fc090a66af42 (customize-apropos): A better error message. (top level) : Extend and update the list of ignored error messages. diff -r 69a8381b4597 -r 2c067711ec9e lisp/cus-edit.el --- a/lisp/cus-edit.el Fri Jun 23 13:05:40 2006 +0000 +++ b/lisp/cus-edit.el Fri Jun 23 13:17:05 2006 +0000 @@ -1366,10 +1366,10 @@ (get symbol 'variable-documentation)))) (push (list symbol 'custom-variable) found))))) (if (not found) - (error "No matches") - (custom-buffer-create (custom-sort-items found t - custom-buffer-order-groups) - "*Customize Apropos*")))) + (error "No customizable items matching %s" regexp) + (custom-buffer-create + (custom-sort-items found t custom-buffer-order-groups) + "*Customize Apropos*")))) ;;;###autoload (defun customize-apropos-options (regexp &optional arg) @@ -4520,9 +4520,18 @@ (put 'custom-mode 'mode-class 'special) -(add-to-list - 'debug-ignored-errors - "^No user options have changed defaults in recent Emacs versions$") +(dolist (regexp + '("^No user option defaults have been changed since Emacs " + "^Invalid face:? " + "^No \\(?:customized\\|rogue\\|saved\\) user options" + "^No customizable items matching " + "^There are unset changes" + "^Cannot set hidden variable" + "^No \\(?:saved\\|backup\\) value for " + "^No standard setting known for " + "^No standard setting for this face" + "^Saving settings from \"emacs -q\" would overwrite existing customizations")) + (add-to-list 'debug-ignored-errors regexp)) ;;; The End.