Synch to No Gnus 200407121119.
authoryamaoka <yamaoka>
Mon, 12 Jul 2004 11:19:52 +0000 (11:19 +0000)
committeryamaoka <yamaoka>
Mon, 12 Jul 2004 11:19:52 +0000 (11:19 +0000)
lisp/ChangeLog
lisp/rfc2047.el

index 1cfbc35..d629dc5 100644 (file)
@@ -1,4 +1,8 @@
 2004-07-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * rfc2047.el (rfc2047-encode-region): Fix last change.
+
+2004-07-12  Katsumi Yamaoka  <yamaoka@jpl.org>
        From David Hedbor <dhedbor@real.com>.
 
        * nnmail.el (nnmail-split-lowercase-expanded): New user option.
index bcbf9ae..81a3699 100644 (file)
@@ -380,23 +380,22 @@ Dynamically bind `rfc2047-encoding-type' to change that."
                    (when (looking-at "[\000-\177]+")
                      (setq begin (point)
                            end (match-end 0))
-                     (if (progn
-                           (while (and (re-search-forward "[ \t\n]\\|\\Sw"
-                                                          end 'move)
-                                       (eq ?\\ (char-syntax (char-before))))
-                             ;; Skip backslash-quoted characters.
-                             (forward-char))
-                           (< (point) end))
-                         (progn
-                           (setq end (match-beginning 0))
-                           (if rfc2047-encode-encoded-words
-                               (progn
-                                 (goto-char begin)
-                                 (when (search-forward "=?" end 'move)
-                                   (goto-char (match-beginning 0))
-                                   (setq end nil)))
-                             (goto-char end)))
-                       (setq end nil)))
+                     (when (progn
+                             (while (and (or (re-search-forward
+                                              "[ \t\n]\\|\\Sw" end 'move)
+                                             (setq end nil))
+                                         (eq ?\\ (char-syntax (char-before))))
+                               ;; Skip backslash-quoted characters.
+                               (forward-char))
+                             end)
+                       (setq end (match-beginning 0))
+                       (if rfc2047-encode-encoded-words
+                           (progn
+                             (goto-char begin)
+                             (when (search-forward "=?" end 'move)
+                               (goto-char (match-beginning 0))
+                               (setq end nil)))
+                         (goto-char end))))
                    (unless end
                      (setq end t)
                      (when (looking-at encodable-regexp)