emacs-devel
[Top][All Lists]
Advanced

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

Re: Problems with a dynamic binding


From: Noam Postavsky
Subject: Re: Problems with a dynamic binding
Date: Sun, 15 Mar 2020 12:14:57 -0400

On Sun, 15 Mar 2020 at 12:02, Alan Mackenzie <address@hidden> wrote:
>

>     (let ((print-escape-control-characters t)) "\n\r\t")
>
> , and type C-u C-x C-e.  The expected result would be:
>
>     "\12\15\11"
>
> , but instead this is painted onto the screen:
>
>     "
>     ^M      "

C-u C-x C-e prints the return value of C-x C-e into the buffer, but
that printing occurs after the let-bindings in the expression that
you've evaluated have finished. Try C-x C-e on the following instead

(let ((print-escape-newlines t)) (prin1 "\r\n" (current-buffer)))



reply via email to

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