* gnus-art.el (gnus-article-treat-body-boundary): Fix boundary width on
authorNelson Ferreira <nelson.ferreira@ieee.org>
Tue, 15 Mar 2011 16:31:01 +0000 (17:31 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 15 Mar 2011 16:31:01 +0000 (17:31 +0100)
XEmacs, which was one character too wide.

lisp/ChangeLog
lisp/gnus-art.el

index 97d427f..8908666 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-15  Nelson Ferreira  <nelson.ferreira@ieee.org>  (tiny change)
+
+       * gnus-art.el (gnus-article-treat-body-boundary): Fix boundary width on
+       XEmacs, which was one character too wide.
+
 2011-03-09  Antoine Levitt  <antoine.levitt@gmail.com>
 
        * gnus-sum.el (gnus-articles-to-read): Use gnus-large-newsgroup as
index c64138b..20ffa8e 100644 (file)
@@ -2337,10 +2337,12 @@ long lines if and only if arg is positive."
       (let ((start (point)))
        (insert "X-Boundary: ")
        (gnus-add-text-properties start (point) '(invisible t intangible t))
-       (insert (let (str)
-                 (while (>= (window-width) (length str))
+       (insert (let (str (max (window-width)))
+                 (if (featurep 'xemacs)
+                     (setq max (1- max)))
+                 (while (>= max (length str))
                    (setq str (concat str gnus-body-boundary-delimiter)))
-                 (substring str 0 (window-width)))
+                 (substring str 0 max))
                "\n")
        (gnus-put-text-property start (point) 'gnus-decoration 'header)))))