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

Comments

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

CHM Recovers Original Unix C Source Code from Magnetic Tape [video]

https://www.youtube.com/watch?v=-xlq_MPWNKk
1•tangelogica•2m ago•0 comments

I made a little quiz to test my sense of business scale

https://sense-of-scale.vercel.app/
1•whittle_away•3m ago•0 comments

Discord Delays Global Age Assurance

https://discord.com/blog/getting-global-age-assurance-right-what-we-got-wrong-and-whats-changing
2•jameslars•9m ago•1 comments

Show HN: StreamHouse – S3-native Kafka alternative written in Rust

https://github.com/gbram1/streamhouse
2•gbram•12m ago•0 comments

Thinking Like Transformer

https://srush.github.io/raspy/
2•vinhnx•17m ago•0 comments

Australian man jailed for selling US cyber secrets to Russian broker

https://www.abc.net.au/news/2026-02-25/australian-sentenced-7-years-jail-selling-us-trade-secrets...
1•defrost•19m ago•0 comments

Is Embedded Rust Ready for Primetime?

https://shawnhymel.com/3197/is-embedded-rust-ready-for-primetime/
1•sohkamyung•19m ago•0 comments

Claude Code Front End Design Toolkit

https://github.com/wilwaldon/Claude-Code-Frontend-Design-Toolkit
1•stagezerowil•20m ago•0 comments

Tests Are the New Moat

https://saewitz.com/tests-are-the-new-moat
1•linolevan•20m ago•0 comments

Show HN: Measuring brand share in AI answers – a Y Combinator case study

https://www.geovector.ai/report/yc
3•roman10•25m ago•2 comments

Show HN: Courtyard – Open-source macOS app for local MLX fine-tuning Text

https://github.com/Mcourtyard/m-courtyard
1•tuwenbo0120•28m ago•0 comments

Anthropic faces Friday deadline in Defense AI clash with Hegseth

https://www.cnbc.com/2026/02/24/anthropic-ai-hegseth-spying-defense.html
3•gslin•34m ago•0 comments

Looking Forward to PGConf India in Bengaluru in March

https://techcommunity.microsoft.com/blog/adforpostgresql/microsoft-at-pgconf-india-2026/4496182
1•clairegiordano•37m ago•0 comments

Canva expands professional creative ecosystem with Cavalry

https://www.canva.com/newsroom/news/cavalry/
1•flashblaze•38m ago•0 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
1•jsomers•42m ago•0 comments

Intel Strikes Deal with a Chip Startup Its CEO Invested In

https://www.nytimes.com/2026/02/24/technology/intel-sambanova-ceo-lip-bu-tan.html
3•osnium123•44m ago•0 comments

MBC v0.2.0 – AI agent orchestration for Laravel (security hardening)

https://github.com/etazza2025/laravel-mbc
1•undergracelabs•46m ago•1 comments

Learning from Structure: Discord's Entity-Relationship Embeddings

https://discord.com/blog/learning-from-structure-discords-entity-relationship-embeddings
1•throwaway314155•49m ago•0 comments

An Elephant Is Blind Without the Hairs on Its Trunk

https://www.nytimes.com/2026/02/12/science/elephant-whiskers.html
1•bookofjoe•50m ago•1 comments

RFC Explorer – Explore over 9000 RFCs

https://rfcexplorer.net/
1•xillb•50m ago•0 comments

We Need to Stop Asking "Is This Better Than That"

https://doppelgangerdev.com/docs/software-isn-t-a-competition-it-s-a-map-of-our-frustrations
1•asernasr•54m ago•1 comments

Show HN: Built a news aggregator that collect AI news around the world

https://vvsearch.com/workspace/news-terminal
1•raugen•58m ago•0 comments

Will artificial snow save the ski industry in the long run, or curse it?

https://theconversation.com/will-artificial-snow-save-the-ski-industry-in-the-long-run-or-curse-i...
1•PaulHoule•58m ago•0 comments

Finding 100 Kernel Bugs Using Agent Swarms

https://ydinkin.substack.com/p/200-kernel-bugs-in-30-days
1•itkeman•58m ago•0 comments

Show HN: I made a 4D version of DOOM

https://hyperhell.itch.io/hyperhell
1•chronolitus•59m ago•0 comments

Tim Cook Warned by CIA That China Could Move on Taiwan by 2027

https://www.macrumors.com/2026/02/24/tim-cook-warned-by-cia-china-taiwan-2027/
5•mgh2•1h ago•1 comments

Show HN: Declare AI – open standard for AI content disclosure

https://declare-ai.github.io/declare-ai/declare-ai-devteam.html
2•BetterToBest•1h ago•2 comments

Apple Set a European iPhone Sales Record Last Year

https://www.macrumors.com/2026/02/24/apple-european-iphone-sales-record-2025/
1•mgh2•1h ago•0 comments

Show HN: Limits – Control layer for AI agents that take real actions

https://limits.dev
7•thesvp•1h ago•0 comments

Build a free job-winning resume and cover letter in minutes

https://resumecv.pro
1•pivlu•1h ago•1 comments