GNU bug report logs - #16697
24.3.50; ERC scrolltobottom module does not work anymore

Previous Next

Package: emacs;

Reported by: Ivan Kanis <ivan <at> kanis.fr>

Date: Sat, 8 Feb 2014 20:55:01 UTC

Severity: normal

Tags: fixed

Merged with 11697, 14573, 28839

Found in versions 24.1.50, 24.3.50, 25.3

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #62 received at 16697 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ivan Kanis <ivan <at> kanis.fr>
Cc: 28839 <at> debbugs.gnu.org, 11697 <at> debbugs.gnu.org, Josh <josh <at> foxtail.org>,
 16697 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#11697: bug#16697: 24.3.50; ERC scrolltobottom module does
 not work anymore
Date: Wed, 23 Oct 2019 11:57:44 +0200
Ivan Kanis <ivan <at> kanis.fr> writes:

> emacs -Q
>
> 1) evaluate (setq erc-modules '(scrolltobottom))
> 2) M-x erc
> 3) select default values
> 4) /j #emacs
> 5) wait for the buffer to fill up
>
> I expect the prompt line to stay at the bottom.
>
> It jumps back to the middle.

This was a bit convoluted to fix, as none of the hooks erc had could be
used, as they're called while saving too many excursions.  (Well, I
could have rewritten the erc-scroll-to-bottom function to not use
`recenter' at all, which may have been a better idea, come to think of
it.)

But I fixed it a different way, so that now point is kept at the end of
the buffer (if the window is selected).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 215 days ago.

Previous Next


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