From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15090: linum-mode and visual-line-mode (both defaults) have conflicting behavior Date: Thu, 15 Aug 2013 18:22:26 +0300 Message-ID: <83txirnfm5.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376580201 31413 80.91.229.3 (15 Aug 2013 15:23:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 15:23:21 +0000 (UTC) Cc: 15090-done@debbugs.gnu.org To: Dave Kepler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 17:23:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9zOT-0000K2-Pi for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 17:23:22 +0200 Original-Received: from localhost ([::1]:53918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9zOT-00010H-3I for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2013 11:23:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9zOI-0000o8-L6 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 11:23:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9zOB-0003dq-BG for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 11:23:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9zOB-0003dm-7t for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 11:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9zOA-00066N-Te for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2013 11:23:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2013 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15090@debbugs.gnu.org, eliz@gnu.org, lalop.lmao@gmail.com Original-Received: via spool by 15090-done@debbugs.gnu.org id=D15090.137658017623434 (code D ref 15090); Thu, 15 Aug 2013 15:23:02 +0000 Original-Received: (at 15090-done) by debbugs.gnu.org; 15 Aug 2013 15:22:56 +0000 Original-Received: from localhost ([127.0.0.1]:60590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9zO3-00065t-Bj for submit@debbugs.gnu.org; Thu, 15 Aug 2013 11:22:55 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45047) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9zO0-00065c-E7 for 15090-done@debbugs.gnu.org; Thu, 15 Aug 2013 11:22:53 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRK00600VXB8G00@a-mtaout20.012.net.il> for 15090-done@debbugs.gnu.org; Thu, 15 Aug 2013 18:21:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRK0060VW0J5A50@a-mtaout20.012.net.il>; Thu, 15 Aug 2013 18:21:55 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77382 Archived-At: > Date: Wed, 14 Aug 2013 22:47:37 -0500 > From: Dave Kepler > > My apologies, that was a pretty serious omission. My emacs version was > 24.3.1. I've just tried it with trunk and -Q, and I think I found a > reliable way to duplicate it. > > 1. emacs -Q, you start with a scratch file. Delete the text in the scratch > file. > > 2. Paste the following string, not including quotations: > > "abc def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc > def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc def ghi > jkl mno pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno > pqr stu vwz yzabc def ghi jkl mno pqr abc def ghi jkl mno pqr stu vwz yzabc > def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc def ghi > jkl mno pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno > pqr stu vwz yzabc def ghi jkl mno pqr stu vwz yzabc def ghi jkl mno pqr > > > > > > > > > > > > > > > > " > > The exact string should not matter, but: > a. The top line should be many short words. It should be long enough to > perform step 3. > b. It should be followed by many empty lines > > 3. Scroll down so that the top of your window breaks that top line. That > is, part of the top line should be above your window, so that you are only > able to see the ending of the top line. > > 4. M-x linum-mode > > 5. M-x visual-line-mode > > 6. Move point to the end of the top line, and type anything > > > > What should happen: the text in the topmost part of the top line is unmoved > as you append text to the end of line > > What does happen: the text in the topmost part of the top line will move > horizontally as you append text. > > > Note: when I try creating a new file rather than using scratch, this bug > does not happen when I append to the end of the top line. Rather, it > happens when I scroll using mouse. If the bug duplication does not work as > planned, please also try the following for step 6: > > a. Scrolling with mouse > b. Appending text far below the top line > c. Moving point downward while at EOF > > while watching the top line. Hopefully, my duplication instructions will > work, however. Thanks. This is a very old bug, now fixed in trunk revision 113889. The reason was that we were computing the window start point incorrectly in this situation.