From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Problems with a dynamic binding Date: Sun, 15 Mar 2020 12:14:57 -0400 Message-ID: References: <20200315155658.GB4928@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="116401"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 15 17:17:53 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDVxZ-000UBc-Qn for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 17:17:53 +0100 Original-Received: from localhost ([::1]:55706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDVxY-0004ZD-MG for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 12:17:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38819) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDVv2-000393-4R for emacs-devel@gnu.org; Sun, 15 Mar 2020 12:15:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDVv0-0003Uv-W8 for emacs-devel@gnu.org; Sun, 15 Mar 2020 12:15:16 -0400 Original-Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]:40640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDVv0-0003OA-Or for emacs-devel@gnu.org; Sun, 15 Mar 2020 12:15:14 -0400 Original-Received: by mail-oi1-x22c.google.com with SMTP id y71so15087344oia.7 for ; Sun, 15 Mar 2020 09:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bF/8Z2kJkfrlfq5z1vjo/316naM4mLyTNg1ciOgaPTM=; b=FzdvDapCc4cYD4O/QWvcc4BpC0mXmNEUGY2w1zxLR1iZqpi4JNC8YoKuR5h/EERAJs DuXNl8d3NhoIKSPXut/TGxbSMQO2Hvp8Ttn+/an0ne7UKkFrEmoRUZUwzQNqvD70B0Bi rmqlBht0uFnVovEeUusW+9aygpiF/RxvqEuZM500FMNnLorswbcUuxSO+HMdF9n8ZQmL u3u+6du0JPf+q2+h8tbglTSLUSXyHW+UsX2YTCY2dELZ3igh9S6C+H641uwAr4J8NCxI /xVDeM4OGzDKL7+I/SFmAVtccsxhY3N3Z+giGosmJ2AJPymcC6CZgF8gSDYI/7R6iWgs 7dRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bF/8Z2kJkfrlfq5z1vjo/316naM4mLyTNg1ciOgaPTM=; b=pE8vioZnzBx/QDXrChpg2ZKmCzZIhy50XDBusDlxj/WQPvwLcJ7OrKok/0EMsnRvLo pXecMjWbHXOZlfQlY65PuIJxvd4eWxROmDb5DsVsRK2Ld4zWW68nbSFqSUQpsLdW0JFC 01U3Tie94eQlFnugv5btqyXLk5XxykxThEAb8aOvtk8oiWNZ0fFdMruYKm0zp7glAm16 WUQdM3aAxH0nfk83CDwWJ/x65HJomVffzDsLRvXzpnUPYeMvbBx+emA0bISJCFh0Q+Eb 8tfRwmb2SrTVsh/2XlaQyGaRIf0hGLH78oQYNCRGxYhihfOlGhFwnscnhnjnCDrVIAhj uo6A== X-Gm-Message-State: ANhLgQ3+pstYeonUna8zK49ErgHhWDNHTDjb2PevdRZOOhHdmaku9/uq 5hRMtO4ZdGnLpXV+P1RvNaeQ0vXsjb/H28jN2zo2I21L X-Google-Smtp-Source: ADFU+vsWGyjF4nbTt0YU8Uy1PDxRvlDIx82KDehcxblELGjJ6PUQhbmcN2zvIg9Ef5hku85730YYT+x6GnswK6F3+mc= X-Received: by 2002:aca:7517:: with SMTP id q23mr14501564oic.23.1584288913924; Sun, 15 Mar 2020 09:15:13 -0700 (PDT) In-Reply-To: <20200315155658.GB4928@ACM> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245533 Archived-At: On Sun, 15 Mar 2020 at 12:02, Alan Mackenzie 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)))