From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: MoC for Non-GNU ELPA [was:Introducing Master of Ceremonies, a package for presentations] Date: Tue, 24 Dec 2024 02:48:10 +0000 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="2025"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bugs@gnu.support, Philip Kaludercic , Stefan Monnier To: Psionic K , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 24 03:49:14 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 1tPuyw-0000Of-19 for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Dec 2024 03:49:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPuy1-0006Fv-Bb; Mon, 23 Dec 2024 21:48:17 -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 1tPuxy-0006Fj-P3 for emacs-devel@gnu.org; Mon, 23 Dec 2024 21:48:14 -0500 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPuxw-0001h8-Kb for emacs-devel@gnu.org; Mon, 23 Dec 2024 21:48:14 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5d0d32cd31aso6631198a12.0 for ; Mon, 23 Dec 2024 18:48:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735008491; x=1735613291; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=m1Ms4AEV9BQa40tRf4iobVViLbHYPZBbZOOWiaZd+AM=; b=g0JMPhZVkXniwq2qiQAduU3rPqLyGWXi4Kdy7UArSNKS0npZI684DepJhibxUDJM+5 7V8yss5EoZ3Zkn+NjloYMXwI0LqyKDY9/6SfNIjYJID9vBV359Qc6b2ecxwCC6707zS7 wzgqf7OCPZA0DGOuMV9DYM9DG42ijOvAE2ebS2lXUdDmzaJPlz14ysTukEXG7s82vUdP XGHzQA3cVf1EGnn/w2694SbVrsT6uUH5/ILAWQ/TmbXyjvuZkaC/efjBXNjSdDPMWzbJ mAq0hSOaGDd8Y4DjTl5BBv5k4k7ijL3Ug5wSVX2kByrptEPuwkkEk/7Q/y2OQBzPaZi9 uQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735008491; x=1735613291; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m1Ms4AEV9BQa40tRf4iobVViLbHYPZBbZOOWiaZd+AM=; b=e1GfU6IVLRvqUoi1VChNQca1A6ew4wri3QB//+GUTpOueWXzh3liZ0L4oUIH77veP8 GhWJHpck8Xuva6Qeo4a923o4EKbun59YN6f1RfwiFK3Gfz0viZXO9Or9ysWfXeFaOJoG 1/i9tsGc1UYobCaQhyy9ki220AATF9ve+ls+r21On/FxGBEEbmVHdn8lWG9g+M4HzVyY ByK1EAt8Ls9aDXnbF5tqWAuUMi5J6Z1GDxv6Qch/qrAH40W0rDy2DPpcv8ZQ3okISNUb UN5/XsXjz0zjux4RSzUk2M6u87VHH4ykrRTJSj1OmaO7qvE0F6+OZp+eJdfWaaLtJJgg ouwQ== X-Forwarded-Encrypted: i=1; AJvYcCV4MZzQILZdbIFTdeKdNXRJxqf6Ic+1Bz0GkvVgHKWteEFcvxKVrB59eKdZRs2kQsvu8kUnCxUVC9k1Wg==@gnu.org X-Gm-Message-State: AOJu0YyhvkLHv7j+qAJIfExuV2ZQ8b8mVIIs+avvU8+IAJq3KoPk+suZ j2BbSUsa8OXTB1povlCALD/NzD3HHmQAUkUpgPO0zSxYZIT5nUECNVXZ133jhZTy3JeKh0PbJQy MRKnig1aTsN+8ttJQ28QIVjxonrM= X-Gm-Gg: ASbGnct9Q2Jwe9+BFFOXif7i1z/YharXH9e35Fea5+Xjv6NMvM4qIwJjtSVjCYwI4ot SFN/dkFQmjESo3K7kqsLpwsIXb1sWIGLIMFbADGs= X-Google-Smtp-Source: AGHT+IFWjOUli60ZhSc2pVP41Dw6NW5/2YuICwT/j7DDXeX2icRwyT5Cod2Nynjdin+wvCQoMX3q+Agqpz3Do9bJyJM= X-Received: by 2002:a05:6402:5245:b0:5d3:ba42:e9fa with SMTP id 4fb4d7f45d1cf-5d81ddc01a0mr37201167a12.16.1735008490842; Mon, 23 Dec 2024 18:48:10 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 24 Dec 2024 02:48:10 +0000 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x52a.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:326943 Archived-At: Psionic K writes: > Master of Ceremonies was developed as a companion to Dslide. Both > packages aid presenting and authoring video and other content within > Emacs. > > https://github.com/positron-solutions/moc > https://github.com/positron-solutions/moc.git > > Master of Ceremonies (MoC) has two core commands: `moc-focus' and > `moc-dispatch' > > `moc-focus' is a valuable tool for authoring screenshots or conducting > live explanation of excerpts of Emacs buffers, usually code. It fills > the frame with the selected region. You can apply highlights and > occlusions to selectively reveal or emphasize parts of an expression. > It attempts to faithfully preserve the appearance of the source buffer > by propagating much display information, such as overlays and the > invisibility spec. > > `moc-focus-kill-ring-save' does exactly like what it sounds like. It > saves an expression that can be used to play back the current MoC > buffer state, including highlights and occlusions. This is how I > create much of my content for videos using Dslide. Because the > highlight and occlusion states are saved, the playback expressions can > cover cases that simply saving text in a babel block would not be able > to quickly re-generate on demand. > > Combining `moc-focus' and `moc-kill-ring-save', one can quickly obtain > the necessary inputs for authoring content with TikTok levels of > engagement, using nothing but text and code displayed in Emacs and > some post-processing or Dslide to step through highlights. > > The use cases of `moc-focus' are broad: > - make buffer excerpts full frame to show to someone farther away from > the screen > - emphasize and step through pieces of these excerpts, building them > up with contents remaining in place > - demonstrate visibility and overlay behaviors > - save SVGs with no surrounding noise to utilize Emacs display for > authoring other graphics materials > - Steps in dslide presentations (presently through babel blocks as steps) > > The second command, `moc-dispatch' is a centralized collection of > utilities and controls for conducting presentations. The utilities > include: > > - `moc-fixed-frame-set' sets a resolution and will attempt to preserve > that frame through unintended changes possibly not covered by > `frame-inhibit-implied-resize t'. > - `moc-subtle-cursor-mode' is a poor man's laser pointer built in. If > your cursor color is highly visible, then this mode makes it very > convenient to have the benefits of a cursor when doing motion but to > hide that cursor immediately after use. > - `moc-face-remap' can store presets of mass face remappings. > `moc-focus' supports default presets. > - `moc-quiet-mode' suppresses messages, though I feel like users > should be able to figure out the simple variable change without a > mode, it is what is done for now. > > I will be doing a video presentation of the Transient implementation > choices, using MoC to discuss and incidentally demonstrate MoC, on my > YouTube. My most recent Dslide update: > https://www.youtube.com/watch?v=00JEayL5Emk > > Status of work: > > The playback expressions have been extremely unstable. I am holding > off on declaring them version 1. They are all generating expressions > with ":version 0" to indicate this lack of guarantees in the short > term while I gain usage data by doing presentations and videos. I > will update this to 1 only when I am comfortable that I can maintain > at least some backwards compatibility. > > Visual line mode content works acceptably. The default is truncation. > This decision is inferred by looking at the state of visual modes in > the source buffer. Controls to update this in a focus buffer will > only require modest re-architecture. Since `moc-focus' can serialize > its own replay state, it is very easy to imagine how to accomplish > updates. > > The implementations of visual line and truncation support leverage > Emacs text flow behavior. This implementation was much, much shorter > and much more reliable in terms of results. I will not go into detail > of other paths of implementation that I tried but discarded in utter > disgust. Re-flow and column width are coupled and riddled with > details that shall not be guessed at from Elisp. We can do more, but > I would prefer if Emacs does more and I just update MoC to hand this > highly non-specific work over to Emacs display. The implementations I > have delivered are about 2% of the code of implementations I > discarded. > > Hooks and various bits of normal things are missing. I will, as is > the open source way, get to them in order of need, in order of > thinking of them, and in order of clean PR. All have the option of > hitting my Github Sponsors to encourage expedited handling. > > There is no support for graphical frames and I don't even know why I > would try or why a non-graphical user would ask. > > Images could be supported better. I merely need to scale the overlays > that occur in excerpts with images. Some doodads created with fringes > etc do not survive the scaling well and are omitted from overlay > propagation. Philip, Stefan, could you please take a look at the above request?