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

Comments

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

AstoCAD – Polished, paid "soft-fork" of FreeCAD with upstream contributions

https://www.astocad.com/
1•embedding-shape•7m ago•0 comments

Why Does Have I Been Pwned Contain "Fake" Email Addresses?

https://www.troyhunt.com/why-does-have-i-been-pwned-contain-fake-email-addresses/
1•LorenDB•21m ago•0 comments

The Macuahuitl – The Obsidian Sword of the Aztecs

https://www.youtube.com/watch?v=12GP6ktNIk0
2•bane•25m ago•0 comments

Our Foundation: The 65,000 Restored Sound Archive

https://lockchime.com/ringchime/hub.php
1•gogyjay•31m ago•1 comments

The Complex Story Behind Al-Idrīsī's Iconic World Map

https://sacredfootsteps.com/2022/06/24/the-complex-story-behind-al-idrisis-iconic-world-map/
2•teleforce•42m ago•0 comments

Life as an ICC judge sanctioned by Trump

https://www.middleeasteye.net/news/life-icc-judge-sanctioned-trump-luz-ibanez
7•rendx•48m ago•0 comments

Sloptalgia – AI Reimagines your favorite memories of old video games

https://www.sloptalgia.com/
1•AmbroseBierce•49m ago•0 comments

Who Is ColdFusion? [video]

https://www.youtube.com/watch?v=OaG92TG2skI
1•nomilk•50m ago•0 comments

What I learned building an opinionated and minimal coding agent

https://mariozechner.at/posts/2025-11-30-pi-coding-agent/
1•mjshashank•50m ago•0 comments

Why Software Still Sucks (and Why That's About to Change)

https://medium.com/@bonniebuilds/why-software-still-sucks-and-why-thats-about-to-change-8b57ee295bf9
1•jfaat•54m ago•0 comments

The Dictator's Speech (1940) [video]

https://www.youtube.com/watch?v=k0CzXi9e66M
1•maininformer•57m ago•0 comments

Preliminary Testing with Z-Image Turbo

https://mordenstar.com/other/z-image-turbo/
1•doener•1h ago•0 comments

Oblast: A better Blasto game for the Commodore 64

http://oldvcr.blogspot.com/2025/12/oblast-better-blasto-game-for-commodore.html
4•todsacerdoti•1h ago•0 comments

Eurydice: a Rust to C compiler (yes)

https://jonathan.protzenko.fr/2025/10/28/eurydice.html
5•todsacerdoti•1h ago•0 comments

Ask HN: What is the interesting use case of humanoid robotics?

2•glaksmono•1h ago•4 comments

NAR Says Typical First-Time Homebuyer Age Was 40 This Year–But Is This Accurate?

https://www.aei.org/articles/nar-says-the-typical-first-time-homebuyer-age-was-40-this-year-up-fr...
2•JumpCrisscross•1h ago•1 comments

Who's Funding Sudan Genocide: Ethnic Cleansing and Civil War Explained (2025) [video]

https://www.youtube.com/watch?v=D8BM7fwt-O8
1•stopbulying•1h ago•1 comments

New Theory of the Origins of Life and Other Minor Issues

https://magazine.mindplex.ai/post/new-theory-of-the-origins-of-life-and-other-minor-issues-an-int...
1•MilnerRoute•1h ago•0 comments

Using LLMs at Oxide

https://rfd.shared.oxide.computer/rfd/0576
103•steveklabnik•1h ago•41 comments

Times God Picked a Date

https://www.kcm.org/real-help/faith/learn/10-times-god-picked-date
1•marysminefnuf•1h ago•1 comments

UC Davis scientists created wheat that can partially fertilize itself

https://scitechdaily.com/new-self-fertilizing-wheat-could-transform-farming/
1•methuselah_in•1h ago•0 comments

How UI degrades over time

https://grumpy.website/1723
8•soheilpro•1h ago•1 comments

Puzzling Out the Perytons (2015)

https://www.centauri-dreams.org/2015/04/06/puzzling-out-the-perytons/
1•adagradschool•1h ago•0 comments

Jellyfin does hardware transcoding for free, and Plex wants $250 to match it

https://www.xda-developers.com/jellyfin-hardware-transcoding-free-plex-wants-money/
6•josephcsible•1h ago•1 comments

LokiVector: An Embedded Document Vector DB Crash-Tested Durability

1•rckflr•1h ago•0 comments

Why AI isn't tool calling humans?

https://www.human-tool-call.com/
3•louis030195•1h ago•2 comments

My Next.js server was compromised 24 hours after CVE-2025-55182 disclosure

https://asleepace.com/blog/malware-cve-2025-55182-exploitation-incident-report/
1•asleepace•1h ago•1 comments

7 Deaths and hundreds of injuries are linked to faulty Abbott glucose monitors

https://www.npr.org/2025/12/06/g-s1-101082/abbott-glucose-monitor-deaths-recall-freestyle-libre
9•bookofjoe•1h ago•2 comments

The end of the middle-class traveler in Hawaii is near

https://www.sfgate.com/hawaii/article/hawaii-middle-class-visitors-declining-21204477.php
13•rblion•1h ago•6 comments

A Full Bitcoin-Style Blockchain Implemented in Pure PHP and Sockets

https://github.com/kladskull/xEroS
2•captaincrunch•1h ago•0 comments