Closed JensNevens closed 2 years ago
Does this help?
diff --git a/src/cruft.lisp b/src/cruft.lisp
index 6e6ea15..0eba2ce 100644
--- a/src/cruft.lisp
+++ b/src/cruft.lisp
@@ -56,24 +56,25 @@
(prog1 (gethash readtable *readtable-to-docstring*)
(remhash readtable *readtable-to-docstring*)))
-(defmethod documentation ((name symbol) (doc-type (eql 'readtable)))
- (let ((readtable (find-readtable name)))
- (and readtable (gethash readtable *readtable-to-docstring*))))
-
-(defmethod documentation ((readtable readtable) (doc-type (eql 'readtable)))
- (gethash readtable *readtable-to-docstring*))
-
-(defmethod (setf documentation) (docstring (name symbol)
- (doc-type (eql 'readtable)))
- (let ((readtable (find-readtable name)))
- (unless readtable
- (error 'readtable-does-not-exist :readtable-name name))
+(without-package-lock (#+lispworks :common-lisp)
+ (defmethod documentation ((name symbol) (doc-type (eql 'readtable)))
+ (let ((readtable (find-readtable name)))
+ (and readtable (gethash readtable *readtable-to-docstring*))))
+
+ (defmethod documentation ((readtable readtable) (doc-type (eql 'readtable)))
+ (gethash readtable *readtable-to-docstring*))
+
+ (defmethod (setf documentation) (docstring (name symbol)
+ (doc-type (eql 'readtable)))
+ (let ((readtable (find-readtable name)))
+ (unless readtable
+ (error 'readtable-does-not-exist :readtable-name name))
+ (setf (gethash readtable *readtable-to-docstring*) docstring)))
+
+ (defmethod (setf documentation) (docstring (readtable readtable)
+ (doc-type (eql 'readtable)))
(setf (gethash readtable *readtable-to-docstring*) docstring)))
-(defmethod (setf documentation) (docstring (readtable readtable)
- (doc-type (eql 'readtable)))
- (setf (gethash readtable *readtable-to-docstring*) docstring))
-
;;;; Mapping between a readtable-name and the actual readtable object.
Thank you for your reply. I'm assuming the next release of Quicklisp will contain this fix 👍
In fact, this was fixed in https://github.com/melisgl/named-readtables/pull/26.
The last version of named-readtables, obtained via Quicklisp (release from 20/02/2022), throws an error on compilation.
I encountered this error on mac OS, using LispWorks 8.0.