branch: externals/diff-hl
commit a45d2650f7e8faf899edd7d0ef0a0f8abb13250c
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    Fix Emacs < 28 compat
---
 diff-hl.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index 99c79718d7..0f73c5883b 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -421,7 +421,10 @@ It can be a relative expression as well, such as \"HEAD^\" 
with Git, or
                                               default-directory)))
       ;; TODO: debounce if a thread is already running.
       (let ((buf (current-buffer))
-            (temp-buffer (generate-new-buffer " *temp*" t)))
+            (temp-buffer
+             (if (< emacs-major-version 28)
+                 (generate-new-buffer " *temp*")
+               (generate-new-buffer " *temp*" t))))
         ;; Switch buffer temporarily, to "unlock" it for other threads.
         (with-current-buffer temp-buffer
           (make-thread

Reply via email to