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

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

[nongnu] elpa/with-simulated-input 6c2e0ece2d 084/134: Use #' for advice


From: ELPA Syncer
Subject: [nongnu] elpa/with-simulated-input 6c2e0ece2d 084/134: Use #' for advice-add/-remove
Date: Mon, 10 Jan 2022 23:00:07 -0500 (EST)

branch: elpa/with-simulated-input
commit 6c2e0ece2d497f92bae187d8bc2d20044a2d792d
Author: Nikita Bloshchanevich <nikblos@outlook.com>
Commit: Ryan C. Thompson <rct@thompsonclan.org>

    Use #' for advice-add/-remove
---
 with-simulated-input.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/with-simulated-input.el b/with-simulated-input.el
index 73a01245ed..065359622a 100644
--- a/with-simulated-input.el
+++ b/with-simulated-input.el
@@ -277,7 +277,8 @@ simulated idle time to be returned instead of the real 
value."
       (when (time-less-p (seconds-to-time 0) wsi-simulated-idle-time)
         wsi-simulated-idle-time)
     (apply orig-fun args)))
-(advice-add 'current-idle-time :around 'current-idle-time@simulate-idle-time)
+(advice-add 'current-idle-time
+            :around #'current-idle-time@simulate-idle-time)
 
 (cl-defun wsi-simulate-idle-time (&optional secs actually-wait)
   "Run all idle timers with delay less than SECS.
@@ -347,7 +348,8 @@ add other idle timers."
 
 (defun with-simulated-input-unload-function ()
   "Unload the `with-simulated-input' library."
-  (advice-remove 'current-idle-time 'current-idle-time@simulate-idle-time))
+  (advice-remove 'current-idle-time
+                 #'current-idle-time@simulate-idle-time))
 
 (provide 'with-simulated-input)
 



reply via email to

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