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

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

[elpa] master 5f898c9 3/7: Created auto scan reset function


From: Ian Dunn
Subject: [elpa] master 5f898c9 3/7: Created auto scan reset function
Date: Sat, 4 Mar 2017 11:10:24 -0500 (EST)

branch: master
commit 5f898c99570feffe8b5d31674282e4332b4ccf23
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>

    Created auto scan reset function
    
    * enwc.el (enwc-restart-auto-scan): New function.
      (enwc-auto-scan-interval): Mention it.
---
 enwc.el | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/enwc.el b/enwc.el
index 8d85789..aefc290 100644
--- a/enwc.el
+++ b/enwc.el
@@ -94,7 +94,10 @@ networks every `enwc-auto-scan-interval' seconds."
   :type 'boolean)
 
 (defcustom enwc-auto-scan-interval 20
-  "The interval between automatic scans."
+  "The interval between automatic scans.
+
+To make any changes to this variable take effect, use
+`enwc-restart-auto-scan'."
   :group 'enwc
   :type 'integer)
 
@@ -399,6 +402,12 @@ This will use the current value of 
`enwc-auto-scan-interval'."
       (enwc-disable-auto-scan)
     (enwc-enable-auto-scan)))
 
+(defun enwc-restart-auto-scan ()
+  "Restart automatic scanning."
+  (interactive)
+  (enwc-disable-auto-scan)
+  (enwc-enable-auto-scan))
+
 ;;;;;;;;;;;;;;;;;;;
 ;; Scan internal ;;
 ;;;;;;;;;;;;;;;;;;;



reply via email to

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