Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280683 - =app-editors/emacs-23: 'font-get' function exits with debug backtrace
Summary: =app-editors/emacs-23: 'font-get' function exits with debug backtrace
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 18:37 UTC by Sebastian Glita
Modified: 2009-08-19 13:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Glita 2009-08-07 18:37:53 UTC
(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).
Comment 1 James Earl Spahlinger 2009-08-09 22:00:06 UTC
Please paste the output of 'emerge --info' into a bugzilla comment to assist the maintainers in resolving this issue

Comment 2 Ulrich Müller gentoo-dev 2009-08-10 12:24:32 UTC
(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.
Comment 3 Ulrich Müller gentoo-dev 2009-08-19 13:41:49 UTC
Closing as INVALID, since the function works as documented.