From: Deniz Dogan <deniz@dogan.se>
To: emacs-devel@gnu.org
Subject: Re: New hook for ERC
Date: Thu, 09 Feb 2012 00:56:58 +0100 [thread overview]
Message-ID: <4F330BCA.4020406@dogan.se> (raw)
In-Reply-To: <87wr7w9928.fsf@gnu.org>
On 2012-02-09 00:53, Johan Bockgård wrote:
> Deniz Dogan<deniz@dogan.se> 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?
prev parent reply other threads:[~2012-02-08 23:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 21:21 New hook for ERC Deniz Dogan
2012-02-08 22:23 ` Antoine Levitt
2012-02-08 23:32 ` Deniz Dogan
2012-02-09 10:06 ` Emacs scrolling past the end of buffer (was: New hook for ERC) Antoine Levitt
2012-02-09 12:01 ` Emacs scrolling past the end of buffer Deniz Dogan
2012-02-12 16:37 ` Deniz Dogan
2012-02-12 16:45 ` Eli Zaretskii
2012-02-12 19:52 ` Deniz Dogan
2012-02-12 21:11 ` Eli Zaretskii
2012-02-09 21:29 ` New hook for ERC Lars Ingebrigtsen
2012-02-09 22:41 ` Antoine Levitt
2012-02-08 23:53 ` Johan Bockgård
2012-02-08 23:56 ` Deniz Dogan [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F330BCA.4020406@dogan.se \
--to=deniz@dogan.se \
--cc=emacs-devel@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.