Re: Printing QUOTE.
Avishek Gorai via Sbcl-help <[email protected]> Sun, 30 Nov 2025 10:44:49 +0530
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <[email protected]> |
So, how to print-pretty using "(QUOTE ...)" instead of the single quote in SBCL? On 30-11-2025 12:50 am, [email protected] wrote: >> On Sat, Nov 29, 2025 at 6:11 PM Stas Boukarev <[email protected]> wrote: >> >> In SBCL, (write ''foo :pretty nil) >> That doesn't work everywhere. >> >> On Sat, Nov 29, 2025 at 8:03 PM Avishek Gorai via Sbcl-help >> <[email protected]> wrote: >> > >> > How to print "(QUOTE FOO)" instead of "'FOO"? >> > > Or, > > (let ((*print-pretty* nil)) > (print ''foo)) > ;;=> (QUOTE FOO) > ;;=> 'FOO > > *print-pretty* > ;;=> T > (print ''foo) > ;;=> 'FOO > ;;=> 'FOO > > See: > > http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_writecm_p_rintcm_princ.html > http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/var_stprint-prettyst.html > _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help