[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f77237c 12/76: (enwc-format-mode-line-string): Checks to c
From: |
Ian Dunn |
Subject: |
[elpa] master f77237c 12/76: (enwc-format-mode-line-string): Checks to confirm that scan data exists. |
Date: |
Thu, 23 Feb 2017 19:42:45 -0500 (EST) |
branch: master
commit f77237c65f6e466f45f0319ef9ae2c3d2d70d619
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
(enwc-format-mode-line-string): Checks to confirm that scan data exists.
---
lisp/enwc.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lisp/enwc.el b/lisp/enwc.el
index 872e70a..6b94115 100644
--- a/lisp/enwc.el
+++ b/lisp/enwc.el
@@ -465,7 +465,8 @@ See the documentation for it for more details."
((eq (elt f (1- p)) ?s)
(cond
((enwc-is-wired-p) "100")
- ((not (enwc-is-valid-nw-id cur-id)) "0")
+ ((or (not (enwc-is-valid-nw-id cur-id))
+ (not enwc-last-scan))"0")
((enwc-check-connecting-p) "*")
(t (number-to-string
(cdr (assoc "quality" (nth cur-id enwc-last-scan)))))))
@@ -473,13 +474,15 @@ See the documentation for it for more details."
(cond
((enwc-is-wired-p) "Wired")
((or (not (enwc-is-valid-nw-id cur-id))
- (enwc-check-connecting-p)) "None")
+ (enwc-check-connecting-p)
+ (not enwc-last-scan)) "None")
(t (cdr (assoc "essid" (nth cur-id enwc-last-scan))))))
((eq (elt f (1- p)) ?b)
(cond
((enwc-is-wired-p) "wired")
((or (not (enwc-is-valid-nw-id cur-id))
- (enwc-check-connecting-p)) "none")
+ (enwc-check-connecting-p)
+ (not enwc-last-scan)) "none")
(t (cdr (assoc "bssid" (nth cur-id enwc-last-scan))))))
((eq (elt f (1- p)) ?%) "%"))))))
fin-str))
- [elpa] master 4a3acfc 07/76: * enwc.el (enwc-enable-display-mode-line, enwc-disable-display-mode-line, enwc-toggle-display-mode-line): Broke enable/disable mode line functionality into different functions., (continued)
- [elpa] master 4a3acfc 07/76: * enwc.el (enwc-enable-display-mode-line, enwc-disable-display-mode-line, enwc-toggle-display-mode-line): Broke enable/disable mode line functionality into different functions., Ian Dunn, 2017/02/23
- [elpa] master d091e21 16/76: (enwc-get-profile-sec-info): Removed., Ian Dunn, 2017/02/23
- [elpa] master 20afe01 22/76: (enwc-wicd-save-nw-settings): Updated to work with new interface., Ian Dunn, 2017/02/23
- [elpa] master ca50c21 21/76: (enwc--int-to-byte-list, enwc--byte-list-to-int, enwc--htonl): Added to assist with D-Bus conversion., Ian Dunn, 2017/02/23
- [elpa] master e5c36d3 26/76: (enwc-nm-details-list): Removed., Ian Dunn, 2017/02/23
- [elpa] master 421b0d9 35/76: (enwc-wicd-setup): Renamed to `enwc-wicd-load'., Ian Dunn, 2017/02/23
- [elpa] master 7a3c057 03/76: Added support for toggling the mode line display., Ian Dunn, 2017/02/23
- [elpa] master b5e612f 04/76: * enwc.el (enwc-display-networks, enwc-maybe-pretty-entry): Added support for colorizing the current network., Ian Dunn, 2017/02/23
- [elpa] master 89f9418 08/76: enwc.el (enwc-display-wireless-networks): Removed old comment., Ian Dunn, 2017/02/23
- [elpa] master d6aa3ee 02/76: Fixed up enwc-wicd network properties., Ian Dunn, 2017/02/23
- [elpa] master f77237c 12/76: (enwc-format-mode-line-string): Checks to confirm that scan data exists.,
Ian Dunn <=
- [elpa] master 3662795 23/76: (enwc-cm-scan, enwc-cm-dict-assoc, enwc-cm-get-network-props): Cleaned up code., Ian Dunn, 2017/02/23
- [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