]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/gnus-art.el (gnus-article-prepare): Make sure the article
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 12 Apr 2018 23:19:17 +0000 (23:19 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 12 Apr 2018 23:19:17 +0000 (23:19 +0000)
begins with the top of the header (bug#25526).

lisp/gnus/gnus-art.el

index 74915a8cda90272ffebde46cd1c1d3de6ec48fc8..f8a29ea2e51ee4ce0c1ce192a02c327bb44c4a44 100644 (file)
@@ -4696,6 +4696,10 @@ If ALL-HEADERS is non-nil, no headers are hidden."
              (forward-line -1))
            (set-window-point (get-buffer-window (current-buffer)) (point))
            (gnus-configure-windows 'article)
+           ;; Make sure the article begins with the top of the header.
+           (save-selected-window
+             (select-window (get-buffer-window gnus-article-buffer))
+             (goto-char (point-min)))
            (gnus-run-hooks 'gnus-article-prepare-hook)
            t))))))