]> git.eshelyaron.com Git - emacs.git/commitdiff
Jesper Harder <harder@ifa.au.dk>
authorGlenn Morris <rgm@gnu.org>
Sun, 18 Jan 2004 14:11:11 +0000 (14:11 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 18 Jan 2004 14:11:11 +0000 (14:11 +0000)
(smtpmail-send-data): Don't append spurious newline.

lisp/ChangeLog
lisp/mail/smtpmail.el

index 5b41992d11cd25feb47a08f18f16817cb385fc43..f3ca6a6364d5e776fd255a2434d9b4011902a512 100644 (file)
@@ -1,3 +1,13 @@
+2004-01-18  Jesper Harder  <harder@ifa.au.dk>
+
+       * mail/smtpmail.el (smtpmail-send-data): Don't append spurious
+        newline.
+
+2004-01-18   David Ponce  <david@dponce.com>  (tiny change)
+
+       * progmodes/which-func.el (which-function-mode): Don't cancel
+        which-func-update-timer if not set.
+
 2004-01-17  Thien-Thi Nguyen  <ttn@gnu.org>
 
        * calendar/diary-lib.el (diary-entry-time): Fix typo/bug:
index c9bfce7f4007422137e8ebbf4575a5e46b524051..39886ad343d418a611e89a43bb9c3effdefae243 100644 (file)
@@ -858,31 +858,15 @@ This is relative to `smtpmail-queue-dir'.")
   )
 
 (defun smtpmail-send-data (process buffer)
-  (let
-      ((data-continue t)
-       (sending-data nil)
-       this-line
-       this-line-end)
-
+  (let ((data-continue t) sending-data)
     (with-current-buffer buffer
       (goto-char (point-min)))
-
     (while data-continue
       (with-current-buffer buffer
-       (beginning-of-line)
-       (setq this-line (point))
-       (end-of-line)
-       (setq this-line-end (point))
-       (setq sending-data nil)
-       (setq sending-data (buffer-substring this-line this-line-end))
-       (if (/= (forward-line 1) 0)
-           (setq data-continue nil)))
-
-      (smtpmail-send-data-1 process sending-data)
-      )
-    )
-  )
-
+        (setq sending-data (buffer-substring (point-at-bol) (point-at-eol)))
+       (end-of-line 2)
+        (setq data-continue (not (eobp))))
+      (smtpmail-send-data-1 process sending-data))))
 
 (defun smtpmail-deduce-address-list (smtpmail-text-buffer header-start header-end)
   "Get address list suitable for smtp RCPT TO: <address>."