Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.66 KB | None | 0 0
  1. (defmethod xref-doit ((type (eql :sys-depends-on)) thing)
  2.   "asdf's depends-on first seems to be direct dependencies,
  3.   and the rest is the list of packages"
  4.   (declare (ignorable type))
  5.   (loop for dependency in (rest (first (asdf:component-depends-on 'asdf:operation thing)))
  6.         for asd-file = (asdf:system-definition-pathname dependency)
  7.         when asd-file
  8.         collect (list dependency
  9.                       (swank/backend:make-location
  10.                         `(:file ,(namestring asd-file))
  11.                         `(:position 1)
  12.                         `(:snippet ,(format nil "(defsystem :~A" dependency)
  13.                           :align t)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement