[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variabl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variable to timer |
Date: |
Wed, 19 Jan 2022 18:57:59 -0500 (EST) |
branch: externals/dtache
commit e3a12a9dc86c2f636370694a183e4bfb39088739
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Add connection local variable to timer
This allows users to have different timer settings for different
remote hosts. This is useful for those that work on a remote host a
lot and want to have the timer run more often on that host.
---
dtache.el | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/dtache.el b/dtache.el
index cd67544df4..b533022bd6 100644
--- a/dtache.el
+++ b/dtache.el
@@ -793,17 +793,18 @@ Optionally CONCAT the command return command into a
string."
(defun dtache--session-timer-monitor (session)
"Configure a timer to monitor SESSION activity.
The timer object is configured according to `dtache-timer-configuration'."
- (let* ((timer)
- (callback
- (lambda ()
- (when (dtache--session-deactivated-p session)
- (dtache--session-final-update session)
- (cancel-timer timer)))))
- (setq timer
- (funcall (plist-get dtache-timer-configuration :function)
- (plist-get dtache-timer-configuration :seconds)
- (plist-get dtache-timer-configuration :repeat)
- callback))))
+ (with-connection-local-variables
+ (let* ((timer)
+ (callback
+ (lambda ()
+ (when (dtache--session-deactivated-p session)
+ (dtache--session-final-update session)
+ (cancel-timer timer)))))
+ (setq timer
+ (funcall (plist-get dtache-timer-configuration :function)
+ (plist-get dtache-timer-configuration :seconds)
+ (plist-get dtache-timer-configuration :repeat)
+ callback)))))
(defun dtache--session-filenotify-monitor (session)
"Configure `filenotify' to monitor SESSION activity."
- [elpa] externals/dtache 199c4cffaa 070/158: Update incorrect regexp for dtache-message, (continued)
- [elpa] externals/dtache 199c4cffaa 070/158: Update incorrect regexp for dtache-message, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b2b2b6ecd1 138/158: Fix error in dtache-attach, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 28cb384d96 143/158: Update attach with fallback, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 7ddd1e29ef 146/158: Fix error on remote hosts, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9e0acd552d 150/158: Fix typo in dtache-test-dtach-command test, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b8ab11cda6 091/158: Make sure to set current session in shell command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b1e4ead73e 094/158: Remove start-process advice, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2c4520a3c5 015/158: Add missing variable to tail-mode, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b247ddc6dd 077/158: Rewrite dtache-dtach-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 471a2f57c7 058/158: Update dtache-session-annotation, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variable to timer,
ELPA Syncer <=
- [elpa] externals/dtache 9b7e7ffd2e 086/158: Rename session-type to session-origin, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e8bc20f563 095/158: Fix error in dtache-shell-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c40f0b2203 102/158: Make some public functions private, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9c16dd3751 109/158: Update active to state, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3cc493e6b0 115/158: Add missing dtache-log-mode to detach-dwim, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ebf9b491bd 117/158: Add variable for dtache-shell-command buffer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e9f6794621 129/158: Rename log-directory to directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3969524f23 125/158: Improve dtache session header, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e0a45c055c 133/158: Address error in eshell/shell extension, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 34c7d23346 088/158: Make dtache-eshell compatible with recent changes, ELPA Syncer, 2022/01/19