Fernando L. Canizo | 1 Nov 2011 01:18
Picon
Favicon
Gravatar

Re: feature wish: init file

On Mon, 31 Oct 2011 22:56:44 +0100, "Pascal J. Bourguignon"
<pjb <at> informatimago.com> wrote:

> Anton Vodonosov <avodonosov <at> yandex.ru> writes:
> 
> > Is it possible to have some init file for CLISP which is executed
> 
> clisp -q -norc -ansi
> (load "quicklisp/setup.lisp")
> (ext:save-init-mem "~/bin/ql-clisp" :executable t)
> (ext:quit)
> 
> and now on use ~/bin/ql-clisp instead of clisp.
> 
> Not tested, it may not work.  Notably, quicklisp/setup.lisp probably
> hard-wires pathnames, so it probably won't work if launched from
> another account.

I tried it verbatim and it didn't worked, it seems in my installation
ext:save-init-mem is mapped to saveinitmem, in fact I have no package
EXT.

But I made it work like this:

$ clisp -q -norc -ansi
;; this is suggested configuration for rc file by quicklisp docs
(let ((quicklisp-init (merge-pathnames
      "quicklisp/setup.lisp" (user-homedir-pathname)))) 
   (when (probe-file quicklisp-init) 
      (load quicklisp-init)))
(Continue reading)

Raymond Toy | 1 Nov 2011 03:32
Picon

Re: feature wish: init file

On 10/31/11 2:43 PM, Anton Vodonosov wrote:
> Hello.
>
> Is it possible to have some init file for CLISP which is executed always 
> (in contrast to .clisprc which is executed only when CLISP is started with
> REPL, but not when started from SLIME).

Do you mean slime starts clisp without loading .clisprc?   Because clisp
does load .clisprc when I start clisp with slime.

Ray

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
clisp-devel mailing list
clisp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-devel

Pascal J. Bourguignon | 1 Nov 2011 03:58
X-Face
Face
Favicon

Re: feature wish: init file

"Fernando L. Canizo" <conan <at> lugmen.org.ar> writes:

> On Mon, 31 Oct 2011 22:56:44 +0100, "Pascal J. Bourguignon"
> <pjb <at> informatimago.com> wrote:
>
>> Anton Vodonosov <avodonosov <at> yandex.ru> writes:
>> 
>> > Is it possible to have some init file for CLISP which is executed
>> 
>> clisp -q -norc -ansi
>> (load "quicklisp/setup.lisp")
>> (ext:save-init-mem "~/bin/ql-clisp" :executable t)
>> (ext:quit)
>> 
>> and now on use ~/bin/ql-clisp instead of clisp.
>> 
>> Not tested, it may not work.  Notably, quicklisp/setup.lisp probably
>> hard-wires pathnames, so it probably won't work if launched from
>> another account.
>
> I tried it verbatim and it didn't worked, it seems in my installation
> ext:save-init-mem is mapped to saveinitmem, in fact I have no package
> EXT.

No, it's me, I didn't try and didn't remember that saveinitmem is a word
in clisp ;-) Sorry about that.

> But I made it work like this:
>
> $ clisp -q -norc -ansi
(Continue reading)

Anton Vodonosov | 1 Nov 2011 11:06
Picon
Favicon

Re: feature wish: init file

Hello.

01.11.2011, 06:32, "Raymond Toy" <toy.raymond <at> gmail.com>:
> On 10/31/11 2:43 PM, Anton Vodonosov wrote:
>
>>  Is it possible to have some init file for CLISP which is executed always
>>  (in contrast to .clisprc which is executed only when CLISP is started with
>>  REPL, but not when started from SLIME).
>
> Do you mean slime starts clisp without loading .clisprc?   Because clisp
> does load .clisprc when I start clisp with slime.

Yes, for me .clisprc is not loaded. 

I am on Windows 7, CLISP 2.49, Emacs 23.2.1, slime-20110730-cvs.

In .emacs I have 
(setq inferior-lisp-program "clisp.exe")

01.11.2011, 06:58, "Pascal J. Bourguignon" <pjb <at> informatimago.com>:

> Now that I think about it, if quicklisp hardwires pathnames, then you
> could instead load it when you load the image by setting a init
> function:
>
> clisp -q -norc -ansi
> ;; No change to the original image, but:
> (ext:saveinitmem "~/bin/ql-clisp"
>                  :executable t
>                  :init-function (lambda ()
(Continue reading)

Anton Vodonosov | 1 Nov 2011 11:08
Picon
Favicon

Re: feature wish: init file


01.11.2011, 14:06, "Anton Vodonosov" <avodonosov <at> yandex.ru>:

> And another possibility would be to install quicklisp loader (or init file loader)
> is CUSTOM:*INIT-HOOKS* (http://www.clisp.org/impnotes/custom-init-fini.html#init-hooks).
>
> E.e.
>    (push (lambda () (load (merge-pathnames "my-clisp-init.lisp" (user-homedir-pathname)))))
> before saving the image [the code is not tested].
>

I mean
    (push (lambda () (load (merge-pathnames "my-clisp-init.lisp" (user-homedir-pathname))))
          CUSTOM:*INIT-HOOKS*)

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
clisp-devel mailing list
clisp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-devel
Raymond Toy | 2 Nov 2011 06:11
Picon

Re: feature wish: init file

On 11/1/11 3:06 AM, Anton Vodonosov wrote:
> Hello.
>
> 01.11.2011, 06:32, "Raymond Toy" <toy.raymond <at> gmail.com>:
>> On 10/31/11 2:43 PM, Anton Vodonosov wrote:
>>
>>>  Is it possible to have some init file for CLISP which is executed always
>>>  (in contrast to .clisprc which is executed only when CLISP is started with
>>>  REPL, but not when started from SLIME).
>> Do you mean slime starts clisp without loading .clisprc?   Because clisp
>> does load .clisprc when I start clisp with slime.
> Yes, for me .clisprc is not loaded. 
>
> I am on Windows 7, CLISP 2.49, Emacs 23.2.1, slime-20110730-cvs.

Oh.  Perhaps that's a problem on windows or with your version of slime. 
I ran my test on Mac OS X with slime 2011-08-18 and xemacs 21.5beta.

Ray

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
clisp-devel mailing list
clisp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-devel

(Continue reading)

SourceForge.net | 3 Nov 2011 21:37
Picon

[ clisp-Bugs-3432970 ] Case-sensitive structs miscompiled?

Bugs item #3432970, was opened at 2011-11-03 13:37
Message generated for change (Tracker Item Submitted) made by mak08
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3432970&group_id=1355

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Kappert (mak08)
Assigned to: Nobody/Anonymous (nobody)
Summary: Case-sensitive structs miscompiled?

Initial Comment:
It seems that keywords are stored incorrectly in the fasl for case-sensitive struct literals:

$ cat struct-case.cl
(defpackage "STORE" (:modern t))
(in-package store)

(defstruct book title author)

(defmacro defbook-expand (title author)
  (make-book :title title :author author))

(Continue reading)

SourceForge.net | 4 Nov 2011 22:58
Picon

[ clisp-Bugs-3432970 ] Case-sensitive structs miscompiled?

Bugs item #3432970, was opened at 2011-11-03 13:37
Message generated for change (Comment added) made by mak08
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3432970&group_id=1355

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Kappert (mak08)
Assigned to: Nobody/Anonymous (nobody)
Summary: Case-sensitive structs miscompiled?

Initial Comment:
It seems that keywords are stored incorrectly in the fasl for case-sensitive struct literals:

$ cat struct-case.cl
(defpackage "STORE" (:modern t))
(in-package store)

(defstruct book title author)

(defmacro defbook-expand (title author)
  (make-book :title title :author author))

(Continue reading)

SourceForge.net | 7 Nov 2011 21:55
Picon

[ clisp-Bugs-3432970 ] Case-sensitive structs miscompiled? [suggested fix]

Bugs item #3432970, was opened at 2011-11-03 13:37
Message generated for change (Comment added) made by mak08
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101355&aid=3432970&group_id=1355

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Kappert (mak08)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Case-sensitive structs miscompiled? [suggested fix]

Initial Comment:
It seems that keywords are stored incorrectly in the fasl for case-sensitive struct literals:

$ cat struct-case.cl
(defpackage "STORE" (:modern t))
(in-package store)

(defstruct book title author)

(defmacro defbook-expand (title author)
  (make-book :title title :author author))

(Continue reading)

Anton Vodonosov | 30 Nov 2011 20:09
Picon
Favicon

Re: feature wish: init file


02.11.2011, 09:11, "Raymond Toy" <toy.raymond <at> gmail.com>:

>  On 11/1/11 3:06 AM, Anton Vodonosov wrote:
>>   I am on Windows 7, CLISP 2.49, Emacs 23.2.1, slime-20110730-cvs.
>  Oh.  Perhaps that's a problem on windows or with your version of slime.
>  I ran my test on Mac OS X with slime 2011-08-18 and xemacs 21.5beta.

For the record, I found the reason.

It's Emacs.

It wants to use environment variable HOME to determine the location where
to store the .emacs file. On Windows HOME is usually absent,
and Emacs then uses APPDATA variable instead. 

So far OK.

But then Emacs sets the HOME variable to the value of APPDATA.

The processes it starts (e.g. lisp implementation for slime) inherit the HOME
variable.

On Windows my home directory is C:\Users\anton\. 
APPDATA points to C:\Users\anton\AppData\Roaming\.

CLISP (and other lisps) determine C:\Users\anton as the value of
(user-homedir-pathname), even it the HOME environment variable is absent.
And that's where .clisprc.lisp is stored.

(Continue reading)


Gmane