Ticket #49 (assigned defect)

Opened 1 year ago

Last modified 1 year ago

meta-dot for structure accessors should work

Reported by: jaj Assigned to: gb (accepted)
Priority: minor Milestone:
Component: IDE Version:
Keywords: Cc:

Description

Currently, meta-dot on a structure accessor quietly fails. It should go to the defstruct, and ideally the cursor should be at the line that defines the slot.

Change History

08/09/07 17:00:14 changed by gb

  • owner changed from jaj to gb.
  • priority changed from major to minor.
  • status changed from new to assigned.

This (and the similar case of slot accessors) used to "work" in MCL because MCL fell back to a simple text search and (often) the first occurrence of the accessor name anywhere in the file was the slot definition form.

The addition of the MOP broke some of this as well (in MCL, too); a DEFCLASS form that contained accessor definitions expanded into a bunch of DEFMETHOD forms, each of which did a RECORD-SOURCE-FILE. M-. wouldn't find the DEFMETHOD in the file, but it at least knew what file to do a simple-search-and-maybe-get-lucky in.

OpenMCL's meta-. should probably fall back to a simple search as a last resort, but it'd also be possible to extend RECORD-SOURCE-FILE and M-. to deal with accessors (e.g., remembering the parent DEFCLASS/DEFSTRUCT form and trying to find the accessor name inside that form's slot definitions.)