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

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

[elpa] externals/dtache 89df9371db 145/158: Use timer only on local macO


From: ELPA Syncer
Subject: [elpa] externals/dtache 89df9371db 145/158: Use timer only on local macOS host
Date: Wed, 19 Jan 2022 18:58:08 -0500 (EST)

branch: externals/dtache
commit 89df9371db66ccc2b85acf646f12cf0413be0030
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Use timer only on local macOS host
---
 CHANELOG.org | 2 ++
 dtache.el    | 7 +++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CHANELOG.org b/CHANELOG.org
index 28e94a5138..6829cf3f88 100644
--- a/CHANELOG.org
+++ b/CHANELOG.org
@@ -4,6 +4,8 @@
 
 * Development
 
+- =dtache= now uses =filenotify= for notifications except on local macOS hosts.
+
 * Version 0.3 (2022-01-15)
 
 - =dtache= now uses =filenotify= for both local and remote sessions. If run on 
=macOS= timers are used both for local as well as remote sessions.
diff --git a/dtache.el b/dtache.el
index 06739b390b..611e0d2e8a 100644
--- a/dtache.el
+++ b/dtache.el
@@ -1114,11 +1114,10 @@ the current time is used."
 (defun dtache--start-session-monitor (session)
   "Start to monitor SESSION activity."
   (let ((default-directory (dtache--session-working-directory session)))
-    (if (eq system-type 'darwin)
+    (if (and (not(file-remote-p default-directory))
+             (eq system-type 'darwin))
         ;; macOS requires a timer based solution
-        (if (file-remote-p default-directory)
-            (dtache--session-timer-monitor session)
-          (dtache--session-macos-monitor session))
+        (dtache--session-macos-monitor session)
       (dtache--session-filenotify-monitor session))))
 
 ;;;;; UI



reply via email to

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