[slime-devel] Re: implementation type / name of slime buffers

Peter Seibel peter at javamonkey.com
Mon Oct 4 15:13:31 UTC 2004


Pascal J.Bourguignon <pjb at informatimago.com> writes:

> With ilisp we could launch various implementation invoking by a
> command of same name (M-x sbcl, M-x clisp-hs, etc). Then, it would
> create a buffer named for the implementation instead of *ilisp[1]*.
> It was then easy to know in which implementation we were working and
> to switch between implementations, because they were distinguished  by
> the buffer name, clearly indicated in the mode line and in the buffer
> list.
>
> Now, slime confuses all this, naming all its buffer *slime-repl[N]*.
>
> One thing that could be done is to add the implementation type in the
> prompt, perhaps with something like:
>
> (defun package-string-for-prompt (package)
>   "Return the shortest nickname (or canonical name) of PACKAGE."
>   (concatenate 'string
>     (lisp-implementation-type) " "
>     (or (canonical-package-nickname package)
>         (auto-abbreviated-package-name package)
>         (shortest-package-nickname package))))

Please don't do that. Or if you must, provide a way to turn it off--I
like my prompts short which is why I impemented auto abbreviation of
package names.

But I *do* like the idea of including the implementation name in the
buffer name.

-Peter

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp





More information about the slime-devel mailing list