Sync up with Pterodactyl Gnus v0.92.
[elisp/gnus.git-] / lisp / gnus-xmas.el
index e804c7a..1446289 100644 (file)
@@ -78,7 +78,7 @@ automatically."
   (if (or (featurep 'xface)
          (featurep 'xpm))
       'gnus-xmas-article-display-xface
-    "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | xv -quit -")
+    "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | ee -")
   "*String or function to be executed to display an X-Face header.
 If it is a string, the command will be executed in a sub-shell
 asynchronously.         The compressed face will be piped to this command."
@@ -178,7 +178,7 @@ displayed, no centering will be performed."
     (sit-for 0))
   (when gnus-auto-center-summary
     (let* ((height (if (fboundp 'window-displayed-height)
-                      (window-displayed-height)
+                      (1- (window-displayed-height))
                     (- (window-height) 2)))
           (top (cond ((< height 4) 0)
                      ((< height 7) 1)
@@ -702,8 +702,7 @@ If it is non-nil, it must be a toolbar.  The five valid values are
     [gnus-group-unsubscribe gnus-group-unsubscribe t "Unsubscribe group"]
     [gnus-group-subscribe gnus-group-subscribe t "Subscribe group"]
     [gnus-group-kill-group gnus-group-kill-group t "Kill group"]
-    [gnus-group-exit gnus-group-exit t "Exit Gnus"]
-    )
+    [gnus-group-exit gnus-group-exit t "Exit Gnus"])
   "The group buffer toolbar.")
 
 (defvar gnus-summary-toolbar
@@ -823,8 +822,7 @@ XEmacs compatibility workaround."
                 (gnus-xmas-call-region "icontopbm")
                 (gnus-xmas-call-region "ppmtoxpm")
                 (make-glyph
-                 (vector 'xpm :data (buffer-substring
-                                     (point-min) (point-max)))))))
+                 (vector 'xpm :data (buffer-string))))))
            (t
             (make-glyph [nothing]))))
          (ext (make-extent (progn