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

Comments

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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

Microsoft DCP is now open source (Developer Control Plane)

https://github.com/microsoft/dcp
1•vyrotek•3m ago•0 comments

Ask HN: What link/news/stories aggregates are you using?

1•fikama•4m ago•1 comments

A smartphone that runs Android, launches Debian, and dual-boots Windows 11

https://nexphone.com/blog/the-tale-of-nexphone-one-phone-every-computer
3•emrekosmaz•5m ago•1 comments

Show HN: A Gmail extension that stops you from sending emails you'll regret

https://chromewebstore.google.com/detail/send-check-for-gmail/jnlgfolocbbfhmgaljkgfobdgdlgbnkn
1•Ayobamiu•6m ago•0 comments

Show HN: MatHud – Open-source AI-assisted graphing calculator

https://github.com/vl3c/MatHud
1•vlad3ciobanu•6m ago•0 comments

When Music Stopped Mattering

https://linernotesxr.substack.com/p/when-music-stopped-mattering
1•unicorn_cowboy•7m ago•0 comments

Killport: CLI to quickly terminate processes listening on specified ports

https://github.com/jkfran/killport
1•Olshansky•10m ago•0 comments

The Texas Instruments CC-40 invades Gopherspace (plus TI-74 BASICALC)

http://oldvcr.blogspot.com/2025/12/the-texas-instruments-cc-40-invades.html
1•PaulHoule•11m ago•0 comments

An Un-MAGA Proposal to Bring Back American Manufacturing

https://www.bloomberg.com/news/articles/2026-01-22/derek-guy-on-why-luxury-is-the-path-back-for-m...
1•tortilla•11m ago•0 comments

Show HN: LaReview, local open-source CodeRabbit alternative

https://github.com/puemos/lareview
1•deofoo•14m ago•0 comments

The New York Times Introduces a Web Site (Jan 22 1996)

https://www.nytimes.com/1996/01/22/business/the-new-york-times-introduces-a-web-site.html
3•donohoe•16m ago•0 comments

Official Fundraising Platform of Ukraine

https://u24.gov.ua
4•kaycebasques•18m ago•1 comments

Crisis in the Kremlin (1992)

https://peyre.42web.io/Kremlin/index.htm
1•xk3•19m ago•0 comments

How to organize your Rust tests

https://blog.logrocket.com/how-to-organize-rust-tests/
2•fanf2•19m ago•0 comments

I was banned from Claude for scaffolding a Claude.md file

https://hugodaniel.com/posts/claude-code-banned-me/
2•hugodan•22m ago•0 comments

Global biodiversity loss, ecosystem collapse and national security [pdf]

https://assets.publishing.service.gov.uk/media/696e0eae719d837d69afc7de/National_security_assessm...
2•deadbishop•24m ago•0 comments

DaggerFFT: A Distributed FFT Framework Using Task Scheduling in Julia

https://arxiv.org/abs/2601.12209
2•rbanffy•26m ago•0 comments

Driving Computational Efficiency in Large-Scale Platforms Using HPC Technologies

https://arxiv.org/abs/2601.13424
1•rbanffy•27m ago•0 comments

As AI supercharges phishing scams, 1Password introduces built-in protection

https://1password.com/blog/as-ai-supercharges-phishing-scams-1password-introduces-built-in-protec...
2•terracatta•29m ago•0 comments

Show HN: Meter – data feed monitoring changes on any site

https://www.meter.sh/
2•hankwilliamsjr•30m ago•0 comments

Scaling of 2-D Semiconductor Nanoribbons for High-Performance Electronics

https://arxiv.org/abs/2601.13696
2•rbanffy•30m ago•0 comments

Show HN: Golang Support for Playdate Handheld

https://devforum.play.date/t/golang-support-for-playdate-compiler-sdk-bindings-tools-and-examples...
1•AmorBielyi•31m ago•0 comments

Rollout of AI may need to be slowed to 'save society', says JP Morgan boss

https://www.theguardian.com/technology/2026/jan/21/rollout-ai-slowed-save-society-jp-morgan-jamie...
3•thewebguyd•31m ago•1 comments

39C3 – Watch Your Kids: Inside a Children's Smartwatch [video]

https://www.youtube.com/watch?v=VRQz9EX2Tl0
1•hakonjdjohnsen•33m ago•0 comments

Show HN: An AI-powered web video editor built with Next.js and Fabric.js

https://pablituuu.space/video-editor
2•pablituuu•33m ago•0 comments

Colorectal Cancer Is Now the Top Cause of Cancer Death in Younger People

https://www.wsj.com/health/healthcare/colorectal-cancer-is-now-the-top-cause-of-cancer-death-in-y...
1•bmau5•35m ago•0 comments

Show HN: Clauder – Make your Claude Code instances talk to each other

https://github.com/MaorBril/clauder
3•maorbril•35m ago•1 comments

Skill.md: An open standard for agent skills

https://www.mintlify.com/blog/skill-md
2•skeptrune•35m ago•0 comments

Inferact: A New Company from the Creators of vLLM ($150M Seed)

https://inferact.ai/
2•shenli3514•36m ago•0 comments

Show HN: Startup Tarot Cards

https://minifiniti.com/pages/startup-tarot-cards
4•Finbarr•36m ago•0 comments