From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Date: Fri, 30 Dec 2011 11:34:23 +0200 Message-ID: <83y5tutnc0.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325237780 22439 80.91.229.12 (30 Dec 2011 09:36:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 09:36:20 +0000 (UTC) Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com To: Antoine Levitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 10:36:15 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 1RgYsp-0004Gi-Jx for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 10:36:15 +0100 Original-Received: from localhost ([::1]:58918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgYsm-0000wL-0o for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 04:36:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgYsi-0000oG-KT for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 04:36:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgYsh-00074C-IA for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 04:36:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgYsh-000747-D2 for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 04:36:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgYvV-0005WZ-SQ for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2011 04:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2011 09:39: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.132523789421172 (code B ref 9246); Fri, 30 Dec 2011 09:39:01 +0000 Original-Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 09:38:14 +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 1RgYuk-0005VR-AK for submit@debbugs.gnu.org; Fri, 30 Dec 2011 04:38:14 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgYuh-0005VG-On for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 04:38:13 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LX000400FFYWE00@a-mtaout20.012.net.il> for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 11:34:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX0003FKFX9MUN0@a-mtaout20.012.net.il>; Fri, 30 Dec 2011 11:34:22 +0200 (IST) In-reply-to: <87ipkzvvy2.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 30 Dec 2011 04:39: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:55302 Archived-At: > From: Antoine Levitt > Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org > Date: Thu, 29 Dec 2011 23:45:25 +0100 > > >> So, should erc-scrollbottom be changed? > > > > Definitely. It shouldn't use window-scroll-functions. > > So is there a hook it could use? How about post-command-hook? > Incidentally, this warning doesn't get displayed on C-h v, it might be a > good idea to move it. Patches are welcome. > >> Actually, this is a behavior I'd like for emacs as a whole, to make it > >> behave more like other editors that never display anything past the end > >> of text. Is there any way to do it, some other variable one could set in > >> addition to scroll-conservatively? > > > > Maybe, I don't know. > > If you don't know, it probably means there isn't ;) Don't count on that ;-) > I tried to hack something together, but I couldn't make it work, because > I couldn't find an appropriate way to express "if the window is > displaying stuff past the end of buffer" (using window-end and > buffer-end does not work, because window-end can never be past > buffer-end). How about this strategy: go to window-end call posn-at-point compare the row returned by posn-at-point with window-height