Commit 924a4201 authored by Andrew G Cohen's avatar Andrew G Cohen

Allow gnus backends to return a list of headers

* lisp/gnus/nnselect.el (nnselect-add-novitem): New macro.

  (nnselect-retrieve-headers): Allow backends to return headers as a
  list. Return this list rather than re-populating the server buffer
  with 'nov format headers.

* lisp/gnus/gnus-sum.el (gnus-fetch-headers): Allow backends to return
  headers as a list. Make sure the dependencies structure is updated.
parent e841a206
Pipeline #3916 passed with stage
in 55 minutes and 58 seconds
......@@ -328,12 +328,11 @@ If this variable is nil, or if the provided function returns nil,
(_ (error "Unknown header type %s while requesting articles \
of group %s" gnus-headers-retrieved-by artgroup)))))
(setq headers
(sort headers
(lambda (x y)
(< (mail-header-number x) (mail-header-number y)))))
(erase-buffer)
(mapc 'nnheader-insert-nov headers)
'nov)))))
(sort
headers
(lambda (x y)
(< (mail-header-number x) (mail-header-number y))))))))))
(deffoo nnselect-request-article (article &optional _group server to-buffer)
(let* ((gnus-override-method nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment