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•11mo ago

Comments

spit2wind•11mo 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•11mo 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•11mo ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•11mo 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•11mo 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•11mo ago
Why did you delete the page?
appetrosyan•11mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•11mo 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•11mo ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

A Friday Side Project Became a Graph Query Language

https://systay.github.io/posts/2026-04-30-i-just-wanted-a-query-planner/
1•sysdb•1m ago•0 comments

A Licensure Framework for Autonomous Clinical AI

https://jamanetwork.com/journals/jama/fullarticle/2848378?guestAccessKey=ccdd68a8-12c4-42b4-bd7b-...
1•brandonb•2m ago•0 comments

Advancing Search-Augmented Language Models

https://research.perplexity.ai/articles/advancing-search-augmented-language-models
1•gmays•3m ago•0 comments

Meta in row after workers who saw smart glasses users having sex lose jobs

https://www.bbc.com/news/articles/c5y7yvgy0w6o
2•gorbachev•3m ago•1 comments

Thinking with Visual Primitives

https://github.com/deepseek-ai/Thinking-with-Visual-Primitives
1•Cassandra99•3m ago•0 comments

Genie Tarpit

https://tidyfirst.substack.com/p/genie-tarpit
1•flail•4m ago•0 comments

Should other living systems have agentic reprsentation?

https://www.speakforthetrees.com/
1•offtrailstudio•4m ago•1 comments

Spectro – macOS app to detect fake lossless audio files (FFT spectral analysis)

https://www.getspectro.app
1•ddtcx•4m ago•0 comments

A New Study Shows How Ad-Based Technology Is Used for Surveillance

https://citizenlab.ca/a-new-study-shows-how-ad-based-technology-is-used-for-surveillance/
1•robtherobber•5m ago•0 comments

Stripe launches Link for AI agents

https://link.com/agents
1•enraged_camel•5m ago•0 comments

U.S. Debt Tops 100% of GDP

https://www.wsj.com/economy/u-s-debt-tops-100-of-gdp-81c013d7
5•JumpCrisscross•7m ago•1 comments

Meta will beam sunlight from space to power AI data centers

https://www.tomshardware.com/tech-industry/artificial-intelligence/meta-will-beam-sunlight-from-s...
3•omh•7m ago•1 comments

How to "Gaslight" a Binary

https://douxx.blog/?p=14-how-to-gaslight-a-binary
1•dblog•8m ago•0 comments

The Soul of Man Under Socialism (Oscar Wilde) (1891)

https://www.wilde-online.info/the-soul-of-man-under-socialism-page10.html
2•rendx•8m ago•1 comments

Rusternetes: A ground-up reimplementation of Kubernetes in Rust

https://github.com/calfonso/rusternetes
1•tjek•9m ago•1 comments

Encrypted Client Hello (ECH) Is Done, but Can We Make It Work?

https://www.feistyduck.com/newsletter/issue_136_ech_is_done_but_can_we_make_it_work
1•speckx•9m ago•0 comments

The Graduating Class of CollegeGPT

https://www.businessinsider.com/graduating-class-college-cheating-chatgpt-ai-jobs-hiring-2026-4
1•begemotz•10m ago•1 comments

Show HN: Mem0 thinks our 2023 conversation happened in 2026

https://www.aurra.us/blog/mem0-vs-aurra
1•akshayt2012•10m ago•0 comments

The Chip That Made Hardware Rewriteable

https://spectrum.ieee.org/fpga-chip-ieee-milestone
1•sohkamyung•12m ago•0 comments

The high-emissions RCP8.5 scenario is Officially Dead

https://rogerpielkejr.substack.com/p/rcp85-is-officially-dead
1•mpweiher•12m ago•0 comments

AI's: 100 days to irreversible systemic system collapse?

1•buxy123•13m ago•0 comments

Paste the description of your AI system, get your EU AI Act obligations in 60s

https://eu-ai-act-classifier-app-qwhcqvjwmtf44wzjb9fcpb.streamlit.app/
1•JuristX•15m ago•0 comments

The Impossibility of an Infinite Future

https://philarchive.org/rec/HAKTIO-4
1•wakilahmedhakim•17m ago•0 comments

Both Codex and Claude got worse this week. Across every plan I retested

https://desktopcommander.app/best-value-ai/
2•wonderwhyer•17m ago•2 comments

Show HN: Does Big Government Kill Growth? The Armey Curve Tested (151 Countries)

https://julienreszka.github.io/economic-simulator/armey-curve.html
1•julienreszka•18m ago•0 comments

CopyFail CVE-2026-31431 mitigation with open source tool

1•SilverPlate3•19m ago•0 comments

Do octopus brains work like humans' – or is there another way to be smart?

https://www.nature.com/articles/d41586-026-01302-4
2•sohkamyung•19m ago•0 comments

Why Math's Final Axiom Proved So Controversial

https://www.quantamagazine.org/why-maths-final-axiom-proved-so-controversial-20260429/
1•ibobev•20m ago•0 comments

Contributor Poker and Zig's AI Ban

https://kristoff.it/blog/contributor-poker-and-ai/
1•ibobev•22m ago•0 comments

There were 91 Powerball big prize winners on April 29

https://www.powerball.com/
2•astrashe2•24m ago•1 comments