1

I have the following code for reading two characters, using the interactive declaration. When I run the interactive function the input character is not being shown after the description string.

(interactive "cOpening delimiter character: \n cClosing delimiter character: \nr")

1 Answer 1

1

Reading a character does not echo the character read. This is true for interactive with code c, and for functions such as read-char and read-char-exclusive.

But read-char-from-minibuffer does echo the value read.

(interactive (list (read-char-from-minibuffer "Char: ")))
1
  • Thought it was a bug, as I noticed the mini-buffer flickering when the user inputs the respective character.
    – Dilna
    Commented Mar 20, 2022 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.