From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Psionic K Newsgroups: gmane.emacs.devel Subject: Re: Add moc to Non-GNU ELPA Date: Tue, 17 Dec 2024 23:09:37 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000090c74c062977d907" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Psionic K , emacs-devel@gnu.org To: Eduardo Ochs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 17 15:10:58 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 1tNYHq-0001lp-9n for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Dec 2024 15:10:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNYHA-0006gS-Rj; Tue, 17 Dec 2024 09:10:18 -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 1tNYGq-0006db-I7 for emacs-devel@gnu.org; Tue, 17 Dec 2024 09:09:56 -0500 Original-Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNYGk-0001LE-Fb for emacs-devel@gnu.org; Tue, 17 Dec 2024 09:09:55 -0500 Original-Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-6ef60e500d7so37745817b3.0 for ; Tue, 17 Dec 2024 06:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1734444588; x=1735049388; 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=A/D4w7ER56TQYf7FgLP71DZdtpEu822o3HOTj0mZy3s=; b=NnSHjx9pL9HnojM9MiB1YgsK/cAMElHexZ7zN4B2ctSoEgRTWT8pog0Xot0RCSijgb hvprkByvLiDCeoiBsfrH+zi8VeC5rJkYdGrMZAtzuXvq+Y8jUKTAJdn8QK8cYwBmmJVa 05+SjIif3g6OCxdr8DIEnfh3Q+Z5TS9Iq5h431umPBx0hXuDAoMb09bFN+bGhb4uxNgH KHYF/IBCagbYngyLxADW5ha69lnRc9pQedv2znqCJ0ZvKwsDJ3H5F3i4gkalJvGiFOD3 Cogg8b1yX5QNclUCUZ5AXwVRnfYsB37qWMPG/nt7+eG8YipfUPvxf77b99S6HInElzwN mWuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734444588; x=1735049388; 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=A/D4w7ER56TQYf7FgLP71DZdtpEu822o3HOTj0mZy3s=; b=GzJHF3g7WAcVU7R/xagshlkzfHmB8sQb59N+NG55/JsKl0jBAhsd3hSXgvYZZDqppV Vg3XBl3Uh7SPc5oxuaELZV1Lki6DGohRRLp1eW7+JX9QB2jIzHjv6vIf1AzVOSunIlfm S4z563lmVNYjXgdrO9UifRhIa0gooWTjIQOHofwK2WqxEHQByNlFl4Br6+fo1xgNr13p HHbhEC+5zr+1rPwyXYTw62qU1T7v80bTtbFljrHibofpVPJ7+oJ+Z+qiEpp66n1X2hm9 cz1vx73le2mLV3d9NMjpahDypl6GUpHlY1mjJGYwVjRkkRjvj35LwXOl8Ft9670b3+6J 8+dg== X-Forwarded-Encrypted: i=1; AJvYcCW0UB+M1DTb9nBgo846RjO1AjiDqYjQAWlGlxEV+Eo9ETSH3b3daFHD7fzmpEDlCLfx2W+d3yIvCqK94A==@gnu.org X-Gm-Message-State: AOJu0YxYICEDGCO+Ub7OaYJZkW1YMxMtq/njpx3gOMcHOmiqMb6k5OYk ULkA2xYh7iuipRnsOHxGDIGBXnh56GKUZ0H3yeVmZ5f4qpFSLDs1/d+yp7X7CcsddcCneoMNpXR yiR96cB1x5jSOj4syuIM7IbWK/YKKsRsv4YWk+Q== X-Gm-Gg: ASbGncuB1YVekrheUvf3gZrbcynRnfYg+QFXoiV63wTBv1WXqJReeGl1twmGgS3rDWn oypksD9qKFgeYWMV93iRXluKTCy5Yzw5xyNGZ6/9z X-Google-Smtp-Source: AGHT+IGBHsLXC7pOjIeAL65dt5+AxTE2xNneC7vGh5ZI6XXBx0m2V87YvyH8796CECDknVfTmw9wzDyo36G3ilYkchY= X-Received: by 2002:a05:690c:6c8c:b0:6ef:6178:404a with SMTP id 00721157ae682-6f279b7c889mr139488907b3.33.1734444588245; Tue, 17 Dec 2024 06:09:48 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::112e; envelope-from=exec@positron.solutions; helo=mail-yw1-x112e.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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:326594 Archived-At: --00000000000090c74c062977d907 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/c2ea982a809c1114b63638a= c4c47e1292e11189e 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. On Tue, Dec 17, 2024 at 9:00=E2=80=AFPM Eduardo Ochs wrote: > On Tue, 17 Dec 2024 at 02:03, Psionic K > wrote: > > > > > Can you please explain what Delide does? > > > > Present anything Emacs can do with programmable, extensible, > configurable slides & presentation steps made from org mode headings > > > > Longer introductions are available in the documentation: > > > https://raw.githubusercontent.com/positron-solutions/dslide/refs/heads/un= stable/doc/README.org > > > https://raw.githubusercontent.com/positron-solutions/dslide/refs/heads/un= stable/doc/manual.org > > > > The latest (upcoming) changes are available via the news file: > > > https://raw.githubusercontent.com/positron-solutions/dslide/refs/heads/un= stable/NEWS.org > > > > You can install it from Non-GNU ELPA. The package symbol is dslide. > > > Hi Psionic, > > I was trying to find your code for playing back macros with pauses > between certain keys and I found this, > > https://github.com/positron-solutions/dslide/issues/18 > > that gave me the impression that this is a planned feature, not > implemented yet... > > I am trying to do something similar, but I am looking for a minimal > solution that fits in a few lines of code. What I currently have is > this: > > http://anggtwu.net/eev-current/eev-blinks.el.html#eek2 > > Here is its code: > > (defun eek2 (str &optional norecord) > "Execute STR as a keyboard macro. See `edmacro-mode' for the exact > format.\n > This is a variant of `eek' that pushes events into > `unread-command-events'. > An example: (eek2 \"C-x 4 C-h\")" > (interactive "sKeys: ") > (setq unread-command-events > (nconc unread-command-events (ee-eek2 str)))) > > (defun ee-eek2 (str &optional norecord) > "An internal function used by `eek2'." > (cl-loop for ev in (listify-key-sequence (read-kbd-macro str)) > collect (cons (or norecord t) ev))) > > If we run > > (eek2 "RET Hello") > > it plays back RET, `H', `e', `l', `l', `o', and if we run this > > (ee-eek2 "RET Hello") > > is shows the events that eek2 would push into `unread-command-events', > that are: > > '((t . 13) (t . ?H) (t . ?e) (t . ?l) (t . ?l) (t . ?o)) > > How would you implement pauses? Any pointers would help me very much! > Thanks in advance, > > Eduardo Ochs > http://anggtwu.net/emacsconf2024.html > --=20 Only the Future is Certain --00000000000090c74c062977d907 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eduard,

You can preview the keyboard m= acro playback on the unstable branch.=C2=A0 There is a simple example at th= e very end of the demo.org in the /test dir= ectory.=C2=A0 `dslide-deck-start' and it will show you the rest of the = way.=C2=A0 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 wi= th a Laplace distribution based=20 jittery timer for relatively human-appearing key entry speed.=C2=A0 It'= s for=20 "live" tech demos.=C2=A0 You may file an issue for instant playba= ck.=C2=A0 In my rush to do human speed I forgot some people will just want = a normal keyboard macro.

Do play around with `dslide-kmacro-transcri= be-set-mark'.=C2=A0 Every macro you record will encode a step.=C2=A0 It= 's extremely satisfying.
https://githu= b.com/positron-solutions/dslide/commit/c2ea982a809c1114b63638ac4c47e1292e11= 189e

I just fixed some bugs and overhauled th= e start functions.=C2=A0 I'm reluctant to push master even if I fix the= tiny outstanding bug I found.=C2=A0 I need to revert a small change somewh= ere that caused a regression in reverse image reveal when entering the slid= e in reverse.

On Tue, Dec 17, 2024 at 9:00=E2=80= =AFPM Eduardo Ochs <eduardoochs= @gmail.com> wrote:
On Tue, 17 Dec 2024 at 02:03, Psionic K <psionik@positron.sol= utions> wrote:
>
> > Can you please explain what Delide does?
>
> Present anything Emacs can do with programmable, extensible, configura= ble slides & presentation steps made from org mode headings
>
> Longer introductions are available in the documentation:
> h= ttps://raw.githubusercontent.com/positron-solutions/dslide/refs/heads/unsta= ble/doc/README.org
> h= ttps://raw.githubusercontent.com/positron-solutions/dslide/refs/heads/unsta= ble/doc/manual.org
>
> The latest (upcoming) changes are available via the news file:
> https:/= /raw.githubusercontent.com/positron-solutions/dslide/refs/heads/unstable/NE= WS.org
>
> You can install it from Non-GNU ELPA.=C2=A0 The package symbol is dsli= de.


Hi Psionic,

I was trying to find your code for playing back macros with pauses
between certain keys and I found this,

=C2=A0 https://github.com/positron-solutions/d= slide/issues/18

that gave me the impression that this is a planned feature, not
implemented yet...

I am trying to do something similar, but I am looking for a minimal
solution that fits in a few lines of code. What I currently have is
this:

=C2=A0 http://anggtwu.net/eev-current/eev-blin= ks.el.html#eek2

Here is its code:

=C2=A0 (defun eek2 (str &optional norecord)
=C2=A0 =C2=A0 "Execute STR as a keyboard macro. See `edmacro-mode'= for the exact format.\n
=C2=A0 This is a variant of `eek' that pushes events into `unread-comma= nd-events'.
=C2=A0 An example: (eek2 \"C-x 4 C-h\")"
=C2=A0 =C2=A0 (interactive "sKeys: ")
=C2=A0 =C2=A0 (setq unread-command-events
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (nconc unread-command-events (ee-eek2 st= r))))

=C2=A0 (defun ee-eek2 (str &optional norecord)
=C2=A0 =C2=A0 "An internal function used by `eek2'."
=C2=A0 =C2=A0 (cl-loop for ev in (listify-key-sequence (read-kbd-macro str)= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0collect (cons (or norecord = t) ev)))

If we run

=C2=A0 (eek2 "RET Hello")

it plays back RET, `H', `e', `l', `l', `o', and if we r= un this

=C2=A0 (ee-eek2 "RET Hello")

is shows the events that eek2 would push into `unread-command-events',<= br> that are:

=C2=A0 '((t . 13) (t . ?H) (t . ?e) (t . ?l) (t . ?l) (t . ?o))

How would you implement pauses? Any pointers would help me very much!
Thanks in advance,

=C2=A0 Eduardo Ochs
=C2=A0 http://anggtwu.net/emacsconf2024.html


--
Only the Future = is Certain
--00000000000090c74c062977d907--