Subject: Re: bug#35613: Cursor returns to wrong article!

From: "Basil L. Contovounesios" <[email-masked]>
Date: Wed, 08 May 2019 13:09:38 +0100

積丹尼 Dan Jacobson <[email-masked]> writes:

> Thanks. I suppose the temporary workaround is
> (add-hook 'gnus-summary-mode-hook
>  (lambda ()
>    (setq switch-to-buffer-preserve-window-point nil))) ;until bug#35613 fixed

Doing that will change the global value of
switch-to-buffer-preserve-window-point.  If you're okay with doing that,
why bother with gnus-summary-mode-hook at all?  Just set the user option
once and for all.

Alternatively, if you want to localise the change, you can instead:

(add-hook 'gnus-article-mode-hook
          (lambda ()
            (setq-local switch-to-buffer-preserve-window-point nil)))

-- 
Basil