(font-get font key) builtin function "font-get" is erroneous. Reproducible: Always Steps to Reproduce: 1. launch emacs-23 2. switch to: *scratch* buffer 3. try copy/paste a font specification from: M-x describe-font <ENTER> 4. evaluate: (font-get "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1" :family) Actual Results: debug(error (wrong-type-argument font "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1")) font-get("-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1" :family) eval((font-get "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1" :family)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Expected Results: courier whoever has an account to: http://lists.gnu.org/archive/html/bug-gnu-emacs/ please upstream this bug. tx. font-get gets actually called from (x-symbol-mode).
Please paste the output of 'emerge --info' into a bugzilla comment to assist the maintainers in resolving this issue
(In reply to comment #0) > 4. evaluate: (font-get > "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1" :family) > > Actual Results: > debug(error (wrong-type-argument font > "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1")) Documentation of font-get says: (font-get FONT KEY) Return the value of FONT's property KEY. FONT is a font-spec, a font-entity, or a font-object. So a string argument is not allowed. The following should work though: (font-get (font-spec :name "-adobe-courier-medium-r-normal--17-123-100-100-m-100-iso8859-1") :family) > font-get gets actually called from (x-symbol-mode). Whose last released version 4.51 is from 2003, so breakage with recent Emacs doesn't really surprise me (yes, I'm aware of bug 199220). (In reply to comment #1) > Please paste the output of 'emerge --info' into a bugzilla comment to assist > the maintainers in resolving this issue Not really necessary here, since the bug is reproducible without this info.
Closing as INVALID, since the function works as documented.