/[slime]/slime/swank-backend.lisp
ViewVC logotype

Diff of /slime/swank-backend.lisp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by dbarlow, Sat Nov 29 22:12:42 2003 UTC revision 1.7 by heller, Sun Dec 7 19:16:24 2003 UTC
# Line 58  Line 58 
58             #:swank-macroexpand-1             #:swank-macroexpand-1
59             #:untrace-all             #:untrace-all
60             #:toggle-trace-fdefinition             #:toggle-trace-fdefinition
61             #:function-source-location-for-emacs             #:find-function-locations
62             #:who-binds             #:who-binds
63             #:who-references             #:who-references
64             #:who-calls             #:who-calls
# Line 281  appropriate context.")) Line 281  appropriate context."))
281    
282  ;;;; Queries  ;;;; Queries
283    
284  (defgeneric function-source-location-for-emacs (function-name)  #+(or)
285    ;;; This is probably a better interface than find-function-locations.
286    (defgeneric find-definitions (name)
287    (:documentation    (:documentation
288     "Return the canonical source location FUNCTION-NAME.     "Return a list of (LABEL . LOCATION) pairs for NAME's definitions.
289    
290  FIXME: Document the plethora of valid return types."))  NAME is string denoting a symbol or \"definition specifier\".
291    
292    LABEL is a string describing the definition, e.g., \"foo\" or
293    \"(method foo (string number))\" or \"(variable bar)\".
294    
295    LOCATION is a source location of the form:
296    
297    <location> ::= (:location <buffer> <position>)
298                 | (:error <message>)
299    
300    <buffer>   ::= (:file <filename>)
301                 | (:buffer <buffername>)
302                 | (:source-form <string>)
303    
304    <position> ::= (:position <fixnum> [<align>]) ; 1 based
305                 | (:function-name <string>)
306    "))
307    
308    (defgeneric find-function-locations (name)
309      (:documentation
310       "Return a list (LOCATION LOCATION ...) for NAME's definitions.
311    
312    LOCATION is a source location of the form:
313    
314    <location> ::= (:location <buffer> <position>)
315                 | (:error <message>)
316    
317    <buffer>   ::= (:file <filename>)
318                 | (:buffer <buffername>)
319                 | (:source-form <string>)
320    
321    <position> ::= (:position <fixnum> [<align>]) ; 1 based
322                 | (:function-name <string>)"))
323    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.5