So I'm trying to figure out why the following produces unexpected output:
(setq var 1) (pp var) (princ var)
Put the cursor just after the closing
) in the expression
(setq var 1) and then press C-xC-e to evaluate it. I see the following in the echo area:
1 (#o1 #x1 ?\C-a). I think this makes sense - it's just listing the number 1 several different ways.
I go on to evaluate (C-xC-e again)
(pp var) and then see the following:
Why do I see the 1 twice?
Why is it listed inside the double-quotes the second time
Likewise, when I go on to evaluate (C-xC-e)
(princ var) and then see the following:
11 (#o1 #x1 ?\C-a)
Why is there an 11 at the start? I'm guessing that it's printing the value 1 twice, right next to each other (instead of printing the number 11), but why is it printing