DESCRIBE on a generic function symbol gives a not-useful source file

Bug #1761247 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

When I compile and load this file

;-*- Mode: Lisp -*-

(in-package :cl-user)

(defgeneric foo (x) (:documentation "Example generic function"))

(defmethod foo ((x integer)) :bar)

and then execute (describe 'foo), I get this:

COMMON-LISP-USER::FOO
  [symbol]

FOO names a generic function:
  Lambda-list: (X)
  Derived type: (FUNCTION (T) *)
  Documentation:
    Example generic function
  Method-combination: STANDARD
  Methods:
    (FOO (INTEGER))
  Source file: SYS:SRC;PCL;DFUN.LISP

The source file line is not useful. Instead, it should give the source file of the defgeneric form (if one was provided.)

Revision history for this message
Stas Boukarev (stassats) wrote :

3ba5f3fb532898c81324ed7ab7c87411a6bc369a

Changed in sbcl:
status: New → Fix Committed
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Thanks. It might be useful to also list the source files of methods (which can be obtained easily from the method objects' source slots) if they are different from the source file of the generic function itself.

Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.