Subject: bug#52554: 28.0.90; mm-inline-media-tests customization breaks .emacs reading

From: Robert Pluim <[email-masked]>
Date: Fri, 17 Dec 2021 09:23:48 +0100

>>>>> On Thu, 16 Dec 2021 18:58:19 +0200, Eli Zaretskii <[email-masked]> said:

    >> From: Andreas Schwab <[email-masked]>
    >> Cc: Robert Pluim <[email-masked]>,  [email-masked]
    >> Date: Thu, 16 Dec 2021 17:13:53 +0100
    >> 
    >> On Dez 16 2021, Eli Zaretskii wrote:
    >> 
    >> >> $ HOME=/tmp emacs --debug-init
    >> >> 
    >> >> Debugger entered--Lisp error: (invalid-read-syntax "?" 1 0)
    >> >>   read(#<buffer  *load*>)
    >> >>   eval-buffer(#<buffer  *load*> nil "/tmp/.emacs" nil t)  ; Reading at buffer position 573
    >> >>   load-with-code-conversion("/tmp/.emacs" "/tmp/.emacs" t t)
    >> >>   load("~/.emacs" noerror nomessage)
    >> >
    >> > Perhaps we should bind inhibit-null-byte-detection to a non-nil value
    >> > while loading the init file?
    >> 
    >> I'd rather think that custom-save-variable should bind
    >> print-escape-control-characters to t.

    Eli> Maybe we should do both?

In `custom-save-all' perhaps? There are many code paths for saving
customizations, they donʼt all go via `custom-save-variable'.

Robert
--