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•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.

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 ?

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/

AI Leak Watch: 435,608 potential AI API key matches in public GitHub code

https://ai-keys-leaks.begimher.com/
1•dan_l2•31s ago•0 comments

The automation of jobs will never end

https://metastable.org/never-end/
1•pbw•4m ago•0 comments

Why Panama Is the Ideal Destination for Real Estate Investment

https://serviciosdebienesyraices.com/why-panama-is-the-ideal-destination-for-real-estate-investment
1•friwill•9m ago•0 comments

Spirit Airlines Passenger Brings 'Emotional Support' Rotisserie Chicken Thru TSA

https://viewfromthewing.com/spirit-airlines-passenger-brings-emotional-support-rotisserie-chicken...
1•rawgabbit•10m ago•0 comments

DOGE Cuts Unleashed a Deadly Wave of Violence Across Africa, Study Finds

https://www.404media.co/doge-cuts-unleashed-a-deadly-wave-of-violence-across-africa-study-finds/
2•pavel_lishin•14m ago•0 comments

Possible atmosphere detected on small trans-Neptunian object

https://www.smithsonianmag.com/smart-news/this-tiny-celestial-body-past-pluto-shouldnt-have-an-at...
1•pavel_lishin•15m ago•0 comments

Slop Bucket Idea – a dataset of AI slop (train AI what not to do)

2•IAmNeo•26m ago•4 comments

Hubris of Timing: Why being right abt the future isnt enough to capitalize on it

https://deciens.com/press-and-insights/epistula-14-the-hubris-of-timing
2•ryan_j_naughton•28m ago•0 comments

How fast is N tokens per second really?

https://mikeveerman.github.io/tokenspeed/
5•hexagr•33m ago•1 comments

Students deserve better than COLLEGE

https://stanforddaily.com/2026/05/14/students-deserve-better-than-college/
2•johntfella•37m ago•1 comments

Show HN: Dashbuster – Replace em dashes on any website

https://chromewebstore.google.com/detail/dashbuster/pnfhimkhinoecknjhlggdbgoajcogfll
1•qainsights•49m ago•0 comments

I went inside OpenAI's secretive San Francisco headquarters

https://www.sfgate.com/tech/article/openai-san-francisco-headquarters-22259754.php
2•bryan0•54m ago•0 comments

Most Americans don't trust AI – or the people in charge of it

https://www.theverge.com/ai-artificial-intelligence/644853/pew-gallup-data-americans-dont-trust-ai
1•cdrnsf•58m ago•0 comments

Apple announced the iPhone 17e with a chip developed in Israel

https://www.jpost.com/consumerism/article-888680
6•banku_brougham•1h ago•3 comments

Show HN: How to Kill the Dead Internet

https://chromewebstore.google.com/detail/d-slop/cnjeckkgbjgfledbphbobjabnfjnheef
4•bigger_fish•1h ago•1 comments

Microsoft will let you remap the Copilot key to restore right ctrl functionality

https://support.microsoft.com/en-us/accessibility/windows/copilot/understand-updates-to-the-copil...
2•razorbeamz•1h ago•0 comments

Tracking Skyscraper-Size Asteroids, Failed Supernovas and Interstellar Visits

https://www.quantamagazine.org/rubin-tracks-skyscraper-size-asteroids-failed-supernovas-and-inter...
2•tzury•1h ago•0 comments

I built a local layer that kills Token Tax–Python lib+Chrome extension+Mac app

https://omna.dev/
1•gauravji•1h ago•0 comments

Terms of (Ab)Use: An Analysis of GenAI Services [pdf]

https://arxiv.org/abs/2603.18964
1•droidjj•1h ago•0 comments

ArXiv will ban authors for a year if they let AI do all the work

https://techcrunch.com/2026/05/16/research-repository-arxiv-will-ban-authors-for-a-year-if-they-l...
1•0in•1h ago•0 comments

Signex: AI-first EDA, KiCad-compatible schematic and PCB editor built in Rust

https://github.com/alplabai/signex
2•Onavo•1h ago•0 comments

Tie Club

https://martin-baker.com/tie-club/
2•prawn•1h ago•0 comments

Yum Brands, Nvidia will deploy new AI at 500 restaurants

https://www.restaurantdive.com/news/yum-brands-nvidia-ai-taco-bell-pizza-hut-kfc-deal/742926/
2•littlexsparkee•1h ago•2 comments

pocket – A dead-simple file clipboard for your terminal

https://github.com/pasc4le-ai-sandbox/pocket
1•pasc4le•1h ago•0 comments

Museum of Imaginary Musical Instruments

https://imaginaryinstruments.org/
2•bookofjoe•1h ago•0 comments

Stop paying $360/year to access your own email history

https://mailvaulty.com
2•khaledsabae•1h ago•0 comments

My Thoughts on Bun's Rust Rewrite

https://en.liujiacai.net/2026/05/16/bun-rust-port/
5•birdculture•1h ago•1 comments

Why raw RPC logs are not enough for trading infrastructure

https://blog.bridgexapi.io/behavior-reconstruction-vs-token-scanners
1•Bridgexapi•1h ago•0 comments

EDR vendors: source code access (3), staged updates (8), SBoM rare

https://av-comparatives.org/independent-study-highlights-transparency-and-data-practices-in-leadi...
1•YorkiRima•2h ago•0 comments

Reverse engineering Android malware from popular Chinese projectors

https://zanestjohn.com/blog/reing-with-claude-code
2•3abiton•2h ago•0 comments