1

The result of (print 'foo) is (quote foo). Is there a similar function whose result is 'foo, which is what people generally write?

3

C-h v print-quoted:

print-quoted is a variable defined in C source code.

Its value is nil

Documentation:

Non-nil means print quoted forms with reader syntax. I.e., (quote foo) prints as 'foo, (function foo) as #'foo.

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.