frontpage.
newsnewestaskshowjobs

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.

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/

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 ?

Bubble Sort Game

https://patrickgh3.itch.io/bubble-sort
1•memalign•1m ago•0 comments

Show HN: Tracking iCal feed latency across O365/Google/Apple

https://sync.timetastic.co.uk/
1•turkeywelder•2m ago•0 comments

Sorry, my software is better with agents

https://macro.land/blog/sorry-my-software-is-better-with-agents/
1•priyadarshy•5m ago•0 comments

Plotnine

https://plotnine.org/
1•tosh•6m ago•0 comments

Hey, N00B, We Didn't Hire You to Complete Tasks

https://newsletter.kentbeck.com/p/hey-n00b-we-didnt-hire-you-to-complete
1•RebootStr•8m ago•0 comments

Show HN: The Deconstructed VS Code

https://github.com/dipankar/dscode
1•dipankarsarkar•11m ago•0 comments

A coin toss isn't random. Maybe our choices aren't either

https://gt.ms/blog/free-will/?v=2
2•geetuu•12m ago•0 comments

PageToMD – A CLI tool to turn web pages into clean Markdown for AI agents

https://github.com/gs202/PageToMD
1•gs202•12m ago•0 comments

Vibe Coding at Scale? Engineering Strikes Back

https://blog.owulveryck.info/2026/06/19/vibe-coding-at-scale-engineering-strikes-back.html
1•owulveryck•12m ago•0 comments

Switching AI Tools Mid-Sprint Cost Us a Day (and What We Learned) – Week 6 R

https://theaileverageweekly.com/posts/how-switching-ai-tools-mid-sprint-cost-us-a-day-and-what-we...
1•talvardi7•13m ago•0 comments

Gistpreview.github.io: Gist HTML Preview

https://github.com/gistpreview/gistpreview.github.io
1•gurjeet•13m ago•0 comments

LUKS suspend failed to wipe volume encryption key from memory since Linux 6.9

https://mathstodon.xyz/@iblech/116769502749142438
1•microtonal•16m ago•0 comments

Why local AI – and why it matters

https://nexusfoundation.ngo/why-local-ai
1•kris_osiadacz•26m ago•0 comments

Braess's Paradox

https://en.wikipedia.org/wiki/Braess%27s_paradox
1•the-mitr•26m ago•0 comments

Bobby Prince's Doom (1993) Soundtrack Inducted into Library of Congress

https://playday.one/2026/05/14/bobby-princes-doom-soundtrack-inducted-into-library-of-congress/
2•nomilk•27m ago•0 comments

Phoebus Cartel

https://en.wikipedia.org/wiki/Phoebus_cartel
1•thunderbong•27m ago•0 comments

Build your own vulnerability harness

https://blog.cloudflare.com/build-your-own-vulnerability-harness/
2•Gipsyfine•29m ago•0 comments

Finding the Link Uber Missed: How to Connect AI Code Spend to Business Value

https://medium.com/@navigara/you-cant-measure-roi-on-ai-coding-tools-if-you-never-measured-engine...
1•alienll•31m ago•0 comments

Show HN: NetSentinel – a local network security scanner and connectivity monitor

https://github.com/ossianericson/netsentinel
2•ossianericson•32m ago•0 comments

BookMarkr – Local first visually organized bookmark Chrome extension

https://chromewebstore.google.com/detail/bookmarkr-—-visual-bookma/lianafemkbankodapdaokiefoffi...
1•mnomansd•32m ago•0 comments

Unreal deprecrates Blueprints, their visual programming language in UE6.1

https://xcancel.com/unrealengine/status/2067661808903577646
1•Signez•33m ago•0 comments

Lakehouse//RT: Real-Time Performance on a Unified Lakehouse

https://www.databricks.com/blog/introducing-lakehousert-real-time-performance-unified-lakehouse
1•throwaw12•33m ago•0 comments

How to Drive an LLM

https://home.robusta.dev/blog/how-to-drive-an-llm
1•nyellin•33m ago•0 comments

What 'Getting Your Hands Dirty' Means at LLM-Era

https://carette.xyz/posts/the_mud_and_the_mind/
5•maarcel93•40m ago•1 comments

The new HTTP QUERY method explained

https://kreya.app/blog/new-http-query-method-explained/
3•CommonGuy•41m ago•0 comments

Gemini provides phone number of scammer posing as Delta Airlines

https://old.reddit.com/r/artificial/comments/1u9t7mp/gemini_helped_me_get_scammed/
1•LeoPanthera•42m ago•0 comments

Ask HN: What do you use for scientific presentations?

3•hamburgererror•47m ago•0 comments

Show HN: UAVs FYI – Drone database with supply chain data, API and CLI

https://www.uavs.fyi/
1•Osoraku•48m ago•0 comments

GLM-5.2: Chop off 84% of the volume from a 1.5TB model, still retain 82% power

https://twitter.com/AYi_AInotes/status/2067642004184383564
4•vantareed•48m ago•1 comments

Claude Artifacts

https://claude.com/blog/artifacts-in-claude-code
3•czeizel•50m ago•2 comments