aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2014-11-25 16:30:36 +0100
committerLars Magne Ingebrigtsen2014-11-25 16:30:36 +0100
commitee4eb2810c4d9e5f4964d99e9ea9d3838f41f3d1 (patch)
tree2cf62215cd7c9bac1c82d5039f79ca9a6c459169
parent88871ef6112df666bdd334596b1ed420cc87ebaa (diff)
downloademacs-ee4eb2810c4d9e5f4964d99e9ea9d3838f41f3d1.tar.gz
emacs-ee4eb2810c4d9e5f4964d99e9ea9d3838f41f3d1.zip
Fix previous version of nsm-warnings-ok-p
* net/nsm.el (nsm-format-certificate): Don't bug out on missing elements. (nsm-warnings-ok-p): The new version of this function always returned nil when everything was OK.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/net/nsm.el9
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bd2199131f3..7fb12913441 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * net/nsm.el (nsm-format-certificate): Don't bug out on missing 3 * net/nsm.el (nsm-format-certificate): Don't bug out on missing
4 elements. 4 elements.
5 (nsm-warnings-ok-p): The new version of this function always
6 returned nil when everything was OK.
5 7
62014-11-25 Teodor Zlatanov <tzz@lifelogs.com> 82014-11-25 Teodor Zlatanov <tzz@lifelogs.com>
7 9
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el
index daf4bf5dc64..c5e048a7272 100644
--- a/lisp/net/nsm.el
+++ b/lisp/net/nsm.el
@@ -342,9 +342,12 @@ unencrypted."
342 result)) 342 result))
343 343
344(defun nsm-warnings-ok-p (status settings) 344(defun nsm-warnings-ok-p (status settings)
345 (null (cl-intersection 345 (let ((ok t)
346 (plist-get settings :conditions) 346 (conditions (plist-get settings :conditions)))
347 (plist-get status :warnings)))) 347 (dolist (warning (plist-get status :warnings))
348 (unless (memq warning conditions)
349 (setq ok nil)))
350 ok))
348 351
349(defun nsm-remove-permanent-setting (id) 352(defun nsm-remove-permanent-setting (id)
350 (setq nsm-permanent-host-settings 353 (setq nsm-permanent-host-settings