Skip to content

Commit

Permalink
Fix building the manual with latest SBCL
Browse files Browse the repository at this point in the history
pathname-is-executable-p is no longer a simple
function in the sense of SBCL, but has become a closure. Therefore,
sb-impl::%simple-fun-arglist fails at extracting the arglist and
yields a value that isn't even a list.
  • Loading branch information
Dirk Sondermann authored and sabetts committed Jun 16, 2009
1 parent 2eae3e6 commit c7f3a17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manual.lisp
Expand Up @@ -26,6 +26,8 @@

(in-package :stumpwm)

#+sbcl (require :sb-introspect)

;; handy for figuring out which symbol is borking the documentation
(defun dprint (sym)
(declare (ignorable sym))
Expand All @@ -44,7 +46,7 @@
(*print-pretty* nil))
(format s "@defun {~a} ~{~a~^ ~}~%~a~&@end defun~%~%"
name
#+sbcl (sb-impl::%simple-fun-arglist fn)
#+sbcl (sb-introspect:function-arglist fn)
#+clisp (ext:arglist fn)
#- (or sbcl clisp) '("(Check the code for args list)")
(documentation fn 'function))
Expand All @@ -57,7 +59,7 @@
(*print-pretty* nil))
(format s "@defmac {~a} ~{~a~^ ~}~%~a~&@end defmac~%~%"
name
#+sbcl (sb-impl::%simple-fun-arglist (macro-function symbol))
#+sbcl (sb-introspect:function-arglist (macro-function symbol))
#+clisp (ext:arglist symbol)
#- (or sbcl clisp) '("(Check the code for args list)")
;;; FIXME: when clisp compiles
Expand Down Expand Up @@ -94,7 +96,7 @@
(let ((cmd (symbol-function (find-symbol (string-upcase name) :stumpwm))))
(format s "@deffn {Command} ~a ~{~a~^ ~}~%~a~&@end deffn~%~%"
name
#+sbcl (sb-impl::%simple-fun-arglist cmd)
#+sbcl (sb-introspect:function-arglist cmd)
#+clisp (ext:arglist cmd)
#- (or sbcl clisp) '("(Check the code for args list)")
(documentation cmd 'function))
Expand Down

0 comments on commit c7f3a17

Please sign in to comment.