5

I use m-x eval-expression to evaluate a very simple lisp code:

 ( + 1 3)

And I got my result like this

enter image description here

What does the symbols (#o4, #x4, ?\C-d) mean in this context?

Anthony Kong
  • 485
  • 3
  • 17

1 Answers1

8

These are alternative representations of an integer with their reader literals for octal, hexadecimal and char notation. In other words, evaluating the octal number #o4, hexadecimal number #x4 or char ?\C-d yields 4.

edit: FWIW, this behaviour seems to be a bug and should be fixed on master (and hopefully become part of the upcoming 25.1 release).

wasamasa
  • 21,803
  • 1
  • 65
  • 97