Re: Structured Changelogs for ELPA packages
Stefan Monnier <[email protected]> Tue, 11 Aug 2026 08:56:25 -0400
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Richard Stallman [2026-08-11 00:43:10] wrote:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> > FWIW, this whole discussion confirms my opinion tht we should stick to
> > the simplistic approach we're currently using.
>
> Could you please describe, all in one place, the approach
> you advocate continuing to use?
Not only I could but I do in `elpa-admin.el`:
(defun elpaa--get-NEWS (pkg-spec dir)
(let* ((news
(elpaa--get-section
"News" (elpaa--spec-get pkg-spec :news
'("NEWS" "NEWS.rst" "NEWS.md" "NEWS.org"))
dir pkg-spec)))
(if (< (length (cdr news)) 4000)
news
(with-temp-buffer
(insert (cdr news))
(goto-char (point-min))
(forward-char 4000)
(forward-line 1)
(cons (car news)
(concat (buffer-substring (point-min) (point))
"...\n...\n"))))))
=== Stefan