branch: elpa/htmlize commit c9a8196a59973fabb3763b28069af9a4822a5260 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
htmlize-get-override-fstruct: Use correct %-spec in error message Use %S rather than %s since `raw-def' can be of any type rather than a kind of object that has a name. Suggested-by: Stefan Monnier <monn...@iro.umontreal.ca> --- htmlize.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlize.el b/htmlize.el index 4fae5d1d37..4b28de124f 100644 --- a/htmlize.el +++ b/htmlize.el @@ -1205,7 +1205,7 @@ If no rgb.txt file is found, return nil." (def (cond ((stringp raw-def) (list :foreground raw-def)) ((listp raw-def) raw-def) (t - (error "Face override must be %s, got %s" + (error "Face override must be %s, got %S" "an attribute list or string" raw-def))))) (and def (htmlize-attrlist-to-fstruct def (symbol-name face)))))