unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dave Kepler <lalop.lmao@gmail.com>
Cc: 15090-done@debbugs.gnu.org
Subject: bug#15090: linum-mode and visual-line-mode (both defaults) have	conflicting behavior
Date: Thu, 15 Aug 2013 18:22:26 +0300	[thread overview]
Message-ID: <83txirnfm5.fsf@gnu.org> (raw)
In-Reply-To: <CAH=v6+xJfC35py+-hs0d2B_ps7cj-3svQbU3ph8F+aFzBk_3Zg@mail.gmail.com>

> Date: Wed, 14 Aug 2013 22:47:37 -0500
> From: Dave Kepler <lalop.lmao@gmail.com>
> 
> 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.





      reply	other threads:[~2013-08-15 15:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 20:52 bug#15090: linum-mode and visual-line-mode (both defaults) have conflicting behavior Dave Kepler
2013-08-13 21:33 ` Stefan Monnier
2013-08-14  2:51 ` Eli Zaretskii
2013-08-15  3:47 ` Dave Kepler
2013-08-15 15:22   ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83txirnfm5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=15090-done@debbugs.gnu.org \
    --cc=lalop.lmao@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).