frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Emacs Widget Toolkit

https://appetrosyan.github.io/posts/emacs-widget.html
48•signa11•6mo ago

Comments

spit2wind•6mo ago
There's also the Emacs Widget Library[1] (which I hoped this posted would be about). It's a plain text widget library that's quite powerful. Unfortunately (and surprisingly for Emacs), the documentation for it could use some love.

My understanding of the Widget Library is that it attaches various keywords and plists to a symbol which is considered the "widget". The library otherwise consists of functions that expect certain keywords on the "widget" symbol in order to perform actions or to be drawn on the screen.

The challenge is, the documentation doesn't clearly lay out what the keyword API is. This makes it hard to compose widgets in ways beyond what's shown in the docs.

[1] https://www.gnu.org/software/emacs/manual/html_mono/widget.h...

appetrosyan•6mo ago
The idea is that we extend that and give it direct access to SDL. Such that we can e.g. run a shader in the buffer background, or allow you to have floating windows (frames) interacting with each other.

I am very aware of the advantages conferred by TUI and I seek to expand those to the GUI; not dumb-down to the level of modern GUI toolkits (that to be fair are dealing with a completely different problem). Hopefully, this can lead to some ideas being easier to implement from within Emacs.

_mlbt•6mo ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•6mo ago
Personally, and contrary to the article, I do prefer Emacs's plain text widgets over more "GUI-like" ones. Plain text widgets minimize the differences between TUI and GUI Emacs and also inherently offer text selection, searching, copying, and pasting, which nicely integrates with Emacs. I mean, not many GUI frameworks let you place a cursor within a button and select its text, do they? I believe this is a unique advantage of text-based widgets: while other GUI applications require a dedicated mechanism for searching through their settings, text-based widgets allow you to use any text-searching packages to perform these actions.

Reading through the article, the author seems to be hoping for a pure GUI approach with Emacs-like navigation mechanisms, but I am not convinced that this can be as flexible as text-based widgets. However, for packages used exclusively within a GUI environment (like el-easydraw [1], which relies quite heavily on SVG-based widgets), it would be nice to have a dedicated GUI widget library.

(There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

[1] https://github.com/misohena/el-easydraw/

[2] https://www.reddit.com/r/emacs/comments/1kcgwme/the_emacs_wi...

appetrosyan•6mo ago
Author of the article.

This is what I was referring to when I talked about "rich verbs".

Many people feel that way. The idea here is not to tell you that you're wrong, but understand what you want and do it better on the GUI side. TUIs can do a lot and we should recognise their benefits. GUIs can do that too, and can sometimes do better things.

The text-based widgets done graphically do the trick. We can add stuff that can't be done in a TUI and see if they give you anything useful. If it can be done with text widgets means that it can be done in principle. GTK can't do it, and that's why I'm leaving it behind.

> (There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

The author of those comments abused their power on reddit. I will not get into the weeds, just say that I'd be happy to respond to the critique presented here in good faith.

robobro•6mo ago
Why did you delete the page?
appetrosyan•6mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•6mo ago
I agree and only use emacs in the console and love it. With the advent of lsp modes and real time typescript and linting it’s fantastic. But one thing I don’t like about the console is when LSP mode is giving you an in-line error on the right side of the terminal it’s wrapped and beautifully interspersed amongst your code, but it’s impossible to select multi line errors in order to paste into tools like ChatGPT. Since selecting the error, also selects your code on the left side.

Anyone have a good solution to this ?

LargoLasskhyfv•6mo ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

https://old.reddit.com/r/emacs/comments/1hlj04t/emacs_using_...

appetrosyan•6mo ago
That's the best thing to do for the moment.
robobro•6mo ago
404

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

appetrosyan•6mo ago
Hi. I just migrated my blog to Hugo yesterday. The correct link is:

https://appetrosyan.github.io/posts/emacs-widget/

EU's Top Court Just Made It Impossible to Run a User-Generated Platform Legally

https://www.techdirt.com/2025/12/04/eus-top-court-just-made-it-literally-impossible-to-run-a-user...
1•alsetmusic•5s ago•0 comments

Show HN: We gave LLMs money to invest in the market

https://rallies.ai/arena
1•rallies•24s ago•0 comments

Ask HN: Why are streaming apps so bad (insiders only)?

1•tonymet•1m ago•0 comments

Static Certificate Transparency

https://www.merklemap.com/documentation/static-ct
1•Eikon•2m ago•0 comments

Cool – AI file compression and sharing – Beams

https://beams.cc
1•posteezy•4m ago•0 comments

Show HN: I made a SaaS to crush technical interviews

https://sharpskill.fr/en
1•Enjoyooor•8m ago•0 comments

Lucid aims for ‘the heart of the market’ with three new EVs priced at $50,000

https://electrek.co/2025/12/04/lucid-lcid-aims-50000-evs-at-heart-of-the-market/
1•breve•8m ago•0 comments

Radiance Meshes for Volumetric Reconstruction

https://half-potato.gitlab.io/rm/
1•xnx•9m ago•0 comments

Who Owns Alignment?

https://backnotprop.substack.com/p/who-owns-alignment
2•ramoz•11m ago•0 comments

Libre Computer: Platforms for Software-Defined Hardware

https://libre.computer/
1•doener•11m ago•0 comments

AI chatbots used inaccurate information to change people's political opinions

https://www.nbcnews.com/tech/tech-news/ai-chatbots-used-inaccurate-information-change-political-o...
5•ceejayoz•12m ago•0 comments

Beyond the Front Page of the Internet

https://old.reddit.com/user/spez/comments/1pdb5dc/beyond_the_front_page_of_the_internet/
1•doener•14m ago•0 comments

Debatable Lands

https://en.wikipedia.org/wiki/Debatable_Lands
1•thunderbong•16m ago•0 comments

Let's Not Bring Back the Gatekeepers

https://www.conspicuouscognition.com/p/lets-not-bring-back-the-gatekeepers
2•paulpauper•16m ago•0 comments

The Status Game (With Will Storr)

https://www.econtalk.org/the-status-game-with-will-storr/
1•paulpauper•17m ago•0 comments

Google Cloud: Disclosure of Information to the European Commission

1•scblzn•17m ago•0 comments

Show HN: Marvin, your own AI-powered game studio

https://marvin.hyve.gg/?r=hn
5•marvinai•18m ago•3 comments

Wolfenstein 3D's map renderer [video]

https://www.youtube.com/watch?v=eOCQfxRQ2pY
3•ibobev•19m ago•0 comments

The Third Day of Agents How Agents Work – Tools, Memory, and Plans

https://buttondown.com/johncoghlan/archive/on-the-third-day-of-agents-how-agents-actually/
1•mooreds•20m ago•0 comments

Target-text: An easy way to style text fragments

https://webkit.org/blog/17628/target-text-an-easy-way-to-style-text-fragments/
1•feross•21m ago•0 comments

Show HN: A SOTA chart-extraction system combining traditional CV and LVMs

https://reducto.ai/blog/reducto-chart-extraction
1•raunakchowdhuri•21m ago•0 comments

Kimina-Prover: Applying Test-Time RL Search on Large Formal Reasoning Models

https://huggingface.co/blog/AI-MO/kimina-prover
1•ibobev•23m ago•0 comments

We Got Claude to Fine-Tune an Open Source LLM

https://huggingface.co/blog/hf-skills-training
1•ibobev•24m ago•0 comments

Why Does the Salish Sea Glow in the Dark?

https://www.atlasobscura.com/articles/untold-earth-105-salish-sea-bioluminescence
2•prismatic•26m ago•0 comments

Microsoft denies report of lowering targets for AI software sales growth

https://www.reuters.com/technology/microsoft-lowers-ai-software-sales-quota-customers-resist-new-...
1•speckx•26m ago•0 comments

A smarter way for large language models to think about hard problems

https://news.mit.edu/2025/smarter-way-large-language-models-think-about-hard-problems-1204
2•pedriquepacheco•27m ago•0 comments

Dependency Groups to the Rescue

https://metaist.com/blog/2025/12/dependency-groups.html
1•metaist•27m ago•0 comments

Gaussian Splat Reconstruction from Anything via OpenAI Chat Completions

https://colab.research.google.com/drive/17ZAyzkJNUHm_xVZX9aowCs7rXUSfsQxU?usp=sharing#scrollTo=28...
2•visioninmyblood•27m ago•0 comments

Relativistic Covariance and Nonlinear Quantum Mechanics

https://twitter.com/hsu_steve/status/1996034522308026435
1•measurablefunc•30m ago•0 comments

Ask HN: Would you use an AI that translates your body's signals? (3-min survey)

1•app-neosoma•31m ago•0 comments