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: Sat, 24 Dec 2011 18:04:03 +0100 Message-ID: <87ty4p3nr0.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324746304 8129 80.91.229.12 (24 Dec 2011 17:05:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2011 17:05:04 +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 Sat Dec 24 18:04:57 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 1ReV1l-000505-1y for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 18:04:57 +0100 Original-Received: from localhost ([::1]:53722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReV1j-0004Hd-Jm for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 12:04:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReV1b-0004HN-6h for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:04:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ReV1U-0006xG-8K for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:04:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReV1U-0006xB-6f for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:04:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ReV3m-0006zE-4a for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:07:02 -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: Sat, 24 Dec 2011 17:07:02 +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.132474640826837 (code B ref 9246); Sat, 24 Dec 2011 17:07:02 +0000 Original-Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 17:06:48 +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 1ReV3Q-0006yg-Ey for submit@debbugs.gnu.org; Sat, 24 Dec 2011 12:06:48 -0500 Original-Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReV3G-0006yP-Pa for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 12:06:39 -0500 Original-Received: by eekc14 with SMTP id c14so10162497eek.3 for <9246@debbugs.gnu.org>; Sat, 24 Dec 2011 09:04:07 -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=9fBONSx3vdK4YJeTqvIMMNyUowOat5m7+4ww1MBG7uA=; b=w3nfC3CQF+SvCY07/mxGeHF1rN3Vw0kZh5QmezRnPR+Y8gvT5RCmkb129mOp+L4Gvo CgAPldy4UwjsFuo+wVAsPM6HsD3UQrL6prkOdKzNkUoEn2HWJPBnU+v13itQx6cYAmBF 8AAUIafZ8Zaf+64zIP4RztS+pMBjX1q1G7Juc= Original-Received: by 10.14.47.141 with SMTP id t13mr7499972eeb.89.1324746247729; Sat, 24 Dec 2011 09:04:07 -0800 (PST) Original-Received: from lambda ([2a01:e35:2e9d:c6a0:226:5eff:fe55:54d7]) by mx.google.com with ESMTPS id q67sm3538795eea.8.2011.12.24.09.04.05 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Dec 2011 09:04:06 -0800 (PST) In-Reply-To: <8339cax74g.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Dec 2011 18:32:47 +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: Sat, 24 Dec 2011 12:07:02 -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:55162 Archived-At: 24/12/11 17:32, Eli Zaretskii >> From: Antoine Levitt >> Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org >> Date: Sat, 24 Dec 2011 16:29:56 +0100 >> >> > Can you copy-paste the exact text you type into the ERC window to >> > reproduce this bug, starting with the connection, and everything you >> > do afterwards? >> >> Alright. So emacs -Q -nw (the -nw is important). M-x erc RET RET RET >> RET, connect to freenode, you get to the server window. Type >> >> /join #somethingtest RET, you get to the channel window. >> >> M-: (setq word-wrap t) RET >> M-x erc-scrolltobottom-enable RET >> >> http://wowthisislongveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylong.com RET >> a RET >> a RET >> ... etc until end of buffer. Then point goes to top, and the scrolling >> doesn't work anymore. >> >> I verified with latest trunk, I still see this. > > Yes, I see it as well, but it's a bug in erc. "(elisp)Window Hooks" > says: > > -- Variable: window-scroll-functions > [...] > *Warning:* don't use this feature to alter the way the window is > scrolled. It's not designed for that, and such use probably won't > work. > > But erc does precisely that which the manual says not to do. It > shouldn't. > > Incidentally, all this trickery is no longer needed with Emacs 24: > just setting scroll-conservatively to a value larger than 100 will do > the job nicely and without any problems. So, should erc-scrollbottom be changed? ERC development seems a bit dead. Only using scroll-conservatively instead of erc-scrolltobottom has a few disadvantages. erc-scrolltobottom has the advantage that one can never see past the end of a buffer, similar to other IRC clients (and indeed, text editors). With scroll-conservatively, if a window has say 2/3 the height of the buffer, scrolling up and down results in one seeing the bottom of the buffer around the middle of the window. 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?