frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Kalshi suspends 3 congressional candidates for wagering on their own elections

https://apnews.com/article/prediction-markets-kalshi-congress-candidates-elections-betting-37766e...
1•geox•1m ago•0 comments

Clippy Is Back, Your Desktop AI Paperclip Agent over GUI

https://github.com/AmrDab/clippyai-desktop
1•AmDab•2m ago•0 comments

IRGC-linked media hints at threat to Persian Gulf undersea internet cables

https://www.iranintl.com/en/202604225913
1•tokyobreakfast•5m ago•0 comments

An MCP Server for Fastmail – National Email Day

https://www.fastmail.com/blog/an-mcp-server-for-fastmail/
1•nmjenkins•5m ago•0 comments

Show HN: Autobrowse – a self-improving harness for learning browser tasks

https://twitter.com/shreypandya/status/2047100550446280792
3•smpandya•9m ago•0 comments

It's all about the angle: Your photos, re-composed

https://research.google/blog/its-all-about-the-angle-your-photos-re-composed/
1•CharlesW•10m ago•0 comments

HuntifyAI – I built an AI tools while deep in AI research and vibe coding

https://huntifyai.com/
1•ningshenbj•10m ago•0 comments

Auth Without Tokens [video]

https://www.youtube.com/watch?v=QmTyKqoAb5M
1•hisamafahri•11m ago•0 comments

News.Y Combinator.com/Submit

https://github.com/eishops23/agent-sdk
1•23fedner•11m ago•0 comments

US Could Own Up to 90% of Spirit in $500M Rescue Plan

https://www.bloomberg.com/news/articles/2026-04-22/trump-administration-nears-500m-spirit-rescue-...
1•petethomas•11m ago•0 comments

Discord group says it accessed Claude Mythos by guessing location

https://mashable.com/article/discord-group-accesses-claude-mythos-claims
1•nstj•12m ago•0 comments

Tesla confirms Optimus production starting late July at Fremont

https://electrek.co/2026/04/22/tesla-optimus-production-fremont-model-sx-line/
1•omer_k•12m ago•0 comments

Farmers call out deep cuts to NRCS and USDA programs and staffing

https://www.agweek.com/news/policy/farmers-call-out-deep-cuts-to-nrcs-and-usda-programs-and-staffing
1•petethomas•15m ago•0 comments

Israeli airstrike kills Lebanese journalist Amal Khalil

https://apnews.com/article/lebanese-journalist-amal-khalil-killed-israel-airstrike-14cabe8f773f59...
6•lr0•16m ago•1 comments

OpenAI model for masking personally identifiable information (PII) in text

https://openai.com/index/introducing-openai-privacy-filter/
2•tanelpoder•20m ago•0 comments

Tesla (TSLA) pulled questionable levers to make Q1 2026 financials look good

https://electrek.co/2026/04/22/tesla-tsla-q1-2026-one-time-benefits-warranty-tariff-refunds-margins/
2•pinewurst•24m ago•0 comments

Tesla becomes first customer for Intel's advanced 14A chip technology

https://www.reuters.com/business/autos-transportation/tesla-ceo-musk-says-company-plans-use-intel...
1•osnium123•25m ago•1 comments

Solo Dev Product Lunch (Laigo v1.0.0

https://laigo-frontend.onrender.com/
1•GrantBricks•27m ago•1 comments

Framework Announces Laptop 13 Pro, 'The MacBook Pro for Linux Users'

https://www.theverge.com/gadgets/915508/framework-announces-laptop-13-pro-the-macbook-pro-for-lin...
1•ravenical•28m ago•1 comments

Show HN: Pg_dbml – A dependency-free CLI to export Postgres to DBML

https://pg_dbml.80.cz/
1•heptau•29m ago•0 comments

Framework Laptop 13 Pro (back compatible, touch screen, double the battery life)

https://frame.work/pl/en/laptop13pro
1•piadista•31m ago•2 comments

US admiral calls Bitcoin an instrument for US 'power projection'

https://www.tradingview.com/news/cointelegraph:fd4c50ad7094b:0-us-admiral-calls-bitcoin-an-instru...
1•wslh•32m ago•0 comments

Tesla basically cooked the books to show one last quarter of positive cash flow

https://twitter.com/FredLambert/status/2047089101460099581
3•doener•34m ago•0 comments

Show HN: Cymatica – Chladni Plate Simulator

https://apps.apple.com/us/app/cymatica-music-visualizer/id6748863721
1•_august•35m ago•0 comments

A More Troubling Picture of Sea Level Rise Comes into View

https://undark.org/2026/04/22/sea-level-land-subsidence/
2•EA-3167•37m ago•0 comments

Wrist Assured: A Swatch Lover's Blog

https://wristassured.substack.com/
1•raeroumeliotis•43m ago•0 comments

Building Medichat.in

https://rittam.substack.com/p/building-medichatin
1•rdebnath•43m ago•0 comments

India has splurged billions on metro trains. But where are the commuters?

https://www.bbc.com/news/articles/c4g833128vlo
2•thunderbong•44m ago•0 comments

8000 profiles on the Portland Startups Slack

https://siliconflorist.com/2026/04/22/small-wins-8000-profiles-on-the-portland-startups-slack/
1•mooreds•46m ago•0 comments

How Much Caffeine in Coffee Cup?

https://www.researchgate.net/publication/317824932_How_Much_Caffeine_in_Coffee_Cup_Effects_of_Pro...
2•rzk•46m ago•0 comments
Open in hackernews

The Emacs Widget Toolkit

https://appetrosyan.github.io/posts/emacs-widget.html
48•signa11•11mo ago

Comments

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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