]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak point placement in gnus-summary-select-article-buffer
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2018 19:18:51 +0000 (21:18 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2018 19:18:51 +0000 (21:18 +0200)
* lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
Tweak where point is placed because when the user selects the
article buffer, it's probably to cite something or click on
something, and not do anything with the headers.

lisp/gnus/gnus-sum.el

index e1789cdd5995d581bb8f391a20bed7ba04705e2d..b1e9d60e3b2f5c148940132865055591c79b51e9 100644 (file)
@@ -7067,7 +7067,11 @@ buffer."
         'only-article
        'article)
      t)
-    (select-window (get-buffer-window gnus-article-buffer))))
+    (select-window (get-buffer-window gnus-article-buffer))
+    ;; If we've just selected the message, place point at the start of
+    ;; the body because that's probably where we want to be.
+    (when (bobp)
+      (article-goto-body))))
 
 (defun gnus-summary-universal-argument (arg)
   "Perform any operation on all articles that are process/prefixed."