From: yamaoka Date: Sun, 25 Jul 2004 00:59:08 +0000 (+0000) Subject: Synch to No Gnus 200407250058. X-Git-Tag: t-gnus-6_17_4-quimby-~816 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=6a22693171cb37b757a0f3f585b8cbbfd20bd44f;p=elisp%2Fgnus.git- Synch to No Gnus 200407250058. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ba6884..bd42a12 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2004-07-25 Katsumi Yamaoka + + * rfc2047.el (rfc2047-encode-region): Don't infloop. Suggested by + Hiroshi Fujishima . + 2004-07-25 Lars Magne Ingebrigtsen * flow-fill.el (fill-flowed): Remove space stuffing, and only do diff --git a/lisp/rfc2047.el b/lisp/rfc2047.el index 46ee8be..d430a35 100644 --- a/lisp/rfc2047.el +++ b/lisp/rfc2047.el @@ -376,7 +376,7 @@ Dynamically bind `rfc2047-encoding-type' to change that." ;; Skip one ASCII word, or encode continuous words ;; in which all those contain non-ASCII characters. (setq end nil) - (while (not end) + (while (not (or end (eobp))) (when (looking-at "[\000-\177]+") (setq begin (point) end (match-end 0))