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).