(rfc2047-decode-region): Don't skip past `start', which
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Apr 2009 16:17:51 +0000 (16:17 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 20 Apr 2009 16:17:51 +0000 (16:17 +0000)
could happen if the text is only composed of spaces and/or tabs.

lisp/gnus/ChangeLog
lisp/gnus/rfc2047.el

index d0a9a72..82cd077 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * rfc2047.el (rfc2047-decode-region): Don't skip past `start', which
+       could happen if the text is only composed of spaces and/or tabs.
+
 2009-03-03  Brian Sniffen  <bts@evenmere.org>  (tiny change)
 
        * gnus-draft.el (gnus-draft-send): Bind gnus-message-setup-hook to nil
index 6b77464..c0bdec3 100644 (file)
@@ -1045,7 +1045,7 @@ other than `\"' and `\\' in quoted strings."
                (setq start (point))
                (setq quoted (eq (char-after) ?\"))
                (goto-char (point-max))
-               (skip-chars-backward " \t")
+               (skip-chars-backward " \t" start)
                (if (setq quoted (and quoted
                                      (> (point) (1+ start))
                                      (eq (char-before) ?\")))