all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: abbott@dima.unige.it, Markus Triska <triska@metalevel.at>,
	Raymond Zeitler <rzeitler@phonon.com>
Cc: 13452-done@debbugs.gnu.org
Subject: bug#13452: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro
Date: Sat, 28 May 2016 18:38:53 +0300	[thread overview]
Message-ID: <83shx2xkdu.fsf@gnu.org> (raw)
In-Reply-To: <83wpmt52ru.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 May 2016 20:30:29 +0300)

> Date: Mon, 16 May 2016 20:30:29 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 23551@debbugs.gnu.org
> 
> > Date: Mon, 16 May 2016 16:30:32 +0000
> > From: abbott@dima.unige.it
> > Cc: Abbott John <abbott@dima.unige.it>
> > 
> > Open the attached file in Emacs, and move point to the first position.
> > Define a keyboard macro: (I want to put each line inside double-quotes)
> > "			;; self-insert-command
> > C-e			;; move-end-of-line
> > "			;; self-insert-command
> > C-a			;; message-beginning-of-line
> > <down>			;; next-line
> > 
> > Now ask Emacs to repeat this macro 49 times.
> > The result is wrong: at around line 35, the first double-quote
> > is no longer at the start of the line; then on successive lines
> > the position of the first inserted double-quote walks to the right.
> 
> Thanks.
> 
> This is a duplicate of the (old, but unsolved) bug #13452.  The
> problem is not in beginning-of-line, it's in next-line: when the
> window needs to scroll as result of next-line, point ends up in
> columns 1, 2, 3, ... (i.e. gains one column per line moved down),
> instead of sticking to column zero.
> 
> To work around, set line-move-visual to nil before running the macro
> (or as part of the macro), then the problem goes away.
> 
> I'll try to debug this one of these days.

Should be fixed now, please test the latest Emacs master branch.





      parent reply	other threads:[~2016-05-28 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-16 16:30 bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro abbott
2016-05-16 17:30 ` Eli Zaretskii
2016-05-16 19:36   ` abbott
2016-05-16 19:42     ` Eli Zaretskii
2016-05-28 15:38   ` 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

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

  git send-email \
    --in-reply-to=83shx2xkdu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13452-done@debbugs.gnu.org \
    --cc=abbott@dima.unige.it \
    --cc=rzeitler@phonon.com \
    --cc=triska@metalevel.at \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.