Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"When the going gets tough, the tough get empirical." -- Jon Carroll


devel / comp.lang.lisp / slime custom configuration help

SubjectAuthor
* slime custom configuration helpMichael Graffam
`* Re: slime custom configuration helpTom Russ
 `* Re: slime custom configuration helpMadhu
  `* Re: slime custom configuration helpMichael Graffam
   `- Re: slime custom configuration helpSiebe de Vos

1
slime custom configuration help

<6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16740&group=comp.lang.lisp#16740

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:a05:622a:120e:: with SMTP id y14mr18708157qtx.671.1639069501149;
Thu, 09 Dec 2021 09:05:01 -0800 (PST)
X-Received: by 2002:a05:6808:643:: with SMTP id z3mr6923897oih.110.1639069500606;
Thu, 09 Dec 2021 09:05:00 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Thu, 9 Dec 2021 09:05:00 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:381:8103:a0d0:9169:b9c2:4c2f:ce8d;
posting-account=YIX_1AoAAABgPfv2IZy_XBS8bJDsBwG4
NNTP-Posting-Host: 2601:381:8103:a0d0:9169:b9c2:4c2f:ce8d
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
Subject: slime custom configuration help
From: michael.graffam@gmail.com (Michael Graffam)
Injection-Date: Thu, 09 Dec 2021 17:05:01 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: Michael Graffam - Thu, 9 Dec 2021 17:05 UTC

Hello everyone,

I am using SLIME & SBCL on a remote host. I essentially use Emacs/Slime as a client to connect to my Lisp system, using M-x slime-connect.

I'd like to configure things so that when I connect via SLIME, I can run my own function in the remote Lisp before getting a REPL prompt.

Is that possible?

Re: slime custom configuration help

<e0c2d025-2bf6-4425-99b8-8de8440ebf3cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16741&group=comp.lang.lisp#16741

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:ad4:4bcf:: with SMTP id l15mr20086313qvw.93.1639075936492;
Thu, 09 Dec 2021 10:52:16 -0800 (PST)
X-Received: by 2002:a05:6830:80a:: with SMTP id r10mr7257772ots.74.1639075935843;
Thu, 09 Dec 2021 10:52:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Thu, 9 Dec 2021 10:52:15 -0800 (PST)
In-Reply-To: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:8000:7603:1703:54df:d47a:1ed3:5f93;
posting-account=05zmAwoAAAAJZM-3jv1hCWLHGZQceqwA
NNTP-Posting-Host: 2603:8000:7603:1703:54df:d47a:1ed3:5f93
References: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e0c2d025-2bf6-4425-99b8-8de8440ebf3cn@googlegroups.com>
Subject: Re: slime custom configuration help
From: taruss@google.com (Tom Russ)
Injection-Date: Thu, 09 Dec 2021 18:52:16 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: Tom Russ - Thu, 9 Dec 2021 18:52 UTC

On Thursday, December 9, 2021 at 9:05:03 AM UTC-8, michael...@gmail.com wrote:
> Hello everyone,
>
> I am using SLIME & SBCL on a remote host. I essentially use Emacs/Slime as a client to connect to my Lisp system, using M-x slime-connect.
>
> I'd like to configure things so that when I connect via SLIME, I can run my own function in the remote Lisp before getting a REPL prompt.
>
> Is that possible?

Is this something you could do with a lisp init file that the remote SBCL job executes on startup?

Or do you want to do this only based on the slime connection?

Re: slime custom configuration help

<m3lf0txm9w.fsf@leonis4.robolove.meer.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16742&group=comp.lang.lisp#16742

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: enometh@meer.net (Madhu)
Newsgroups: comp.lang.lisp
Subject: Re: slime custom configuration help
Date: Fri, 10 Dec 2021 07:18:43 +0530
Organization: Motzarella
Lines: 26
Message-ID: <m3lf0txm9w.fsf@leonis4.robolove.meer.net>
References: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
<e0c2d025-2bf6-4425-99b8-8de8440ebf3cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="35ef7f3fcca7555906402e36aa3128da";
logging-data="539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195aWi4T7L+3bsM97yXUNBdUmfGy1ydTIc="
Cancel-Lock: sha1:eLvg1AdYsBTCGzeaByxhxx5WLQ4=
sha1:Pyvf28PxtmpWkyTLz+8fQ16Ss2Y=
 by: Madhu - Fri, 10 Dec 2021 01:48 UTC

* Tom Russ <e0c2d025-2bf6-4425-99b8-8de8440ebf3cn @googlegroups.com> :
Wrote on Thu, 9 Dec 2021 10:52:15 -0800 (PST):

> On Thursday, December 9, 2021 at 9:05:03 AM UTC-8, michael???@gmail.com wrote:
>> I am using SLIME & SBCL on a remote host. I essentially use
>> Emacs/Slime as a client to connect to my Lisp system, using M-x
>> slime-connect.
>>
>> I'd like to configure things so that when I connect via SLIME, I can
>> run my own function in the remote Lisp before getting a REPL prompt.
>>
>> Is that possible?
>
> Is this something you could do with a lisp init file that the remote
> SBCL job executes on startup?

There is such a file - I think it is ~/.swank.lisp - it is loaded when
swank is initialized and called through "swank-loader.lisp"

details are in the info-manual under "Customization" "Lisp Side"

For sly it is ~/.slynk.lisp - and I think this was extended to work even
if you loaded sly through some other means (other than "slynk-loader")

> Or do you want to do this only based on the slime connection?

Re: slime custom configuration help

<22b0ca85-f8e8-4c61-aced-fe9ee5383f64n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16759&group=comp.lang.lisp#16759

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:a05:6214:4007:: with SMTP id kd7mr4109761qvb.52.1639774093891;
Fri, 17 Dec 2021 12:48:13 -0800 (PST)
X-Received: by 2002:a05:6808:2388:: with SMTP id bp8mr3655618oib.38.1639774093617;
Fri, 17 Dec 2021 12:48:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Fri, 17 Dec 2021 12:48:13 -0800 (PST)
In-Reply-To: <m3lf0txm9w.fsf@leonis4.robolove.meer.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:381:8103:a0d0:4465:9570:1409:13f1;
posting-account=YIX_1AoAAABgPfv2IZy_XBS8bJDsBwG4
NNTP-Posting-Host: 2601:381:8103:a0d0:4465:9570:1409:13f1
References: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
<e0c2d025-2bf6-4425-99b8-8de8440ebf3cn@googlegroups.com> <m3lf0txm9w.fsf@leonis4.robolove.meer.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <22b0ca85-f8e8-4c61-aced-fe9ee5383f64n@googlegroups.com>
Subject: Re: slime custom configuration help
From: michael.graffam@gmail.com (Michael Graffam)
Injection-Date: Fri, 17 Dec 2021 20:48:13 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: Michael Graffam - Fri, 17 Dec 2021 20:48 UTC

Yeah, none of that will actually achieve what I'd like to do.

I'd like to run a function on actual connection .. not when Lisp or Swank individually are loaded.

The use-case is to allow Emacs / SLIME to be used as an interface for a Lisp application. I can make Emacs automatically connect.
But then the user has to manually start the program. It would be nice to have it simply run on connect.

Re: slime custom configuration help

<spjdlm$o3q$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16761&group=comp.lang.lisp#16761

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!1aDH+SctqRQW8c3++gds8Q.user.46.165.242.91.POSTED!not-for-mail
From: siebe@de-vos.de (Siebe de Vos)
Newsgroups: comp.lang.lisp
Subject: Re: slime custom configuration help
Date: Sat, 18 Dec 2021 02:31:34 +0100
Organization: Aioe.org NNTP Server
Message-ID: <spjdlm$o3q$1@gioia.aioe.org>
References: <6febc812-1b55-4da4-add4-0984bc82bf55n@googlegroups.com>
<e0c2d025-2bf6-4425-99b8-8de8440ebf3cn@googlegroups.com>
<m3lf0txm9w.fsf@leonis4.robolove.meer.net>
<22b0ca85-f8e8-4c61-aced-fe9ee5383f64n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="24698"; posting-host="1aDH+SctqRQW8c3++gds8Q.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Siebe de Vos - Sat, 18 Dec 2021 01:31 UTC

This is what I have more or less, without any warranty:

(defun my-hook-function ()
(slime-rex ()
('(swank-repl::eval-region
"(progn (server-side-function)
(format t \"It worked\")
(values))"))
((:ok result))))

(add-hook 'slime-connected-hook 'my-hook-function t)

On 17/12/2021 21.48, Michael Graffam wrote:
> Yeah, none of that will actually achieve what I'd like to do.
>
> I'd like to run a function on actual connection .. not when Lisp or Swank individually are loaded.
>
> The use-case is to allow Emacs / SLIME to be used as an interface for a Lisp application. I can make Emacs automatically connect.
> But then the user has to manually start the program. It would be nice to have it simply run on connect.
>


devel / comp.lang.lisp / slime custom configuration help

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor