From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: help-gnu-emacs@gnu.org
Subject: Performance problem with keyboard macros and C-n
Date: Tue, 10 Nov 2020 00:18:27 +0000 [thread overview]
Message-ID: <871rh2f4j0.fsf@robertthorpeconsulting.com> (raw)
On Reddit someone pointed to a performance problem with a keyboard
macro. I investigated it a bit more and found that it was caused by an
interaction between C-n and some programming modes.
Basically, the macro is extremely slow if C-n is used to move between
lines and the macro is run in python-mode or c-mode. However, it is
very fast if fundamental-mode is used or if forward-line is used to move
to the next line. It is also very fast if apply-macro-to-region-lines
is used.
Is this a known performance bug, or should I open a bug report?
BR,
Robert Thorpe
next reply other threads:[~2020-11-10 0:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 0:18 Robert Thorpe [this message]
2020-11-11 22:56 ` Performance problem with keyboard macros and C-n Daniel Martín
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=871rh2f4j0.fsf@robertthorpeconsulting.com \
--to=rt@robertthorpeconsulting.com \
--cc=help-gnu-emacs@gnu.org \
/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.