mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(lib): use unibyte in binary temp buffers
This commit is contained in:
committed by
Henrik Lissner
parent
2b54b5732c
commit
efe8d476bc
@ -220,7 +220,7 @@ single file or nested compound statement of `and' and `or' statements."
|
||||
(let* ((buffer-file-name (doom-path ,file))
|
||||
(coding-system-for-read (or ,coding '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)
|
||||
(setq-local buffer-file-coding-system 'binary))
|
||||
,@body))
|
||||
|
Reference in New Issue
Block a user