frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Please check out my project

https://github.com/eon5942/timer
1•eonsgaybtw•37s ago•0 comments

Scientists claim the universe is twice as old as believed

https://geekspin.co/scientists-claim-the-universe-is-twice-as-old-as-believed/
1•mattm•3m ago•0 comments

Software Samaritan revamps borked Indian certs to block smart TV ads

https://www.theregister.com/security/2026/11/12/software-samaritan-revamps-borked-indian-certs-to...
1•noorsimar•3m ago•0 comments

Let's Write a PostScript Interpreter

https://beyondloom.com/blog/postscript.html
1•RebelPotato•3m ago•0 comments

The average cost for a new vehicle in the U.S. hits a record high: over $51,000

https://www.npr.org/2026/11/10/nx-s1-6026659/average-vehicle-price-record-high
1•blinding-streak•6m ago•0 comments

JSQLite: Browser-safe TypeScript version of SQLite's read-only implementation

https://github.com/salva/jsqlite
1•thunderbong•7m ago•0 comments

Microsoft Outlook/365 still down after 12 hours

https://twitter.com/MSFT365Status/status/2121079061774491735
2•player85•8m ago•0 comments

Show HN: PharmA2A, an open protocol for pharmacy-to-supplier orders on A2A

https://github.com/pharma2a/pharma2a
2•eliefo•17m ago•0 comments

Michelangelo AI

https://michelangelo-ai.org/
1•trekhleb•19m ago•0 comments

IceWM

https://ice-wm.org/
2•inatreecrown2•21m ago•0 comments

Agent Skills

https://vercel.com/docs/agent-resources/skills
1•trekhleb•22m ago•0 comments

Feather (Codevember)

https://ttillberg.github.io/codevember-2026/12/
1•markdog12•22m ago•0 comments

Copyright-Strike-for-Hire: Lawsuit Targets Service over Fake Meta Takedowns

https://torrentfreak.com/copyright-strike-for-hire-lawsuit-targets-service-over-fake-meta-takedowns/
1•gslin•24m ago•0 comments

Shutting the Door on the XCPE Botnet (Threat Intelligence)

https://lwn.net/Articles/1104847/
1•noorsimar•24m ago•0 comments

Show HN: My Script to Diff iTerm Configs

https://gist.github.com/hagemt121/14caecfd23dc14b97e0d2eaec01ab3a4
1•hagemt•26m ago•0 comments

Show HN: Vending machine uses words, not money

https://cultivatedcorpora.com/
1•avibagla1•26m ago•0 comments

Why Does Pitching Integrators Feel Like a One-Way Street?

https://deploy95.substack.com/p/why-does-pitching-integrators-feel
1•dddddaviddddd•27m ago•0 comments

US Justice Department has not concluded Alice Huang was Chinese spy

https://www.reuters.com/world/china/us-justice-department-has-not-concluded-alice-huang-was-chine...
1•madars•30m ago•0 comments

Hacker New Link Extractor

https://hn-links.netlify.app/
1•rammy1234•31m ago•0 comments

Fake Shemp

https://en.wikipedia.org/wiki/Fake_Shemp
1•gregsadetsky•32m ago•0 comments

Proof Assistant as Platform: Building the Next Generation of Verifiers [pdf]

https://pirlea.net/papers/thesis-draft.pdf
1•matt_d•34m ago•0 comments

NASA's Escapade Completes Powered Earth Flybys, Now En Route to Mars

https://science.nasa.gov/science-research/heliophysics/nasas-escapade-completes-powered-earth-fly...
2•gmays•35m ago•0 comments

The Scandal Is Bigger Than Jensen Huang

https://www.theatlantic.com/international/2026/11/nvidia-china-ai-regulation/689387/
4•paulpauper•38m ago•0 comments

Open Source AI Salons: Shaping the Osaid, Together

https://opensource.org/blog/open-source-ai-salons-shaping-the-osaid-together
1•gslin•41m ago•0 comments

Microsoft struggling to restore service as global outage affects services

https://www.bbc.com/news/articles/c5gm3g9ldz8xo
7•aussieguy1234•42m ago•4 comments

Are universities on the brink of an Uber-like revolution?

https://www.optimallyirrational.com/p/are-universities-on-the-brink-of
1•paulpauper•43m ago•0 comments

The Lost World of Aquaterra

https://www.theatlantic.com/magazine/2026/12/aquaterra-ancient-human-migration/689029/
1•paulpauper•44m ago•0 comments

Outlook still down for anyone else?

3•rsoto2•44m ago•4 comments

Show HN: I built a numbers game for my kids, with no tracking in the app

https://playhellobeam.com/beta
1•Mefillo•48m ago•0 comments

Jensen Huang's Downfall Is a Sign of Silicon Valley's Power Drain

https://www.wsj.com/tech/jensen-huang-nvidia-silicon-valley-ce74b63f
4•JumpCrisscross•51m ago•0 comments
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 ?