branch: elpa/why-this commit b3a7f874b808ab02220b54f4bee7bb59dcb2fae1 Author: Akib Azmain Turja <a...@disroot.org> Commit: Akib Azmain Turja <a...@disroot.org>
Don't error on binary files --- why-this.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/why-this.el b/why-this.el index e5c437225f..709e2e5af2 100644 --- a/why-this.el +++ b/why-this.el @@ -723,7 +723,9 @@ Do CMD with ARGS." (let* ((blame (let ((temp-file (make-temp-file "why-this-git-"))) (let ((text (buffer-substring-no-properties - (point-min) (point-max)))) + (point-min) (point-max))) + (coding-system-for-write + buffer-file-coding-system)) (with-temp-file temp-file (insert text))) (unwind-protect