From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Problems with a dynamic binding Date: Sun, 15 Mar 2020 15:56:58 +0000 Message-ID: <20200315155658.GB4928@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="60125"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 15 17:04:52 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 1jDVky-000FXL-Dn for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 17:04:52 +0100 Original-Received: from localhost ([::1]:55516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDVkw-00065n-9Z for ged-emacs-devel@m.gmane-mx.org; Sun, 15 Mar 2020 12:04:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34925) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDVdP-00023r-6Y for emacs-devel@gnu.org; Sun, 15 Mar 2020 11:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDVdO-00074k-6s for emacs-devel@gnu.org; Sun, 15 Mar 2020 11:57:03 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:61487 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1jDVdN-0006qG-SY for emacs-devel@gnu.org; Sun, 15 Mar 2020 11:57:02 -0400 Original-Received: (qmail 65390 invoked by uid 3782); 15 Mar 2020 15:56:59 -0000 Original-Received: from acm.muc.de (p2E5D5251.dip0.t-ipconnect.de [46.93.82.81]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 15 Mar 2020 16:56:58 +0100 Original-Received: (qmail 11032 invoked by uid 1000); 15 Mar 2020 15:56:58 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:245532 Archived-At: Hello, Emacs. I'm going crazy! In emacs -Q (whether emacs-27 or master), put the following into *scratch*: (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 " . As far as I can tell, the dynamic binding of p-e-c-c is being correctly made. If I do (setq print-escape-control-characters t) , followed by executing the `let' form, I get the expected string with octal escapes. It is as though the print routine is ignoring the dynamic binding entirely. Help! Am I doing something blaringly obviously wrong, that everybody but me can see right away? Thanks! -- Alan Mackenzie (Nuremberg, Germany).