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•1y ago

Comments

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

Why Taxing the Wealthy Is Harder Than It Looks

https://ofdollarsanddata.com/why-taxing-the-wealthy-is-harder-than-it-looks/
1•speckx•35s ago•0 comments

OpenAI Dismissal Motion Says ChatGPT Is Mere Tool, Not Attorney

https://news.bloomberglaw.com/litigation/open-ai-dismissal-motion-says-chatgpt-is-mere-tool-not-a...
1•1vuio0pswjnm7•36s ago•0 comments

New Lifetime Plex Pass Pricing

https://www.plex.tv/blog/new-lifetime-plex-pass-pricing/
1•Larrikin•1m ago•0 comments

'De-Extinction' Startup Just Hatched Baby Chicks from 3D-Printed Artificial Egg

https://gizmodo.com/de-extinction-start-up-just-hatched-baby-chicks-from-a-3d-printed-artificial-...
1•austinallegro•1m ago•0 comments

The economics of superstar AI researchers

https://epochai.substack.com/p/the-economics-of-superstar-ai-researchers
1•gmays•1m ago•0 comments

The Two X's Problem: Why AI-designed brands feel like AI-designed brands

https://blog.codeyam.com/p/the-two-xs-problem
1•bastadani•3m ago•1 comments

Show HN: Childflow – command-tree network control(proxy/DNS/capture) for Linux

https://github.com/blacknon/childflow
1•blacknon•3m ago•0 comments

I vibecoded a Kalshi bot to $6k profit and opensourced it

https://mcinerney.ai/writings/how-i-botted-6k-prediction-markets-as-i-slept/
1•DanMcInerney•4m ago•0 comments

Tired?

https://budgetbites.website/login
1•ClarenceJackson•4m ago•0 comments

Show HN: Chidori – Fast web-to-Markdown fetching for AI agents

https://github.com/taishikato/chidori
1•taishikato•5m ago•0 comments

Singapore's royal descendants living low-key as taxi drivers and office workers

https://www.scmp.com/news/asia/southeast-asia/article/3107188/meet-singapores-royal-descendants-l...
1•teleforce•6m ago•0 comments

China deploys first wind-powered ocean-cooled underwater data center

https://www.tomshardware.com/tech-industry/china-says-worlds-first-offshore-wind-powered-underwat...
1•HardwareLust•7m ago•2 comments

Software's Centaur Era

https://twitchard.github.io/posts/2026-05-18-softwares-centaur-era.html
1•speckx•7m ago•0 comments

Echoform – unlimited LLM memory via a single 64 KB hypervector

https://github.com/OpenAgentic-Labs/echoform-ghost-memory
1•Nagendhra•8m ago•0 comments

Show HN: Og-zkp – Prove your Bitcoin OG status in zero-knowledge

https://og-zkp.com/
1•lukechilds•9m ago•0 comments

AI Coding Feels Like Using an Unreliable Compiler

https://tomassetti.me/ai-coding-feels-like-using-an-unreliable-compiler/
2•ftomassetti•9m ago•0 comments

The Science of Cities. 10 Books You Must Read

https://nautil.us/the-science-of-cities-10-books-you-must-read-1280919
1•Tomte•10m ago•0 comments

Kubernetes: Lessons learned from hosting an European alternative to Google Docs

https://georg-schwarz.com/blog/from-kubernetes-demo-to-production-platform/
1•theanonymousone•10m ago•0 comments

Interpol 'Operation Ramz' seizes 53 malware, phishing servers

https://www.bleepingcomputer.com/news/security/interpol-operation-ramz-seizes-53-malware-phishing...
1•Brajeshwar•11m ago•0 comments

Show HN: Try Tryke – the Rust-powered Python test framework – in the browser

https://playground.tryke.dev/
1•jchap•12m ago•0 comments

XSS Is Deadly for Passkeys: The Hidden Risk of Attestation None

https://scotthelme.co.uk/xss-is-deadly-for-passkeys-the-hidden-risk-of-attestation-none/
3•moebrowne•13m ago•0 comments

Discovering Dennis Ritchie's Lost Dissertation (2020)

https://computerhistory.org/blog/discovering-dennis-ritchies-lost-dissertation/
1•theanonymousone•15m ago•0 comments

OpenBSD 7.9 Released

https://www.openbsd.org/79.html
6•bradley_taunt•15m ago•0 comments

LLMs: code is just untrusted text until you validate it

https://hack8s.com/archives/244
1•justorius•15m ago•0 comments

Show HN: I built a linter for undocumented linter warnings. AI hates me now

https://github.com/BKDDFS/shamefile
1•BKDDFS•16m ago•0 comments

Make-No-Mistakes

https://github.com/thesysdev/make-no-mistakes
1•shantnutiwari•16m ago•0 comments

How Ukraine is driving doctrinal change in modern warfare

https://carnegieendowment.org/research/2026/04/ukraine-russia-war-changing-warfare-practice-milit...
1•mooreds•17m ago•0 comments

Show HN: BeaverCheck – Multi-region website audit with shareable result URLs

https://beavercheck.com/
1•apancyborg•17m ago•0 comments

The Chronicles of Prydain is the greatest fantasy series ever written (2017)

https://www.vox.com/2015/8/18/9166631/chronicles-prydain-alexander
1•mooreds•17m ago•1 comments

Trump started to decouple America from China

https://www.noahpinion.blog/p/trump-actually-started-to-decouple
1•mooreds•18m ago•0 comments