Skip to content

Commit

Permalink
try to parse the Args: line in most ecl functions to make modelines m…
Browse files Browse the repository at this point in the history
…ore interesting
  • Loading branch information
Geo Carncross committed Dec 22, 2007
1 parent 961cbe4 commit d31550c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions swank-ecl.lisp
Expand Up @@ -157,6 +157,19 @@
(typecase name
(generic-function
(clos::generic-function-lambda-list name))
(compiled-function
; most of the compiled functions have an Args: line in their docs
(with-input-from-string (s (or
(si::get-documentation
(si:compiled-function-name name) 'function)
""))
(do ((line (read-line s nil) (read-line s nil)))
((not line) :not-available)
(ignore-errors
(if (string= (subseq line 0 6) "Args: ")
(return-from nil
(read-from-string (subseq line 6))))))))
;
(function
(let ((fle (function-lambda-expression name)))
(case (car fle)
Expand Down

0 comments on commit d31550c

Please sign in to comment.