unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bruno Barbier <brubar.cs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: Redisplay inside keyboard macros
Date: Tue, 08 Feb 2022 20:42:30 +0100	[thread overview]
Message-ID: <6202c76b.1c69fb81.56b06.2c5d@mx.google.com> (raw)
In-Reply-To: <83czjxwbjm.fsf@gnu.org>


Hi,

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eduardo Ochs <eduardoochs@gmail.com>
>> Date: Tue, 8 Feb 2022 12:17:52 -0300
...
>> I expected to see an "ab", then a pause, then the "cd", but that's not
>> what happens - I get a pause and then "abcd".
>> 
>> What am I doing wrong? I just triple-checked the docs about redisplay
>> and this behavior makes no sense to me...
>
> 'redisplay' exits immediately if called from a keyboard macro.  It's a
> feature.

In my case, some macros didn't replay correctly, because redisplay
wasn't done (like editing org mode links).

It's probably unsafe and unreliable, but, using a post-command-hook,
I've managed to force redisplays anyway. Macros are way slower than
before, but they now replay correctly.

Eduardo, your 'eek' function just works fine in my emacs, using
just the (sleep-for 1) definition. I can cleanup and share my hack if
you're interested.

Bruno.










  reply	other threads:[~2022-02-08 19:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 15:17 Redisplay inside keyboard macros Eduardo Ochs
2022-02-08 16:47 ` Eli Zaretskii
2022-02-08 19:42   ` Bruno Barbier [this message]
2022-02-08 21:00     ` Eduardo Ochs
2022-02-09 18:28       ` Bruno Barbier
2022-02-08 17:31 ` Eduardo Ochs

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=6202c76b.1c69fb81.56b06.2c5d@mx.google.com \
    --to=brubar.cs@gmail.com \
    --cc=eliz@gnu.org \
    --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.
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).