From 6a22693171cb37b757a0f3f585b8cbbfd20bd44f Mon Sep 17 00:00:00 2001 From: yamaoka Date: Sun, 25 Jul 2004 00:59:08 +0000 Subject: [PATCH] Synch to No Gnus 200407250058. --- lisp/ChangeLog | 5 +++++ lisp/rfc2047.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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)) -- 1.7.10.4