From: Elias M. <lo...@gm...> - 2019-06-13 03:21:26
|
Some background in case anyone is interested: This is a consequence of Common Lisp's attempt to create a platform-independent pathname representation. At the time CL was designed, there were a very wide variety of filesystems in use, each having wildly different semantics. Many of them didn't even have a concept of "current directory". This abstraction was, unfortunately, overdesigned and sort of bolts-on a different system on top of whatever the underlying operating system uses. *DEFAULT-PATHNAME-DEFAULTS* is one of these systems. This is why forcing a change of current directory (i.e. by using SB-POSIX:CHDIR) doesn't really work most of the time, and even when it does, it's not reliable across implementations. Regards, Elias On Thu, 13 Jun 2019 at 08:17, Robert Dodier <rob...@gm...> wrote: > Another idea to try. How about this: > > :lisp (setq *default-pathname-defaults* #p"/something/something/") > > which is supposed to be pasted onto a file name when a directory isn't > otherwise specified. > > I find that after setting *DEFAULT-PATHNAME-DEFAULTS*, 'save' puts its > output file into that directory. > > hope this helps, > Robert Dodier > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > |