Skip to content

Commit

Permalink
add a suffix to the name of inferior lisp buffers
Browse files Browse the repository at this point in the history
In the current state, SLIME names all inferior lisp buffers `*inferior-lisp*`
by default. When starting multiple implementations, we end up with multiple
inferior lisp buffers whose only difference is a non-descriptive number
suffix.

With this patch, we use the name of the implementation as suffix, in a way
similar to REPL buffers.

For example with two inferior lisps SBCL and CCL, we now have `*inferior-lisp
sbcl*` and `*inferior-lisp ccl*`
  • Loading branch information
galdor committed Jan 12, 2023
1 parent a027422 commit c3d4d91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slime.el
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,9 @@ The rules for selecting the arguments are rather complicated:
(coding-system slime-net-coding-system)
(init 'slime-init-command)
name
(buffer "*inferior-lisp*")
(buffer (concat "*inferior-lisp "
(file-name-nondirectory program)
"*"))
init-function
env)
"Start a Lisp process and connect to it.
Expand Down

0 comments on commit c3d4d91

Please sign in to comment.