Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
f9b461f4
Commit
f9b461f4
authored
27 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Improved documentation support for CMUCL.
parent
d46a345b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pcl/cmucl-documentation.lisp
+106
-0
106 additions, 0 deletions
pcl/cmucl-documentation.lisp
pcl/defsys.lisp
+1
-0
1 addition, 0 deletions
pcl/defsys.lisp
with
107 additions
and
0 deletions
pcl/cmucl-documentation.lisp
0 → 100644
+
106
−
0
View file @
f9b461f4
;;;
;;; **********************************************************************
;;; This code was written by Douglas T. Crosher and has been placed in
;;; the public domain, and is provided 'as is'.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/cmucl-documentation.lisp,v 1.1 1997/08/30 18:47:40 dtc Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; ANSI CL documentation for CMUCL
;;;
(
in-package
:pcl
)
;;; Note some cases are handled by the documentation methods in
;;; std-class.lisp.
;;; Functions, macros, and special forms.
(
defmethod
documentation
((
x
function
)
(
doc-type
(
eql
't
)))
(
lisp::function-doc
x
))
(
defmethod
documentation
((
x
function
)
(
doc-type
(
eql
'function
)))
(
lisp::function-doc
x
))
(
defmethod
documentation
((
x
list
)
(
doc-type
(
eql
'function
)))
(
or
(
values
(
ext:info
setf
documentation
(
cadr
x
)))
;; Try the pcl function documentation.
(
and
(
fboundp
x
)
(
documentation
(
fdefinition
x
)
't
))))
(
defmethod
documentation
((
x
symbol
)
(
doc-type
(
eql
'function
)))
(
or
(
values
(
ext:info
function
documentation
x
))
;; Try the pcl function documentation.
(
and
(
fboundp
x
)
(
documentation
(
fdefinition
x
)
't
))))
(
defmethod
documentation
((
x
symbol
)
(
doc-type
(
eql
'setf
)))
(
values
(
ext:info
setf
documentation
x
)))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
list
)
(
doc-type
(
eql
'function
)))
(
setf
(
ext:info
setf
documentation
(
cadr
x
))
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
symbol
)
(
doc-type
(
eql
'function
)))
(
setf
(
ext:info
function
documentation
x
)
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
symbol
)
(
doc-type
(
eql
'setf
)))
(
setf
(
ext:info
setf
documentation
x
)
new-value
))
;;; Packages.
(
defmethod
documentation
((
x
package
)
(
doc-type
(
eql
't
)))
(
lisp::package-doc-string
x
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
package
)
(
doc-type
(
eql
't
)))
(
setf
(
lisp::package-doc-string
x
)
new-value
))
;;; Types, classes, and structure names.
(
defmethod
documentation
((
x
lisp:structure-class
)
(
doc-type
(
eql
't
)))
(
values
(
ext:info
type
documentation
(
lisp:class-name
x
))))
(
defmethod
documentation
((
x
structure-class
)
(
doc-type
(
eql
't
)))
(
values
(
ext:info
type
documentation
(
class-name
x
))))
(
defmethod
documentation
((
x
lisp:structure-class
)
(
doc-type
(
eql
'type
)))
(
values
(
ext:info
type
documentation
(
lisp:class-name
x
))))
(
defmethod
documentation
((
x
structure-class
)
(
doc-type
(
eql
'type
)))
(
values
(
ext:info
type
documentation
(
class-name
x
))))
(
defmethod
documentation
((
x
symbol
)
(
doc-type
(
eql
'type
)))
(
or
(
values
(
ext:info
type
documentation
x
))
(
let
((
class
(
find-class
x
nil
)))
(
when
class
(
plist-value
class
'documentation
)))))
(
defmethod
documentation
((
x
symbol
)
(
doc-type
(
eql
'structure
)))
(
when
(
eq
(
ext:info
type
kind
x
)
:instance
)
(
values
(
ext:info
type
documentation
x
))))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
lisp:structure-class
)
(
doc-type
(
eql
't
)))
(
setf
(
ext:info
type
documentation
(
lisp:class-name
x
))
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
structure-class
)
(
doc-type
(
eql
't
)))
(
setf
(
ext:info
type
documentation
(
class-name
x
))
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
lisp:structure-class
)
(
doc-type
(
eql
'type
)))
(
setf
(
ext:info
type
documentation
(
lisp:class-name
x
))
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
structure-class
)
(
doc-type
(
eql
'type
)))
(
setf
(
ext:info
type
documentation
(
class-name
x
))
new-value
))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
symbol
)
(
doc-type
(
eql
'type
)))
(
let
((
class
(
find-class
x
nil
)))
(
if
class
(
setf
(
plist-value
class
'documentation
)
new-value
)
(
setf
(
ext:info
type
documentation
x
)
new-value
))))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
symbol
)
(
doc-type
(
eql
'structure
)))
(
unless
(
eq
(
ext:info
type
kind
x
)
:instance
)
(
error
"~S is not the name of a structure type."
x
))
(
setf
(
ext:info
type
documentation
x
)
new-value
))
;;; Variables.
(
defmethod
documentation
((
x
symbol
)
(
doc-type
(
eql
'variable
)))
(
values
(
ext:info
variable
documentation
x
)))
(
defmethod
(
setf
documentation
)
(
new-value
(
x
symbol
)
(
doc-type
(
eql
'variable
)))
(
setf
(
ext:info
variable
documentation
x
)
new-value
))
This diff is collapsed.
Click to expand it.
pcl/defsys.lisp
+
1
−
0
View file @
f9b461f4
...
...
@@ -872,6 +872,7 @@ and load your system with:
(
construct
t
t
(
defclass
boot
defs
low
))
(
env
t
t
(
defclass
boot
defs
low
fin
))
(
compat
t
t
())
(
cmucl-documentation
t
t
()
CMU
)
(
precom1
(
dlisp
)
t
(
defs
low
cache
fin
dfun
))
(
precom2
(
dlisp
)
t
(
defs
low
cache
fin
dfun
))
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment