From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: New hook for ERC Date: Thu, 09 Feb 2012 00:56:58 +0100 Message-ID: <4F330BCA.4020406@dogan.se> References: <4F32E763.1060104@dogan.se> <87wr7w9928.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1328745462 22060 80.91.229.3 (8 Feb 2012 23:57:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2012 23:57:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 00:57:42 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvHOP-0006sc-P6 for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2012 00:57:41 +0100 Original-Received: from localhost ([::1]:54473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHOP-0007jT-A6 for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2012 18:57:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHOL-0007jD-GN for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:57:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvHOK-0007qk-IF for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:57:37 -0500 Original-Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:33451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHOK-0007qY-7u for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:57:36 -0500 Original-Received: from c80-216-107-103.bredband.comhem.se ([80.216.107.103]:52601 helo=[192.168.0.10]) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1RvHNp-00056x-Fn for emacs-devel@gnu.org; Thu, 09 Feb 2012 00:57:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 In-Reply-To: <87wr7w9928.fsf@gnu.org> X-Originating-IP: 80.216.107.103 X-Scan-Result: No virus found in message 1RvHNp-00056x-Fn. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RvHNp-00056x-Fn 57cfc06d163c2985c0f77a742c7b2201 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.5 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148387 Archived-At: On 2012-02-09 00:53, Johan Bockgård wrote: > Deniz Dogan 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?