fix(lib): use unibyte in binary temp buffers

This commit is contained in:
Tim Ruffing 2023-12-21 18:03:18 +01:00 committed by Henrik Lissner
parent 2b54b5732c
commit efe8d476bc

View file

@ -220,7 +220,7 @@ single file or nested compound statement of `and' and `or' statements."
(let* ((buffer-file-name (doom-path ,file)) (let* ((buffer-file-name (doom-path ,file))
(coding-system-for-read (or ,coding 'binary)) (coding-system-for-read (or ,coding 'binary))
(coding-system-for-write (or coding-system-for-write coding-system-for-read 'binary))) (coding-system-for-write (or coding-system-for-write coding-system-for-read 'binary)))
(unless (eq coding-system-for-read 'binary) (when (eq coding-system-for-read 'binary)
(set-buffer-multibyte nil) (set-buffer-multibyte nil)
(setq-local buffer-file-coding-system 'binary)) (setq-local buffer-file-coding-system 'binary))
,@body)) ,@body))