X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/9ec578d9fe450b7e7f9030dc9d930185593aa991..ed00691544c3b6d4ad15b1c7ef975964ea72b0b6:/src/module-impl.lisp diff --git a/src/module-impl.lisp b/src/module-impl.lisp index 89e1ffb..fe6b545 100644 --- a/src/module-impl.lisp +++ b/src/module-impl.lisp @@ -45,7 +45,7 @@ (defmethod finalize-module ((module module)) (let* ((pset (module-pset module)) - (class (get-property pset :lisp-class :symbol 'module))) + (class (get-property pset :module-class :symbol 'module))) ;; Always call `change-class', even if it's the same one; this will ;; exercise the property-set fiddling in `shared-initialize' and we can @@ -167,7 +167,8 @@ (line (file-location-line location)) (filename (file-location-filename location))) (cond (line - (format stream "~&#line ~D~@[ ~S~]~%" line filename) + (when (typep stream 'position-aware-stream) + (format stream "~&#line ~D~@[ ~S~]~%" line filename)) (funcall thunk) (when (typep stream 'position-aware-stream) (fresh-line stream)