emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/why-this b3a7f874b8 53/59: Don't error on binary files


From: ELPA Syncer
Subject: [nongnu] elpa/why-this b3a7f874b8 53/59: Don't error on binary files
Date: Sun, 27 Nov 2022 16:02:54 -0500 (EST)

branch: elpa/why-this
commit b3a7f874b808ab02220b54f4bee7bb59dcb2fae1
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]