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•12mo 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•12mo 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•12mo ago
Why did you delete the page?
appetrosyan•12mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•12mo 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•12mo ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

Productivity Isn't About Going Faster

https://humanpro.co/articles/productivity-isnt-about-going-faster/
1•gx•2m ago•0 comments

End-to-end encrypted RCS messaging rolling out for Android and iPhone users

https://blog.google/products-and-platforms/platforms/android/android-ios-end-to-end-encrypted-rcs...
1•thunderbong•3m ago•0 comments

Elon Musk's Grok Is Losing Ground in AI Race

https://www.wsj.com/tech/ai/anthropic-spacex-ai-deal-elon-musk-f86ea369
1•JumpCrisscross•4m ago•1 comments

MCP-Guardrail

https://github.com/kaarhsg-cpu/mcp-guardrail
1•karthikhermes•6m ago•0 comments

Skill1: Unified Evolution of Skill-Augmented Agents via Reinforcement Learning

https://arxiv.org/abs/2605.06130
1•lexandstuff•10m ago•0 comments

“Something rather unusual is happening in Russia” – My BBC Radio Dispatch

https://www.youtube.com/watch?v=K9su3iLw9hU
2•consumer451•16m ago•0 comments

Tofersen, a New Treatment for ALS, Reverses Symptoms for Some

https://www.nytimes.com/2026/05/06/well/als-treatment-tofersen-qalsody.html
1•MaysonL•21m ago•0 comments

Ask HN: Can NPM postinstall script be run in a sandbox? how to do that?

1•imWildCat•22m ago•0 comments

Cloudflare Is Down

4•sammy2255•23m ago•2 comments

Instructure Pays Ransom to Canvas Hackers

https://www.insidehighered.com/news/tech-innovation/administrative-tech/2026/05/11/instructure-pa...
1•Cider9986•34m ago•0 comments

Trying San Francisco's most experimental depression treatments

https://www.theguardian.com/society/2026/may/11/silicon-valley-depression-wellness-boom
2•andsoitis•35m ago•0 comments

Earthworms Don't Bio-Accumulate Microplastics, So There May Be Hope for Us

https://hackaday.com/2026/05/05/earthworms-dont-bio-accumulate-microplastics-so-there-may-be-hope...
1•lxm•38m ago•0 comments

Tesla's New AI Tech Could Save Lives, Thanks to Quicker Airbags

https://www.caranddriver.com/news/a71269172/tesla-ai-tech-airbag-deployment/
1•RickJWagner•38m ago•0 comments

RegexPSPACE: Regex LLM Benchmark

https://arxiv.org/abs/2510.09227
1•thatxliner•48m ago•0 comments

It has a few rough edges but it works and it's free

https://github.com/slucerodev/ExoArmur-Core
1•slucerodev•50m ago•0 comments

Show HN: Sigmashake Desktop – AI Coding Agent Guardrails

https://sigmashake.com/desktop
1•cavalrytactics•55m ago•1 comments

Why Everyone's Picking Up a PSP Again in 2026

https://gardinerbryant.com/psp-in-2026/
1•Kate0CoolLibby•57m ago•0 comments

America is experiencing a productivity miracle

https://www.economist.com/finance-and-economics/2026/05/11/america-is-experiencing-a-productivity...
2•simonpure•1h ago•0 comments

Software Internals Book Club

https://eatonphil.com/bookclub.html
6•aragonite•1h ago•0 comments

Fake building: Claude wrote 3k lines instead of import pywikibot

https://fireflysentinel.github.io/posts/fake-building-claude-3000-lines/
27•firef1y1203•1h ago•11 comments

Notes from inside China's AI labs

https://www.interconnects.ai/p/notes-from-inside-chinas-ai-labs
2•gmays•1h ago•1 comments

Mona Lisa's Identity Established Beyond Doubt (2008)

https://www.uni-heidelberg.de/press/news/press552e.html
1•thunderbong•1h ago•0 comments

Microsoft fires head of Israeli subsidiary over surveillance of Palestinians

https://www.pcgamer.com/gaming-industry/microsoft-fires-head-of-israeli-subsidiary-and-other-mana...
16•donohoe•1h ago•1 comments

Floci: Light, fluffy, and always free – The AWS Local Emulator alternative

https://github.com/floci-io/floci
1•linkdd•1h ago•0 comments

A consistent pattern of lying': trial exposes what insiders think of Sam Altman

https://www.theguardian.com/us-news/2026/may/11/musk-v-openai-altman-trial
5•andsoitis•1h ago•0 comments

Instructure Security Incident Update

https://www.instructure.com/incident_update
2•danso•1h ago•3 comments

Vocal Mirror voice self-analysis tool: Talk to record, Quiet to Listen

https://danverbraganza.com/tools/vocal-mirror
3•nvader•1h ago•1 comments

Richard Bartle's Academic Papers on MUDs

https://mud.co.uk/richard/papers.htm
1•mindcrime•1h ago•0 comments

Show HN: Wispr Flow but free, 100% on-device, and open source (macOS)

https://digimata.github.io/parrot/
1•dremnik•1h ago•0 comments

Cisco CPO predicts AI will have built majority of their products by end of 2027

https://www.sdxcentral.com/analysis/cisco-cpo-predicts-ai-will-have-built-majority-of-the-vendors...
4•oavioklein•1h ago•0 comments