unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: johnc@technology-is-evil.com
Cc: 8114@debbugs.gnu.org
Subject: bug#8114: macros fail in emacs 23.1
Date: Thu, 24 Feb 2011 23:15:51 -0500	[thread overview]
Message-ID: <g5sjvc3g20.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <20110224195045.6813460112e1e451111e8106817db522.6e72ddd86f.wbe@email01.secureserver.net> (johnc@technology-is-evil.com's message of "Thu, 24 Feb 2011 19:50:45 -0700")


It looks like this bug report was submitted via bcc?
Please try not to do that, since if you do the bug tracking system has
no way of knowing which package (Emacs in this case) your bug report is
about. Or put "Package: emacs" at the start of the message body.

I have reassigned it to the emacs package. The full text of the original
report is below.

--------

%emacs -Q
M-x version
GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of
2011-02-24 on hostnm01

<delete all text, so you are starting from an empty scratch buffer>

insert this line once (a <space> b):
a b

then copy it until the buffer contains 150 copies of that line:
a b
a b
a b
 .
 .
 .

ESC <                   ;; beginning-of-buffer
^X (     ;; start recording keyboard macro

C-s                     ;; isearch-forward
SPC                     ;; self-insert-command
C-e                     ;; move-end-of-line
C-b                     ;; backward-char
xyz                     ;; self-insert-command * 3
SPC                     ;; self-insert-command
C-a                     ;; move-beginning-of-line
C-n                     ;; next-line

^X )                 ;; end recording

^X e                    ;; run the macro one time
^X e                    ;; run the macro one time
C-u 1 5 0 ^X e          ;; run the macro 150 times

The expected outcome is that each line in the buffer should now look
like this:
a xyz b

But many of the lines still look as they did at the beginning, namely:
a b
.
Note that the incorrect lines are intertwingled with the
correctly-edited lines, up to the end of the buffer.

\ | /
 ===   John Crown  johnc@technology-is-evil.com





       reply	other threads:[~2011-02-25  4:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110224195045.6813460112e1e451111e8106817db522.6e72ddd86f.wbe@email01.secureserver.net>
2011-02-25  4:15 ` Glenn Morris [this message]
2011-02-25  8:23   ` bug#8114: macros fail in emacs 23.1 Eli Zaretskii
2011-03-22 14:04     ` Johan Bockgård

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=g5sjvc3g20.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=8114@debbugs.gnu.org \
    --cc=johnc@technology-is-evil.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).