[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New hook for ERC

From: Johan Bockgård
Subject: Re: New hook for ERC
Date: Thu, 09 Feb 2012 00:53:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Deniz Dogan <address@hidden> writes:

> I've been trying to "fix" the behavior of ERC's scroll-to-bottom
> module by hooking into erc-insert-post-hook.  I thought that the state
> when that hook is executed would be that point is back in the input
> area, but it does not seem like it.
> I need point to be in the input area (after erc-input-marker) when the
> hook is executed to properly recenter the window.  I can't seem to
> find a hook for when that happens, so I made a new one and run that
> hook as the last thing that happens in the buffer in
> erc-display-line-1:

I use a hook in exactly this place in my copy of ERC, though I named it
`erc-insert-completed-hook' (cf. erc-send-{post,completed}-hook).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]