GNU bug report logs - #35613
Cursor returns to wrong article!

Previous Next

Packages: emacs, gnus;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 7 May 2019 01:42:01 UTC

Severity: minor

Tags: fixed, patch

Found in version 5.13

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 35613 <at> debbugs.gnu.org
Subject: bug#35613: Cursor returns to wrong article!
Date: Wed, 08 May 2019 13:09:38 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> 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




This bug report was last modified 6 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.