From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: New hook for ERC Date: Thu, 09 Feb 2012 00:53:03 +0100 Message-ID: <87wr7w9928.fsf@gnu.org> References: <4F32E763.1060104@dogan.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328745192 20372 80.91.229.3 (8 Feb 2012 23:53:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2012 23:53:12 +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:53:11 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 1RvHK2-00056H-Qu for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2012 00:53:10 +0100 Original-Received: from localhost ([::1]:47202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHK2-0005rf-8M for ged-emacs-devel@m.gmane.org; Wed, 08 Feb 2012 18:53:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHJz-0005rM-Oi for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvHJy-0006yo-OB for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:53:07 -0500 Original-Received: from smtprelay-b21.telenor.se ([195.54.99.212]:40683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvHJy-0006yh-II for emacs-devel@gnu.org; Wed, 08 Feb 2012 18:53:06 -0500 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 3A66CC394 for ; Thu, 9 Feb 2012 00:53:05 +0100 (CET) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.199.127] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvhNABYKM09V5Md/PGdsb2JhbABDiVSlOxkBAQEBNzSBcgEBBAFWKAsLISUPAQQYAQwKLYd8A7kUi3YGATQGCgMBgnEdAyiBKIMdBKgL X-IronPort-AV: E=Sophos;i="4.73,387,1325458800"; d="scan'208";a="265786682" Original-Received: from c-7fc7e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.199.127]) by ipb1.telenor.se with ESMTP; 09 Feb 2012 00:53:05 +0100 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 2C1004842DD; Thu, 9 Feb 2012 00:53:04 +0100 (CET) Mail-Copies-To: never In-Reply-To: <4F32E763.1060104@dogan.se> (Deniz Dogan's message of "Wed, 08 Feb 2012 22:21:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.212 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:148386 Archived-At: 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).