# HG changeset patch # User Glenn Morris # Date 1186111309 0 # Node ID 9928f84fd32b64f21e8aebd4bf5bb7d8b0e47668 # Parent 54e0d414b1de4014c16c60f29f9b619ffe3683cb (customize-apropos): Make the error message indicate what kind of thing the user was trying to customize. diff -r 54e0d414b1de -r 9928f84fd32b lisp/cus-edit.el --- a/lisp/cus-edit.el Fri Aug 03 03:20:00 2007 +0000 +++ b/lisp/cus-edit.el Fri Aug 03 03:21:49 2007 +0000 @@ -1376,7 +1376,14 @@ (get symbol 'variable-documentation)))) (push (list symbol 'custom-variable) found))))) (if (not found) - (error "No customizable items matching %s" regexp) + (error "No %s matching %s" + (if (eq all t) + "items" + (format "customizable %s" + (if (memq all '(options faces groups)) + (symbol-name all) + "items"))) + regexp) (custom-buffer-create (custom-sort-items found t custom-buffer-order-groups) "*Customize Apropos*"))))