From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.bugs Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Date: Fri, 30 Dec 2011 18:10:33 +0100 Message-ID: <87obuqt27q.fsf@gmail.com> References: <8762mb1jq1.fsf@gmail.com> <1312839728.2986.6.camel@kiwi-pc2> <83fwgaxkdu.fsf@gnu.org> <87ehvudqcs.fsf@gmail.com> <8362h6xc0q.fsf@gnu.org> <877h1m56ob.fsf@gmail.com> <8339cax74g.fsf@gnu.org> <87ty4p3nr0.fsf@gmail.com> <83wr9lx4u6.fsf@gnu.org> <87ipkzvvy2.fsf@gmail.com> <83y5tutnc0.fsf@gnu.org> <87mxaaupjd.fsf@gmail.com> <83hb0it66b.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325265080 32498 80.91.229.12 (30 Dec 2011 17:11:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 17:11:20 +0000 (UTC) Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 18:11:13 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgfz4-0004YV-Lm for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 18:11:10 +0100 Original-Received: from localhost ([::1]:41979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgfz3-0004Ht-Rd for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 12:11:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgfz0-0004Hc-Ok for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 12:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rgfyz-0005KX-O8 for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 12:11:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgfyz-0005KT-MZ for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 12:11:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rgg1p-0002WN-UI for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 12:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Antoine Levitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2011 17:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.13252652179649 (code B ref 9246); Fri, 30 Dec 2011 17:14:01 +0000 Original-Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 17:13:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgg1Q-0002VZ-IK for submit@debbugs.gnu.org; Fri, 30 Dec 2011 12:13:37 -0500 Original-Received: from mail-wi0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgg1O-0002VS-Ji for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 12:13:35 -0500 Original-Received: by wibhj6 with SMTP id hj6so7681997wib.3 for <9246@debbugs.gnu.org>; Fri, 30 Dec 2011 09:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=yctq/OPwXAFHxLa4V2bgF6ub7O4bg1ggiIzxloKPyDE=; b=Vz44G/YI/RnJ3xxJQ9z5QIwFvaY/GWwItPxpJZONCc1SiGNyGrSYMGJIPJp+hZFaon OLW6rjxZ56Kue8vXTR29dh12UncNuIxNXE7+g8iJYF8BR/nMKSVoDeTqUxg0+CCfE9vc 7WBSyPW0T3lnZokQe/5mL9fIvqUypP1YQfjgE= Original-Received: by 10.180.19.106 with SMTP id d10mr88222025wie.2.1325265037324; Fri, 30 Dec 2011 09:10:37 -0800 (PST) Original-Received: from lambda (i01v-213-44-207-121.d4.club-internet.fr. [213.44.207.121]) by mx.google.com with ESMTPS id dd4sm93811989wib.1.2011.12.30.09.10.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Dec 2011 09:10:36 -0800 (PST) In-Reply-To: <83hb0it66b.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Dec 2011 17:45:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 30 Dec 2011 12:14:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55310 Archived-At: 30/12/11 16:45, Eli Zaretskii >> From: Antoine Levitt >> Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org >> Date: Fri, 30 Dec 2011 15:01:26 +0100 >> >> Here's two patches. The first adds the warning from the info file into >> the variable definition. The second fixes erc-scrollbottom by using >> post-command-hook instead of window-scroll-functions. >> >> Can you merge them? > > Will do, thanks. > >> > go to window-end >> > call posn-at-point >> > compare the row returned by posn-at-point with window-height >> >> That works pretty well! (when hooked into post-command-hook) Except that >> sometimes posn-at-point is nil, presumably because redisplay hasn't >> taken place yet. > > If posn-at-point returns nil, it means point is outside of the > displayed portion, which in itself is something you may want to know, > I think. In some cases, yes. In other cases, it's just that redisplay hasn't taken place yet (for instance, beginning-of-buffer, then end-of-buffer, posn-at-point returns nil on the post-command-hook of end-of-buffer) > >> I couldn't find a post-redisplay-hook, which might be more >> appropriate. Is there one? > > There's redisplay-end-trigger-functions, but it's deprecated. Stefan > expressed the desire to have a hook you want many times in the past, > but no one stepped forward to do the job yet. Isn't it just a line at the end of the appropriate function?