]> git.eshelyaron.com Git - emacs.git/commit
Guard against custom entries that can contain NULs
authorRobert Pluim <rpluim@gmail.com>
Sat, 26 Feb 2022 10:46:32 +0000 (11:46 +0100)
committerRobert Pluim <rpluim@gmail.com>
Wed, 16 Mar 2022 17:58:49 +0000 (18:58 +0100)
commita86205b060b01ab000e439091ed40c8ca8b68b73
tree038c53c23a078f06f2f014e77cc50e40f5558887
parentfa8c93ad9a6ccd210324951d999adab3766bdf63
Guard against custom entries that can contain NULs

There are custom entries that contain lambda's as values by default,
which can result in them containing embedded NULs after
byte-compilation, which wreaks havoc when they are saved to .emacs and
later read in.  (Bug#52554)

* lisp/cus-edit.el (custom-save-all): Bind
print-escape-control-characters to t.
* lisp/startup.el (startup--load-user-init-file): Bind
inhibit-null-byte-detection to t.
lisp/cus-edit.el
lisp/startup.el