]> code.delx.au - gnu-emacs/commitdiff
Make the nsm query say what it did after the user interaction
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2016 06:48:44 +0000 (17:48 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 6 Feb 2016 03:08:26 +0000 (14:08 +1100)
* lisp/net/nsm.el (nsm-query): Issue a message about
aborting/accepting messages (suggested by N. Jackson)
(bug#22531).

lisp/net/nsm.el

index d93b1bb14dbd79f627651896daa84006beded2f2..72bff66c381a2e6dab24f3c0d3fcf7a7665568e8 100644 (file)
@@ -307,7 +307,13 @@ unencrypted."
             (quit 'no)
             (error 'no))))
       (if (eq response 'no)
-         nil
+          (progn
+            (message "Aborting connection to %s:%s" host port)
+            nil)
+        (message (if (eq response 'session)
+                     "Accepting certificate for %s:%s this session only"
+                   "Permanently accepting certificate for %s:%s")
+                 host port)
        (nsm-save-host host port status what response)
        t))))