[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ec0539b 42/76: Fixed enwc-setup to be able to be called mo
From: |
Ian Dunn |
Subject: |
[elpa] master ec0539b 42/76: Fixed enwc-setup to be able to be called more than once. |
Date: |
Thu, 23 Feb 2017 19:42:50 -0500 (EST) |
branch: master
commit ec0539b41189a124582a1ce7ee0159f994856042
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Fixed enwc-setup to be able to be called more than once.
* enwc.el (enwc-mode-line-timer): Create new variable to track mode-line
timer.
* enwc-setup.el (enwc-setup): Use cl-pushnew instead of append to add to
global-mode-string.
Use new variable for timer.
---
lisp/enwc-setup.el | 7 +++----
lisp/enwc.el | 2 ++
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/enwc-setup.el b/lisp/enwc-setup.el
index c0e3ac2..014cb74 100644
--- a/lisp/enwc-setup.el
+++ b/lisp/enwc-setup.el
@@ -97,10 +97,9 @@
"Sets up ENWC.
This setups ENWC and confirms that one of the backends can be found
on D-Bus."
- (setq global-mode-string (append global-mode-string
- '(enwc-display-string)))
- (run-at-time t 1 'enwc-update-mode-line)
-
+ (cl-pushnew 'enwc-display-string global-mode-string :test #'equal)
+ (unless enwc-mode-line-timer
+ (setq enwc-mode-line-timer (run-at-time t 1 'enwc-update-mode-line)))
(let ((cur-back nil)
(back-list enwc-backends))
(while (and back-list (not cur-back))
diff --git a/lisp/enwc.el b/lisp/enwc.el
index 83aa6d6..5308e2b 100644
--- a/lisp/enwc.el
+++ b/lisp/enwc.el
@@ -233,6 +233,8 @@ whether or not ENWC is in wired mode.")
(defvar enwc-scan-interactive nil)
+(defvar enwc-mode-line-timer nil)
+
(make-local-variable 'enwc-edit-id)
;; The Fonts
- [elpa] master 01075fa 28/76: Fixed up docstrings., (continued)
- [elpa] master 01075fa 28/76: Fixed up docstrings., Ian Dunn, 2017/02/23
- [elpa] master 11443eb 34/76: enwc-setup.el: Fixed up header and footer., Ian Dunn, 2017/02/23
- [elpa] master 561f9e1 27/76: (enwc-wicd-get-profile-info, enwc-wicd-get-profile-sec-info): Improved docstring., Ian Dunn, 2017/02/23
- [elpa] master cb32122 13/76: (enwc-nm-prop-to-prop, enwc-wicd-prop-to-prop): Convert the properties used internally to the property names used externally., Ian Dunn, 2017/02/23
- [elpa] master d6bee52 32/76: (enwc-wicd.el): Fixed opening header., Ian Dunn, 2017/02/23
- [elpa] master 5088938 40/76: Removed erroneous comment., Ian Dunn, 2017/02/23
- [elpa] master 17f27c6 18/76: (enwc-nm-prop-to-prop, enwc-nm-get-sec-types): Removed., Ian Dunn, 2017/02/23
- [elpa] master ee90297 31/76: (enwc-nm.el): Fixed several docstrings, and file header., Ian Dunn, 2017/02/23
- [elpa] master 4e0d5a2 41/76: Cosmetic changes., Ian Dunn, 2017/02/23
- [elpa] master 8f21449 45/76: Removed tag 2.0, Ian Dunn, 2017/02/23
- [elpa] master ec0539b 42/76: Fixed enwc-setup to be able to be called more than once.,
Ian Dunn <=
- [elpa] master 5c63470 48/76: Fixed autoloads generation and added hgignore., Ian Dunn, 2017/02/23
- [elpa] master 43c98da 50/76: Changed enwc-last-scan to a hashtable., Ian Dunn, 2017/02/23
- [elpa] master c6585bb 47/76: Added autoloads, Ian Dunn, 2017/02/23
- [elpa] master 48e7aa4 55/76: Updated Makefile, Ian Dunn, 2017/02/23
- [elpa] master 2e07c3a 54/76: Began work on WPA backend. EXPERIMENTAL!, Ian Dunn, 2017/02/23
- [elpa] master ba6061b 51/76: Created more robust backend system., Ian Dunn, 2017/02/23
- [elpa] master ad38333 59/76: Cleaned up enwc-refresh-widths and changed enwc-details-list to enwc-column-specs., Ian Dunn, 2017/02/23
- [elpa] master a46fe3c 64/76: Don't switch to the ENWC buffer when processing a scan., Ian Dunn, 2017/02/23
- [elpa] master 33515f8 66/76: Silenced byte-compiler., Ian Dunn, 2017/02/23
- [elpa] master bcb33e6 30/76: (enwc-get-networks): Improved docstring., Ian Dunn, 2017/02/23