From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: Redisplay inside keyboard macros Date: Tue, 08 Feb 2022 20:42:30 +0100 Message-ID: <6202c76b.1c69fb81.56b06.2c5d@mx.google.com> References: <83czjxwbjm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38801"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 21:39:36 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHXGy-0009u9-8Y for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 21:39:36 +0100 Original-Received: from localhost ([::1]:35516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHXGw-0003Mj-T9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 15:39:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHWMp-0006Ji-Ma for help-gnu-emacs@gnu.org; Tue, 08 Feb 2022 14:41:35 -0500 Original-Received: from [2a00:1450:4864:20::32c] (port=40946 helo=mail-wm1-x32c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHWMn-0001gJ-Lt; Tue, 08 Feb 2022 14:41:35 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id m126-20020a1ca384000000b0037bb8e379feso1870031wme.5; Tue, 08 Feb 2022 11:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:from:to:subject:in-reply-to:references:date:mime-version; bh=dlOCltP0lYr5y7RNW9DAzWy7A4k9fEOz2bO8VKvOVdc=; b=Pc/NMSHcHVkSdRJ3lMzvkNWSRPWkzTaiSsLdeN4xxEfyhGEKxv2Dy8f7/jsiMPme5G KEiQUepWmIuLGTnZWx7cCG2K2mr2lMDw1olTPHSmRTK3CrN8PA2vNSGO9xS13xrzfICF fdDMm3LIC3KcJmpb9kZEdmtVDjXiTl/jpegb3we8IT1VDNg7X1zEsO3GTxk9sdn4PH3h dGspVIZ/atyGVq01b7V3SvYVr05SnCtHrEli5TrRm4KdyM/WuQytgkG9B3/2BjH3ns+j NCOhwTLNIbJ24E8gxglIFzc6jvlO+wp/t2uoEccMrtJcbO4jTSfimNULQd9R/ipdD2R3 +j5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:from:to:subject:in-reply-to :references:date:mime-version; bh=dlOCltP0lYr5y7RNW9DAzWy7A4k9fEOz2bO8VKvOVdc=; b=PgWmXXGliMyqeoCxAwS9249JVF6KZ1+GNMXTLGoLKbXBBWuPtjwQxbfrd0o2a2uIHr 4fbQOj3nuF9qU5SEC9Mgr8zSdwmvOf0wf49eg8GCJwvW0+hTBkejo3xrTporaKv0J35V lAOKXfszg6vvVm/HtzahbTh6SojJ1zglqUyM71LLO3vWlB4Q2AIr7H53JyLewKbjjxjR yBJSHP7X8I5dcoLp3HPCDWdqU1eBBfdTKhZKVl4T9BMQV1mI/pmIRz6az+whm3UhbNsv AKhiswUWqp4NbyWO9ULS4ab3oHzMzDuWZlwxLKb8BtnNJURdUSZODKVxGlY6uBA0Htos yXaQ== X-Gm-Message-State: AOAM531TK+1LL4+H5GWWExeFVGIgUanasOqRfc7kQAG9otJVnHcX8qaM sBAQ4sy0thpmF+aXoiUapTv9emB59eo= X-Google-Smtp-Source: ABdhPJy0b2sD0VFvWYrC5O7M9fFestx+m3rdunqkdo91LyTuhdutGzl1OQs/ZekLLKA2HFbsM8UrAg== X-Received: by 2002:a1c:4b13:: with SMTP id y19mr2296039wma.129.1644349291289; Tue, 08 Feb 2022 11:41:31 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id l14sm9388889wrs.55.2022.02.08.11.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 11:41:31 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Tue, 08 Feb 2022 20:42:30 +0100 In-Reply-To: <83czjxwbjm.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135849 Archived-At: Hi, Eli Zaretskii writes: >> From: Eduardo Ochs >> 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.