mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
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.
This commit is contained in:
parent
88871ef611
commit
ee4eb2810c
@ -2,6 +2,8 @@
|
||||
|
||||
* 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.
|
||||
|
||||
2014-11-25 Teodor Zlatanov <tzz@lifelogs.com>
|
||||
|
||||
|
@ -342,9 +342,12 @@ unencrypted."
|
||||
result))
|
||||
|
||||
(defun nsm-warnings-ok-p (status settings)
|
||||
(null (cl-intersection
|
||||
(plist-get settings :conditions)
|
||||
(plist-get status :warnings))))
|
||||
(let ((ok t)
|
||||
(conditions (plist-get settings :conditions)))
|
||||
(dolist (warning (plist-get status :warnings))
|
||||
(unless (memq warning conditions)
|
||||
(setq ok nil)))
|
||||
ok))
|
||||
|
||||
(defun nsm-remove-permanent-setting (id)
|
||||
(setq nsm-permanent-host-settings
|
||||
|
Loading…
Reference in New Issue
Block a user