What is the correct eval expression which shows the current character in the message area?

I tried the following but they don't work.

(message (char-after))
(message '(char-after))
(message 'char-after)
(message char-after)

1 Answer 1


Just convert the result of (char-after) to string:

(message (string (char-after)))
  • 5
    This is equivalent to (message "%c" (char-after)).
    – wvxvw
    Jan 31, 2015 at 11: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.