[Ecls-list] Any support for a ~/.eclinit.lisp?

Marco Antoniotti marcoxa at cs.nyu.edu
Fri Jun 27 10:21:06 UTC 2003


On Friday, Jun 27, 2003, at 12:14 America/New_York, Juan Jose 
Garcia-Ripoll wrote:

> On Friday 27 June 2003 17:07, Marco Antoniotti wrote:
>>> | ;(defvar *lisp-init-file-list* '("./init" "~/.ecl"))
>>> | (defvar *lisp-init-file-list* '("./init")
>>
>> Maybe
>> 	(defvar *lisp-init-file-list* (list (make-pathname :name ".ecl"
>> :defaults (user-homedir-pathname))
>> 	                                                   (make-pathname
>> :name ".ecl" :defaults (user-homedir-pathname)))
>
> What about making ECL understand ".ecl.lsp"? ;-) I have fixed this 
> today. Now
> ".ecl.lsp" is equivalent to (MAKE-PATHNAME :NAME ".ecl" :TYPE ".lsp"), 
> just
> like CMUCL does. There is no need then for the MAKE-PATHNAME.


Well.  I came to trust MAKE-PATHNAME over PARSE-NAMESTRING over the 
years :)

Anyway.  I think you are still missing the USER-HOMEDIR-PATHNAME bit.  
If you rely on a PARSE-NAMESTRING somewhere down the line, then you 
must take *DEFAULT-PATHNAME-DEFAULTS* into account.

Bottom line: never substitute a MAKE-PATHNAME with a string is you can.

Cheers


--
Marco Antoniotti
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.





More information about the ecl-devel mailing list