
I customized the variable racket-repl-buffer-name-function
and set it to racket-repl--buffer-name-unique
, (following <https://racket-mode.com/#Edit-buffers-and-REPL-buffers|the documentation>) but when I press F5 on different buffers, the same REPL is still being used. I know the value is properly set because I can C-u C-x C-e with the point after racket-repl-buffer-name-function
and Emacs prints racket-repl--buffer-name-unique
on my racket buffer — say, data.rkt. Has anyone been able to use this nice feature? Can you see anything I’m missing here? Thank you.
The customization wrote this in my .emacs: (custom-set-variables
'(racket-repl-buffer-name-function 'racket-repl--buffer-name-unique)
[...])

@anything I think there might be two problems with that: 1. It is named racket-repl-buffer-name-unique
(not with two hyphens as you have) 2. I don’t think should quote it again inside the quoted list. IOW I think you want '(racket-repl-buffer-name-function racket-repl-buffer-name-unique)
in your custom-set-variables
form?

Oh do you mean you used M-x customize
and it wrote that, for you? In that case maybe my defcustom
form is handling it wrong and I need to fix that?

Oh, carp. Yeah, one problem is that I have the double hyphen thing as the value in the defcustom
. :flushed:

Not yet sure about the quoting.

So I will fix that. Meanwhile, you could edit your custom-set-variables
by hand.