Gnus development mailing list
 help / color / mirror / Atom feed
* RSS in Gnus - elfeed backend?
@ 2021-04-01 11:47 Garjola Dindi
  2021-04-08 22:32 ` dick.r.chiang
  0 siblings, 1 reply; 2+ messages in thread
From: Garjola Dindi @ 2021-04-01 11:47 UTC (permalink / raw)
  To: ding

Hi,

I read RSS/Atom feeds in Gnus everyday using a couple of ways.

The first one, is the standard nnrss backend with the following trick I
found somewhere to convert Atom to RSS:
,----
| (require 'mm-url)
| (defadvice mm-url-insert (after DE-convert-atom-to-rss () )
|   "Converts atom to RSS by calling xsltproc."
|   (when (re-search-forward "xmlns=\"http://www.w3.org/.*/Atom\"" 
| 			   nil t)
|     (goto-char (point-min))
|     (message "Converting Atom to RSS... ")
|     (call-process-region (point-min) (point-max) 
| 			 "xsltproc" 
| 			 t t nil 
| 			 (expand-file-name "~/.emacs.d/atom2rss.xsl") "-")
|     (goto-char (point-min))
|     (message "Converting Atom to RSS... done")))
`----

Since the nnrss fetching blocks Emacs, this is not useable for a large
number of feeds. So I reserve this approach to a few feeds which are
responsive and that I don't need to check while offline.

For most of my feeds, I use feed2imap
https://github.com/feed2imap/feed2imap which allows me to download to
disk and view offline using an e-mail backend (I use nnmaildir).
Feed2imap seems to be unmaintained and is not very robust wrt updated
items on the feeds.

Looking for alternatives I found this:
https://protesilaos.com/dotemacs/#h:7e4448ec-3878-4ea2-9cd6-75e9faaac373

which actually describes rather well my issues. I think I am more of a
Gnus fan person than Protesilaos, and I resist to split my inboxes
between Elfeed (https://github.com/skeeto/elfeed) for feeds and Gnus for
everything else.

What I was wondering (but it may be completely dumb) is that if elfeed
itself (which is written in Elisp) could be used as a backend for Gnus.

Since there seem to be Gnus backends for nearly everything, maybe that
interfacing with Elfeed is possible.

What do you think? 

I am not an elisp programmer, but I may try to have a look at it if it
doesn't seem a bad idea to people having written backends for Gnus.

Thanks for your feedback.

-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RSS in Gnus - elfeed backend?
  2021-04-01 11:47 RSS in Gnus - elfeed backend? Garjola Dindi
@ 2021-04-08 22:32 ` dick.r.chiang
  0 siblings, 0 replies; 2+ messages in thread
From: dick.r.chiang @ 2021-04-08 22:32 UTC (permalink / raw)
  To: Garjola Dindi; +Cc: ding

An elfeed backend solves nothing since gnus's fetch-update loop is strictly
synchronous.  Attempting to foist the update half in elfeed's asynchronous
callback would end disastrously since gnus is all global variables all the time.

Two options:

1. Run gnus in a separate emacs process separate from your other work, i.e.,
create a menu item in your windows manager as `emacs -f gnus`, which is what I do.

2. Run a non-blocking version of gnus implemented [here](https://github.com/dickmao/gnus).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 11:47 RSS in Gnus - elfeed backend? Garjola Dindi
2021-04-08 22:32 ` dick.r.chiang

Gnus development mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/ding

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 ding ding/ http://inbox.vuxu.org/ding \
		ding@inbox.vuxu.org
	public-inbox-index ding

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git