From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.devel Subject: Re: Add moc to Non-GNU ELPA Date: Tue, 17 Dec 2024 14:47:29 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Psionic K Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 17 18:48:52 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tNbgf-0001g5-Rh for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Dec 2024 18:48:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNbfm-000566-Ku; Tue, 17 Dec 2024 12:47:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNbfg-00055f-Ka for emacs-devel@gnu.org; Tue, 17 Dec 2024 12:47:51 -0500 Original-Received: from mail-yb1-xb33.google.com ([2607:f8b0:4864:20::b33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNbfe-0007EZ-Jt for emacs-devel@gnu.org; Tue, 17 Dec 2024 12:47:48 -0500 Original-Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-e3c9ec344efso3842625276.2 for ; Tue, 17 Dec 2024 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734457662; x=1735062462; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NJV0TiUSg+JYxSQ6SXf2yXv6ZJlbslOmz+c0wSXXgLw=; b=F7tlfXHkSgD+jB1gdw9TNQKTgQeuXl+apFAQE84oMhyU6n/w+v2w75zSn5acr/09F/ kWHusnkQvMWzL/hF/vVjIpUU561q4l4cNP8GrwfclZDcuLx7e3JsUHEcK2Q/+j2qL45G kELFzaFJdBJuOBOIscZGOFA4cYO3YtVwpzzIWfPbGr6RpGnW+P8tAcRyzFYrMxJPIdhE EVHqCyiKMLajmW9xbDkrqqbI29Vw2KR0hLotzMIEh2m0zssh/7uqt9Hv/lak662cgq9v PJ2OkkDSE2nRZ9K7Ei32kIs+lxHSHXfZcRLyfEbi8z9j81szCow5TH8srPSbdGFVA5N0 jq6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734457662; x=1735062462; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NJV0TiUSg+JYxSQ6SXf2yXv6ZJlbslOmz+c0wSXXgLw=; b=fg4d0VipKWDOkcGagPEjqs3anLoM/+RxSMfvuwdAdeMXM9cQUfy0xbNjerSodousY+ 6lHijKm+srKFNp367fg0/wmrIoq/KoJV2l++JAzNhEefGMSebM3U2WZiIMulYmOx3o+U ZYdibJS6gOQVXDiQl94Rm7BtjTyozFEraIC8P4bT3ZWNghydSM2jpYGKS+k4t8WQzQph P5epIDa7gb+ruCOxVVL49AInJdj55MCncb+R3iL0E13/09u+p33qnBedX5wG9FzeobOG aaFTgGsPqvuDMdDwVik9Iz8oURwvxwgekdjSr4j0MJPASoOOmuBPKLjZJQ2gLhVrsgUa HiFA== X-Gm-Message-State: AOJu0YzuKMIaGDu3893/Rm7I3JpeqSMyz2CoVFF2QRduQ57Pi/xuDmL+ ikquLlwdzVZ+ZpNbAfzLpc6T0aeCI8aXy+wbtxYRtflLwomiT2EwPkBKxLopZDA5K1IvjIUdjyK uFraS+GS9cmsgsP/6sqyj+cI1Low= X-Gm-Gg: ASbGncvnox5lxh/MCykNhzhsiTguw1MhPjy274D8U9QJKYtKZqVTeDBv5EQF0a9YGYh mWkw87VTrYLy02q2ZETiSRXNXMuFrVXcg/i4ZNWeETZwpabSjt73YYVG0hSNPGTcmdOcf X-Google-Smtp-Source: AGHT+IENNqmeeM4I+TsaUF91pHoxxS41Wxs8c3A+VsqdiMZ4RWCy7/4BrdutCyjFSN5bXqyoPsx3arHjPfJ5+N9HoFc= X-Received: by 2002:a05:6902:100b:b0:e49:b4fc:ad05 with SMTP id 3f1490d57ef6-e536066515cmr522939276.17.1734457660991; Tue, 17 Dec 2024 09:47:40 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b33; envelope-from=eduardoochs@gmail.com; helo=mail-yb1-xb33.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326604 Archived-At: On Tue, 17 Dec 2024 at 11:09, Psionic K wrote: > > Hi Eduard, > > You can preview the keyboard macro playback on the unstable branch. > There is a simple example at the very end of the demo.org in the > /test directory. `dslide-deck-start' and it will show you the rest > of the way. You can also start at point right on that example or > skip to it with the contents view. > > I also used `unread-key-events', just with a Laplace distribution > based jittery timer for relatively human-appearing key entry speed. > It's for "live" tech demos. You may file an issue for instant > playback. In my rush to do human speed I forgot some people will > just want a normal keyboard macro. > > Do play around with `dslide-kmacro-transcribe-set-mark'. Every macro > you record will encode a step. It's extremely satisfying. > https://github.com/positron-solutions/dslide/commit/c2ea982a809c1114b63638ac4c47e1292e11189e > > I just fixed some bugs and overhauled the start functions. I'm > reluctant to push master even if I fix the tiny outstanding bug I > found. I need to revert a small change somewhere that caused a > regression in reverse image reveal when entering the slide in > reverse. Hi Psionic, I git-cloned the unstable branch of dslide with these commands, rm -Rfv /tmp/dslide/ cd /tmp/ git clone https://github.com/positron-solutions/dslide cd /tmp/dslide/ git branch remotes/origin/unstable and grepped for `unread'... your code only mentions `unread-command-events' in one place - here: https://github.com/positron-solutions/dslide/blob/b8e1399cc531c5d991e7f36fc48e420bc7e2621a/dslide.el#L2052 and if I understood correctly you don't encode delays as events - you use a timer to push events with some delays between them... and your demo is here, https://github.com/positron-solutions/dslide/blob/b8e1399cc531c5d991e7f36fc48e420bc7e2621a/test/demo.org?plain=1#L448 in a line that looks like this, modulo line breaks: #+dslide_kmacro: :frequency 0.09 :jitter 0.4 :keys [134217848 97 110 105 109 97 116 101 45 98 105 114 116 104 100 97 121 45 112 114 101 115 101 110 116 return 100 115 108 105 100 101 return] I was thinking of doing something completely different. If a person runs my defuns for `eek2' and `ee-eek2' from my other e-mail, https://lists.gnu.org/archive/html/emacs-devel/2024-12/msg00689.html then the second sexp below (eek2 "") (ee-eek2 "") returns `((t . down))' - so the symbol `down' is the "name" of an event (<- I haven't checked the correct terminology). It should be possible to define a handful of events with "names" like `delay-1', `delay-2', etc, and that run delays with different durations - and then both sexps below will go down and insert a "Hello", but the second one will have delays at two places... (eek2 "RET Hello") (eek2 "RET Hell o") I have very little practice with Org and I'll be very busy in the next two days, but after that I will have time to run your examples. Cheers! =) Eduardo Ochs http://anggtwu.net/emacsconf2024.html