Re: Set the initial package of a listener-pane?
Thanks! I'll try it.
> On Aug 27, 2020, at 12:02 PM, Arthur Lemmens <alemmens@xs4all.nl> wrote:
>
> I saw the following trick recently:
>
> (capi:interactive-pane-execute-command listener (format nil "~&~&(in-package :some-package)~%~%"))
>
> It seemed to work fine.
>
> Arthur
> ---------
>
> On Thu, Aug 27, 2020, at 6:57 PM, Nick Levine wrote:
>> It’s been a while since I tried this. Used to work, back in the day
>>
>> - nick
>>
>> (defadvice (capi::interactive-pane-top-loop set-mumble-package :before)
>> (top-level istream)
>> ;; Set this to the package you'd like the listener to come up in,
>> while working
>> ;; on your library
>> (setf *package* (find-package "MY-PACKAGE”)))
>>
>> - nick
>>
>>> On 27 Aug 2020, at 17:54, Nick Levine <nick@nicklevine.org> wrote:
>>>
>>> It’s been a while since I tried this. Used to work, back in the day
>>>
>>> - nick
>>>
>>> (defadvice (capi::interactive-pane-top-loop set-mumble-package :before) (top-level istream)
>>> ;; Set this to the package you'd like the listener to come up in, while working
>>> ;; on your library
>>> (setf *package* (find-package "MY-PACKAHE”)))
>>>
>>>>> On 27 Aug 2020, at 17:26, mikel evins (as mevins at me dot com) <lisp-hug@lispworks.com> wrote:
>>>> I would like to start a listener-pane in a package other than CL-USER. I imagine the documentation must tell us how to do that, but I'm not finding it.
>>>> I'm building a CAPI client UI for a system that provides a console onto a system implemented in Lisp. There's a package that provides a bunch of user conveniences for the console, and of course it's very easy to say (in-package :my-convenience-package), but for customer friendliness, I want to start that listener in the convenience package.
>>>> How do I do that?
>>>> _______________________________________________
>>>> Lisp Hug - the mailing list for LispWorks users
>>>> lisp-hug@lispworks.com
>>>> http://www.lispworks.com/support/lisp-hug.html
>>
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
>>
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html