unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 3494@emacsbugs.donarmstrong.com, "Kees Bakker" <kees@altium.nl>,
	"Johan Bockgård" <bojohan@gnu.org>
Subject: bug#3494: 23.0.94; line-move-visual: temporary goal column confused by hscrolling
Date: Sun, 12 Jul 2009 10:05:40 +0300	[thread overview]
Message-ID: <871vombcu3.fsf@iki.fi> (raw)
In-Reply-To: <87fxd2su6a.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 11 Jul 2009 18:59:09 -0400")

On 2009-07-11 18:59 (-0400), Chong Yidong wrote:

> I can't reproduce it. Your recipe is missing one step: C-x C-n is a
> disabled command, so you need to type "y" to enable it, as I presume
> you intended. I don't observe any column change, though.
>
> Did you do xrdb -remove beforehand? (I can't reproduce the problem
> with or without Xresource settings.) What's the size of your Emacs
> frame?

Yes, I enabled the disabled set-goal-column command with "y". The bug
appears on terminal too. Here's another, even more accurate recipe what
I do. I uploaded screenshots too (see the link below). This time I use
Emacs in terminal:


 1. xrdb -remove; xterm -geometry 80x25

 2. emacs -Q -nw -f toggle-truncate-lines -f column-number-mode

 3. Create content exactly like this:

        C-u 85 a RET
        C-u 100 b RET

 4. Press C-p two times to move the the beginning of "a" line.

 5. Press C-e to get to the end of "a" line. (See screenshot 1.)

 6. Press C-x C-n and "y" to set goal column. This message is displayed:

        Goal column 85 (use C-x C-n with an arg to unset it)

 7. Press C-n. The screen is scrolled horizontally and the cursor at the
    column 94. (See screenshot 2.)


Let's continue to reproduce the bug which appears without goal column.

 8. Disable the goal column: C-u C-x C-n

 9. Move to the beginning of the "a" line.

10. Move to the end of the "a" line (C-e). Again the screen looks like
    in my first screenshot, see the item 5 above.

11. Press C-n to go the next line. The screen is scrolled horizontally
    and the cursor column is correct: 85. (See screenshot 3.)

12. Press C-p to go the previous line. The cursor stays on the "b" line
    but the cursor column is now 79. (See screenshot 4.)


None of these bugs appear when line-move-visual=nil.


Screenshots here:
http://dtw.silverentertainment.fi/pics/emacs/emacs-bug-3494.png





  reply	other threads:[~2009-07-12  7:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2302.1247329057.2239.bug-gnu-emacs@gnu.org>
2009-07-11 16:44 ` bug#3494: 23.0.94; line-move-visual: temporary goal column confused by hscrolling Teemu Likonen
2009-07-11 17:25   ` Chong Yidong
2009-07-11 18:02     ` Teemu Likonen
2009-07-11 22:59       ` Chong Yidong
2009-07-12  7:05         ` Teemu Likonen [this message]
2009-07-12 16:04           ` Chong Yidong
2009-07-12 16:38             ` Lennart Borgman
2009-07-11 16:31 Chong Yidong
2009-07-11 16:56 ` Teemu Likonen
2009-07-11 17:23   ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-07-11 16:03 Chong Yidong
2009-06-08  1:17 Johan =?UTF-8?Q?Bockg=C3=A5rd

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=871vombcu3.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=3494@emacsbugs.donarmstrong.com \
    --cc=bojohan@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=kees@altium.nl \
    /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).