emacs-devel
[Top][All Lists]
Advanced

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

Re: New hook for ERC


From: Deniz Dogan
Subject: Re: New hook for ERC
Date: Thu, 09 Feb 2012 00:56:58 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0

On 2012-02-09 00:53, Johan Bockgård wrote:
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).


Do you use it for the same thing or is your use-case different?




reply via email to

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