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

Bug #1761247 reported by Paul F. Dietz on 2018-04-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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:


FOO names a generic function:
  Lambda-list: (X)
  Derived type: (FUNCTION (T) *)
    Example generic function
  Method-combination: STANDARD
  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.)

Stas Boukarev (stassats) wrote :


Changed in sbcl:
status: New → Fix Committed
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) on 2018-04-29
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers