help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How the backquote and the comma really work?


From: Marcin Borkowski
Subject: Re: How the backquote and the comma really work?
Date: Thu, 25 Jun 2015 22:18:42 +0200

On 2015-06-25, at 22:05, Drew Adams <drew.adams@oracle.com> wrote:

>> > Interesting.  I have print-quoted set to nil, however, M-:
>> > (eval-expression, or in my case - icicle-pp-eval-expression) does
>> > not show what you have here.  Does eval-expression (or its Icicles
>> > counterpart) mess with print-quoted?
>> 
>> AFAICT the Icicles version uses the pp ("pretty print") library.  pp
>> binds `print-quoted' unconditionally to t when printing.

That's a pity.  Not Emacs-y way of doing things, I guess; IMHO, the
Emacs-y way would be to bind print-quoted to pp-default-print-quoted,
set to t by default;-).

> Marcin, you can use `eval-expression' instead of `M-:' (i.e., even
> with Icicles):
>
> M-x eval-expression RET
>
> Eval: (let ((print-quoted nil)) (read "`',foo")) RET
>
> (\` (quote (\, foo)))

Thanks.  And sorry for being too lazy to check it myself.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]