branch: master commit 5f898c99570feffe8b5d31674282e4332b4ccf23 Author: Ian Dunn <du...@gnu.org> Commit: Ian Dunn <du...@gnu.org>
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 ;; ;;;;;;;;;;;;;;;;;;;