]> git.eshelyaron.com Git - emacs.git/commitdiff
(smtpmail-open-stream): Use with-no-warnings.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 13:49:09 +0000 (13:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 May 2005 13:49:09 +0000 (13:49 +0000)
(smtpmail-send-queued-mail): Avoid beginning-of-buffer.
(starttls-extra-args, starttls-extra-arguments): Add defvars.

lisp/mail/smtpmail.el

index 3cf17f8968dda8609f4a91a51a0ffeb9a020148b..931e1417a2dcb73179c1db9e3a818a2b7dc9f315 100644 (file)
@@ -396,7 +396,7 @@ This is relative to `smtpmail-queue-dir'.")
     ;;; mail, send it, etc...
     (let ((file-msg ""))
       (insert-file-contents smtpmail-queue-index)
-      (beginning-of-buffer)
+      (goto-char (point-min))
       (while (not (eobp))
        (setq file-msg (buffer-substring (point) (line-end-position)))
        (load file-msg)
@@ -465,11 +465,14 @@ This is relative to `smtpmail-queue-dir'.")
        (push el2 result)))
     (nreverse result)))
 
+(defvar starttls-extra-args)
+(defvar starttls-extra-arguments)
+
 (defun smtpmail-open-stream (process-buffer host port)
   (let ((cred (smtpmail-find-credentials
               smtpmail-starttls-credentials host port)))
     (if (null (and cred (condition-case ()
-                           (progn
+                           (with-no-warnings
                              (require 'starttls)
                              (call-process (if starttls-use-gnutls
                                                starttls-gnutls-program