Guest User

Untitled

a guest
Apr 26th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. From b1dd9672cf42c1fe6da995cdc57783f1301a391d Mon Sep 17 00:00:00 2001
  2. From: Takeshi Banse <takebi@laafc.net>
  3. Date: Wed, 6 Jan 2010 00:46:48 +0900
  4. Subject: Adapted to new code.
  5.  
  6. ---
  7. CL バージョンがいたれりつくせりすぎます!ということをとっても実感できます><
  8.  
  9. src/swank/commands/contrib/swank_arglists.clj | 12 ++++++++++++
  10. 1 files changed, 12 insertions(+), 0 deletions(-)
  11.  
  12. diff --git a/src/swank/commands/contrib/swank_arglists.clj b/src/swank/commands/contrib/swank_arglists.clj
  13. index 12ce5e7..6b3c4fd 100644
  14. --- a/src/swank/commands/contrib/swank_arglists.clj
  15. +++ b/src/swank/commands/contrib/swank_arglists.clj
  16. @@ -24,3 +24,15 @@ (defslimefn variable-desc-for-echo-area [variable-name]
  17. (str variable-name " => " (var-get var)))))
  18. (catch Exception e nil))
  19. "")))
  20. +
  21. +(def +cursor-marker+ :swank/+cursor+)
  22. +(defslimefn autodoc [form & _options]
  23. + (letfn [(step [[x & xs :as form]]
  24. + (cond (empty? form) nil
  25. + (seq? x) (or (step x) (step xs))
  26. + :else (let [z (last xs)]
  27. + (if (= +cursor-marker+ z)
  28. + x
  29. + (or (and (seq? z) (step z)) x)))))]
  30. + (or (and form ((slime-fn 'operator-arglist) (step form) *current-package*))
  31. + :not-available)))
  32. --
  33. 1.7.0.rc1.33.g07cf0f
Add Comment
Please, Sign In to add comment