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

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

[elpa] externals/diff-hl 11f3113e79: Only try /dev/shm/ on GNU/Linux


From: ELPA Syncer
Subject: [elpa] externals/diff-hl 11f3113e79: Only try /dev/shm/ on GNU/Linux
Date: Sun, 5 May 2024 18:57:51 -0400 (EDT)

branch: externals/diff-hl
commit 11f3113e790526d5ee00f61f8e7cd0d01e323b2e
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    Only try /dev/shm/ on GNU/Linux
    
    Resolves #219
---
 diff-hl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index 88e0e209db..9ef52af49b 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -1098,7 +1098,7 @@ CONTEXT-LINES is the size of the unified diff context, 
defaults to 0."
     (let* ((dest-buffer (or dest-buffer 
"*diff-hl-diff-buffer-with-reference*"))
            (backend (or backend (vc-backend file)))
            (temporary-file-directory
-            (if (file-directory-p "/dev/shm/")
+            (if (and (eq system-type 'gnu/linux) (file-directory-p 
"/dev/shm/"))
                 "/dev/shm/"
               temporary-file-directory))
            (rev



reply via email to

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