unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Problems with a dynamic binding
Date: Sun, 15 Mar 2020 15:56:58 +0000	[thread overview]
Message-ID: <20200315155658.GB4928@ACM> (raw)

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).



             reply	other threads:[~2020-03-15 15:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-15 15:56 Alan Mackenzie [this message]
2020-03-15 16:14 ` Problems with a dynamic binding Noam Postavsky
2020-03-15 16:33   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200315155658.GB4928@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).