💾 Archived View for soviet.circumlunar.space › oak › mailinglist › 31.gmi captured on 2022-04-28 at 19:00:25. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Porting Gemini to EMACS GNUS

From: ~vidak

Date: Sat, 23 Jan 2021 08:36:38 +0800

Hello!

I hope you're all doing well.

I do a lot of my news and email reading in EMACS, using GNUS.

I did a little research, and I found out that GNUS supports subscribing

to RSS feeds natively. I also discovered that GNUS does not really

natively support atom feeds. In the EMACS Wiki, there are only

instructions to convert atom feeds into RSS with an external program.

I attempted to subscribe to a gemini atom feed inside GNUS, just to

attempt to push the envelope a little, and it was not possible.

I am curious: would anyone be able to give me a little guidance about

how I would go about modifying my GNUS so I could subscribe to gemini

atom feeds?

I have been doing quite a bit of study on EMACS LISP lately, so I think

I may be up to the task of doing this--I'm not asking for mentorship,

just perhaps some insights, suggestions, or warnings that anyone might

have.

--

I think the benefits of being able to access gemini space from inside

GNUS would add an extra layer of dynamism to using gemini inside EMACS,

and would help push forward my nefarious agenda to perfect a LISP

operating system (:

Thanks in advance,

vidak.

(gemini) gemini://tanelorn.city/~vidak

(http) https://bootlicker.party

(fediverse) https://awkward.company/vidak

--------

From: ~vidak

Date: Sat, 23 Jan 2021 08:36:38 +0800

Hello!

I hope you're all doing well.

I do a lot of my news and email reading in EMACS, using GNUS.

I did a little research, and I found out that GNUS supports subscribing

to RSS feeds natively. I also discovered that GNUS does not really

natively support atom feeds. In the EMACS Wiki, there are only

instructions to convert atom feeds into RSS with an external program.

I attempted to subscribe to a gemini atom feed inside GNUS, just to

attempt to push the envelope a little, and it was not possible.

I am curious: would anyone be able to give me a little guidance about

how I would go about modifying my GNUS so I could subscribe to gemini

atom feeds?

I have been doing quite a bit of study on EMACS LISP lately, so I think

I may be up to the task of doing this--I'm not asking for mentorship,

just perhaps some insights, suggestions, or warnings that anyone might

have.

--

I think the benefits of being able to access gemini space from inside

GNUS would add an extra layer of dynamism to using gemini inside EMACS,

and would help push forward my nefarious agenda to perfect a LISP

operating system (:

Thanks in advance,

vidak.

(gemini) gemini://tanelorn.city/~vidak

(http) https://bootlicker.party

(fediverse) https://awkward.company/vidak

--------

From: Jason McBrayer

Date: Sun, 24 Jan 2021 12:27:35 -0500

~vidak <vidak at riseup.net> writes:

I attempted to subscribe to a gemini atom feed inside GNUS, just to
attempt to push the envelope a little, and it was not possible.
I am curious: would anyone be able to give me a little guidance about
how I would go about modifying my GNUS so I could subscribe to gemini
atom feeds?

My guess is that you have two separate problems to solve: fetching feeds

from Gemini rather than HTTP, and handling Atom feeds rather than RSS.

My general recommendation is that you make a copy of nnrss.el as

nnatom.el and start hacking on it until it handles atom feeds. You'll

probably have to also look at mm-url.el, because it has all of the URL

handling code for Gnus, and you'll either have to teach it about Gemini,

or teach nnatom.el to use a separate code path for handling Gemini urls

vs HTTP ones. The rest is just xml wrangling, I guess, and you can get

what you need from the Atom specification.

--

Jason McBrayer | ?Strange is the night where black stars rise,

jmcbray at carcosa.net | and strange moons circle through the skies,

| but stranger still is lost Carcosa.?

| ? Robert W. Chambers,The King in Yellow

--------

From: ~vidak

Date: Sat, 30 Jan 2021 06:51:22 +0800

Thank you very much!

I really appreciate the awesome push in the right direction (:

~vidak.

--------