From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#52554: 28.0.90; mm-inline-media-tests customization breaks .emacs reading Date: Fri, 17 Dec 2021 09:45:17 +0100 Message-ID: <87ee6boc0y.fsf@gmail.com> References: <87r1aco9xm.fsf@gmail.com> <8335msh8j0.fsf@gnu.org> <874k78o7cu.fsf@igel.home> <83tuf8fpw4.fsf@gnu.org> <87ilvnod0r.fsf@gmail.com> <83mtkzeisq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52554@debbugs.gnu.org, schwab@linux-m68k.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 17 09:46:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1my8sZ-00033N-Pr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Dec 2021 09:46:15 +0100 Original-Received: from localhost ([::1]:54894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my8sY-0007pE-BT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Dec 2021 03:46:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my8sQ-0007nW-BC for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 03:46:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1my8sL-0005UC-PV for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 03:46:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1my8sL-0001yC-Lv for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 03:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Dec 2021 08:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52554 X-GNU-PR-Package: emacs Original-Received: via spool by 52554-submit@debbugs.gnu.org id=B52554.16397307267516 (code B ref 52554); Fri, 17 Dec 2021 08:46:01 +0000 Original-Received: (at 52554) by debbugs.gnu.org; 17 Dec 2021 08:45:26 +0000 Original-Received: from localhost ([127.0.0.1]:37916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my8rl-0001xA-Ka for submit@debbugs.gnu.org; Fri, 17 Dec 2021 03:45:25 -0500 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:35755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my8rk-0001wv-5d for 52554@debbugs.gnu.org; Fri, 17 Dec 2021 03:45:24 -0500 Original-Received: by mail-wr1-f42.google.com with SMTP id j18so2666874wrd.2 for <52554@debbugs.gnu.org>; Fri, 17 Dec 2021 00:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=8CPcBtXvWLb++BXfHxPiWWfQnv/cbEFpW++4PPN+dWo=; b=QRduYI4wCvYGCY7B8oyZBp6yWQBLxeTwXg3DAXfoprVC1HFBRJ0h454HMgshgYs69h D3+rLsvF3TdKb8/wa4RJScfMJ4L/iLvtwpybu0asXnBS/Cee0szD9DvuDBy506SRs1vs iqtxtvT4z0UhZ/agAu99tYIJzJOqUL7vlN1qHDiCbtd1pgAEkGOHkmT+gpfliE4Tf2IB M7DuIouHvC/dlaZwX79QzDRBCggFlrA8ZNMbLdUL5/dsLewA9AI5hCLabQBphANBWVh3 BbawBsv1VTQ6kw2uy/3cVuNjvbNqI5aa4MTID4r1QMfrYrTrJIu392gGL1nu2KjPOCnU crQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=8CPcBtXvWLb++BXfHxPiWWfQnv/cbEFpW++4PPN+dWo=; b=cwpmJ3q5slpKqnio/DWc9FaggvO4WCXWoqtfPJ+wTewqNUazmdOeCIeRxjgMxjR/6f 9ZPGvr5OO/Wue7G1gnGndZrWcAl34RmTk5QPDq29jX0vX2ztdHp/pXeHxPSLmV4twTfv cvCTLtgGFtJvwwSzwaxLiDFflJtqKH4OZvs2uJ25i5qkLaBi5zbu/es5wisdYBcIp/he +clBJvMxFcxd6d9Nszq2q0AsFX8+BLgohMi/H7I+6oaMaf5rrQSB1MiIv2prvnhIGwtw YmGKC0fH09bUbOgZV5D1NdXG5Q/tnfKJAzfLRLXobkIMwY5/SWI/xH6oFhptT9tasPEa okPw== X-Gm-Message-State: AOAM5316ebE6vpHoFmcNKa9KX9DzroAJhSmCF2sTcCzBOFJvPHcAwfNn inaL9hjQyQV7jP7YrnETCyrkyq2q0Q8= X-Google-Smtp-Source: ABdhPJweEbJMvXiGr2Y7QBLAQeSfIJ9LjML2ATuzxngYobedBZsOIFNihVeHxIF2BauqAo5t9SrC4A== X-Received: by 2002:a05:6000:1885:: with SMTP id a5mr1576599wri.258.1639730717981; Fri, 17 Dec 2021 00:45:17 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:1fc1:44e6:9dcd:a0a2]) by smtp.gmail.com with ESMTPSA id 10sm8536020wrb.75.2021.12.17.00.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 00:45:17 -0800 (PST) In-Reply-To: <83mtkzeisq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Dec 2021 10:29:09 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222556 Archived-At: >>>>> On Fri, 17 Dec 2021 10:29:09 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: Andreas Schwab , 52554@debbugs.gnu.org >> Date: Fri, 17 Dec 2021 09:23:48 +0100 >>=20 >> >> I'd rather think that custom-save-variable should bind >> >> print-escape-control-characters to t. >>=20 Eli> Maybe we should do both? >>=20 >> In `custom-save-all' perhaps? There are many code paths for saving >> customizations, they don=CA=BCt all go via `custom-save-variable'. Eli> If they all go through custom-save-all, then I think it should be = done Eli> there, yes. OK, I=CA=BCll run with the following for a while, and see if anything crops up. diff --git c/lisp/cus-edit.el i/lisp/cus-edit.el index 5c4448ae71..1936733098 100644 --- c/lisp/cus-edit.el +++ i/lisp/cus-edit.el @@ -4723,7 +4723,10 @@ custom-save-all (delay-mode-hooks (emacs-lisp-mode))) (let ((inhibit-read-only t) (print-length nil) - (print-level nil)) + (print-level nil) + ;; We might be saving byte-code with embedded NULs, which can + ;; cause problems when read back (Bug#52554). + (print-escape-control-characters t)) (atomic-change-group (custom-save-variables) (custom-save-faces))) diff --git c/lisp/startup.el i/lisp/startup.el index 505d7b83f4..f8db46ff3f 100644 --- c/lisp/startup.el +++ i/lisp/startup.el @@ -964,7 +964,11 @@ startup--load-user-init-file (debug-on-error-initial (if (eq init-file-debug t) 'startup - init-file-debug))) + init-file-debug)) + ;; The init file might contain byte-code with embedded NULs, + ;; which can cause problems when read back, so disable null + ;; byte detection (Bug#52554). + (inhibit-null-byte-detection t)) (let ((debug-on-error debug-on-error-initial)) (condition-case-unless-debug error (when init-file-user Robert --=20