>>>>> Ivan Shmakov writes: >>>>> Stefan Monnier writes: >>> + (warn "Face %S is a string; interning" face) >>> + (message "Face %S is a string; interning" face) >> Why `warn' in one and `message' in the other? > By the time we hit this in ‘face-attribute’, the point at which the > sub-setandard string-named face was introduced is presumably long > gone, so there’s no good reason to use ‘warn’. … Or, on a second thought, ‘message’, either. Given that ‘face-attribute’ has no idea of where the caller got this face from, there’s simply no way for it to provide any helpful message at this point. (Say, “Face "bold", as found at position 42 in #, is a string; interning”.) Now, given that there’s a number of “internal” functions (such as ‘internal-lisp-face-p’, for instance) which accept string face names just fine, I wonder if it makes sense to just change ‘internal-get-lisp-face-attribute’ accordingly? An untested patch is hereby MIMEd. […] -- FSF associate member #7257 np. Fear of the Dark — Iron Maiden B6A0 230E 334A