dot/lisp-init.lisp: Set `CL:' logical-pathname independently of `HOME:'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 10 Jul 2020 19:28:43 +0000 (20:28 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Aug 2020 03:34:42 +0000 (04:34 +0100)
There's no good reason why these should have been dependent before.

The need for circumlocution on CLisp is just gratuitously annoying.

dot/lisp-init.lisp

index 373308a..6df03e8 100644 (file)
                       "/home/mdw"))
        (home (pathname (concatenate 'string homestring "/"))))
   (setf (logical-pathname-translations "HOME")
-       `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" home nil)))
-       (logical-pathname-translations "CL")
-       '(("CL:SOURCE;**;*.*.*" #p"/usr/share/common-lisp/source/**/*.*")
-         ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
+         `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" home nil)))))
+(when (#.(car '(#+clisp ext:probe-directory
+               probe-file))
+        #p"/usr/share/common-lisp/")
+  (setf (logical-pathname-translations "CL")
+         '(("CL:SOURCE;**;*.*.*" #p"/usr/share/common-lisp/source/**/*.*")
+           ("CL:SYSTEMS;**;*.*.*" #p"/usr/share/common-lisp/systems/**/*.*"))))
 
 ;; Various fixings.
 #+clisp