From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Antoine Levitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2011 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9246@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131258961212594 (code B ref -1); Sat, 06 Aug 2011 00:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 00:13:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpUWC-0003H5-8M for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:13:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpUWA-0003Gy-1y for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpUVN-00050h-D0 for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:12:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:49532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVN-00050d-Bb for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:12:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVM-0005yd-6y for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpUVL-00050G-1N for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:40 -0400 Received: from lo.gmane.org ([80.91.229.12]:59239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVK-000502-Sd for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QpUVJ-0003dX-4X for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 02:12:37 +0200 Received: from uni14-1-82-233-220-106.fbx.proxad.net ([82.233.220.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 02:12:37 +0200 Received: from antoine.levitt by uni14-1-82-233-220-106.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 02:12:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org From: Antoine Levitt Date: Sat, 06 Aug 2011 02:12:22 +0200 Lines: 11 Message-ID: <8762mb1jq1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: uni14-1-82-233-220-106.fbx.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.7 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) How to reproduce: emacs -nw -Q (setq word-wrap t) M-x erc, join a random channel M-x erc-scrolltobottom-enable type in a long link (http://longlinkthatgoesoveroneline.com) type in random lines till window is full watch all hell break loose (point at top of window, last line not visible) FWIW, this is an old bug, and probably has nothing to do with bidi. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2011 07:14: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.131261479720641 (code B ref -1); Sat, 06 Aug 2011 07:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 07:13:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qpb4O-0005Ms-Iy for submit@debbugs.gnu.org; Sat, 06 Aug 2011 03:13:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qpb4L-0005Mb-6C for submit@debbugs.gnu.org; Sat, 06 Aug 2011 03:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpb3W-0003jG-NT for submit@debbugs.gnu.org; Sat, 06 Aug 2011 03:12:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpb3W-0003jC-M5 for submit@debbugs.gnu.org; Sat, 06 Aug 2011 03:12:22 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpb3V-0004SH-S7 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 03:12:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qpb3V-0003iz-5h for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 03:12:21 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:35575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qpb3U-0003iv-TW for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 03:12:21 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LPH00I00VUP5S00@a-mtaout23.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 10:10:47 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPH00IMIVXX3Q60@a-mtaout23.012.net.il>; Sat, 06 Aug 2011 10:10:46 +0300 (IDT) Date: Sat, 06 Aug 2011 10:08:47 +0300 From: Eli Zaretskii In-reply-to: <8762mb1jq1.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83ipqbvwxs.fsf@gnu.org> References: <8762mb1jq1.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) > From: Antoine Levitt > Date: Sat, 06 Aug 2011 02:12:22 +0200 > > How to reproduce: > > emacs -nw -Q > (setq word-wrap t) > M-x erc, join a random channel > M-x erc-scrolltobottom-enable > type in a long link (http://longlinkthatgoesoveroneline.com) > type in random lines till window is full > watch all hell break loose (point at top of window, last line not visible) > > FWIW, this is an old bug, and probably has nothing to do with bidi. Does it happen with Emacs 23? (I don't use ERC, so I cannot easily test.) If it does, then it indeed has nothing to do with bidi-related display changes. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Antoine Levitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2011 09:33: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13126231811173 (code B ref -1); Sat, 06 Aug 2011 09:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 09:33:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpdFc-0000In-Rj for submit@debbugs.gnu.org; Sat, 06 Aug 2011 05:33:01 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpdFb-0000Ih-Dq for submit@debbugs.gnu.org; Sat, 06 Aug 2011 05:33:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpdEm-0007B4-ND for submit@debbugs.gnu.org; Sat, 06 Aug 2011 05:32:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:53890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpdEm-0007Av-Lk for submit@debbugs.gnu.org; Sat, 06 Aug 2011 05:32:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpdEl-0001fZ-FF for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 05:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpdEk-00078O-Ai for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 05:32:07 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:60800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpdEk-00075H-4i; Sat, 06 Aug 2011 05:32:06 -0400 Received: by wwf10 with SMTP id 10so1327894wwf.30 for ; Sat, 06 Aug 2011 02:32:04 -0700 (PDT) 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=XeLC15+bsX4ZS36v4yZfEncjHDe+f7ExoGhOmiCblvY=; b=HyFmrjp1xJ3ltcjHUACPqobk/IUggrfRRmLTBUlXIDBccdP8swoj+LRg/fpCTw6y6M PdmXLlMAEdIR/yuqwvRXCxjzcREp8RcVdwdC8+PkibRt2yVGYpBkyHcMsmrJpKUD77Rn 6uhWrOXuHIMxAvEXJaW7Ja6OC0yrSbuaV4ODI= Received: by 10.227.128.81 with SMTP id j17mr2709817wbs.55.1312623123989; Sat, 06 Aug 2011 02:32:03 -0700 (PDT) Received: from lambda ([2a01:e35:2e9d:c6a0:226:5eff:fe55:54d7]) by mx.google.com with ESMTPS id eo18sm2906477wbb.46.2011.08.06.02.32.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Aug 2011 02:32:02 -0700 (PDT) From: Antoine Levitt References: <8762mb1jq1.fsf@gmail.com> <83ipqbvwxs.fsf@gnu.org> Date: Sat, 06 Aug 2011 11:32:00 +0200 In-Reply-To: <83ipqbvwxs.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Aug 2011 10:08:47 +0300") Message-ID: <87zkjmubqn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 06/08/11 09:08, Eli Zaretskii >> From: Antoine Levitt >> Date: Sat, 06 Aug 2011 02:12:22 +0200 >> >> How to reproduce: >> >> emacs -nw -Q >> (setq word-wrap t) >> M-x erc, join a random channel >> M-x erc-scrolltobottom-enable >> type in a long link (http://longlinkthatgoesoveroneline.com) >> type in random lines till window is full >> watch all hell break loose (point at top of window, last line not visible) >> >> FWIW, this is an old bug, and probably has nothing to do with bidi. > > Does it happen with Emacs 23? Yes, I just tested it on emacs-23.3, exact same symptoms. > (I don't use ERC, so I cannot easily test.) You don't have to use ERC, just M-x erc, accept default values until you join freenode, then /j #testchannel-nobodyhere. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Thomas Riccardi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2011 21:44: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13128398031905 (code B ref -1); Mon, 08 Aug 2011 21:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Aug 2011 21:43:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QqXbW-0000Ud-MI for submit@debbugs.gnu.org; Mon, 08 Aug 2011 17:43:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QqXbU-0000UT-48 for submit@debbugs.gnu.org; Mon, 08 Aug 2011 17:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqXaQ-0004tN-Ki for submit@debbugs.gnu.org; Mon, 08 Aug 2011 17:42:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:42651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXaQ-0004tJ-JG for submit@debbugs.gnu.org; Mon, 08 Aug 2011 17:42:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXaP-0002Jo-6d for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2011 17:42:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqXaO-0004su-7N for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2011 17:42:13 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXaO-0004sj-32 for bug-gnu-emacs@gnu.org; Mon, 08 Aug 2011 17:42:12 -0400 Received: by wyi11 with SMTP id 11so399876wyi.0 for ; Mon, 08 Aug 2011 14:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=IWe+Us7K3tUcCbVpuFSXuZENuWG/g5bDzBtvrWoTWIA=; b=GYA5khcs6b9x/cTU8ZEWE0Q5Mj7TiM8UTnfkofRl2w4cjiRj6e8HUr5mzWa8Zivflk wVnGjabeP5a2gJQmVIw/bzjoWoGn5Lv8YAzp5yZHSgWV9Xj3iWX0b8/prFneuikGNOfG nY/+bnYVO9wQpzQfkGG7fa4qj4ezrhck/BXX4= Received: by 10.216.170.6 with SMTP id o6mr3592820wel.6.1312839730887; Mon, 08 Aug 2011 14:42:10 -0700 (PDT) Received: from [10.42.0.6] (sd-21807.dedibox.fr [88.191.123.60]) by mx.google.com with ESMTPS id ej15sm3508864wbb.65.2011.08.08.14.42.09 (version=SSLv3 cipher=OTHER); Mon, 08 Aug 2011 14:42:09 -0700 (PDT) From: Thomas Riccardi In-Reply-To: <8762mb1jq1.fsf@gmail.com> References: <8762mb1jq1.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 08 Aug 2011 23:42:08 +0200 Message-ID: <1312839728.2986.6.camel@kiwi-pc2> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Le samedi 06 août 2011 à 02:12 +0200, Antoine Levitt a écrit : > How to reproduce: > > emacs -nw -Q > (setq word-wrap t) > M-x erc, join a random channel > M-x erc-scrolltobottom-enable > type in a long link (http://longlinkthatgoesoveroneline.com) > type in random lines till window is full > watch all hell break loose (point at top of window, last line not visible) > > FWIW, this is an old bug, and probably has nothing to do with bidi. > I have the same issue. It also happens when you already have the window full of logs, and you type a long url: as soon as the cursor hits the last column, it jumps at the end of the first line of log; you can continue typing but you don't see the text: it's one line after the last displayed line. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 11:49: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: To: Thomas Riccardi Cc: 9246@debbugs.gnu.org, antoine.levitt@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132472732825751 (code B ref 9246); Sat, 24 Dec 2011 11:49:01 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 11:48:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReQ5n-0006hH-4s for submit@debbugs.gnu.org; Sat, 24 Dec 2011 06:48:47 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReQ5i-0006h5-I0 for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 06:48:43 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LWP00000HS7AX00@a-mtaout21.012.net.il> for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 13:46:20 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.84.173]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWP000RZI174960@a-mtaout21.012.net.il>; Sat, 24 Dec 2011 13:46:20 +0200 (IST) Date: Sat, 24 Dec 2011 13:46:21 +0200 From: Eli Zaretskii In-reply-to: <1312839728.2986.6.camel@kiwi-pc2> Message-id: <83fwgaxkdu.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <8762mb1jq1.fsf@gmail.com> <1312839728.2986.6.camel@kiwi-pc2> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Thomas Riccardi > Date: Mon, 08 Aug 2011 23:42:08 +0200 > Cc: bug-gnu-emacs@gnu.org >=20 > Le samedi 06 ao=C3=BBt 2011 =C3=A0 02:12 +0200, Antoine Levitt a = =C3=A9crit :=20 > > How to reproduce: > >=20 > > emacs -nw -Q > > (setq word-wrap t) > > M-x erc, join a random channel > > M-x erc-scrolltobottom-enable > > type in a long link (http://longlinkthatgoesoveroneline.com) > > type in random lines till window is full > > watch all hell break loose (point at top of window, last line not= visible) > >=20 > > FWIW, this is an old bug, and probably has nothing to do with bid= i. > >=20 >=20 > I have the same issue. >=20 > It also happens when you already have the window full of logs, and = you > type a long url: as soon as the cursor hits the last column, it jum= ps at > the end of the first line of log; you can continue typing but you d= on't > see the text: it's one line after the last displayed line. Can one of you please provide a simpler test case? I tried following the original recipe, but "M-x erc" fails for me with some mumbo-jumbo I cannot parse. TIA From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 14:01: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, Thomas Riccardi Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.13247352107492 (code B ref 9246); Sat, 24 Dec 2011 14:01:02 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 14:00:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReS8w-0001wn-6i for submit@debbugs.gnu.org; Sat, 24 Dec 2011 09:00:10 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReS8s-0001we-LX for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 09:00:08 -0500 Received: by eekc14 with SMTP id c14so10048232eek.3 for <9246@debbugs.gnu.org>; Sat, 24 Dec 2011 05:57:44 -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:content-transfer-encoding; bh=KK6ENO0+cT+mjPAMJGlB30Qm1qX0cL/b7IVG1yJ9nkk=; b=e1xBsBTstXbXX5KrH7tzA11nNHRhsVbNSnhzdcGzsZBkZmA+WtwT8h6hBVt5sJt/a0 lfxSyTVBBl0L97AHjQ8hGqwNxehZ0GYGAdByrxeP/ZUoTBqu9jxHegqCojXxFV96pict j3KceodSxl87l3n4crJxbXIZqEvBIf+LTqhsQ= Received: by 10.213.16.198 with SMTP id p6mr21728eba.140.1324735064460; Sat, 24 Dec 2011 05:57:44 -0800 (PST) Received: from lambda ([2a01:e35:2e9d:c6a0:226:5eff:fe55:54d7]) by mx.google.com with ESMTPS id z43sm63243158eef.7.2011.12.24.05.57.41 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Dec 2011 05:57:43 -0800 (PST) From: Antoine Levitt References: <8762mb1jq1.fsf@gmail.com> <1312839728.2986.6.camel@kiwi-pc2> <83fwgaxkdu.fsf@gnu.org> Date: Sat, 24 Dec 2011 14:57:39 +0100 In-Reply-To: <83fwgaxkdu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Dec 2011 13:46:21 +0200") Message-ID: <87ehvudqcs.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) 24/12/11 12:46, Eli Zaretskii >> From: Thomas Riccardi >> Date: Mon, 08 Aug 2011 23:42:08 +0200 >> Cc: bug-gnu-emacs@gnu.org >>=20 >> Le samedi 06 ao=C3=BBt 2011 =C3=A0 02:12 +0200, Antoine Levitt a =C3=A9c= rit :=20 >> > How to reproduce: >> >=20 >> > emacs -nw -Q >> > (setq word-wrap t) >> > M-x erc, join a random channel >> > M-x erc-scrolltobottom-enable >> > type in a long link (http://longlinkthatgoesoveroneline.com) >> > type in random lines till window is full >> > watch all hell break loose (point at top of window, last line not visi= ble) >> >=20 >> > FWIW, this is an old bug, and probably has nothing to do with bidi. >> >=20 >>=20 >> I have the same issue. >>=20 >> It also happens when you already have the window full of logs, and you >> type a long url: as soon as the cursor hits the last column, it jumps at >> the end of the first line of log; you can continue typing but you don't >> see the text: it's one line after the last displayed line. > > Can one of you please provide a simpler test case? I tried following > the original recipe, but "M-x erc" fails for me with some mumbo-jumbo > I cannot parse. > > TIA Hi, I don't know a simpler way - at least, not without understanding erc-scrolltobottom, which I don't. How does erc fail? Does it prompt you for a server/port/nickname/password? Are you able to connect to irc.freenode.net? Then, you just have to type "/join #somethingwithnobodyonit", and that'll create a buffer for that channel, on which you can experiment. Antoine From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 14:50: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132473816711613 (code B ref 9246); Sat, 24 Dec 2011 14:50:02 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 14:49:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReSuc-00031G-UR for submit@debbugs.gnu.org; Sat, 24 Dec 2011 09:49:27 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReSuY-000316-7U for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 09:49:25 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LWP00B00PJ57700@a-mtaout22.012.net.il> for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 16:46:59 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.151.186]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWP0065JQEANHX1@a-mtaout22.012.net.il>; Sat, 24 Dec 2011 16:46:59 +0200 (IST) Date: Sat, 24 Dec 2011 16:47:01 +0200 From: Eli Zaretskii In-reply-to: <87ehvudqcs.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <8362h6xc0q.fsf@gnu.org> References: <8762mb1jq1.fsf@gmail.com> <1312839728.2986.6.camel@kiwi-pc2> <83fwgaxkdu.fsf@gnu.org> <87ehvudqcs.fsf@gmail.com> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Antoine Levitt > Cc: Thomas Riccardi , 9246@debbugs.gnu.org > Date: Sat, 24 Dec 2011 14:57:39 +0100 > > I don't know a simpler way - at least, not without understanding > erc-scrolltobottom, which I don't. What is erc-scrolltobottom? > How does erc fail? It turns out, it doesn't always fail. When it does, it shows this in the echo area: make client process failed: connection timed out, :name, erc-irc.freenode.net-6667, :buffer, nil, :host, irc.freenode.net, :service, 6667, :nowait, nil Anyway, I tried on a different system, where I have better luck connecting, and I cannot reproduce the problem here, with the latest trunk. I typed a very long link, then typed some random lines until the window was full, and didn't see any hell break lose on me. 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? From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw In-Reply-To: <8762mb1jq1.fsf@gmail.com> 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 15:33: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132474075915676 (code B ref 9246); Sat, 24 Dec 2011 15:33:02 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 15:32:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReTaL-00044d-6I for submit@debbugs.gnu.org; Sat, 24 Dec 2011 10:32:39 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReTaB-00044P-Ta for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 10:32:30 -0500 Received: by eekc14 with SMTP id c14so10106151eek.3 for <9246@debbugs.gnu.org>; Sat, 24 Dec 2011 07:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=ZOBQmCQz1z6EsT3eJWsrHamSUwp7s+Xl0bx5nCR7uCI=; b=h45UUgUDWdPnb3oc1P9tfHAnBb09YnDPQ4Wv8Ya4cyqnuDiOBbjdH5DFOEXXAR0+cR PBqDWZuXo7Mz4fPuvjjLAJ63w8edduTad0yP6L5OCaFzUyQh4otNlHH3YBnja8dWxJAk 142dOqJ0cf683q4yQ5AxbcFXBxFghmSWEN2cY= Received: by 10.213.109.18 with SMTP id h18mr885995ebp.69.1324740601189; Sat, 24 Dec 2011 07:30:01 -0800 (PST) Received: from lambda ([2a01:e35:2e9d:c6a0:226:5eff:fe55:54d7]) by mx.google.com with ESMTPS id y12sm63175532eeb.11.2011.12.24.07.29.58 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Dec 2011 07:30:00 -0800 (PST) From: Antoine Levitt References: <8762mb1jq1.fsf@gmail.com> <1312839728.2986.6.camel@kiwi-pc2> <83fwgaxkdu.fsf@gnu.org> <87ehvudqcs.fsf@gmail.com> <8362h6xc0q.fsf@gnu.org> Date: Sat, 24 Dec 2011 16:29:56 +0100 Message-ID: <877h1m56ob.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) 24/12/11 15:47, Eli Zaretskii >> From: Antoine Levitt >> Cc: Thomas Riccardi , 9246@debbugs.gnu.org >> Date: Sat, 24 Dec 2011 14:57:39 +0100 >> >> I don't know a simpler way - at least, not without understanding >> erc-scrolltobottom, which I don't. > > What is erc-scrolltobottom? It's a module to automatically scroll to the bottom of the buffer. I think I looked at it some time ago, and concluded that this bug comes from emacs internals rather than this module. But I might be wrong. > >> How does erc fail? > > It turns out, it doesn't always fail. When it does, it shows this in > the echo area: > > make client process failed: connection timed out, :name, > erc-irc.freenode.net-6667, :buffer, nil, :host, irc.freenode.net, > :service, 6667, :nowait, nil Probably an internet connection problem, not emacs related. > > Anyway, I tried on a different system, where I have better luck > connecting, and I cannot reproduce the problem here, with the latest > trunk. I typed a very long link, then typed some random lines until > the window was full, and didn't see any hell break lose on me. > > 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. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 16:37: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132474456521322 (code B ref 9246); Sat, 24 Dec 2011 16:37:01 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 16:36:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReUZi-0005XT-HE for submit@debbugs.gnu.org; Sat, 24 Dec 2011 11:36:05 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReUZa-0005XH-ER for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 11:35:57 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LWP00300V615500@a-mtaout20.012.net.il> for 9246@debbugs.gnu.org; Sat, 24 Dec 2011 18:32:47 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.151.186]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWP00281VAK3TI0@a-mtaout20.012.net.il>; Sat, 24 Dec 2011 18:32:46 +0200 (IST) Date: Sat, 24 Dec 2011 18:32:47 +0200 From: Eli Zaretskii In-reply-to: <877h1m56ob.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <8339cax74g.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> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132474640826837 (code B ref 9246); Sat, 24 Dec 2011 17:07:02 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 17:06:48 +0000 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 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 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= Received: by 10.14.47.141 with SMTP id t13mr7499972eeb.89.1324746247729; Sat, 24 Dec 2011 09:04:07 -0800 (PST) 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) From: Antoine Levitt 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> Date: Sat, 24 Dec 2011 18:04:03 +0100 In-Reply-To: <8339cax74g.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Dec 2011 18:32:47 +0200") Message-ID: <87ty4p3nr0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) 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? From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132474747931185 (code B ref 9246); Sat, 24 Dec 2011 17:25:01 +0000 Received: (at 9246) by debbugs.gnu.org; 24 Dec 2011 17:24:39 +0000 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 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 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) 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) Date: Sat, 24 Dec 2011 19:22:09 +0200 From: Eli Zaretskii In-reply-to: <87ty4p3nr0.fsf@gmail.com> X-012-Sender: halo1@inter.net.il 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> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Antoine Levitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2011 22:49: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132519890626491 (code B ref 9246); Thu, 29 Dec 2011 22:49:02 +0000 Received: (at 9246) by debbugs.gnu.org; 29 Dec 2011 22:48:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgOlt-0006tE-Uc for submit@debbugs.gnu.org; Thu, 29 Dec 2011 17:48:26 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgOlr-0006t6-S6 for 9246@debbugs.gnu.org; Thu, 29 Dec 2011 17:48:24 -0500 Received: by wibhj6 with SMTP id hj6so7134586wib.3 for <9246@debbugs.gnu.org>; Thu, 29 Dec 2011 14:45:31 -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=wUdsMUf9Ez2whUSlcrFF+pEzlFmSAFssIb9Vr5ogQGA=; b=Bfq6ZAwQ2ublxRPuEGdq80o7BXMfNawZI1oN1FqBAvG2jYvaEPdOlfERiXUspV6epJ cZgjdMSdGBiP1Qvpn8BBnP0fIS8o8WtufERF7Vk/DfWXqbzQUrbwgvpc6hP3fqJC1wuj Xnk2NmQp1VyZapck7JcT4LMx6O4lLPi8I7RMI= Received: by 10.180.78.101 with SMTP id a5mr25350176wix.19.1325198730970; Thu, 29 Dec 2011 14:45:30 -0800 (PST) Received: from lambda (cab14-1-88-177-9-245.fbx.proxad.net. [88.177.9.245]) by mx.google.com with ESMTPS id di5sm87087268wib.3.2011.12.29.14.45.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Dec 2011 14:45:28 -0800 (PST) From: Antoine Levitt 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> Date: Thu, 29 Dec 2011 23:45:25 +0100 In-Reply-To: <83wr9lx4u6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Dec 2011 19:22:09 +0200") Message-ID: <87ipkzvvy2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) 24/12/11 18:22, Eli Zaretskii >> 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. So is there a hook it could use? Incidentally, this warning doesn't get displayed on C-h v, it might be a good idea to move it. > >> 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). No need for a numeric argument before C-v, just doing it recenters the view past the buffer end. > >> 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 ;) 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). Ideally, it'd hook up after scroll-up-command, and recenter appropriately. With that in place, I don't think anything can get past the end of the buffer. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132523789421172 (code B ref 9246); Fri, 30 Dec 2011 09:39:01 +0000 Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 09:38:14 +0000 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 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 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) 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) Date: Fri, 30 Dec 2011 11:34:23 +0200 From: Eli Zaretskii In-reply-to: <87ipkzvvy2.fsf@gmail.com> X-012-Sender: halo1@inter.net.il 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> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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 From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw In-Reply-To: <8762mb1jq1.fsf@gmail.com> 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 14:05: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132525387620556 (code B ref 9246); Fri, 30 Dec 2011 14:05:02 +0000 Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 14:04:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgd4W-0005LV-1T for submit@debbugs.gnu.org; Fri, 30 Dec 2011 09:04:36 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgd4S-0005LL-Vq for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 09:04:34 -0500 Received: by werb14 with SMTP id b14so7007200wer.3 for <9246@debbugs.gnu.org>; Fri, 30 Dec 2011 06:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=ttJ+dtf5FItubVhDvtwr/7I0Wv+v61L0gevhDq7bcXY=; b=veHN5JhSqjja3gqaA2W6SKz+qfjuNgQiXYUMb5S6t5rNZkYl+dWl/VsVQ/qhZanlqT ShRR2dxwlL/5cbvqbOI8cwJ9oPMwnR2oM+gpRDxGBtyW6nIlarqBkzGpO5UWhpFn5dRT gQAppgNWLBgup4M8Mu3r22K5R5qH54wa38drU= Received: by 10.216.209.228 with SMTP id s78mr27676778weo.26.1325253696468; Fri, 30 Dec 2011 06:01:36 -0800 (PST) Received: from lambda (i01v-213-44-207-121.d4.club-internet.fr. [213.44.207.121]) by mx.google.com with ESMTPS id dd4sm92561407wib.1.2011.12.30.06.01.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Dec 2011 06:01:35 -0800 (PST) From: Antoine Levitt 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> Date: Fri, 30 Dec 2011 15:01:26 +0100 Message-ID: <87mxaaupjd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) --=-=-= Content-Type: text/plain 30/12/11 10:34, Eli Zaretskii >> 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. 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? > >> >> 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 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. It works when I force redisplay, except that of course it's wrong to do that. I couldn't find a post-redisplay-hook, which might be more appropriate. Is there one? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=add-warning-to-window-scroll-functions.diff === modified file 'src/ChangeLog' --- src/ChangeLog 2011-12-23 14:51:51 +0000 +++ src/ChangeLog 2011-12-30 12:10:36 +0000 @@ -1,3 +1,8 @@ +2011-12-30 Antoine Levitt + + * xdisp.c (syms_of_xdisp): Add warning to the doc of + window-scroll-functions, not just its info file. + 2011-12-23 Eli Zaretskii * xdisp.c (handle_invisible_prop): Handle correctly an invisible === modified file 'src/xdisp.c' --- src/xdisp.c 2011-12-23 14:51:51 +0000 +++ src/xdisp.c 2011-12-30 10:41:12 +0000 @@ -28325,7 +28325,11 @@ Each function is called with two arguments, the window and its new display-start position. Note that these functions are also called by `set-window-buffer'. Also note that the value of `window-end' is not -valid when these functions are called. */); +valid when these functions are called. + +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. */); Vwindow_scroll_functions = Qnil; DEFVAR_LISP ("window-text-change-functions", --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=use-post-command-hook.diff === modified file 'lisp/erc/ChangeLog' --- lisp/erc/ChangeLog 2011-11-28 09:24:08 +0000 +++ lisp/erc/ChangeLog 2011-12-30 12:26:11 +0000 @@ -1,3 +1,9 @@ +2011-12-30 Antoine Levitt + + * erc-goodies.el (erc-scroll-to-bottom): Use post-command-hook + rather than window-scroll-functions. Fixes a bug with word-wrap on + a tty. + 2011-11-28 Mike Kazantsev (tiny change) * erc-dcc.el (erc-dcc-ctcp-query-send-regexp): Updated regexp to === modified file 'lisp/erc/erc-goodies.el' --- lisp/erc/erc-goodies.el 2011-01-26 08:36:39 +0000 +++ lisp/erc/erc-goodies.el 2011-12-30 13:59:12 +0000 @@ -60,7 +60,7 @@ ((remove-hook 'erc-mode-hook 'erc-add-scroll-to-bottom) (dolist (buffer (erc-buffer-list)) (with-current-buffer buffer - (remove-hook 'window-scroll-functions 'erc-scroll-to-bottom t))))) + (remove-hook 'post-command-hook 'erc-scroll-to-bottom t))))) (defun erc-add-scroll-to-bottom () "A hook function for `erc-mode-hook' to recenter output at bottom of window. @@ -70,35 +70,29 @@ This works whenever scrolling happens, so it's added to `window-scroll-functions' rather than `erc-insert-post-hook'." - ;;(make-local-hook 'window-scroll-functions) - (add-hook 'window-scroll-functions 'erc-scroll-to-bottom nil t)) + (add-hook 'post-command-hook 'erc-scroll-to-bottom nil t)) -(defun erc-scroll-to-bottom (window display-start) +(defun erc-scroll-to-bottom () "Recenter WINDOW so that `point' is on the last line. This is added to `window-scroll-functions' by `erc-add-scroll-to-bottom'. You can control which line is recentered to by customizing the -variable `erc-input-line-position'. - -DISPLAY-START is ignored." - (if (window-live-p window) +variable `erc-input-line-position'." ;; Temporarily bind resize-mini-windows to nil so that users who have it ;; set to a non-nil value will not suffer from premature minibuffer ;; shrinkage due to the below recenter call. I have no idea why this ;; works, but it solves the problem, and has no negative side effects. ;; (Fran Litterio, 2003/01/07) - (let ((resize-mini-windows nil)) - (erc-with-selected-window window - (save-restriction - (widen) - (when (and erc-insert-marker - ;; we're editing a line. Scroll. - (> (point) erc-insert-marker)) - (save-excursion - (goto-char (point-max)) - (recenter (or erc-input-line-position -1)) - (sit-for 0)))))))) + (let ((resize-mini-windows nil)) + (save-restriction + (widen) + (when (and erc-insert-marker + ;; we're editing a line. Scroll. + (> (point) erc-insert-marker)) + (save-excursion + (goto-char (point-max)) + (recenter (or erc-input-line-position -1))))))) ;;; Make read only (define-erc-module readonly nil --=-=-=-- From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 15:49:03 +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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.13252600831406 (code B ref 9246); Fri, 30 Dec 2011 15:49:03 +0000 Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 15:48:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgegc-0000Md-SO for submit@debbugs.gnu.org; Fri, 30 Dec 2011 10:48:03 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgegX-0000M6-L0 for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 10:47:59 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LX000800WF3ZX00@a-mtaout20.012.net.il> for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 17:44:59 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX000778X2YMKJ0@a-mtaout20.012.net.il>; Fri, 30 Dec 2011 17:44:59 +0200 (IST) Date: Fri, 30 Dec 2011 17:45:00 +0200 From: Eli Zaretskii In-reply-to: <87mxaaupjd.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83hb0it66b.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> <83y5tutnc0.fsf@gnu.org> <87mxaaupjd.fsf@gmail.com> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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. > 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. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.13252652179649 (code B ref 9246); Fri, 30 Dec 2011 17:14:01 +0000 Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 17:13:37 +0000 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 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 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= Received: by 10.180.19.106 with SMTP id d10mr88222025wie.2.1325265037324; Fri, 30 Dec 2011 09:10:37 -0800 (PST) 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) From: Antoine Levitt 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> Date: Fri, 30 Dec 2011 18:10:33 +0100 In-Reply-To: <83hb0it66b.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Dec 2011 17:45:00 +0200") Message-ID: <87obuqt27q.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) 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? From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw 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 18:17: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132526902015801 (code B ref 9246); Fri, 30 Dec 2011 18:17:01 +0000 Received: (at 9246) by debbugs.gnu.org; 30 Dec 2011 18:17:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgh0l-00046n-PR for submit@debbugs.gnu.org; Fri, 30 Dec 2011 13:17:00 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgh0h-00046d-Ls for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 13:16:56 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LX100N003OX4A00@a-mtaout23.012.net.il> for 9246@debbugs.gnu.org; Fri, 30 Dec 2011 20:13:56 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX100MAM3Z6WPA0@a-mtaout23.012.net.il>; Fri, 30 Dec 2011 20:13:56 +0200 (IST) Date: Fri, 30 Dec 2011 20:13:56 +0200 From: Eli Zaretskii In-reply-to: <87obuqt27q.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83ehvmsza3.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> <83y5tutnc0.fsf@gnu.org> <87mxaaupjd.fsf@gmail.com> <83hb0it66b.fsf@gnu.org> <87obuqt27q.fsf@gmail.com> X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > From: Antoine Levitt > Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org > Date: Fri, 30 Dec 2011 18:10:33 +0100 > > >> 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) posn-at-point does not depend on redisplay, it does its job regardless of whether the display is up to date. But if you moved point past the window edge, and redisplay didn't yet happen, you will get nil because point is not visible in the window. > >> 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? I don't know, I didn't research the issue. But I wouldn't be surprised if it's not that simple. Nothing is ever simple with Emacs display engine. From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2011 08:33: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: To: Antoine Levitt Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Reply-To: Eli Zaretskii Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132532034331335 (code B ref 9246); Sat, 31 Dec 2011 08:33:01 +0000 Received: (at 9246) by debbugs.gnu.org; 31 Dec 2011 08:32:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RguMY-00089L-Hv for submit@debbugs.gnu.org; Sat, 31 Dec 2011 03:32:23 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RguMV-00089C-SA for 9246@debbugs.gnu.org; Sat, 31 Dec 2011 03:32:21 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LX200J006I6IV00@a-mtaout22.012.net.il> for 9246@debbugs.gnu.org; Sat, 31 Dec 2011 10:29:17 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX200IYF7KQY3B0@a-mtaout22.012.net.il>; Sat, 31 Dec 2011 10:29:16 +0200 (IST) Date: Sat, 31 Dec 2011 10:29:17 +0200 From: Eli Zaretskii In-reply-to: <87mxaaupjd.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83y5ttrvoi.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> <83y5tutnc0.fsf@gnu.org> <87mxaaupjd.fsf@gmail.com> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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? Done (as revisions 106750 and 106751 on the trunk). I didn't see any change that uses posn-at-point. Do you intend to add something else, or can this bug report be closed now? From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2011 10:38: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: To: Eli Zaretskii Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org, Antoine Levitt Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132532782312596 (code B ref 9246); Sat, 31 Dec 2011 10:38:02 +0000 Received: (at 9246) by debbugs.gnu.org; 31 Dec 2011 10:37:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgwJC-0003H6-DP for submit@debbugs.gnu.org; Sat, 31 Dec 2011 05:37:02 -0500 Received: from smtp-03.vtx.ch ([194.38.175.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgwJA-0003Gh-SA for 9246@debbugs.gnu.org; Sat, 31 Dec 2011 05:37:01 -0500 Received: from ceviche.home (dyn.83-228-174-200.dsl.vtx.ch [83.228.174.200]) by smtp-03.vtx.ch (VTX Services SA) with ESMTP id 147E4296C2D; Sat, 31 Dec 2011 11:33:59 +0100 (CET) Received: by ceviche.home (Postfix, from userid 20848) id E11FB66162; Sat, 31 Dec 2011 05:33:58 -0500 (EST) From: Stefan Monnier Message-ID: 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> Date: Sat, 31 Dec 2011 05:33:58 -0500 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) > 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. Actually, I'd like a pre-redisplay-hook, not a post-redisplay-hook. Stefan From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Antoine Levitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2011 11:33: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: To: Eli Zaretskii Cc: 9246@debbugs.gnu.org, riccardi.thomas@gmail.com Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132533112817577 (code B ref 9246); Sat, 31 Dec 2011 11:33:01 +0000 Received: (at 9246) by debbugs.gnu.org; 31 Dec 2011 11:32:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgxAV-0004ZS-Il for submit@debbugs.gnu.org; Sat, 31 Dec 2011 06:32:07 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgxAS-0004ZJ-Ob for 9246@debbugs.gnu.org; Sat, 31 Dec 2011 06:32:06 -0500 Received: by wibhj6 with SMTP id hj6so8126009wib.3 for <9246@debbugs.gnu.org>; Sat, 31 Dec 2011 03:29:03 -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=Pnqbmi/GPT6zzR9YNCDlJllbs4+KYGCyvo78KGD+1rc=; b=V7taCOiyZb+h0+Gcf8ATlFteZNmjIxhGeioFf7WrgyzfEhmhXBG+fye+HWhNe/HaeE re2o4+L19SIfTG4wyiUKvoVL0VtzwYlE6Oj8z+1LQKpTe0oJWuYIFRU0qz+9lJKIYZUs FRBs5QRIoHc+IggCaoaMRXdjLV0gbZbhY5Cow= Received: by 10.181.13.162 with SMTP id ez2mr93161551wid.17.1325330943033; Sat, 31 Dec 2011 03:29:03 -0800 (PST) Received: from lambda (i01v-213-44-207-121.d4.club-internet.fr. [213.44.207.121]) by mx.google.com with ESMTPS id 6sm12080162wbw.10.2011.12.31.03.28.57 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Dec 2011 03:29:01 -0800 (PST) From: Antoine Levitt 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> <83y5ttrvoi.fsf@gnu.org> Date: Sat, 31 Dec 2011 12:28:53 +0100 In-Reply-To: <83y5ttrvoi.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 31 Dec 2011 10:29:17 +0200") Message-ID: <87aa69t1xm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) 31/12/11 09:29, 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? > > Done (as revisions 106750 and 106751 on the trunk). Thanks! > I didn't see any change that uses posn-at-point. Do you intend to add > something else, or can this bug report be closed now? Feel free to close, the original bug (about erc-scrolltobottom) is fixed. The change with posn-at-point is more of a wishlist, ie to get an extended version of this behavior for all emacs. I don't see a way to do that properly without a post-redisplay-hook. From unknown Fri Aug 15 19:31:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Antoine Levitt Subject: bug#9246: closed (Re: Scrolling bug with word-wrap in emacs -nw) Message-ID: References: <83r4zlrmmw.fsf@gnu.org> <8762mb1jq1.fsf@gmail.com> X-Gnu-PR-Message: they-closed 9246 X-Gnu-PR-Package: emacs Reply-To: 9246@debbugs.gnu.org Date: Sat, 31 Dec 2011 11:48:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1325332084-19092-1" This is a multi-part message in MIME format... ------------=_1325332084-19092-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9246: Scrolling bug with word-wrap in emacs -nw which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9246@debbugs.gnu.org. --=20 9246: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9246 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1325332084-19092-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9246-done) by debbugs.gnu.org; 31 Dec 2011 11:47:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgxPc-0004xJ-Be for submit@debbugs.gnu.org; Sat, 31 Dec 2011 06:47:44 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgxPY-0004x9-UB for 9246-done@debbugs.gnu.org; Sat, 31 Dec 2011 06:47:42 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LX200L00GJNTP00@a-mtaout21.012.net.il> for 9246-done@debbugs.gnu.org; Sat, 31 Dec 2011 13:44:38 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX200LL3GMDPM20@a-mtaout21.012.net.il>; Sat, 31 Dec 2011 13:44:38 +0200 (IST) Date: Sat, 31 Dec 2011 13:44:39 +0200 From: Eli Zaretskii Subject: Re: Scrolling bug with word-wrap in emacs -nw In-reply-to: <87aa69t1xm.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: Antoine Levitt Message-id: <83r4zlrmmw.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> <83y5tutnc0.fsf@gnu.org> <87mxaaupjd.fsf@gmail.com> <83y5ttrvoi.fsf@gnu.org> <87aa69t1xm.fsf@gmail.com> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 9246-done Cc: 9246-done@debbugs.gnu.org, riccardi.thomas@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > From: Antoine Levitt > Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org > Date: Sat, 31 Dec 2011 12:28:53 +0100 > > 31/12/11 09:29, 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? > > > > Done (as revisions 106750 and 106751 on the trunk). > > Thanks! > > > I didn't see any change that uses posn-at-point. Do you intend to add > > something else, or can this bug report be closed now? > > Feel free to close, the original bug (about erc-scrolltobottom) is > fixed. The change with posn-at-point is more of a wishlist, ie to get an > extended version of this behavior for all emacs. I don't see a way to do > that properly without a post-redisplay-hook. Closing. ------------=_1325332084-19092-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Aug 2011 00:13:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpUWC-0003H5-8M for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:13:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpUWA-0003Gy-1y for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpUVN-00050h-D0 for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:12:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:49532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVN-00050d-Bb for submit@debbugs.gnu.org; Fri, 05 Aug 2011 20:12:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVM-0005yd-6y for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpUVL-00050G-1N for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:40 -0400 Received: from lo.gmane.org ([80.91.229.12]:59239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpUVK-000502-Sd for bug-gnu-emacs@gnu.org; Fri, 05 Aug 2011 20:12:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QpUVJ-0003dX-4X for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 02:12:37 +0200 Received: from uni14-1-82-233-220-106.fbx.proxad.net ([82.233.220.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 02:12:37 +0200 Received: from antoine.levitt by uni14-1-82-233-220-106.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 02:12:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Antoine Levitt Subject: Scrolling bug with word-wrap in emacs -nw Date: Sat, 06 Aug 2011 02:12:22 +0200 Lines: 11 Message-ID: <8762mb1jq1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: uni14-1-82-233-220-106.fbx.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) How to reproduce: emacs -nw -Q (setq word-wrap t) M-x erc, join a random channel M-x erc-scrolltobottom-enable type in a long link (http://longlinkthatgoesoveroneline.com) type in random lines till window is full watch all hell break loose (point at top of window, last line not visible) FWIW, this is an old bug, and probably has nothing to do with bidi. ------------=_1325332084-19092-1-- From unknown Fri Aug 15 19:31:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9246: Scrolling bug with word-wrap in emacs -nw Resent-From: Richard Stallman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jan 2012 03:03: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: To: Stefan Monnier Cc: eliz@gnu.org, riccardi.thomas@gmail.com, 9246@debbugs.gnu.org, antoine.levitt@gmail.com Reply-To: rms@gnu.org Received: via spool by 9246-submit@debbugs.gnu.org id=B9246.132538695214326 (code B ref 9246); Sun, 01 Jan 2012 03:03:01 +0000 Received: (at 9246) by debbugs.gnu.org; 1 Jan 2012 03:02:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RhBgu-0003j0-Ae for submit@debbugs.gnu.org; Sat, 31 Dec 2011 22:02:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RhBgs-0003it-Dt for 9246@debbugs.gnu.org; Sat, 31 Dec 2011 22:02:31 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RhBds-0005Ha-Qm; Sat, 31 Dec 2011 21:59:24 -0500 Date: Sat, 31 Dec 2011 21:59:24 -0500 Message-Id: Content-Type: text/plain; charset=ISO-8859-15 From: Richard Stallman In-reply-to: (message from Stefan Monnier on Sat, 31 Dec 2011 05:33:58 -0500) 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> X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > 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. Actually, I'd like a pre-redisplay-hook, not a post-redisplay-hook. Hooks in redisplay make me worry, for two reasons: 1. If used in a nontrivial way, they will make it very hard to debug. It is hard to see what's going on if the principal objects change when you try to look at them. 2, Why would you want them? If you put the correct contents in the buffer, it will display the way you want, right? We do use redisplay hooks for fontification. The reason is that fontifying everything would be too slow. Fontification doesn't cause problem #1 because it is stable as long as the buffer's contents don't change in other ways. However, I think we should resist adding more redisplay hooks unless they are very very necessary. And when we do, we should try to make them limited. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use free telephony http://directory.fsf.org/category/tel/