anything
2021-2-12 21:39:12

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) [...])


greg
2021-2-13 00:10:47

@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?


greg
2021-2-13 00:13:43

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?


greg
2021-2-13 00:15:04

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


greg
2021-2-13 00:15:32

Not yet sure about the quoting.


greg
2021-2-13 00:16:51

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