(starttls-any-program-available): Rewritten so it doesn't require
authorTeodor Zlatanov <tzz@lifelogs.com>
Tue, 4 Nov 2008 16:49:42 +0000 (16:49 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Tue, 4 Nov 2008 16:49:42 +0000 (16:49 +0000)
itself and to remove `with-no-warnings'.

lisp/ChangeLog
lisp/starttls.el

index 5acaa2d..f9e2137 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-04  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * starttls.el (starttls-any-program-available): Rewritten so it doesn't
+       require itself and to remove `with-no-warnings'.
+
 2008-11-03  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * starttls.el (starttls-any-program-available): Get the name of the
index d47daff..03d8522 100644 (file)
@@ -301,12 +301,11 @@ GNUTLS requires a port number."
                     starttls-gnutls-program
                   starttls-program)))
     (condition-case ()
-       (with-no-warnings
-         (require 'starttls)
+       (progn
          (call-process program)
          program)
       (error (progn
-              (message "No STARTTLS program was available (tried '%s')" 
+              (message "No STARTTLS program was available (tried '%s')"
                        program)
               nil)))))