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)

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 '15 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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