Kompi
Kompi

Reputation: 494

How to write comma character in a SLIME EMACS window

How can I write a "," (comma) character in the SLIME emacs window? The , key brings up the SLIME command prompt automatically.

Thanks, a Lisp beginner

Upvotes: 1

Views: 419

Answers (2)

dkim
dkim

Reputation: 3970

You can insert , by C-q, (Control-q and then comma). C-q is bound to quoted-insert, which can be generally used whenever you want Emacs to read a next input character and insert it instead of invoking a command bound to the input character.

Upvotes: 2

Matthias Benkard
Matthias Benkard

Reputation: 15759

, only triggers REPL shortcut selection when input at the beginning of a line. In all other cases, you can input a comma by typing ,.

In the case of Common Lisp, since as long as you don't modify the reader, , can only occur within a quasi-quoted expression, this should not be a significant restriction.

If it really is a problem, refer to Deokhwan Kim's answer.

Upvotes: 3

Related Questions