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: Sat, 24 Dec 2011 19:22:09 +0200 Message-ID: <83wr9lx4u6.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1324747368 13935 80.91.229.12 (24 Dec 2011 17:22:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2011 17:22:48 +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 Sat Dec 24 18:22:44 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 1ReVIx-0003Xj-PA for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 18:22:43 +0100 Original-Received: from localhost ([::1]:52277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReVIx-0006MD-6F for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 12:22:43 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReVIv-0006M8-3J for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:22:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ReVIt-0000mR-U0 for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:22:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReVIt-0000mM-R6 for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:22:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ReVLB-00087W-NA for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2011 12:25: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: Sat, 24 Dec 2011 17:25: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.132474747931185 (code B ref 9246); Sat, 24 Dec 2011 17:25:01 +0000 Original-Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 17:24:39 +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 1ReVKo-00086w-ST for submit@debbugs.gnu.org; Sat, 24 Dec 2011 12:24:39 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReVKm-00086n-F1 for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 12:24:37 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LWP00300X2SKF00@a-mtaout20.012.net.il> for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 19:22:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.151.186]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWP002OBXKUV1E0@a-mtaout20.012.net.il>; Sat, 24 Dec 2011 19:22:07 +0200 (IST) In-reply-to: <87ty4p3nr0.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: Sat, 24 Dec 2011 12:25: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:55164 Archived-At: > From: Antoine Levitt > Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org > Date: Sat, 24 Dec 2011 18:04:03 +0100 > > > -- 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? Definitely. It shouldn't use window-scroll-functions. > 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. Only if you scroll by scroll bar or by C-v with a numeric argument. Just typing will never get you past the buffer end (obviously). > 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.