unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ivan Kanis <ivan@kanis.fr>
Cc: 28839@debbugs.gnu.org, 11697@debbugs.gnu.org,
	16697@debbugs.gnu.org, Josh <josh@foxtail.org>
Subject: bug#11697: bug#16697: 24.3.50; ERC scrolltobottom module does not work anymore
Date: Wed, 23 Oct 2019 11:57:44 +0200	[thread overview]
Message-ID: <87lftbiy1z.fsf@gnus.org> (raw)
In-Reply-To: <87powcurlk.fsf@kanis.fr> (Ivan Kanis's message of "Thu, 04 Feb 2016 21:51:19 +0100")

Ivan Kanis <ivan@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





  reply	other threads:[~2019-10-23  9:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 20:53 bug#16697: 24.3.50; ERC scrolltobottom module does not work anymore Ivan Kanis
2014-02-08 21:03 ` Eli Zaretskii
2014-02-09  9:44   ` Ivan Kanis
2014-02-09 17:16     ` Eli Zaretskii
2014-02-10 21:12       ` Ivan Kanis
2014-02-11  3:51         ` Eli Zaretskii
2014-02-11  9:18           ` Ivan Kanis
2014-02-11 16:37             ` Eli Zaretskii
2014-02-11 17:14               ` Ivan Kanis
2014-02-11 21:44                 ` Josh
2014-02-11 21:56                   ` Glenn Morris
2014-02-12 19:13                     ` Ivan Kanis
2015-12-27 21:24                       ` Lars Ingebrigtsen
2015-12-28 19:09                         ` bug#11697: " Ivan Kanis
2016-02-04  6:12                           ` Lars Ingebrigtsen
2016-02-04 20:51                             ` Ivan Kanis
2019-10-23  9:57                               ` Lars Ingebrigtsen [this message]
2015-12-28 19:11                         ` bug#11697: " Ivan Kanis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lftbiy1z.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=11697@debbugs.gnu.org \
    --cc=16697@debbugs.gnu.org \
    --cc=28839@debbugs.gnu.org \
    --cc=ivan@kanis.fr \
    --cc=josh@foxtail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).