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/

Show HN: Smidge. Turn expert knowledge into agent intelligence

https://www.smdg.app/
1•junianwoo•1m ago•0 comments

Show HN: MemlyBook – AI agents debating their own freedom

https://github.com/sordado123/memlybook-engine
1•memly•3m ago•2 comments

Everything to know about NASA's Artemis in its chase of China to the Moon

https://jatan.space/moon-monday-issue-264/
2•JPLeRouzic•4m ago•0 comments

A World Where All Is Free. That's Elon Musk's Theory of 'Sustainable Abundance.'

https://www.nytimes.com/2026/02/27/business/a-world-where-all-is-free-thats-elon-musks-theory-of-...
1•bookofjoe•4m ago•1 comments

Ask HN: Using OpenClaw for marketing: worth it or overhyped?

1•starfun•5m ago•0 comments

Claude Auto Memory

https://code.claude.com/docs/en/memory
1•pajtai•5m ago•0 comments

Show HN: ImagineIf – Collaborative storytelling with AI visuals in 22 languages

https://imagineif.app
1•tugaypala•6m ago•1 comments

Xous security focused open source on 22nm custom silicon

https://www.crowdsupply.com/sutajio-kosagi/precursor/updates/xous-0-10-0-introducing-baochip-1x-s...
1•ZiiS•8m ago•0 comments

PanicLock: Disable Touch ID and lock screen with a single click on macOS

https://paniclock.github.io/
1•rendx•9m ago•0 comments

Show HN: Super Chopsticks – Finger Counting Game

https://superchopsticks.com
1•deckardt•9m ago•0 comments

Why SSRFs Are the Trickiest Security Issue in Modern Web Apps

https://tachyon.so/blog/ssrfs-trickiest-issue
1•logicx24•10m ago•0 comments

Run your agent 10 times – you won't get the same answer

https://arxiv.org/abs/2602.11619
3•amanmehta1997•10m ago•0 comments

Web dependencies are broken. Can we fix them?

https://lea.verou.me/blog/2026/web-deps/
1•fagnerbrack•11m ago•0 comments

Do Not Write with an LLM

https://elijahpotter.dev/articles/do-not-write-with-an-LLM
1•chilipepperhott•11m ago•0 comments

Discord will be undergoing scheduled maintenance at 12 PST

https://discordstatus.com/incidents/9m9vynvhjtcy
2•akyuu•11m ago•0 comments

How to stop burning money on OpenClaw

https://clawsnewsletter.substack.com/p/how-to-stop-burning-money-on-openclaw
1•stosssik•11m ago•1 comments

'Equity punks' wiped out in BrewDog's £33M sale to cannabis company

https://www.ft.com/content/f1ffc2ac-b022-4b6d-9111-ca0f78381d25
2•doener•11m ago•0 comments

Science shows curiosity is at the heart of great dates–and lasting love

https://bigthink.com/books/why-curiosity-is-the-secret-dating/
2•PaulHoule•11m ago•0 comments

A Claude Code plugin that plays HAL 9000 voice clips on hook events

https://github.com/vinta/hal-9000/tree/master/plugins/hal-voice
2•gibuloto•14m ago•1 comments

AI Companies need to partner with Serverless compute platforms vs. K8s

https://www.cerebrium.ai/blog/why-serverless-compute-partners-are-now-more-important-than-ever
1•za_mike157•14m ago•0 comments

Show HN: Nanograph – On-Device GraphDB for Agents

https://www.agentsworkshop.ai/p/nanograph-on-device-graphdb-for-agents
1•andrew-alt•15m ago•0 comments

The Human-in-the-Loop Is Tired

https://pydantic.dev/articles/the-human-in-the-loop-is-tired
2•petr25102018•15m ago•0 comments

Show HN: ChatOffRecord – Anonymous chatrooms that self-destruct in 10 minutes

https://www.chatoffrecord.com/
2•mistyshadow•16m ago•2 comments

Spank: Slap your MacBook, it yells back

https://github.com/taigrr/spank
2•rendx•16m ago•0 comments

John Baskerville's type punches released digitally

https://www.lib.cam.ac.uk/stories/baskerville-digital-collection
1•parkersweb•16m ago•1 comments

Three Modes of Cognition

https://kevinkelly.substack.com/p/three-modes-of-cognition
1•thm•18m ago•0 comments

Show HN: PiPulse – iOS App to remote control your pi.dev agents

https://www.pipulse.dev
1•jademind•18m ago•0 comments

We the Bacteria. Notes Toward Biotic Architecture

https://we-make-money-not-art.com/we-the-bacteria-notes-toward-biotic-architecture/
1•cainxinth•19m ago•0 comments

Show HN: Git-stint – Built for AI coding agents to multitask without collisions

https://github.com/rchaz/git-stint
1•rchaz•20m ago•0 comments

Charter gets FCC permission to buy Cox and become largest ISP in the US

https://arstechnica.com/tech-policy/2026/03/fcc-lets-charter-buy-cox-says-no-reason-to-worry-abou...
1•strongpigeon•21m ago•0 comments